# Path: google/cloud/datastore_v1/types/entity.py
# class PartitionId(proto.Message):
# class Key(proto.Message):
#     class PathElement(proto.Message):
# class ArrayValue(proto.Message):
# class Value(proto.Message):
# class Entity(proto.Message):


import proto  # type: ignore
from google.cloud.datastore_v1.types import entity as gd_entity
from google.protobuf import wrappers_pb2  # type: ignore
            The version of the entity, a strictly positive number that
            monotonically increases with changes to the entity.

            This field is set for
            [``FULL``][google.datastore.v1.EntityResult.ResultType.FULL]
            entity results.

            For [missing][google.datastore.v1.LookupResponse.missing]
            entities in ``LookupResponse``, this is the version of the
            snapshot that was used to look up the entity, and it is
            always set except for eventually consistent reads.
        cursor (bytes):
            A cursor that points to the position after the result
            entity. Set only when the ``EntityResult`` is part of a
            ``QueryResultBatch`` message.
    """

    class ResultType(proto.Enum):
        r"""Specifies what data the 'entity' field contains. A ``ResultType`` is
        either implied (for example, in ``LookupResponse.missing`` from
        ``datastore.proto``, it is always ``KEY_ONLY``) or specified by
        context (for example, in message ``QueryResultBatch``, field
        ``entity_result_type`` specifies a ``ResultType`` for all the values
        in field ``entity_results``).
        """
        RESULT_TYPE_UNSPECIFIED = 0
        FULL = 1
        PROJECTION = 2
        KEY_ONLY = 3


# Path: google/cloud/datastore_v1/types/entity.py
# class PartitionId(proto.Message):
# class Key(proto.Message):
#     class PathElement(proto.Message):
# class ArrayValue(proto.Message):
# class Value(proto.Message):
# class Entity(proto.Message):


# Path: google/cloud/datastore_v1/types/query.py
import proto  # type: ignore
from google.cloud.datastore_v1.types import entity as gd_entity
from google.protobuf import wrappers_pb2  # type: ignore

            The version of the entity, a strictly positive number that
            monotonically increases with changes to the entity.

            This field is set for
            [``FULL``][google.datastore.v1.EntityResult.ResultType.FULL]
            entity results.

            For [missing][google.datastore.v1.LookupResponse.missing]
            entities in ``LookupResponse``, this is the version of the
            snapshot that was used to look up the entity, and it is
            always set except for eventually consistent reads.
        cursor (bytes):
            A cursor that points to the position after the result
            entity. Set only when the ``EntityResult`` is part of a
            ``QueryResultBatch`` message.
    """

    class ResultType(proto.Enum):
        r"""Specifies what data the 'entity' field contains. A ``ResultType`` is
        either implied (for example, in ``LookupResponse.missing`` from
        ``datastore.proto``, it is always ``KEY_ONLY``) or specified by
        context (for example, in message ``QueryResultBatch``, field
        ``entity_result_type`` specifies a ``ResultType`` for all the values
        in field ``entity_results``).
        """
        RESULT_TYPE_UNSPECIFIED = 0
        FULL = 1
        PROJECTION = 2
        KEY_ONLY = 3


    entity = proto.Field(proto.MESSAGE, number=1, message=gd_entity.Entity,)