plugin_pb2.py 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. # Generated by the protocol buffer compiler. DO NOT EDIT!
  2. # source: plugin.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 descriptor_pb2
  10. # @@protoc_insertion_point(imports)
  11. _sym_db = _symbol_database.Default()
  12. import google.protobuf.descriptor_pb2
  13. DESCRIPTOR = _descriptor.FileDescriptor(
  14. name='plugin.proto',
  15. package='google.protobuf.compiler',
  16. serialized_pb=_b('\n\x0cplugin.proto\x12\x18google.protobuf.compiler\x1a google/protobuf/descriptor.proto\"}\n\x14\x43odeGeneratorRequest\x12\x18\n\x10\x66ile_to_generate\x18\x01 \x03(\t\x12\x11\n\tparameter\x18\x02 \x01(\t\x12\x38\n\nproto_file\x18\x0f \x03(\x0b\x32$.google.protobuf.FileDescriptorProto\"\xaa\x01\n\x15\x43odeGeneratorResponse\x12\r\n\x05\x65rror\x18\x01 \x01(\t\x12\x42\n\x04\x66ile\x18\x0f \x03(\x0b\x32\x34.google.protobuf.compiler.CodeGeneratorResponse.File\x1a>\n\x04\x46ile\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x17\n\x0finsertion_point\x18\x02 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x0f \x01(\tB,\n\x1c\x63om.google.protobuf.compilerB\x0cPluginProtos')
  17. ,
  18. dependencies=[google.protobuf.descriptor_pb2.DESCRIPTOR,])
  19. _sym_db.RegisterFileDescriptor(DESCRIPTOR)
  20. _CODEGENERATORREQUEST = _descriptor.Descriptor(
  21. name='CodeGeneratorRequest',
  22. full_name='google.protobuf.compiler.CodeGeneratorRequest',
  23. filename=None,
  24. file=DESCRIPTOR,
  25. containing_type=None,
  26. fields=[
  27. _descriptor.FieldDescriptor(
  28. name='file_to_generate', full_name='google.protobuf.compiler.CodeGeneratorRequest.file_to_generate', index=0,
  29. number=1, type=9, cpp_type=9, label=3,
  30. has_default_value=False, default_value=[],
  31. message_type=None, enum_type=None, containing_type=None,
  32. is_extension=False, extension_scope=None,
  33. options=None),
  34. _descriptor.FieldDescriptor(
  35. name='parameter', full_name='google.protobuf.compiler.CodeGeneratorRequest.parameter', index=1,
  36. number=2, type=9, cpp_type=9, label=1,
  37. has_default_value=False, default_value=_b("").decode('utf-8'),
  38. message_type=None, enum_type=None, containing_type=None,
  39. is_extension=False, extension_scope=None,
  40. options=None),
  41. _descriptor.FieldDescriptor(
  42. name='proto_file', full_name='google.protobuf.compiler.CodeGeneratorRequest.proto_file', index=2,
  43. number=15, type=11, cpp_type=10, label=3,
  44. has_default_value=False, default_value=[],
  45. message_type=None, enum_type=None, containing_type=None,
  46. is_extension=False, extension_scope=None,
  47. options=None),
  48. ],
  49. extensions=[
  50. ],
  51. nested_types=[],
  52. enum_types=[
  53. ],
  54. options=None,
  55. is_extendable=False,
  56. extension_ranges=[],
  57. oneofs=[
  58. ],
  59. serialized_start=76,
  60. serialized_end=201,
  61. )
  62. _CODEGENERATORRESPONSE_FILE = _descriptor.Descriptor(
  63. name='File',
  64. full_name='google.protobuf.compiler.CodeGeneratorResponse.File',
  65. filename=None,
  66. file=DESCRIPTOR,
  67. containing_type=None,
  68. fields=[
  69. _descriptor.FieldDescriptor(
  70. name='name', full_name='google.protobuf.compiler.CodeGeneratorResponse.File.name', index=0,
  71. number=1, type=9, cpp_type=9, label=1,
  72. has_default_value=False, default_value=_b("").decode('utf-8'),
  73. message_type=None, enum_type=None, containing_type=None,
  74. is_extension=False, extension_scope=None,
  75. options=None),
  76. _descriptor.FieldDescriptor(
  77. name='insertion_point', full_name='google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point', index=1,
  78. number=2, type=9, cpp_type=9, label=1,
  79. has_default_value=False, default_value=_b("").decode('utf-8'),
  80. message_type=None, enum_type=None, containing_type=None,
  81. is_extension=False, extension_scope=None,
  82. options=None),
  83. _descriptor.FieldDescriptor(
  84. name='content', full_name='google.protobuf.compiler.CodeGeneratorResponse.File.content', index=2,
  85. number=15, type=9, cpp_type=9, label=1,
  86. has_default_value=False, default_value=_b("").decode('utf-8'),
  87. message_type=None, enum_type=None, containing_type=None,
  88. is_extension=False, extension_scope=None,
  89. options=None),
  90. ],
  91. extensions=[
  92. ],
  93. nested_types=[],
  94. enum_types=[
  95. ],
  96. options=None,
  97. is_extendable=False,
  98. extension_ranges=[],
  99. oneofs=[
  100. ],
  101. serialized_start=312,
  102. serialized_end=374,
  103. )
  104. _CODEGENERATORRESPONSE = _descriptor.Descriptor(
  105. name='CodeGeneratorResponse',
  106. full_name='google.protobuf.compiler.CodeGeneratorResponse',
  107. filename=None,
  108. file=DESCRIPTOR,
  109. containing_type=None,
  110. fields=[
  111. _descriptor.FieldDescriptor(
  112. name='error', full_name='google.protobuf.compiler.CodeGeneratorResponse.error', index=0,
  113. number=1, type=9, cpp_type=9, label=1,
  114. has_default_value=False, default_value=_b("").decode('utf-8'),
  115. message_type=None, enum_type=None, containing_type=None,
  116. is_extension=False, extension_scope=None,
  117. options=None),
  118. _descriptor.FieldDescriptor(
  119. name='file', full_name='google.protobuf.compiler.CodeGeneratorResponse.file', index=1,
  120. number=15, type=11, cpp_type=10, label=3,
  121. has_default_value=False, default_value=[],
  122. message_type=None, enum_type=None, containing_type=None,
  123. is_extension=False, extension_scope=None,
  124. options=None),
  125. ],
  126. extensions=[
  127. ],
  128. nested_types=[_CODEGENERATORRESPONSE_FILE, ],
  129. enum_types=[
  130. ],
  131. options=None,
  132. is_extendable=False,
  133. extension_ranges=[],
  134. oneofs=[
  135. ],
  136. serialized_start=204,
  137. serialized_end=374,
  138. )
  139. _CODEGENERATORREQUEST.fields_by_name['proto_file'].message_type = google.protobuf.descriptor_pb2._FILEDESCRIPTORPROTO
  140. _CODEGENERATORRESPONSE_FILE.containing_type = _CODEGENERATORRESPONSE
  141. _CODEGENERATORRESPONSE.fields_by_name['file'].message_type = _CODEGENERATORRESPONSE_FILE
  142. DESCRIPTOR.message_types_by_name['CodeGeneratorRequest'] = _CODEGENERATORREQUEST
  143. DESCRIPTOR.message_types_by_name['CodeGeneratorResponse'] = _CODEGENERATORRESPONSE
  144. CodeGeneratorRequest = _reflection.GeneratedProtocolMessageType('CodeGeneratorRequest', (_message.Message,), dict(
  145. DESCRIPTOR = _CODEGENERATORREQUEST,
  146. __module__ = 'plugin_pb2'
  147. # @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGeneratorRequest)
  148. ))
  149. _sym_db.RegisterMessage(CodeGeneratorRequest)
  150. CodeGeneratorResponse = _reflection.GeneratedProtocolMessageType('CodeGeneratorResponse', (_message.Message,), dict(
  151. File = _reflection.GeneratedProtocolMessageType('File', (_message.Message,), dict(
  152. DESCRIPTOR = _CODEGENERATORRESPONSE_FILE,
  153. __module__ = 'plugin_pb2'
  154. # @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGeneratorResponse.File)
  155. ))
  156. ,
  157. DESCRIPTOR = _CODEGENERATORRESPONSE,
  158. __module__ = 'plugin_pb2'
  159. # @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGeneratorResponse)
  160. ))
  161. _sym_db.RegisterMessage(CodeGeneratorResponse)
  162. _sym_db.RegisterMessage(CodeGeneratorResponse.File)
  163. DESCRIPTOR.has_options = True
  164. DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\034com.google.protobuf.compilerB\014PluginProtos'))
  165. # @@protoc_insertion_point(module_scope)