original_docstring: Adds the cost of writing the new_entity to the _cost member.
  
      We assume that old_entity represents the current state of the Datastore.
  
      Args:
        old_entity: Entity representing the current state in the Datstore.
        new_entity: Entity representing the desired state in the Datstore.
      
docstring: Adds the cost of writing the new_entity to the _cost member.
  We assume that old_entity represents the current state of the Datastore.
docstring_tokens: Adds the cost of writing the new_entity to the _cost member . We assume that old_entity represents the current state of the Datastore .
code: def _AddWriteOps(self, old_entity, new_entity):
      """Adds the cost of writing the new_entity to the _cost member.
  
      We assume that old_entity represents the current state of the Datastore.
  
      Args:
        old_entity: Entity representing the current state in the Datstore.
        new_entity: Entity representing the desired state in the Datstore.
      """
      composite_indexes = self._kind_to_indexes[_GetKeyKind(new_entity.key())]
      entity_writes, index_writes = _CalculateWriteOps(
          composite_indexes, old_entity, new_entity)
      _UpdateCost(self._cost, entity_writes, index_writes)
code_tokens: def _AddWriteOps ( self , old_entity , new_entity ) : composite_indexes = self . _kind_to_indexes [ _GetKeyKind ( new_entity . key ( ) ) ] entity_writes , index_writes = _CalculateWriteOps ( composite_indexes , old_entity , new_entity ) _UpdateCost ( self . _cost , entity_writes , index_writes )
short_docstring: Adds the cost of writing the new_entity to the _cost member.
short_docstring_tokens: Adds the cost of writing the new_entity to the _cost member .
comment: """Adds the cost of writing the new_entity to the _cost member.
  
      We assume that old_entity represents the current state of the Datastore.
  
      Args:
        old_entity: Entity representing the current state in the Datstore.
        new_entity: Entity representing the desired state in the Datstore.
      """