def _assign_entity_to_pb(entity_pb, entity):
 bare_entity_pb = helpers.entity_to_protobuf(entity)
 bare_entity_pb.key.CopyFrom(bare_entity_pb.key)
 entity_pb.CopyFrom(bare_entity_pb)

def _assign_entity_to_pb ( entity_pb , entity ) : bare_entity_pb = helpers . entity_to_protobuf ( entity ) bare_entity_pb . key . CopyFrom ( bare_entity_pb . key ) entity_pb . CopyFrom ( bare_entity_pb )
copy entity into entity_pb .