def AddCost(self, cost_proto):
    self.__throttle.AddTransfer(INDEX_MODIFICATIONS, cost_proto.index_writes())
    self.__throttle.AddTransfer(ENTITIES_MODIFIED, cost_proto.entity_writes())
Add costs from the Cost protobuf.
dataset/ETHPy150Open CollabQ/CollabQ/.google_appengine/google/appengine/ext/remote_api/throttle.py/DatastoreThrottler.AddCost