'Turn a user-level entity into an googledatastore.Key.'

def entity_to_pb_v1(self, entity):

    v3_entity = self.entity_to_pb(entity)
    v1_entity = googledatastore.Entity()
    self._entity_converter.v3_to_v1_entity(v3_entity, v1_entity)
    return v1_entity
