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``.
dataset/ETHPy150Open GoogleCloudPlatform/gcloud-python/gcloud/datastore/batch.py/_assign_entity_to_pb