extensions_pb2.py 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # -*- coding: utf-8 -*-
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: mypy_protobuf/extensions.proto
  4. """Generated protocol buffer code."""
  5. from google.protobuf import descriptor as _descriptor
  6. from google.protobuf import descriptor_pool as _descriptor_pool
  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. # @@protoc_insertion_point(imports)
  11. _sym_db = _symbol_database.Default()
  12. from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2
  13. DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1emypy_protobuf/extensions.proto\x12\rmypy_protobuf\x1a google/protobuf/descriptor.proto\"D\n\x0c\x46ieldOptions\x12\x10\n\x08\x63\x61sttype\x18\x01 \x01(\t\x12\x0f\n\x07keytype\x18\x02 \x01(\t\x12\x11\n\tvaluetype\x18\x03 \x01(\t:M\n\x07options\x12\x1d.google.protobuf.FieldOptions\x18\xe4\xd4\x03 \x01(\x0b\x32\x1b.mypy_protobuf.FieldOptions:5\n\x08\x63\x61sttype\x12\x1d.google.protobuf.FieldOptions\x18\xe0\xd4\x03 \x01(\tB\x02\x18\x01:4\n\x07keytype\x12\x1d.google.protobuf.FieldOptions\x18\xe2\xd4\x03 \x01(\tB\x02\x18\x01:6\n\tvaluetype\x12\x1d.google.protobuf.FieldOptions\x18\xe3\xd4\x03 \x01(\tB\x02\x18\x01\x62\x06proto3')
  14. OPTIONS_FIELD_NUMBER = 60004
  15. options = DESCRIPTOR.extensions_by_name['options']
  16. CASTTYPE_FIELD_NUMBER = 60000
  17. casttype = DESCRIPTOR.extensions_by_name['casttype']
  18. KEYTYPE_FIELD_NUMBER = 60002
  19. keytype = DESCRIPTOR.extensions_by_name['keytype']
  20. VALUETYPE_FIELD_NUMBER = 60003
  21. valuetype = DESCRIPTOR.extensions_by_name['valuetype']
  22. _FIELDOPTIONS = DESCRIPTOR.message_types_by_name['FieldOptions']
  23. FieldOptions = _reflection.GeneratedProtocolMessageType('FieldOptions', (_message.Message,), {
  24. 'DESCRIPTOR' : _FIELDOPTIONS,
  25. '__module__' : 'mypy_protobuf.extensions_pb2'
  26. # @@protoc_insertion_point(class_scope:mypy_protobuf.FieldOptions)
  27. })
  28. _sym_db.RegisterMessage(FieldOptions)
  29. if _descriptor._USE_C_DESCRIPTORS == False:
  30. google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(options)
  31. google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(casttype)
  32. google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(keytype)
  33. google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(valuetype)
  34. DESCRIPTOR._options = None
  35. casttype._options = None
  36. casttype._serialized_options = b'\030\001'
  37. keytype._options = None
  38. keytype._serialized_options = b'\030\001'
  39. valuetype._options = None
  40. valuetype._serialized_options = b'\030\001'
  41. _FIELDOPTIONS._serialized_start=83
  42. _FIELDOPTIONS._serialized_end=151
  43. # @@protoc_insertion_point(module_scope)