/google/protobuf/internal/test_bad_identifiers_pb2.py

https://gitlab.com/ChuyuHsu/slackbot · Python · 161 lines · 133 code · 22 blank · 6 comment · 2 complexity · 95bf255397762cf231772698d147126a MD5 · raw file

  1. # Generated by the protocol buffer compiler. DO NOT EDIT!
  2. # source: google/protobuf/internal/test_bad_identifiers.proto
  3. import sys
  4. _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
  5. from google.protobuf import descriptor as _descriptor
  6. from google.protobuf import message as _message
  7. from google.protobuf import reflection as _reflection
  8. from google.protobuf import symbol_database as _symbol_database
  9. from google.protobuf import service as _service
  10. from google.protobuf import service_reflection
  11. from google.protobuf import descriptor_pb2
  12. # @@protoc_insertion_point(imports)
  13. _sym_db = _symbol_database.Default()
  14. DESCRIPTOR = _descriptor.FileDescriptor(
  15. name='google/protobuf/internal/test_bad_identifiers.proto',
  16. package='protobuf_unittest',
  17. syntax='proto2',
  18. serialized_pb=_b('\n3google/protobuf/internal/test_bad_identifiers.proto\x12\x11protobuf_unittest\"\x1e\n\x12TestBadIdentifiers*\x08\x08\x64\x10\x80\x80\x80\x80\x02\"\x10\n\x0e\x41notherMessage2\x10\n\x0e\x41notherService:;\n\x07message\x12%.protobuf_unittest.TestBadIdentifiers\x18\x64 \x01(\t:\x03\x66oo:>\n\ndescriptor\x12%.protobuf_unittest.TestBadIdentifiers\x18\x65 \x01(\t:\x03\x62\x61r:>\n\nreflection\x12%.protobuf_unittest.TestBadIdentifiers\x18\x66 \x01(\t:\x03\x62\x61z:;\n\x07service\x12%.protobuf_unittest.TestBadIdentifiers\x18g \x01(\t:\x03quxB\x03\x90\x01\x01')
  19. )
  20. _sym_db.RegisterFileDescriptor(DESCRIPTOR)
  21. MESSAGE_FIELD_NUMBER = 100
  22. message = _descriptor.FieldDescriptor(
  23. name='message', full_name='protobuf_unittest.message', index=0,
  24. number=100, type=9, cpp_type=9, label=1,
  25. has_default_value=True, default_value=_b("foo").decode('utf-8'),
  26. message_type=None, enum_type=None, containing_type=None,
  27. is_extension=True, extension_scope=None,
  28. options=None)
  29. DESCRIPTOR_FIELD_NUMBER = 101
  30. descriptor = _descriptor.FieldDescriptor(
  31. name='descriptor', full_name='protobuf_unittest.descriptor', index=1,
  32. number=101, type=9, cpp_type=9, label=1,
  33. has_default_value=True, default_value=_b("bar").decode('utf-8'),
  34. message_type=None, enum_type=None, containing_type=None,
  35. is_extension=True, extension_scope=None,
  36. options=None)
  37. REFLECTION_FIELD_NUMBER = 102
  38. reflection = _descriptor.FieldDescriptor(
  39. name='reflection', full_name='protobuf_unittest.reflection', index=2,
  40. number=102, type=9, cpp_type=9, label=1,
  41. has_default_value=True, default_value=_b("baz").decode('utf-8'),
  42. message_type=None, enum_type=None, containing_type=None,
  43. is_extension=True, extension_scope=None,
  44. options=None)
  45. SERVICE_FIELD_NUMBER = 103
  46. service = _descriptor.FieldDescriptor(
  47. name='service', full_name='protobuf_unittest.service', index=3,
  48. number=103, type=9, cpp_type=9, label=1,
  49. has_default_value=True, default_value=_b("qux").decode('utf-8'),
  50. message_type=None, enum_type=None, containing_type=None,
  51. is_extension=True, extension_scope=None,
  52. options=None)
  53. _TESTBADIDENTIFIERS = _descriptor.Descriptor(
  54. name='TestBadIdentifiers',
  55. full_name='protobuf_unittest.TestBadIdentifiers',
  56. filename=None,
  57. file=DESCRIPTOR,
  58. containing_type=None,
  59. fields=[
  60. ],
  61. extensions=[
  62. ],
  63. nested_types=[],
  64. enum_types=[
  65. ],
  66. options=None,
  67. is_extendable=True,
  68. syntax='proto2',
  69. extension_ranges=[(100, 536870912), ],
  70. oneofs=[
  71. ],
  72. serialized_start=74,
  73. serialized_end=104,
  74. )
  75. _ANOTHERMESSAGE = _descriptor.Descriptor(
  76. name='AnotherMessage',
  77. full_name='protobuf_unittest.AnotherMessage',
  78. filename=None,
  79. file=DESCRIPTOR,
  80. containing_type=None,
  81. fields=[
  82. ],
  83. extensions=[
  84. ],
  85. nested_types=[],
  86. enum_types=[
  87. ],
  88. options=None,
  89. is_extendable=False,
  90. syntax='proto2',
  91. extension_ranges=[],
  92. oneofs=[
  93. ],
  94. serialized_start=106,
  95. serialized_end=122,
  96. )
  97. DESCRIPTOR.message_types_by_name['TestBadIdentifiers'] = _TESTBADIDENTIFIERS
  98. DESCRIPTOR.message_types_by_name['AnotherMessage'] = _ANOTHERMESSAGE
  99. DESCRIPTOR.extensions_by_name['message'] = message
  100. DESCRIPTOR.extensions_by_name['descriptor'] = descriptor
  101. DESCRIPTOR.extensions_by_name['reflection'] = reflection
  102. DESCRIPTOR.extensions_by_name['service'] = service
  103. TestBadIdentifiers = _reflection.GeneratedProtocolMessageType('TestBadIdentifiers', (_message.Message,), dict(
  104. DESCRIPTOR = _TESTBADIDENTIFIERS,
  105. __module__ = 'google.protobuf.internal.test_bad_identifiers_pb2'
  106. # @@protoc_insertion_point(class_scope:protobuf_unittest.TestBadIdentifiers)
  107. ))
  108. _sym_db.RegisterMessage(TestBadIdentifiers)
  109. AnotherMessage = _reflection.GeneratedProtocolMessageType('AnotherMessage', (_message.Message,), dict(
  110. DESCRIPTOR = _ANOTHERMESSAGE,
  111. __module__ = 'google.protobuf.internal.test_bad_identifiers_pb2'
  112. # @@protoc_insertion_point(class_scope:protobuf_unittest.AnotherMessage)
  113. ))
  114. _sym_db.RegisterMessage(AnotherMessage)
  115. TestBadIdentifiers.RegisterExtension(message)
  116. TestBadIdentifiers.RegisterExtension(descriptor)
  117. TestBadIdentifiers.RegisterExtension(reflection)
  118. TestBadIdentifiers.RegisterExtension(service)
  119. DESCRIPTOR.has_options = True
  120. DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\220\001\001'))
  121. _ANOTHERSERVICE = _descriptor.ServiceDescriptor(
  122. name='AnotherService',
  123. full_name='protobuf_unittest.AnotherService',
  124. file=DESCRIPTOR,
  125. index=0,
  126. options=None,
  127. serialized_start=124,
  128. serialized_end=140,
  129. methods=[
  130. ])
  131. AnotherService = service_reflection.GeneratedServiceType('AnotherService', (_service.Service,), dict(
  132. DESCRIPTOR = _ANOTHERSERVICE,
  133. __module__ = 'google.protobuf.internal.test_bad_identifiers_pb2'
  134. ))
  135. AnotherService_Stub = service_reflection.GeneratedServiceStubType('AnotherService_Stub', (AnotherService,), dict(
  136. DESCRIPTOR = _ANOTHERSERVICE,
  137. __module__ = 'google.protobuf.internal.test_bad_identifiers_pb2'
  138. ))
  139. # @@protoc_insertion_point(module_scope)