# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/datastore_v1/proto/datastore.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database

# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()


from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
from google.api import client_pb2 as google_dot_api_dot_client__pb2
from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2
from google.cloud.datastore_v1.proto import (
    entity_pb2 as google_dot_cloud_dot_datastore__v1_dot_proto_dot_entity__pb2,
)
from google.cloud.datastore_v1.proto import (
    query_pb2 as google_dot_cloud_dot_datastore__v1_dot_proto_dot_query__pb2,
)


DESCRIPTOR = _descriptor.FileDescriptor(
    name="google/cloud/datastore_v1/proto/datastore.proto",
    package="google.datastore.v1",
    syntax="proto3",
    serialized_options=b"\n\027com.google.datastore.v1B\016DatastoreProtoP\001Z<google.golang.org/genproto/googleapis/datastore/v1;datastore\252\002\031Google.Cloud.Datastore.V1\312\002\031Google\\Cloud\\Datastore\\V1\352\002\034Google::Cloud::Datastore::V1",
    create_key=_descriptor._internal_create_key,
    serialized_pb=b'\n/google/cloud/datastore_v1/proto/datastore.proto\x12\x13google.datastore.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a,google/cloud/datastore_v1/proto/entity.proto\x1a+google/cloud/datastore_v1/proto/query.proto"\x8d\x01\n\rLookupRequest\x12\x17\n\nproject_id\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12\x36\n\x0cread_options\x18\x01 \x01(\x0b\x32 .google.datastore.v1.ReadOptions\x12+\n\x04keys\x18\x03 \x03(\x0b\x32\x18.google.datastore.v1.KeyB\x03\xe0\x41\x02"\xa2\x01\n\x0eLookupResponse\x12\x30\n\x05\x66ound\x18\x01 \x03(\x0b\x32!.google.datastore.v1.EntityResult\x12\x32\n\x07missing\x18\x02 \x03(\x0b\x32!.google.datastore.v1.EntityResult\x12*\n\x08\x64\x65\x66\x65rred\x18\x03 \x03(\x0b\x32\x18.google.datastore.v1.Key"\x89\x02\n\x0fRunQueryRequest\x12\x17\n\nproject_id\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12\x36\n\x0cpartition_id\x18\x02 \x01(\x0b\x32 .google.datastore.v1.PartitionId\x12\x36\n\x0cread_options\x18\x01 \x01(\x0b\x32 .google.datastore.v1.ReadOptions\x12+\n\x05query\x18\x03 \x01(\x0b\x32\x1a.google.datastore.v1.QueryH\x00\x12\x32\n\tgql_query\x18\x07 \x01(\x0b\x32\x1d.google.datastore.v1.GqlQueryH\x00\x42\x0c\n\nquery_type"s\n\x10RunQueryResponse\x12\x34\n\x05\x62\x61tch\x18\x01 \x01(\x0b\x32%.google.datastore.v1.QueryResultBatch\x12)\n\x05query\x18\x02 \x01(\x0b\x32\x1a.google.datastore.v1.Query"x\n\x17\x42\x65ginTransactionRequest\x12\x17\n\nproject_id\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12\x44\n\x13transaction_options\x18\n \x01(\x0b\x32\'.google.datastore.v1.TransactionOptions"/\n\x18\x42\x65ginTransactionResponse\x12\x13\n\x0btransaction\x18\x01 \x01(\x0c"D\n\x0fRollbackRequest\x12\x17\n\nproject_id\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0btransaction\x18\x01 \x01(\x0c\x42\x03\xe0\x41\x02"\x12\n\x10RollbackResponse"\x88\x02\n\rCommitRequest\x12\x17\n\nproject_id\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12\x35\n\x04mode\x18\x05 \x01(\x0e\x32\'.google.datastore.v1.CommitRequest.Mode\x12\x15\n\x0btransaction\x18\x01 \x01(\x0cH\x00\x12\x30\n\tmutations\x18\x06 \x03(\x0b\x32\x1d.google.datastore.v1.Mutation"F\n\x04Mode\x12\x14\n\x10MODE_UNSPECIFIED\x10\x00\x12\x11\n\rTRANSACTIONAL\x10\x01\x12\x15\n\x11NON_TRANSACTIONAL\x10\x02\x42\x16\n\x14transaction_selector"f\n\x0e\x43ommitResponse\x12=\n\x10mutation_results\x18\x03 \x03(\x0b\x32#.google.datastore.v1.MutationResult\x12\x15\n\rindex_updates\x18\x04 \x01(\x05"Z\n\x12\x41llocateIdsRequest\x12\x17\n\nproject_id\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12+\n\x04keys\x18\x01 \x03(\x0b\x32\x18.google.datastore.v1.KeyB\x03\xe0\x41\x02"=\n\x13\x41llocateIdsResponse\x12&\n\x04keys\x18\x01 \x03(\x0b\x32\x18.google.datastore.v1.Key"n\n\x11ReserveIdsRequest\x12\x17\n\nproject_id\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x61tabase_id\x18\t \x01(\t\x12+\n\x04keys\x18\x01 \x03(\x0b\x32\x18.google.datastore.v1.KeyB\x03\xe0\x41\x02"\x14\n\x12ReserveIdsResponse"\x87\x02\n\x08Mutation\x12-\n\x06insert\x18\x04 \x01(\x0b\x32\x1b.google.datastore.v1.EntityH\x00\x12-\n\x06update\x18\x05 \x01(\x0b\x32\x1b.google.datastore.v1.EntityH\x00\x12-\n\x06upsert\x18\x06 \x01(\x0b\x32\x1b.google.datastore.v1.EntityH\x00\x12*\n\x06\x64\x65lete\x18\x07 \x01(\x0b\x32\x18.google.datastore.v1.KeyH\x00\x12\x16\n\x0c\x62\x61se_version\x18\x08 \x01(\x03H\x01\x42\x0b\n\toperationB\x1d\n\x1b\x63onflict_detection_strategy"c\n\x0eMutationResult\x12%\n\x03key\x18\x03 \x01(\x0b\x32\x18.google.datastore.v1.Key\x12\x0f\n\x07version\x18\x04 \x01(\x03\x12\x19\n\x11\x63onflict_detected\x18\x05 \x01(\x08"\xd5\x01\n\x0bReadOptions\x12L\n\x10read_consistency\x18\x01 \x01(\x0e\x32\x30.google.datastore.v1.ReadOptions.ReadConsistencyH\x00\x12\x15\n\x0btransaction\x18\x02 \x01(\x0cH\x00"M\n\x0fReadConsistency\x12 \n\x1cREAD_CONSISTENCY_UNSPECIFIED\x10\x00\x12\n\n\x06STRONG\x10\x01\x12\x0c\n\x08\x45VENTUAL\x10\x02\x42\x12\n\x10\x63onsistency_type"\xe3\x01\n\x12TransactionOptions\x12G\n\nread_write\x18\x01 \x01(\x0b\x32\x31.google.datastore.v1.TransactionOptions.ReadWriteH\x00\x12\x45\n\tread_only\x18\x02 \x01(\x0b\x32\x30.google.datastore.v1.TransactionOptions.ReadOnlyH\x00\x1a)\n\tReadWrite\x12\x1c\n\x14previous_transaction\x18\x01 \x01(\x0c\x1a\n\n\x08ReadOnlyB\x06\n\x04mode2\x93\n\n\tDatastore\x12\x9d\x01\n\x06Lookup\x12".google.datastore.v1.LookupRequest\x1a#.google.datastore.v1.LookupResponse"J\x82\xd3\xe4\x93\x02%" /v1/projects/{project_id}:lookup:\x01*\xda\x41\x1cproject_id,read_options,keys\x12\x86\x01\n\x08RunQuery\x12$.google.datastore.v1.RunQueryRequest\x1a%.google.datastore.v1.RunQueryResponse"-\x82\xd3\xe4\x93\x02\'""/v1/projects/{project_id}:runQuery:\x01*\x12\xb3\x01\n\x10\x42\x65ginTransaction\x12,.google.datastore.v1.BeginTransactionRequest\x1a-.google.datastore.v1.BeginTransactionResponse"B\x82\xd3\xe4\x93\x02/"*/v1/projects/{project_id}:beginTransaction:\x01*\xda\x41\nproject_id\x12\xc2\x01\n\x06\x43ommit\x12".google.datastore.v1.CommitRequest\x1a#.google.datastore.v1.CommitResponse"o\x82\xd3\xe4\x93\x02%" /v1/projects/{project_id}:commit:\x01*\xda\x41%project_id,mode,transaction,mutations\xda\x41\x19project_id,mode,mutations\x12\x9f\x01\n\x08Rollback\x12$.google.datastore.v1.RollbackRequest\x1a%.google.datastore.v1.RollbackResponse"F\x82\xd3\xe4\x93\x02\'""/v1/projects/{project_id}:rollback:\x01*\xda\x41\x16project_id,transaction\x12\xa4\x01\n\x0b\x41llocateIds\x12\'.google.datastore.v1.AllocateIdsRequest\x1a(.google.datastore.v1.AllocateIdsResponse"B\x82\xd3\xe4\x93\x02*"%/v1/projects/{project_id}:allocateIds:\x01*\xda\x41\x0fproject_id,keys\x12\xa0\x01\n\nReserveIds\x12&.google.datastore.v1.ReserveIdsRequest\x1a\'.google.datastore.v1.ReserveIdsResponse"A\x82\xd3\xe4\x93\x02)"$/v1/projects/{project_id}:reserveIds:\x01*\xda\x41\x0fproject_id,keys\x1av\xca\x41\x18\x64\x61tastore.googleapis.com\xd2\x41Xhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/datastoreB\xc0\x01\n\x17\x63om.google.datastore.v1B\x0e\x44\x61tastoreProtoP\x01Z<google.golang.org/genproto/googleapis/datastore/v1;datastore\xaa\x02\x19Google.Cloud.Datastore.V1\xca\x02\x19Google\\Cloud\\Datastore\\V1\xea\x02\x1cGoogle::Cloud::Datastore::V1b\x06proto3',
    dependencies=[
        google_dot_api_dot_annotations__pb2.DESCRIPTOR,
        google_dot_api_dot_client__pb2.DESCRIPTOR,
        google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,
        google_dot_cloud_dot_datastore__v1_dot_proto_dot_entity__pb2.DESCRIPTOR,
        google_dot_cloud_dot_datastore__v1_dot_proto_dot_query__pb2.DESCRIPTOR,
    ],
)


