# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: tests/protobuf_tests/proto/test.proto

import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
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
from google.protobuf import descriptor_pb2
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()




DESCRIPTOR = _descriptor.FileDescriptor(
  name='tests/protobuf_tests/proto/test.proto',
  package='protobuf_tests.proto',
  syntax='proto3',
  serialized_pb=_b('\n%tests/protobuf_tests/proto/test.proto\x12\x14protobuf_tests.proto\"~\n\x0cTestMessage1\x12*\n\x04test\x18\x01 \x01(\x0b\x32\x1a.protobuf_tests.proto.TestH\x00\x12\x37\n\x0bsimple_test\x18\x02 \x01(\x0b\x32 .protobuf_tests.proto.SimpleTestH\x00\x42\t\n\x07payload\"~\n\x0cTestMessage2\x12*\n\x04test\x18\x01 \x01(\x0b\x32\x1a.protobuf_tests.proto.TestH\x00\x12\x37\n\x0bsimple_test\x18\x02 \x01(\x0b\x32 .protobuf_tests.proto.SimpleTestH\x00\x42\t\n\x07payload\"C\n\x04Test\x12,\n\x04kind\x18\x01 \x01(\x0e\x32\x1e.protobuf_tests.proto.TestKind\x12\r\n\x05\x66ield\x18\x02 \x01(\r\"\x1b\n\nSimpleTest\x12\r\n\x05\x66ield\x18\x01 \x01(\r*(\n\x08TestKind\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\x0f\n\x0b\x41LTERNATIVE\x10\x01\x62\x06proto3')
)

_TESTKIND = _descriptor.EnumDescriptor(
  name='TestKind',
  full_name='protobuf_tests.proto.TestKind',
  filename=None,
  file=DESCRIPTOR,
  values=[
    _descriptor.EnumValueDescriptor(
      name='DEFAULT', index=0, number=0,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='ALTERNATIVE', index=1, number=1,
      options=None,
      type=None),
  ],
  containing_type=None,
  options=None,
  serialized_start=417,
  serialized_end=457,
)
_sym_db.RegisterEnumDescriptor(_TESTKIND)

TestKind = enum_type_wrapper.EnumTypeWrapper(_TESTKIND)
DEFAULT = 0
ALTERNATIVE = 1



_TESTMESSAGE1 = _descriptor.Descriptor(
  name='TestMessage1',
  full_name='protobuf_tests.proto.TestMessage1',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='test', full_name='protobuf_tests.proto.TestMessage1.test', 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,
      options=None),
    _descriptor.FieldDescriptor(
      name='simple_test', full_name='protobuf_tests.proto.TestMessage1.simple_test', 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,
      options=None),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
    _descriptor.OneofDescriptor(
      name='payload', full_name='protobuf_tests.proto.TestMessage1.payload',
      index=0, containing_type=None, fields=[]),
  ],
  serialized_start=63,
  serialized_end=189,
)


_TESTMESSAGE2 = _descriptor.Descriptor(
  name='TestMessage2',
  full_name='protobuf_tests.proto.TestMessage2',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='test', full_name='protobuf_tests.proto.TestMessage2.test', 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,
      options=None),
    _descriptor.FieldDescriptor(
      name='simple_test', full_name='protobuf_tests.proto.TestMessage2.simple_test', 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,
      options=None),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
    _descriptor.OneofDescriptor(
      name='payload', full_name='protobuf_tests.proto.TestMessage2.payload',
      index=0, containing_type=None, fields=[]),
  ],
  serialized_start=191,
  serialized_end=317,
)


_TEST = _descriptor.Descriptor(
  name='Test',
  full_name='protobuf_tests.proto.Test',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='kind', full_name='protobuf_tests.proto.Test.kind', 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,
      options=None),
    _descriptor.FieldDescriptor(
      name='field', full_name='protobuf_tests.proto.Test.field', index=1,
      number=2, type=13, cpp_type=3, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=319,
  serialized_end=386,
)


