nanopb_pb2.py 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. # Generated by the protocol buffer compiler. DO NOT EDIT!
  2. # source: nanopb.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.internal import enum_type_wrapper
  6. from google.protobuf import descriptor as _descriptor
  7. from google.protobuf import message as _message
  8. from google.protobuf import reflection as _reflection
  9. from google.protobuf import symbol_database as _symbol_database
  10. from google.protobuf import descriptor_pb2
  11. # @@protoc_insertion_point(imports)
  12. _sym_db = _symbol_database.Default()
  13. import google.protobuf.descriptor_pb2
  14. DESCRIPTOR = _descriptor.FileDescriptor(
  15. name='nanopb.proto',
  16. package='',
  17. serialized_pb=_b('\n\x0cnanopb.proto\x1a google/protobuf/descriptor.proto\"\xbc\x02\n\rNanoPBOptions\x12\x10\n\x08max_size\x18\x01 \x01(\x05\x12\x11\n\tmax_count\x18\x02 \x01(\x05\x12&\n\x08int_size\x18\x07 \x01(\x0e\x32\x08.IntSize:\nIS_DEFAULT\x12$\n\x04type\x18\x03 \x01(\x0e\x32\n.FieldType:\nFT_DEFAULT\x12\x18\n\nlong_names\x18\x04 \x01(\x08:\x04true\x12\x1c\n\rpacked_struct\x18\x05 \x01(\x08:\x05\x66\x61lse\x12\x1a\n\x0bpacked_enum\x18\n \x01(\x08:\x05\x66\x61lse\x12\x1b\n\x0cskip_message\x18\x06 \x01(\x08:\x05\x66\x61lse\x12\x18\n\tno_unions\x18\x08 \x01(\x08:\x05\x66\x61lse\x12\r\n\x05msgid\x18\t \x01(\r\x12\x1e\n\x0f\x61nonymous_oneof\x18\x0b \x01(\x08:\x05\x66\x61lse*Z\n\tFieldType\x12\x0e\n\nFT_DEFAULT\x10\x00\x12\x0f\n\x0b\x46T_CALLBACK\x10\x01\x12\x0e\n\nFT_POINTER\x10\x04\x12\r\n\tFT_STATIC\x10\x02\x12\r\n\tFT_IGNORE\x10\x03*D\n\x07IntSize\x12\x0e\n\nIS_DEFAULT\x10\x00\x12\x08\n\x04IS_8\x10\x08\x12\t\n\x05IS_16\x10\x10\x12\t\n\x05IS_32\x10 \x12\t\n\x05IS_64\x10@:E\n\x0enanopb_fileopt\x12\x1c.google.protobuf.FileOptions\x18\xf2\x07 \x01(\x0b\x32\x0e.NanoPBOptions:G\n\rnanopb_msgopt\x12\x1f.google.protobuf.MessageOptions\x18\xf2\x07 \x01(\x0b\x32\x0e.NanoPBOptions:E\n\x0enanopb_enumopt\x12\x1c.google.protobuf.EnumOptions\x18\xf2\x07 \x01(\x0b\x32\x0e.NanoPBOptions:>\n\x06nanopb\x12\x1d.google.protobuf.FieldOptions\x18\xf2\x07 \x01(\x0b\x32\x0e.NanoPBOptionsB\x1a\n\x18\x66i.kapsi.koti.jpa.nanopb')
  18. ,
  19. dependencies=[google.protobuf.descriptor_pb2.DESCRIPTOR,])
  20. _sym_db.RegisterFileDescriptor(DESCRIPTOR)
  21. _FIELDTYPE = _descriptor.EnumDescriptor(
  22. name='FieldType',
  23. full_name='FieldType',
  24. filename=None,
  25. file=DESCRIPTOR,
  26. values=[
  27. _descriptor.EnumValueDescriptor(
  28. name='FT_DEFAULT', index=0, number=0,
  29. options=None,
  30. type=None),
  31. _descriptor.EnumValueDescriptor(
  32. name='FT_CALLBACK', index=1, number=1,
  33. options=None,
  34. type=None),
  35. _descriptor.EnumValueDescriptor(
  36. name='FT_POINTER', index=2, number=4,
  37. options=None,
  38. type=None),
  39. _descriptor.EnumValueDescriptor(
  40. name='FT_STATIC', index=3, number=2,
  41. options=None,
  42. type=None),
  43. _descriptor.EnumValueDescriptor(
  44. name='FT_IGNORE', index=4, number=3,
  45. options=None,
  46. type=None),
  47. ],
  48. containing_type=None,
  49. options=None,
  50. serialized_start=369,
  51. serialized_end=459,
  52. )
  53. _sym_db.RegisterEnumDescriptor(_FIELDTYPE)
  54. FieldType = enum_type_wrapper.EnumTypeWrapper(_FIELDTYPE)
  55. _INTSIZE = _descriptor.EnumDescriptor(
  56. name='IntSize',
  57. full_name='IntSize',
  58. filename=None,
  59. file=DESCRIPTOR,
  60. values=[
  61. _descriptor.EnumValueDescriptor(
  62. name='IS_DEFAULT', index=0, number=0,
  63. options=None,
  64. type=None),
  65. _descriptor.EnumValueDescriptor(
  66. name='IS_8', index=1, number=8,
  67. options=None,
  68. type=None),
  69. _descriptor.EnumValueDescriptor(
  70. name='IS_16', index=2, number=16,
  71. options=None,
  72. type=None),
  73. _descriptor.EnumValueDescriptor(
  74. name='IS_32', index=3, number=32,
  75. options=None,
  76. type=None),
  77. _descriptor.EnumValueDescriptor(
  78. name='IS_64', index=4, number=64,
  79. options=None,
  80. type=None),
  81. ],
  82. containing_type=None,
  83. options=None,
  84. serialized_start=461,
  85. serialized_end=529,
  86. )
  87. _sym_db.RegisterEnumDescriptor(_INTSIZE)
  88. IntSize = enum_type_wrapper.EnumTypeWrapper(_INTSIZE)
  89. FT_DEFAULT = 0
  90. FT_CALLBACK = 1
  91. FT_POINTER = 4
  92. FT_STATIC = 2
  93. FT_IGNORE = 3
  94. IS_DEFAULT = 0
  95. IS_8 = 8
  96. IS_16 = 16
  97. IS_32 = 32
  98. IS_64 = 64
  99. NANOPB_FILEOPT_FIELD_NUMBER = 1010
  100. nanopb_fileopt = _descriptor.FieldDescriptor(
  101. name='nanopb_fileopt', full_name='nanopb_fileopt', index=0,
  102. number=1010, type=11, cpp_type=10, label=1,
  103. has_default_value=False, default_value=None,
  104. message_type=None, enum_type=None, containing_type=None,
  105. is_extension=True, extension_scope=None,
  106. options=None)
  107. NANOPB_MSGOPT_FIELD_NUMBER = 1010
  108. nanopb_msgopt = _descriptor.FieldDescriptor(
  109. name='nanopb_msgopt', full_name='nanopb_msgopt', index=1,
  110. number=1010, type=11, cpp_type=10, label=1,
  111. has_default_value=False, default_value=None,
  112. message_type=None, enum_type=None, containing_type=None,
  113. is_extension=True, extension_scope=None,
  114. options=None)
  115. NANOPB_ENUMOPT_FIELD_NUMBER = 1010
  116. nanopb_enumopt = _descriptor.FieldDescriptor(
  117. name='nanopb_enumopt', full_name='nanopb_enumopt', index=2,
  118. number=1010, type=11, cpp_type=10, label=1,
  119. has_default_value=False, default_value=None,
  120. message_type=None, enum_type=None, containing_type=None,
  121. is_extension=True, extension_scope=None,
  122. options=None)
  123. NANOPB_FIELD_NUMBER = 1010
  124. nanopb = _descriptor.FieldDescriptor(
  125. name='nanopb', full_name='nanopb', index=3,
  126. number=1010, type=11, cpp_type=10, label=1,
  127. has_default_value=False, default_value=None,
  128. message_type=None, enum_type=None, containing_type=None,
  129. is_extension=True, extension_scope=None,
  130. options=None)
  131. _NANOPBOPTIONS = _descriptor.Descriptor(
  132. name='NanoPBOptions',
  133. full_name='NanoPBOptions',
  134. filename=None,
  135. file=DESCRIPTOR,
  136. containing_type=None,
  137. fields=[
  138. _descriptor.FieldDescriptor(
  139. name='max_size', full_name='NanoPBOptions.max_size', index=0,
  140. number=1, type=5, cpp_type=1, label=1,
  141. has_default_value=False, default_value=0,
  142. message_type=None, enum_type=None, containing_type=None,
  143. is_extension=False, extension_scope=None,
  144. options=None),
  145. _descriptor.FieldDescriptor(
  146. name='max_count', full_name='NanoPBOptions.max_count', index=1,
  147. number=2, type=5, cpp_type=1, label=1,
  148. has_default_value=False, default_value=0,
  149. message_type=None, enum_type=None, containing_type=None,
  150. is_extension=False, extension_scope=None,
  151. options=None),
  152. _descriptor.FieldDescriptor(
  153. name='int_size', full_name='NanoPBOptions.int_size', index=2,
  154. number=7, type=14, cpp_type=8, label=1,
  155. has_default_value=True, default_value=0,
  156. message_type=None, enum_type=None, containing_type=None,
  157. is_extension=False, extension_scope=None,
  158. options=None),
  159. _descriptor.FieldDescriptor(
  160. name='type', full_name='NanoPBOptions.type', index=3,
  161. number=3, type=14, cpp_type=8, label=1,
  162. has_default_value=True, default_value=0,
  163. message_type=None, enum_type=None, containing_type=None,
  164. is_extension=False, extension_scope=None,
  165. options=None),
  166. _descriptor.FieldDescriptor(
  167. name='long_names', full_name='NanoPBOptions.long_names', index=4,
  168. number=4, type=8, cpp_type=7, label=1,
  169. has_default_value=True, default_value=True,
  170. message_type=None, enum_type=None, containing_type=None,
  171. is_extension=False, extension_scope=None,
  172. options=None),
  173. _descriptor.FieldDescriptor(
  174. name='packed_struct', full_name='NanoPBOptions.packed_struct', index=5,
  175. number=5, type=8, cpp_type=7, label=1,
  176. has_default_value=True, default_value=False,
  177. message_type=None, enum_type=None, containing_type=None,
  178. is_extension=False, extension_scope=None,
  179. options=None),
  180. _descriptor.FieldDescriptor(
  181. name='packed_enum', full_name='NanoPBOptions.packed_enum', index=6,
  182. number=10, type=8, cpp_type=7, label=1,
  183. has_default_value=True, default_value=False,
  184. message_type=None, enum_type=None, containing_type=None,
  185. is_extension=False, extension_scope=None,
  186. options=None),
  187. _descriptor.FieldDescriptor(
  188. name='skip_message', full_name='NanoPBOptions.skip_message', index=7,
  189. number=6, type=8, cpp_type=7, label=1,
  190. has_default_value=True, default_value=False,
  191. message_type=None, enum_type=None, containing_type=None,
  192. is_extension=False, extension_scope=None,
  193. options=None),
  194. _descriptor.FieldDescriptor(
  195. name='no_unions', full_name='NanoPBOptions.no_unions', index=8,
  196. number=8, type=8, cpp_type=7, label=1,
  197. has_default_value=True, default_value=False,
  198. message_type=None, enum_type=None, containing_type=None,
  199. is_extension=False, extension_scope=None,
  200. options=None),
  201. _descriptor.FieldDescriptor(
  202. name='msgid', full_name='NanoPBOptions.msgid', index=9,
  203. number=9, type=13, cpp_type=3, label=1,
  204. has_default_value=False, default_value=0,
  205. message_type=None, enum_type=None, containing_type=None,
  206. is_extension=False, extension_scope=None,
  207. options=None),
  208. _descriptor.FieldDescriptor(
  209. name='anonymous_oneof', full_name='NanoPBOptions.anonymous_oneof', index=10,
  210. number=11, type=8, cpp_type=7, label=1,
  211. has_default_value=True, default_value=False,
  212. message_type=None, enum_type=None, containing_type=None,
  213. is_extension=False, extension_scope=None,
  214. options=None),
  215. ],
  216. extensions=[
  217. ],
  218. nested_types=[],
  219. enum_types=[
  220. ],
  221. options=None,
  222. is_extendable=False,
  223. extension_ranges=[],
  224. oneofs=[
  225. ],
  226. serialized_start=51,
  227. serialized_end=367,
  228. )
  229. _NANOPBOPTIONS.fields_by_name['int_size'].enum_type = _INTSIZE
  230. _NANOPBOPTIONS.fields_by_name['type'].enum_type = _FIELDTYPE
  231. DESCRIPTOR.message_types_by_name['NanoPBOptions'] = _NANOPBOPTIONS
  232. DESCRIPTOR.enum_types_by_name['FieldType'] = _FIELDTYPE
  233. DESCRIPTOR.enum_types_by_name['IntSize'] = _INTSIZE
  234. DESCRIPTOR.extensions_by_name['nanopb_fileopt'] = nanopb_fileopt
  235. DESCRIPTOR.extensions_by_name['nanopb_msgopt'] = nanopb_msgopt
  236. DESCRIPTOR.extensions_by_name['nanopb_enumopt'] = nanopb_enumopt
  237. DESCRIPTOR.extensions_by_name['nanopb'] = nanopb
  238. NanoPBOptions = _reflection.GeneratedProtocolMessageType('NanoPBOptions', (_message.Message,), dict(
  239. DESCRIPTOR = _NANOPBOPTIONS,
  240. __module__ = 'nanopb_pb2'
  241. # @@protoc_insertion_point(class_scope:NanoPBOptions)
  242. ))
  243. _sym_db.RegisterMessage(NanoPBOptions)
  244. nanopb_fileopt.message_type = _NANOPBOPTIONS
  245. google.protobuf.descriptor_pb2.FileOptions.RegisterExtension(nanopb_fileopt)
  246. nanopb_msgopt.message_type = _NANOPBOPTIONS
  247. google.protobuf.descriptor_pb2.MessageOptions.RegisterExtension(nanopb_msgopt)
  248. nanopb_enumopt.message_type = _NANOPBOPTIONS
  249. google.protobuf.descriptor_pb2.EnumOptions.RegisterExtension(nanopb_enumopt)
  250. nanopb.message_type = _NANOPBOPTIONS
  251. google.protobuf.descriptor_pb2.FieldOptions.RegisterExtension(nanopb)
  252. DESCRIPTOR.has_options = True
  253. DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\030fi.kapsi.koti.jpa.nanopb'))
  254. # @@protoc_insertion_point(module_scope)