_COMMITREQUEST_MODE = _descriptor.EnumDescriptor(
    name="Mode",
    full_name="google.datastore.v1.CommitRequest.Mode",
    filename=None,
    file=DESCRIPTOR,
    create_key=_descriptor._internal_create_key,
    values=[
        _descriptor.EnumValueDescriptor(
            name="MODE_UNSPECIFIED",
            index=0,
            number=0,
            serialized_options=None,
            type=None,
            create_key=_descriptor._internal_create_key,
        ),
        _descriptor.EnumValueDescriptor(
            name="TRANSACTIONAL",
            index=1,
            number=1,
            serialized_options=None,
            type=None,
            create_key=_descriptor._internal_create_key,
        ),
        _descriptor.EnumValueDescriptor(
            name="NON_TRANSACTIONAL",
            index=2,
            number=2,
            serialized_options=None,
            type=None,
            create_key=_descriptor._internal_create_key,
        ),
    ],
    containing_type=None,
    serialized_options=None,
    serialized_start=1377,
    serialized_end=1447,
)
_sym_db.RegisterEnumDescriptor(_COMMITREQUEST_MODE)

_READOPTIONS_READCONSISTENCY = _descriptor.EnumDescriptor(
    name="ReadConsistency",
    full_name="google.datastore.v1.ReadOptions.ReadConsistency",
    filename=None,
    file=DESCRIPTOR,
    create_key=_descriptor._internal_create_key,
    values=[
        _descriptor.EnumValueDescriptor(
            name="READ_CONSISTENCY_UNSPECIFIED",
            index=0,
            number=0,
            serialized_options=None,
            type=None,
            create_key=_descriptor._internal_create_key,
        ),
        _descriptor.EnumValueDescriptor(
            name="STRONG",
            index=1,
            number=1,
            serialized_options=None,
            type=None,
            create_key=_descriptor._internal_create_key,
        ),
        _descriptor.EnumValueDescriptor(
            name="EVENTUAL",
            index=2,
            number=2,
            serialized_options=None,
            type=None,
            create_key=_descriptor._internal_create_key,
        ),
    ],
    containing_type=None,
    serialized_options=None,
    serialized_start=2350,
    serialized_end=2427,
)
_sym_db.RegisterEnumDescriptor(_READOPTIONS_READCONSISTENCY)


