# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/datastore/_app_engine_key.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
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()


DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
    b'\n,google/cloud/datastore/_app_engine_key.proto"V\n\tReference\x12\x0b\n\x03\x61pp\x18\r \x02(\t\x12\x12\n\nname_space\x18\x14 \x01(\t\x12\x13\n\x04path\x18\x0e \x02(\x0b\x32\x05.Path\x12\x13\n\x0b\x64\x61tabase_id\x18\x17 \x01(\t"Y\n\x04Path\x12\x1e\n\x07\x65lement\x18\x01 \x03(\n2\r.Path.Element\x1a\x31\n\x07\x45lement\x12\x0c\n\x04type\x18\x02 \x02(\t\x12\n\n\x02id\x18\x03 \x01(\x03\x12\x0c\n\x04name\x18\x04 \x01(\t'
)


_REFERENCE = DESCRIPTOR.message_types_by_name["Reference"]
_PATH = DESCRIPTOR.message_types_by_name["Path"]
_PATH_ELEMENT = _PATH.nested_types_by_name["Element"]
Reference = _reflection.GeneratedProtocolMessageType(
    "Reference",
    (_message.Message,),
    {
        "DESCRIPTOR": _REFERENCE,
        "__module__": "google.cloud.datastore._app_engine_key_pb2"
        # @@protoc_insertion_point(class_scope:Reference)
    },
)
_sym_db.RegisterMessage(Reference)

Path = _reflection.GeneratedProtocolMessageType(
    "Path",
    (_message.Message,),
    {
        "Element": _reflection.GeneratedProtocolMessageType(
            "Element",
            (_message.Message,),
            {
                "DESCRIPTOR": _PATH_ELEMENT,
                "__module__": "google.cloud.datastore._app_engine_key_pb2"
                # @@protoc_insertion_point(class_scope:Path.Element)
            },
        ),
        "DESCRIPTOR": _PATH,
        "__module__": "google.cloud.datastore._app_engine_key_pb2"
        # @@protoc_insertion_point(class_scope:Path)
    },
)
_sym_db.RegisterMessage(Path)
_sym_db.RegisterMessage(Path.Element)

if _descriptor._USE_C_DESCRIPTORS == False:  # pragma: NO COVER

    DESCRIPTOR._options = None
    _REFERENCE._serialized_start = 48
    _REFERENCE._serialized_end = 134
    _PATH._serialized_start = 136
    _PATH._serialized_end = 225
    _PATH_ELEMENT._serialized_start = 176
    _PATH_ELEMENT._serialized_end = 225
# @@protoc_insertion_point(module_scope)
