core.db.overrides ================= .. py:module:: core.db.overrides Functions --------- .. autoapisummary:: core.db.overrides.key_from_protobuf core.db.overrides.entity_from_protobuf Module Contents --------------- .. py:function:: key_from_protobuf(pb) Factory method for creating a key based on a protobuf. The protobuf should be one returned from the Cloud Datastore Protobuf API. :type pb: :class:`.entity_pb2.Key` :param pb: The Protobuf representing the key. :rtype: :class:`google.cloud.datastore.key.Key` :returns: a new `Key` instance .. py:function:: entity_from_protobuf(pb) Factory method for creating an entity based on a protobuf. The protobuf should be one returned from the Cloud Datastore Protobuf API. :type pb: :class:`.entity_pb2.Entity` :param pb: The Protobuf representing the entity. :rtype: :class:`google.cloud.datastore.entity.Entity` :returns: The entity derived from the protobuf.