_LOOKUPREQUEST = _descriptor.Descriptor(
    name="LookupRequest",
    full_name="google.datastore.v1.LookupRequest",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    create_key=_descriptor._internal_create_key,
    fields=[
        _descriptor.FieldDescriptor(
            name="project_id",
            full_name="google.datastore.v1.LookupRequest.project_id",
            index=0,
            number=8,
            type=9,
            cpp_type=9,
            label=1,
            has_default_value=False,
            default_value=b"".decode("utf-8"),
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=b"\340A\002",
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
        _descriptor.FieldDescriptor(
            name="read_options",
            full_name="google.datastore.v1.LookupRequest.read_options",
            index=1,
            number=1,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
        _descriptor.FieldDescriptor(
            name="keys",
            full_name="google.datastore.v1.LookupRequest.keys",
            index=2,
            number=3,
            type=11,
            cpp_type=10,
            label=3,
            has_default_value=False,
            default_value=[],
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=b"\340A\002",
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=252,
    serialized_end=393,
)


_LOOKUPRESPONSE = _descriptor.Descriptor(
    name="LookupResponse",
    full_name="google.datastore.v1.LookupResponse",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    create_key=_descriptor._internal_create_key,
    fields=[
        _descriptor.FieldDescriptor(
            name="found",
            full_name="google.datastore.v1.LookupResponse.found",
            index=0,
            number=1,
            type=11,
            cpp_type=10,
            label=3,
            has_default_value=False,
            default_value=[],
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
        _descriptor.FieldDescriptor(
            name="missing",
            full_name="google.datastore.v1.LookupResponse.missing",
            index=1,
            number=2,
            type=11,
            cpp_type=10,
            label=3,
            has_default_value=False,
            default_value=[],
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
        _descriptor.FieldDescriptor(
            name="deferred",
            full_name="google.datastore.v1.LookupResponse.deferred",
            index=2,
            number=3,
            type=11,
            cpp_type=10,
            label=3,
            has_default_value=False,
            default_value=[],
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=396,
    serialized_end=558,
)


_RUNQUERYREQUEST = _descriptor.Descriptor(
    name="RunQueryRequest",
    full_name="google.datastore.v1.RunQueryRequest",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    create_key=_descriptor._internal_create_key,
    fields=[
        _descriptor.FieldDescriptor(
            name="project_id",
            full_name="google.datastore.v1.RunQueryRequest.project_id",
            index=0,
            number=8,
            type=9,
            cpp_type=9,
            label=1,
            has_default_value=False,
            default_value=b"".decode("utf-8"),
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=b"\340A\002",
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
        _descriptor.FieldDescriptor(
            name="partition_id",
            full_name="google.datastore.v1.RunQueryRequest.partition_id",
            index=1,
            number=2,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
        _descriptor.FieldDescriptor(
            name="read_options",
            full_name="google.datastore.v1.RunQueryRequest.read_options",
            index=2,
            number=1,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
        _descriptor.FieldDescriptor(
            name="query",
            full_name="google.datastore.v1.RunQueryRequest.query",
            index=3,
            number=3,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
        _descriptor.FieldDescriptor(
            name="gql_query",
            full_name="google.datastore.v1.RunQueryRequest.gql_query",
            index=4,
            number=7,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[
        _descriptor.OneofDescriptor(
            name="query_type",
            full_name="google.datastore.v1.RunQueryRequest.query_type",
            index=0,
            containing_type=None,
            create_key=_descriptor._internal_create_key,
            fields=[],
        ),
    ],
    serialized_start=561,
    serialized_end=826,
)


_RUNQUERYRESPONSE = _descriptor.Descriptor(
    name="RunQueryResponse",
    full_name="google.datastore.v1.RunQueryResponse",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    create_key=_descriptor._internal_create_key,
    fields=[
        _descriptor.FieldDescriptor(
            name="batch",
            full_name="google.datastore.v1.RunQueryResponse.batch",
            index=0,
            number=1,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
        _descriptor.FieldDescriptor(
            name="query",
            full_name="google.datastore.v1.RunQueryResponse.query",
            index=1,
            number=2,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=828,
    serialized_end=943,
)


_BEGINTRANSACTIONREQUEST = _descriptor.Descriptor(
    name="BeginTransactionRequest",
    full_name="google.datastore.v1.BeginTransactionRequest",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    create_key=_descriptor._internal_create_key,
    fields=[
        _descriptor.FieldDescriptor(
            name="project_id",
            full_name="google.datastore.v1.BeginTransactionRequest.project_id",
            index=0,
            number=8,
            type=9,
            cpp_type=9,
            label=1,
            has_default_value=False,
            default_value=b"".decode("utf-8"),
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=b"\340A\002",
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
        _descriptor.FieldDescriptor(
            name="transaction_options",
            full_name="google.datastore.v1.BeginTransactionRequest.transaction_options",
            index=1,
            number=10,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=945,
    serialized_end=1065,
)


_BEGINTRANSACTIONRESPONSE = _descriptor.Descriptor(
    name="BeginTransactionResponse",
    full_name="google.datastore.v1.BeginTransactionResponse",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    create_key=_descriptor._internal_create_key,
    fields=[
        _descriptor.FieldDescriptor(
            name="transaction",
            full_name="google.datastore.v1.BeginTransactionResponse.transaction",
            index=0,
            number=1,
            type=12,
            cpp_type=9,
            label=1,
            has_default_value=False,
            default_value=b"",
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=1067,
    serialized_end=1114,
)


_ROLLBACKREQUEST = _descriptor.Descriptor(
    name="RollbackRequest",
    full_name="google.datastore.v1.RollbackRequest",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    create_key=_descriptor._internal_create_key,
    fields=[
        _descriptor.FieldDescriptor(
            name="project_id",
            full_name="google.datastore.v1.RollbackRequest.project_id",
            index=0,
            number=8,
            type=9,
            cpp_type=9,
            label=1,
            has_default_value=False,
            default_value=b"".decode("utf-8"),
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=b"\340A\002",
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
        _descriptor.FieldDescriptor(
            name="transaction",
            full_name="google.datastore.v1.RollbackRequest.transaction",
            index=1,
            number=1,
            type=12,
            cpp_type=9,
            label=1,
            has_default_value=False,
            default_value=b"",
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=b"\340A\002",
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=1116,
    serialized_end=1184,
)


_ROLLBACKRESPONSE = _descriptor.Descriptor(
    name="RollbackResponse",
    full_name="google.datastore.v1.RollbackResponse",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    create_key=_descriptor._internal_create_key,
    fields=[],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=1186,
    serialized_end=1204,
)


_COMMITREQUEST = _descriptor.Descriptor(
    name="CommitRequest",
    full_name="google.datastore.v1.CommitRequest",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    create_key=_descriptor._internal_create_key,
    fields=[
        _descriptor.FieldDescriptor(
            name="project_id",
            full_name="google.datastore.v1.CommitRequest.project_id",
            index=0,
            number=8,
            type=9,
            cpp_type=9,
            label=1,
            has_default_value=False,
            default_value=b"".decode("utf-8"),
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=b"\340A\002",
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
        _descriptor.FieldDescriptor(
            name="mode",
            full_name="google.datastore.v1.CommitRequest.mode",
            index=1,
            number=5,
            type=14,
            cpp_type=8,
            label=1,
            has_default_value=False,
            default_value=0,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
        _descriptor.FieldDescriptor(
            name="transaction",
            full_name="google.datastore.v1.CommitRequest.transaction",
            index=2,
            number=1,
            type=12,
            cpp_type=9,
            label=1,
            has_default_value=False,
            default_value=b"",
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
        _descriptor.FieldDescriptor(
            name="mutations",
            full_name="google.datastore.v1.CommitRequest.mutations",
            index=3,
            number=6,
            type=11,
            cpp_type=10,
            label=3,
            has_default_value=False,
            default_value=[],
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[_COMMITREQUEST_MODE,],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[
        _descriptor.OneofDescriptor(
            name="transaction_selector",
            full_name="google.datastore.v1.CommitRequest.transaction_selector",
            index=0,
            containing_type=None,
            create_key=_descriptor._internal_create_key,
            fields=[],
        ),
    ],
    serialized_start=1207,
    serialized_end=1471,
)


_COMMITRESPONSE = _descriptor.Descriptor(
    name="CommitResponse",
    full_name="google.datastore.v1.CommitResponse",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    create_key=_descriptor._internal_create_key,
    fields=[
        _descriptor.FieldDescriptor(
            name="mutation_results",
            full_name="google.datastore.v1.CommitResponse.mutation_results",
            index=0,
            number=3,
            type=11,
            cpp_type=10,
            label=3,
            has_default_value=False,
            default_value=[],
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
        _descriptor.FieldDescriptor(
            name="index_updates",
            full_name="google.datastore.v1.CommitResponse.index_updates",
            index=1,
            number=4,
            type=5,
            cpp_type=1,
            label=1,
            has_default_value=False,
            default_value=0,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=1473,
    serialized_end=1575,
)


_ALLOCATEIDSREQUEST = _descriptor.Descriptor(
    name="AllocateIdsRequest",
    full_name="google.datastore.v1.AllocateIdsRequest",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    create_key=_descriptor._internal_create_key,
    fields=[
        _descriptor.FieldDescriptor(
            name="project_id",
            full_name="google.datastore.v1.AllocateIdsRequest.project_id",
            index=0,
            number=8,
            type=9,
            cpp_type=9,
            label=1,
            has_default_value=False,
            default_value=b"".decode("utf-8"),
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=b"\340A\002",
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
        _descriptor.FieldDescriptor(
            name="keys",
            full_name="google.datastore.v1.AllocateIdsRequest.keys",
            index=1,
            number=1,
            type=11,
            cpp_type=10,
            label=3,
            has_default_value=False,
            default_value=[],
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=b"\340A\002",
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=1577,
    serialized_end=1667,
)


_ALLOCATEIDSRESPONSE = _descriptor.Descriptor(
    name="AllocateIdsResponse",
    full_name="google.datastore.v1.AllocateIdsResponse",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    create_key=_descriptor._internal_create_key,
    fields=[
        _descriptor.FieldDescriptor(
            name="keys",
            full_name="google.datastore.v1.AllocateIdsResponse.keys",
            index=0,
            number=1,
            type=11,
            cpp_type=10,
            label=3,
            has_default_value=False,
            default_value=[],
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=1669,
    serialized_end=1730,
)


_RESERVEIDSREQUEST = _descriptor.Descriptor(
    name="ReserveIdsRequest",
    full_name="google.datastore.v1.ReserveIdsRequest",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    create_key=_descriptor._internal_create_key,
    fields=[
        _descriptor.FieldDescriptor(
            name="project_id",
            full_name="google.datastore.v1.ReserveIdsRequest.project_id",
            index=0,
            number=8,
            type=9,
            cpp_type=9,
            label=1,
            has_default_value=False,
            default_value=b"".decode("utf-8"),
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=b"\340A\002",
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
        _descriptor.FieldDescriptor(
            name="database_id",
            full_name="google.datastore.v1.ReserveIdsRequest.database_id",
            index=1,
            number=9,
            type=9,
            cpp_type=9,
            label=1,
            has_default_value=False,
            default_value=b"".decode("utf-8"),
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
        _descriptor.FieldDescriptor(
            name="keys",
            full_name="google.datastore.v1.ReserveIdsRequest.keys",
            index=2,
            number=1,
            type=11,
            cpp_type=10,
            label=3,
            has_default_value=False,
            default_value=[],
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=b"\340A\002",
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=1732,
    serialized_end=1842,
)


_RESERVEIDSRESPONSE = _descriptor.Descriptor(
    name="ReserveIdsResponse",
    full_name="google.datastore.v1.ReserveIdsResponse",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    create_key=_descriptor._internal_create_key,
    fields=[],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=1844,
    serialized_end=1864,
)


_MUTATION = _descriptor.Descriptor(
    name="Mutation",
    full_name="google.datastore.v1.Mutation",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    create_key=_descriptor._internal_create_key,
    fields=[
        _descriptor.FieldDescriptor(
            name="insert",
            full_name="google.datastore.v1.Mutation.insert",
            index=0,
            number=4,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
        _descriptor.FieldDescriptor(
            name="update",
            full_name="google.datastore.v1.Mutation.update",
            index=1,
            number=5,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
        _descriptor.FieldDescriptor(
            name="upsert",
            full_name="google.datastore.v1.Mutation.upsert",
            index=2,
            number=6,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
        _descriptor.FieldDescriptor(
            name="delete",
            full_name="google.datastore.v1.Mutation.delete",
            index=3,
            number=7,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
        _descriptor.FieldDescriptor(
            name="base_version",
            full_name="google.datastore.v1.Mutation.base_version",
            index=4,
            number=8,
            type=3,
            cpp_type=2,
            label=1,
            has_default_value=False,
            default_value=0,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[
        _descriptor.OneofDescriptor(
            name="operation",
            full_name="google.datastore.v1.Mutation.operation",
            index=0,
            containing_type=None,
            create_key=_descriptor._internal_create_key,
            fields=[],
        ),
        _descriptor.OneofDescriptor(
            name="conflict_detection_strategy",
            full_name="google.datastore.v1.Mutation.conflict_detection_strategy",
            index=1,
            containing_type=None,
            create_key=_descriptor._internal_create_key,
            fields=[],
        ),
    ],
    serialized_start=1867,
    serialized_end=2130,
)


_MUTATIONRESULT = _descriptor.Descriptor(
    name="MutationResult",
    full_name="google.datastore.v1.MutationResult",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    create_key=_descriptor._internal_create_key,
    fields=[
        _descriptor.FieldDescriptor(
            name="key",
            full_name="google.datastore.v1.MutationResult.key",
            index=0,
            number=3,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
        _descriptor.FieldDescriptor(
            name="version",
            full_name="google.datastore.v1.MutationResult.version",
            index=1,
            number=4,
            type=3,
            cpp_type=2,
            label=1,
            has_default_value=False,
            default_value=0,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
        _descriptor.FieldDescriptor(
            name="conflict_detected",
            full_name="google.datastore.v1.MutationResult.conflict_detected",
            index=2,
            number=5,
            type=8,
            cpp_type=7,
            label=1,
            has_default_value=False,
            default_value=False,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=2132,
    serialized_end=2231,
)


_READOPTIONS = _descriptor.Descriptor(
    name="ReadOptions",
    full_name="google.datastore.v1.ReadOptions",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    create_key=_descriptor._internal_create_key,
    fields=[
        _descriptor.FieldDescriptor(
            name="read_consistency",
            full_name="google.datastore.v1.ReadOptions.read_consistency",
            index=0,
            number=1,
            type=14,
            cpp_type=8,
            label=1,
            has_default_value=False,
            default_value=0,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
        _descriptor.FieldDescriptor(
            name="transaction",
            full_name="google.datastore.v1.ReadOptions.transaction",
            index=1,
            number=2,
            type=12,
            cpp_type=9,
            label=1,
            has_default_value=False,
            default_value=b"",
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[_READOPTIONS_READCONSISTENCY,],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[
        _descriptor.OneofDescriptor(
            name="consistency_type",
            full_name="google.datastore.v1.ReadOptions.consistency_type",
            index=0,
            containing_type=None,
            create_key=_descriptor._internal_create_key,
            fields=[],
        ),
    ],
    serialized_start=2234,
    serialized_end=2447,
)


_TRANSACTIONOPTIONS_READWRITE = _descriptor.Descriptor(
    name="ReadWrite",
    full_name="google.datastore.v1.TransactionOptions.ReadWrite",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    create_key=_descriptor._internal_create_key,
    fields=[
        _descriptor.FieldDescriptor(
            name="previous_transaction",
            full_name="google.datastore.v1.TransactionOptions.ReadWrite.previous_transaction",
            index=0,
            number=1,
            type=12,
            cpp_type=9,
            label=1,
            has_default_value=False,
            default_value=b"",
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=2616,
    serialized_end=2657,
)

_TRANSACTIONOPTIONS_READONLY = _descriptor.Descriptor(
    name="ReadOnly",
    full_name="google.datastore.v1.TransactionOptions.ReadOnly",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    create_key=_descriptor._internal_create_key,
    fields=[],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=2659,
    serialized_end=2669,
)

_TRANSACTIONOPTIONS = _descriptor.Descriptor(
    name="TransactionOptions",
    full_name="google.datastore.v1.TransactionOptions",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    create_key=_descriptor._internal_create_key,
    fields=[
        _descriptor.FieldDescriptor(
            name="read_write",
            full_name="google.datastore.v1.TransactionOptions.read_write",
            index=0,
            number=1,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
        _descriptor.FieldDescriptor(
            name="read_only",
            full_name="google.datastore.v1.TransactionOptions.read_only",
            index=1,
            number=2,
            type=11,
            cpp_type=10,
            label=1,
            has_default_value=False,
            default_value=None,
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
            create_key=_descriptor._internal_create_key,
        ),
    ],
    extensions=[],
    nested_types=[_TRANSACTIONOPTIONS_READWRITE, _TRANSACTIONOPTIONS_READONLY,],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[
        _descriptor.OneofDescriptor(
            name="mode",
            full_name="google.datastore.v1.TransactionOptions.mode",
            index=0,
            containing_type=None,
            create_key=_descriptor._internal_create_key,
            fields=[],
        ),
    ],
    serialized_start=2450,
    serialized_end=2677,
)

_LOOKUPREQUEST.fields_by_name["read_options"].message_type = _READOPTIONS
_LOOKUPREQUEST.fields_by_name[
    "keys"
].message_type = google_dot_cloud_dot_datastore__v1_dot_proto_dot_entity__pb2._KEY
_LOOKUPRESPONSE.fields_by_name[
    "found"
].message_type = (
    google_dot_cloud_dot_datastore__v1_dot_proto_dot_query__pb2._ENTITYRESULT
)
_LOOKUPRESPONSE.fields_by_name[
    "missing"
].message_type = (
    google_dot_cloud_dot_datastore__v1_dot_proto_dot_query__pb2._ENTITYRESULT
)
_LOOKUPRESPONSE.fields_by_name[
    "deferred"
].message_type = google_dot_cloud_dot_datastore__v1_dot_proto_dot_entity__pb2._KEY
_RUNQUERYREQUEST.fields_by_name[
    "partition_id"
].message_type = (
    google_dot_cloud_dot_datastore__v1_dot_proto_dot_entity__pb2._PARTITIONID
)
_RUNQUERYREQUEST.fields_by_name["read_options"].message_type = _READOPTIONS
_RUNQUERYREQUEST.fields_by_name[
    "query"
].message_type = google_dot_cloud_dot_datastore__v1_dot_proto_dot_query__pb2._QUERY
_RUNQUERYREQUEST.fields_by_name[
    "gql_query"
].message_type = google_dot_cloud_dot_datastore__v1_dot_proto_dot_query__pb2._GQLQUERY
_RUNQUERYREQUEST.oneofs_by_name["query_type"].fields.append(
    _RUNQUERYREQUEST.fields_by_name["query"]
)
_RUNQUERYREQUEST.fields_by_name[
    "query"
].containing_oneof = _RUNQUERYREQUEST.oneofs_by_name["query_type"]
_RUNQUERYREQUEST.oneofs_by_name["query_type"].fields.append(
    _RUNQUERYREQUEST.fields_by_name["gql_query"]
)
_RUNQUERYREQUEST.fields_by_name[
    "gql_query"
].containing_oneof = _RUNQUERYREQUEST.oneofs_by_name["query_type"]
_RUNQUERYRESPONSE.fields_by_name[
    "batch"
].message_type = (
    google_dot_cloud_dot_datastore__v1_dot_proto_dot_query__pb2._QUERYRESULTBATCH
)
_RUNQUERYRESPONSE.fields_by_name[
    "query"
].message_type = google_dot_cloud_dot_datastore__v1_dot_proto_dot_query__pb2._QUERY
_BEGINTRANSACTIONREQUEST.fields_by_name[
    "transaction_options"
].message_type = _TRANSACTIONOPTIONS
_COMMITREQUEST.fields_by_name["mode"].enum_type = _COMMITREQUEST_MODE
_COMMITREQUEST.fields_by_name["mutations"].message_type = _MUTATION
_COMMITREQUEST_MODE.containing_type = _COMMITREQUEST
_COMMITREQUEST.oneofs_by_name["transaction_selector"].fields.append(
    _COMMITREQUEST.fields_by_name["transaction"]
)
_COMMITREQUEST.fields_by_name[
    "transaction"
].containing_oneof = _COMMITREQUEST.oneofs_by_name["transaction_selector"]
_COMMITRESPONSE.fields_by_name["mutation_results"].message_type = _MUTATIONRESULT
_ALLOCATEIDSREQUEST.fields_by_name[
    "keys"
].message_type = google_dot_cloud_dot_datastore__v1_dot_proto_dot_entity__pb2._KEY
_ALLOCATEIDSRESPONSE.fields_by_name[
    "keys"
].message_type = google_dot_cloud_dot_datastore__v1_dot_proto_dot_entity__pb2._KEY
_RESERVEIDSREQUEST.fields_by_name[
    "keys"
].message_type = google_dot_cloud_dot_datastore__v1_dot_proto_dot_entity__pb2._KEY
_MUTATION.fields_by_name[
    "insert"
].message_type = google_dot_cloud_dot_datastore__v1_dot_proto_dot_entity__pb2._ENTITY
_MUTATION.fields_by_name[
    "update"
].message_type = google_dot_cloud_dot_datastore__v1_dot_proto_dot_entity__pb2._ENTITY
_MUTATION.fields_by_name[
    "upsert"
].message_type = google_dot_cloud_dot_datastore__v1_dot_proto_dot_entity__pb2._ENTITY
_MUTATION.fields_by_name[
    "delete"
].message_type = google_dot_cloud_dot_datastore__v1_dot_proto_dot_entity__pb2._KEY
_MUTATION.oneofs_by_name["operation"].fields.append(_MUTATION.fields_by_name["insert"])
_MUTATION.fields_by_name["insert"].containing_oneof = _MUTATION.oneofs_by_name[
    "operation"
]
_MUTATION.oneofs_by_name["operation"].fields.append(_MUTATION.fields_by_name["update"])
_MUTATION.fields_by_name["update"].containing_oneof = _MUTATION.oneofs_by_name[
    "operation"
]
_MUTATION.oneofs_by_name["operation"].fields.append(_MUTATION.fields_by_name["upsert"])
_MUTATION.fields_by_name["upsert"].containing_oneof = _MUTATION.oneofs_by_name[
    "operation"
]
_MUTATION.oneofs_by_name["operation"].fields.append(_MUTATION.fields_by_name["delete"])
_MUTATION.fields_by_name["delete"].containing_oneof = _MUTATION.oneofs_by_name[
    "operation"
]
_MUTATION.oneofs_by_name["conflict_detection_strategy"].fields.append(
    _MUTATION.fields_by_name["base_version"]
)
_MUTATION.fields_by_name["base_version"].containing_oneof = _MUTATION.oneofs_by_name[
    "conflict_detection_strategy"
]
_MUTATIONRESULT.fields_by_name[
    "key"
].message_type = google_dot_cloud_dot_datastore__v1_dot_proto_dot_entity__pb2._KEY
_READOPTIONS.fields_by_name["read_consistency"].enum_type = _READOPTIONS_READCONSISTENCY
_READOPTIONS_READCONSISTENCY.containing_type = _READOPTIONS
_READOPTIONS.oneofs_by_name["consistency_type"].fields.append(
    _READOPTIONS.fields_by_name["read_consistency"]
)
_READOPTIONS.fields_by_name[
    "read_consistency"
].containing_oneof = _READOPTIONS.oneofs_by_name["consistency_type"]
_READOPTIONS.oneofs_by_name["consistency_type"].fields.append(
    _READOPTIONS.fields_by_name["transaction"]
)
_READOPTIONS.fields_by_name[
    "transaction"
].containing_oneof = _READOPTIONS.oneofs_by_name["consistency_type"]
_TRANSACTIONOPTIONS_READWRITE.containing_type = _TRANSACTIONOPTIONS
_TRANSACTIONOPTIONS_READONLY.containing_type = _TRANSACTIONOPTIONS
_TRANSACTIONOPTIONS.fields_by_name[
    "read_write"
].message_type = _TRANSACTIONOPTIONS_READWRITE
_TRANSACTIONOPTIONS.fields_by_name[
    "read_only"
].message_type = _TRANSACTIONOPTIONS_READONLY
_TRANSACTIONOPTIONS.oneofs_by_name["mode"].fields.append(
    _TRANSACTIONOPTIONS.fields_by_name["read_write"]
)
_TRANSACTIONOPTIONS.fields_by_name[
    "read_write"
].containing_oneof = _TRANSACTIONOPTIONS.oneofs_by_name["mode"]
_TRANSACTIONOPTIONS.oneofs_by_name["mode"].fields.append(
    _TRANSACTIONOPTIONS.fields_by_name["read_only"]
)
_TRANSACTIONOPTIONS.fields_by_name[
    "read_only"
].containing_oneof = _TRANSACTIONOPTIONS.oneofs_by_name["mode"]
DESCRIPTOR.message_types_by_name["LookupRequest"] = _LOOKUPREQUEST
DESCRIPTOR.message_types_by_name["LookupResponse"] = _LOOKUPRESPONSE
DESCRIPTOR.message_types_by_name["RunQueryRequest"] = _RUNQUERYREQUEST
DESCRIPTOR.message_types_by_name["RunQueryResponse"] = _RUNQUERYRESPONSE
DESCRIPTOR.message_types_by_name["BeginTransactionRequest"] = _BEGINTRANSACTIONREQUEST
DESCRIPTOR.message_types_by_name["BeginTransactionResponse"] = _BEGINTRANSACTIONRESPONSE
DESCRIPTOR.message_types_by_name["RollbackRequest"] = _ROLLBACKREQUEST
DESCRIPTOR.message_types_by_name["RollbackResponse"] = _ROLLBACKRESPONSE
DESCRIPTOR.message_types_by_name["CommitRequest"] = _COMMITREQUEST
DESCRIPTOR.message_types_by_name["CommitResponse"] = _COMMITRESPONSE
DESCRIPTOR.message_types_by_name["AllocateIdsRequest"] = _ALLOCATEIDSREQUEST
DESCRIPTOR.message_types_by_name["AllocateIdsResponse"] = _ALLOCATEIDSRESPONSE
DESCRIPTOR.message_types_by_name["ReserveIdsRequest"] = _RESERVEIDSREQUEST
DESCRIPTOR.message_types_by_name["ReserveIdsResponse"] = _RESERVEIDSRESPONSE
DESCRIPTOR.message_types_by_name["Mutation"] = _MUTATION
DESCRIPTOR.message_types_by_name["MutationResult"] = _MUTATIONRESULT
DESCRIPTOR.message_types_by_name["ReadOptions"] = _READOPTIONS
DESCRIPTOR.message_types_by_name["TransactionOptions"] = _TRANSACTIONOPTIONS
_sym_db.RegisterFileDescriptor(DESCRIPTOR)

LookupRequest = _reflection.GeneratedProtocolMessageType(
    "LookupRequest",
    (_message.Message,),
    {
        "DESCRIPTOR": _LOOKUPREQUEST,
        "__module__": "google.cloud.datastore_v1.proto.datastore_pb2",
        "__doc__": """The request for
  [Datastore.Lookup][google.datastore.v1.Datastore.Lookup].
  
  Attributes:
      project_id:
          Required. The ID of the project against which to make the
          request.
      read_options:
          The options for this lookup request.
      keys:
          Required. Keys of entities to look up.
  """,
        # @@protoc_insertion_point(class_scope:google.datastore.v1.LookupRequest)
    },
)
_sym_db.RegisterMessage(LookupRequest)

LookupResponse = _reflection.GeneratedProtocolMessageType(
    "LookupResponse",
    (_message.Message,),
    {
        "DESCRIPTOR": _LOOKUPRESPONSE,
        "__module__": "google.cloud.datastore_v1.proto.datastore_pb2",
        "__doc__": """The response for
  [Datastore.Lookup][google.datastore.v1.Datastore.Lookup].
  
  Attributes:
      found:
          Entities found as ``ResultType.FULL`` entities. The order of
          results in this field is undefined and has no relation to the
          order of the keys in the input.
      missing:
          Entities not found as ``ResultType.KEY_ONLY`` entities. The
          order of results in this field is undefined and has no
          relation to the order of the keys in the input.
      deferred:
          A list of keys that were not looked up due to resource
          constraints. The order of results in this field is undefined
          and has no relation to the order of the keys in the input.
  """,
        # @@protoc_insertion_point(class_scope:google.datastore.v1.LookupResponse)
    },
)
_sym_db.RegisterMessage(LookupResponse)

RunQueryRequest = _reflection.GeneratedProtocolMessageType(
    "RunQueryRequest",
    (_message.Message,),
    {
        "DESCRIPTOR": _RUNQUERYREQUEST,
        "__module__": "google.cloud.datastore_v1.proto.datastore_pb2",
        "__doc__": """The request for
  [Datastore.RunQuery][google.datastore.v1.Datastore.RunQuery].
  
  Attributes:
      project_id:
          Required. The ID of the project against which to make the
          request.
      partition_id:
          Entities are partitioned into subsets, identified by a
          partition ID. Queries are scoped to a single partition. This
          partition ID is normalized with the standard default context
          partition ID.
      read_options:
          The options for this query.
      query_type:
          The type of query.
      query:
          The query to run.
      gql_query:
          The GQL query to run.
  """,
        # @@protoc_insertion_point(class_scope:google.datastore.v1.RunQueryRequest)
    },
)
_sym_db.RegisterMessage(RunQueryRequest)

RunQueryResponse = _reflection.GeneratedProtocolMessageType(
    "RunQueryResponse",
    (_message.Message,),
    {
        "DESCRIPTOR": _RUNQUERYRESPONSE,
        "__module__": "google.cloud.datastore_v1.proto.datastore_pb2",
        "__doc__": """The response for
  [Datastore.RunQuery][google.datastore.v1.Datastore.RunQuery].
  
  Attributes:
      batch:
          A batch of query results (always present).
      query:
          The parsed form of the ``GqlQuery`` from the request, if it
          was set.
  """,
        # @@protoc_insertion_point(class_scope:google.datastore.v1.RunQueryResponse)
    },
)
_sym_db.RegisterMessage(RunQueryResponse)

BeginTransactionRequest = _reflection.GeneratedProtocolMessageType(
    "BeginTransactionRequest",
    (_message.Message,),
    {
        "DESCRIPTOR": _BEGINTRANSACTIONREQUEST,
        "__module__": "google.cloud.datastore_v1.proto.datastore_pb2",
        "__doc__": """The request for [Datastore.BeginTransaction][google.datastore.v1.Datas
  tore.BeginTransaction].
  
  Attributes:
      project_id:
          Required. The ID of the project against which to make the
          request.
      transaction_options:
          Options for a new transaction.
  """,
        # @@protoc_insertion_point(class_scope:google.datastore.v1.BeginTransactionRequest)
    },
)
_sym_db.RegisterMessage(BeginTransactionRequest)

BeginTransactionResponse = _reflection.GeneratedProtocolMessageType(
    "BeginTransactionResponse",
    (_message.Message,),
    {
        "DESCRIPTOR": _BEGINTRANSACTIONRESPONSE,
        "__module__": "google.cloud.datastore_v1.proto.datastore_pb2",
        "__doc__": """The response for [Datastore.BeginTransaction][google.datastore.v1.Data
  store.BeginTransaction].
  
  Attributes:
      transaction:
          The transaction identifier (always present).
  """,
        # @@protoc_insertion_point(class_scope:google.datastore.v1.BeginTransactionResponse)
    },
)
_sym_db.RegisterMessage(BeginTransactionResponse)

RollbackRequest = _reflection.GeneratedProtocolMessageType(
    "RollbackRequest",
    (_message.Message,),
    {
        "DESCRIPTOR": _ROLLBACKREQUEST,
        "__module__": "google.cloud.datastore_v1.proto.datastore_pb2",
        "__doc__": """The request for
  [Datastore.Rollback][google.datastore.v1.Datastore.Rollback].
  
  Attributes:
      project_id:
          Required. The ID of the project against which to make the
          request.
      transaction:
          Required. The transaction identifier, returned by a call to [D
          atastore.BeginTransaction][google.datastore.v1.Datastore.Begin
          Transaction].
  """,
        # @@protoc_insertion_point(class_scope:google.datastore.v1.RollbackRequest)
    },
)
_sym_db.RegisterMessage(RollbackRequest)

RollbackResponse = _reflection.GeneratedProtocolMessageType(
    "RollbackResponse",
    (_message.Message,),
    {
        "DESCRIPTOR": _ROLLBACKRESPONSE,
        "__module__": "google.cloud.datastore_v1.proto.datastore_pb2",
        "__doc__": """The response for
  [Datastore.Rollback][google.datastore.v1.Datastore.Rollback]. (an
  empty message).""",
        # @@protoc_insertion_point(class_scope:google.datastore.v1.RollbackResponse)
    },
)
_sym_db.RegisterMessage(RollbackResponse)

CommitRequest = _reflection.GeneratedProtocolMessageType(
    "CommitRequest",
    (_message.Message,),
    {
        "DESCRIPTOR": _COMMITREQUEST,
        "__module__": "google.cloud.datastore_v1.proto.datastore_pb2",
        "__doc__": """The request for
  [Datastore.Commit][google.datastore.v1.Datastore.Commit].
  
  Attributes:
      project_id:
          Required. The ID of the project against which to make the
          request.
      mode:
          The type of commit to perform. Defaults to ``TRANSACTIONAL``.
      transaction_selector:
          Must be set when mode is ``TRANSACTIONAL``.
      transaction:
          The identifier of the transaction associated with the commit.
          A transaction identifier is returned by a call to [Datastore.B
          eginTransaction][google.datastore.v1.Datastore.BeginTransactio
          n].
      mutations:
          The mutations to perform.  When mode is ``TRANSACTIONAL``,
          mutations affecting a single entity are applied in order. The
          following sequences of mutations affecting a single entity are
          not permitted in a single ``Commit`` request:  -  ``insert``
          followed by ``insert`` -  ``update`` followed by ``insert`` -
          ``upsert`` followed by ``insert`` -  ``delete`` followed by
          ``update``  When mode is ``NON_TRANSACTIONAL``, no two
          mutations may affect a single entity.
  """,
        # @@protoc_insertion_point(class_scope:google.datastore.v1.CommitRequest)
    },
)
_sym_db.RegisterMessage(CommitRequest)

CommitResponse = _reflection.GeneratedProtocolMessageType(
    "CommitResponse",
    (_message.Message,),
    {
        "DESCRIPTOR": _COMMITRESPONSE,
        "__module__": "google.cloud.datastore_v1.proto.datastore_pb2",
        "__doc__": """The response for
  [Datastore.Commit][google.datastore.v1.Datastore.Commit].
  
  Attributes:
      mutation_results:
          The result of performing the mutations. The i-th mutation
          result corresponds to the i-th mutation in the request.
      index_updates:
          The number of index entries updated during the commit, or zero
          if none were updated.
  """,
        # @@protoc_insertion_point(class_scope:google.datastore.v1.CommitResponse)
    },
)
_sym_db.RegisterMessage(CommitResponse)

AllocateIdsRequest = _reflection.GeneratedProtocolMessageType(
    "AllocateIdsRequest",
    (_message.Message,),
    {
        "DESCRIPTOR": _ALLOCATEIDSREQUEST,
        "__module__": "google.cloud.datastore_v1.proto.datastore_pb2",
        "__doc__": """The request for
  [Datastore.AllocateIds][google.datastore.v1.Datastore.AllocateIds].
  
  Attributes:
      project_id:
          Required. The ID of the project against which to make the
          request.
      keys:
          Required. A list of keys with incomplete key paths for which
          to allocate IDs. No key may be reserved/read-only.
  """,
        # @@protoc_insertion_point(class_scope:google.datastore.v1.AllocateIdsRequest)
    },
)
_sym_db.RegisterMessage(AllocateIdsRequest)

AllocateIdsResponse = _reflection.GeneratedProtocolMessageType(
    "AllocateIdsResponse",
    (_message.Message,),
    {
        "DESCRIPTOR": _ALLOCATEIDSRESPONSE,
        "__module__": "google.cloud.datastore_v1.proto.datastore_pb2",
        "__doc__": """The response for
  [Datastore.AllocateIds][google.datastore.v1.Datastore.AllocateIds].
  
  Attributes:
      keys:
          The keys specified in the request (in the same order), each
          with its key path completed with a newly allocated ID.
  """,
        # @@protoc_insertion_point(class_scope:google.datastore.v1.AllocateIdsResponse)
    },
)
_sym_db.RegisterMessage(AllocateIdsResponse)

ReserveIdsRequest = _reflection.GeneratedProtocolMessageType(
    "ReserveIdsRequest",
    (_message.Message,),
    {
        "DESCRIPTOR": _RESERVEIDSREQUEST,
        "__module__": "google.cloud.datastore_v1.proto.datastore_pb2",
        "__doc__": """The request for
  [Datastore.ReserveIds][google.datastore.v1.Datastore.ReserveIds].
  
  Attributes:
      project_id:
          Required. The ID of the project against which to make the
          request.
      database_id:
          If not empty, the ID of the database against which to make the
          request.
      keys:
          Required. A list of keys with complete key paths whose numeric
          IDs should not be auto-allocated.
  """,
        # @@protoc_insertion_point(class_scope:google.datastore.v1.ReserveIdsRequest)
    },
)
_sym_db.RegisterMessage(ReserveIdsRequest)

ReserveIdsResponse = _reflection.GeneratedProtocolMessageType(
    "ReserveIdsResponse",
    (_message.Message,),
    {
        "DESCRIPTOR": _RESERVEIDSRESPONSE,
        "__module__": "google.cloud.datastore_v1.proto.datastore_pb2",
        "__doc__": """The response for
  [Datastore.ReserveIds][google.datastore.v1.Datastore.ReserveIds].""",
        # @@protoc_insertion_point(class_scope:google.datastore.v1.ReserveIdsResponse)
    },
)
_sym_db.RegisterMessage(ReserveIdsResponse)

Mutation = _reflection.GeneratedProtocolMessageType(
    "Mutation",
    (_message.Message,),
    {
        "DESCRIPTOR": _MUTATION,
        "__module__": "google.cloud.datastore_v1.proto.datastore_pb2",
        "__doc__": """A mutation to apply to an entity.
  
  Attributes:
      operation:
          The mutation operation.  For ``insert``, ``update``, and
          ``upsert``: - The entity’s key must not be reserved/read-only.
          - No property in the entity may have a reserved name, not even
          a property in an entity in a value. - No value in the entity
          may have meaning 18, not even a value in an entity in another
          value.
      insert:
          The entity to insert. The entity must not already exist. The
          entity key’s final path element may be incomplete.
      update:
          The entity to update. The entity must already exist. Must have
          a complete key path.
      upsert:
          The entity to upsert. The entity may or may not already exist.
          The entity key’s final path element may be incomplete.
      delete:
          The key of the entity to delete. The entity may or may not
          already exist. Must have a complete key path and must not be
          reserved/read-only.
      conflict_detection_strategy:
          When set, the server will detect whether or not this mutation
          conflicts with the current version of the entity on the
          server. Conflicting mutations are not applied, and are marked
          as such in MutationResult.
      base_version:
          The version of the entity that this mutation is being applied
          to. If this does not match the current version on the server,
          the mutation conflicts.
  """,
        # @@protoc_insertion_point(class_scope:google.datastore.v1.Mutation)
    },
)
_sym_db.RegisterMessage(Mutation)

MutationResult = _reflection.GeneratedProtocolMessageType(
    "MutationResult",
    (_message.Message,),
    {
        "DESCRIPTOR": _MUTATIONRESULT,
        "__module__": "google.cloud.datastore_v1.proto.datastore_pb2",
        "__doc__": """The result of applying a mutation.
  
  Attributes:
      key:
          The automatically allocated key. Set only when the mutation
          allocated a key.
      version:
          The version of the entity on the server after processing the
          mutation. If the mutation doesn’t change anything on the
          server, then the version will be the version of the current
          entity or, if no entity is present, a version that is strictly
          greater than the version of any previous entity and less than
          the version of any possible future entity.
      conflict_detected:
          Whether a conflict was detected for this mutation. Always
          false when a conflict detection strategy field is not set in
          the mutation.
  """,
        # @@protoc_insertion_point(class_scope:google.datastore.v1.MutationResult)
    },
)
_sym_db.RegisterMessage(MutationResult)

ReadOptions = _reflection.GeneratedProtocolMessageType(
    "ReadOptions",
    (_message.Message,),
    {
        "DESCRIPTOR": _READOPTIONS,
        "__module__": "google.cloud.datastore_v1.proto.datastore_pb2",
        "__doc__": """The options shared by read requests.
  
  Attributes:
      consistency_type:
          If not specified, lookups and ancestor queries default to
          ``read_consistency``\ =\ ``STRONG``, global queries default to
          ``read_consistency``\ =\ ``EVENTUAL``.
      read_consistency:
          The non-transactional read consistency to use. Cannot be set
          to ``STRONG`` for global queries.
      transaction:
          The identifier of the transaction in which to read. A
          transaction identifier is returned by a call to [Datastore.Beg
          inTransaction][google.datastore.v1.Datastore.BeginTransaction]
          .
  """,
        # @@protoc_insertion_point(class_scope:google.datastore.v1.ReadOptions)
    },
)
_sym_db.RegisterMessage(ReadOptions)

TransactionOptions = _reflection.GeneratedProtocolMessageType(
    "TransactionOptions",
    (_message.Message,),
    {
        "ReadWrite": _reflection.GeneratedProtocolMessageType(
            "ReadWrite",
            (_message.Message,),
            {
                "DESCRIPTOR": _TRANSACTIONOPTIONS_READWRITE,
                "__module__": "google.cloud.datastore_v1.proto.datastore_pb2",
                "__doc__": """Options specific to read / write transactions.
    
    Attributes:
        previous_transaction:
            The transaction identifier of the transaction being retried.
    """,
                # @@protoc_insertion_point(class_scope:google.datastore.v1.TransactionOptions.ReadWrite)
            },
        ),
        "ReadOnly": _reflection.GeneratedProtocolMessageType(
            "ReadOnly",
            (_message.Message,),
            {
                "DESCRIPTOR": _TRANSACTIONOPTIONS_READONLY,
                "__module__": "google.cloud.datastore_v1.proto.datastore_pb2",
                "__doc__": """Options specific to read-only transactions.""",
                # @@protoc_insertion_point(class_scope:google.datastore.v1.TransactionOptions.ReadOnly)
            },
        ),
        "DESCRIPTOR": _TRANSACTIONOPTIONS,
        "__module__": "google.cloud.datastore_v1.proto.datastore_pb2",
        "__doc__": """Options for beginning a new transaction.  Transactions can be created
  explicitly with calls to [Datastore.BeginTransaction][google.datastore
  .v1.Datastore.BeginTransaction] or implicitly by setting [ReadOptions.
  new_transaction][google.datastore.v1.ReadOptions.new_transaction] in
  read requests.
  
  Attributes:
      mode:
          The ``mode`` of the transaction, indicating whether write
          operations are supported.
      read_write:
          The transaction should allow both reads and writes.
      read_only:
          The transaction should only allow reads.
  """,
        # @@protoc_insertion_point(class_scope:google.datastore.v1.TransactionOptions)
    },
)
_sym_db.RegisterMessage(TransactionOptions)
_sym_db.RegisterMessage(TransactionOptions.ReadWrite)
_sym_db.RegisterMessage(TransactionOptions.ReadOnly)


DESCRIPTOR._options = None
_LOOKUPREQUEST.fields_by_name["project_id"]._options = None
_LOOKUPREQUEST.fields_by_name["keys"]._options = None
_RUNQUERYREQUEST.fields_by_name["project_id"]._options = None
_BEGINTRANSACTIONREQUEST.fields_by_name["project_id"]._options = None
_ROLLBACKREQUEST.fields_by_name["project_id"]._options = None
_ROLLBACKREQUEST.fields_by_name["transaction"]._options = None
_COMMITREQUEST.fields_by_name["project_id"]._options = None
_ALLOCATEIDSREQUEST.fields_by_name["project_id"]._options = None
_ALLOCATEIDSREQUEST.fields_by_name["keys"]._options = None
_RESERVEIDSREQUEST.fields_by_name["project_id"]._options = None
_RESERVEIDSREQUEST.fields_by_name["keys"]._options = None

_DATASTORE = _descriptor.ServiceDescriptor(
    name="Datastore",
    full_name="google.datastore.v1.Datastore",
    file=DESCRIPTOR,
    index=0,
    serialized_options=b"\312A\030datastore.googleapis.com\322AXhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/datastore",
    create_key=_descriptor._internal_create_key,
    serialized_start=2680,
    serialized_end=3979,
    methods=[
        _descriptor.MethodDescriptor(
            name="Lookup",
            full_name="google.datastore.v1.Datastore.Lookup",
            index=0,
            containing_service=None,
            input_type=_LOOKUPREQUEST,
            output_type=_LOOKUPRESPONSE,
            serialized_options=b'\202\323\344\223\002%" /v1/projects/{project_id}:lookup:\001*\332A\034project_id,read_options,keys',
            create_key=_descriptor._internal_create_key,
        ),
        _descriptor.MethodDescriptor(
            name="RunQuery",
            full_name="google.datastore.v1.Datastore.RunQuery",
            index=1,
            containing_service=None,
            input_type=_RUNQUERYREQUEST,
            output_type=_RUNQUERYRESPONSE,
            serialized_options=b'\202\323\344\223\002\'""/v1/projects/{project_id}:runQuery:\001*',
            create_key=_descriptor._internal_create_key,
        ),
        _descriptor.MethodDescriptor(
            name="BeginTransaction",
            full_name="google.datastore.v1.Datastore.BeginTransaction",
            index=2,
            containing_service=None,
            input_type=_BEGINTRANSACTIONREQUEST,
            output_type=_BEGINTRANSACTIONRESPONSE,
            serialized_options=b'\202\323\344\223\002/"*/v1/projects/{project_id}:beginTransaction:\001*\332A\nproject_id',
            create_key=_descriptor._internal_create_key,
        ),
        _descriptor.MethodDescriptor(
            name="Commit",
            full_name="google.datastore.v1.Datastore.Commit",
            index=3,
            containing_service=None,
            input_type=_COMMITREQUEST,
            output_type=_COMMITRESPONSE,
            serialized_options=b'\202\323\344\223\002%" /v1/projects/{project_id}:commit:\001*\332A%project_id,mode,transaction,mutations\332A\031project_id,mode,mutations',
            create_key=_descriptor._internal_create_key,
        ),
        _descriptor.MethodDescriptor(
            name="Rollback",
            full_name="google.datastore.v1.Datastore.Rollback",
            index=4,
            containing_service=None,
            input_type=_ROLLBACKREQUEST,
            output_type=_ROLLBACKRESPONSE,
            serialized_options=b'\202\323\344\223\002\'""/v1/projects/{project_id}:rollback:\001*\332A\026project_id,transaction',
            create_key=_descriptor._internal_create_key,
        ),
        _descriptor.MethodDescriptor(
            name="AllocateIds",
            full_name="google.datastore.v1.Datastore.AllocateIds",
            index=5,
            containing_service=None,
            input_type=_ALLOCATEIDSREQUEST,
            output_type=_ALLOCATEIDSRESPONSE,
            serialized_options=b'\202\323\344\223\002*"%/v1/projects/{project_id}:allocateIds:\001*\332A\017project_id,keys',
            create_key=_descriptor._internal_create_key,
        ),
        _descriptor.MethodDescriptor(
            name="ReserveIds",
            full_name="google.datastore.v1.Datastore.ReserveIds",
            index=6,
            containing_service=None,
            input_type=_RESERVEIDSREQUEST,
            output_type=_RESERVEIDSRESPONSE,
            serialized_options=b'\202\323\344\223\002)"$/v1/projects/{project_id}:reserveIds:\001*\332A\017project_id,keys',
            create_key=_descriptor._internal_create_key,
        ),
    ],
)
_sym_db.RegisterServiceDescriptor(_DATASTORE)

DESCRIPTOR.services_by_name["Datastore"] = _DATASTORE

# @@protoc_insertion_point(module_scope)