_SIMPLETEST = _descriptor.Descriptor(
  name='SimpleTest',
  full_name='protobuf_tests.proto.SimpleTest',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='field', full_name='protobuf_tests.proto.SimpleTest.field', index=0,
      number=1, type=13, cpp_type=3, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=388,
  serialized_end=415,
)

_TESTMESSAGE1.fields_by_name['test'].message_type = _TEST
_TESTMESSAGE1.fields_by_name['simple_test'].message_type = _SIMPLETEST
_TESTMESSAGE1.oneofs_by_name['payload'].fields.append(
  _TESTMESSAGE1.fields_by_name['test'])
_TESTMESSAGE1.fields_by_name['test'].containing_oneof = _TESTMESSAGE1.oneofs_by_name['payload']
_TESTMESSAGE1.oneofs_by_name['payload'].fields.append(
  _TESTMESSAGE1.fields_by_name['simple_test'])
_TESTMESSAGE1.fields_by_name['simple_test'].containing_oneof = _TESTMESSAGE1.oneofs_by_name['payload']
_TESTMESSAGE2.fields_by_name['test'].message_type = _TEST
_TESTMESSAGE2.fields_by_name['simple_test'].message_type = _SIMPLETEST
_TESTMESSAGE2.oneofs_by_name['payload'].fields.append(
  _TESTMESSAGE2.fields_by_name['test'])
_TESTMESSAGE2.fields_by_name['test'].containing_oneof = _TESTMESSAGE2.oneofs_by_name['payload']
_TESTMESSAGE2.oneofs_by_name['payload'].fields.append(
  _TESTMESSAGE2.fields_by_name['simple_test'])
_TESTMESSAGE2.fields_by_name['simple_test'].containing_oneof = _TESTMESSAGE2.oneofs_by_name['payload']
_TEST.fields_by_name['kind'].enum_type = _TESTKIND
DESCRIPTOR.message_types_by_name['TestMessage1'] = _TESTMESSAGE1
DESCRIPTOR.message_types_by_name['TestMessage2'] = _TESTMESSAGE2
DESCRIPTOR.message_types_by_name['Test'] = _TEST
DESCRIPTOR.message_types_by_name['SimpleTest'] = _SIMPLETEST
DESCRIPTOR.enum_types_by_name['TestKind'] = _TESTKIND
_sym_db.RegisterFileDescriptor(DESCRIPTOR)

TestMessage1 = _reflection.GeneratedProtocolMessageType('TestMessage1', (_message.Message,), dict(
  DESCRIPTOR = _TESTMESSAGE1,
  __module__ = 'tests.protobuf_tests.proto.test_pb2'
  # @@protoc_insertion_point(class_scope:protobuf_tests.proto.TestMessage1)
  ))
_sym_db.RegisterMessage(TestMessage1)

TestMessage2 = _reflection.GeneratedProtocolMessageType('TestMessage2', (_message.Message,), dict(
  DESCRIPTOR = _TESTMESSAGE2,
  __module__ = 'tests.protobuf_tests.proto.test_pb2'
  # @@protoc_insertion_point(class_scope:protobuf_tests.proto.TestMessage2)
  ))
_sym_db.RegisterMessage(TestMessage2)

Test = _reflection.GeneratedProtocolMessageType('Test', (_message.Message,), dict(
  DESCRIPTOR = _TEST,
  __module__ = 'tests.protobuf_tests.proto.test_pb2'
  # @@protoc_insertion_point(class_scope:protobuf_tests.proto.Test)
  ))
_sym_db.RegisterMessage(Test)

SimpleTest = _reflection.GeneratedProtocolMessageType('SimpleTest', (_message.Message,), dict(
  DESCRIPTOR = _SIMPLETEST,
  __module__ = 'tests.protobuf_tests.proto.test_pb2'
  # @@protoc_insertion_point(class_scope:protobuf_tests.proto.SimpleTest)
  ))
_sym_db.RegisterMessage(SimpleTest)


# @@protoc_insertion_point(module_scope)
