/ tests / protos / test_message_pb2.py
test_message_pb2.py
  1  
  2  import google.protobuf
  3  from packaging.version import Version
  4  if Version(google.protobuf.__version__).major >= 5:
  5    # -*- coding: utf-8 -*-
  6    # Generated by the protocol buffer compiler.  DO NOT EDIT!
  7    # source: test_message.proto
  8    # Protobuf Python Version: 5.26.0
  9    """Generated protocol buffer code."""
 10    from google.protobuf import descriptor as _descriptor
 11    from google.protobuf import descriptor_pool as _descriptor_pool
 12    from google.protobuf import symbol_database as _symbol_database
 13    from google.protobuf.internal import builder as _builder
 14    # @@protoc_insertion_point(imports)
 15  
 16    _sym_db = _symbol_database.Default()
 17  
 18  
 19  
 20  
 21    DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x12test_message.proto\x12\x06mlflow\"\xb9\t\n\rSampleMessage\x12\x13\n\x0b\x66ield_int32\x18\x01 \x01(\x05\x12\x13\n\x0b\x66ield_int64\x18\x02 \x01(\x03\x12\x14\n\x0c\x66ield_uint32\x18\x03 \x01(\r\x12\x14\n\x0c\x66ield_uint64\x18\x04 \x01(\x04\x12\x14\n\x0c\x66ield_sint32\x18\x05 \x01(\x11\x12\x14\n\x0c\x66ield_sint64\x18\x06 \x01(\x12\x12\x15\n\rfield_fixed32\x18\x07 \x01(\x07\x12\x15\n\rfield_fixed64\x18\x08 \x01(\x06\x12\x16\n\x0e\x66ield_sfixed32\x18\t \x01(\x0f\x12\x16\n\x0e\x66ield_sfixed64\x18\n \x01(\x10\x12\x12\n\nfield_bool\x18\x0b \x01(\x08\x12\x14\n\x0c\x66ield_string\x18\x0c \x01(\t\x12 \n\x13\x66ield_with_default1\x18\r \x01(\x03:\x03\x31\x30\x30\x12 \n\x13\x66ield_with_default2\x18\x0e \x01(\x03:\x03\x32\x30\x30\x12\x1c\n\x14\x66ield_repeated_int64\x18\x0f \x03(\x03\x12\x34\n\nfield_enum\x18\x10 \x01(\x0e\x32 .mlflow.SampleMessage.SampleEnum\x12\x45\n\x13\x66ield_inner_message\x18\x11 \x03(\x0b\x32(.mlflow.SampleMessage.SampleInnerMessage\x12\x10\n\x06oneof1\x18\x12 \x01(\x03H\x00\x12\x10\n\x06oneof2\x18\x13 \x01(\x03H\x00\x12\x38\n\nfield_map1\x18\x14 \x03(\x0b\x32$.mlflow.SampleMessage.FieldMap1Entry\x12\x38\n\nfield_map2\x18\x15 \x03(\x0b\x32$.mlflow.SampleMessage.FieldMap2Entry\x12\x38\n\nfield_map3\x18\x16 \x03(\x0b\x32$.mlflow.SampleMessage.FieldMap3Entry\x12\x38\n\nfield_map4\x18\x17 \x03(\x0b\x32$.mlflow.SampleMessage.FieldMap4Entry\x1ao\n\x12SampleInnerMessage\x12\x19\n\x11\x66ield_inner_int64\x18\x01 \x01(\x03\x12\"\n\x1a\x66ield_inner_repeated_int64\x18\x02 \x03(\x03\x12\x1a\n\x12\x66ield_inner_string\x18\x03 \x01(\t\x1a\x30\n\x0e\x46ieldMap1Entry\x12\x0b\n\x03key\x18\x01 \x01(\x03\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x30\n\x0e\x46ieldMap2Entry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01\x1a\x30\n\x0e\x46ieldMap3Entry\x12\x0b\n\x03key\x18\x01 \x01(\x03\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01\x1aZ\n\x0e\x46ieldMap4Entry\x12\x0b\n\x03key\x18\x01 \x01(\x03\x12\x37\n\x05value\x18\x02 \x01(\x0b\x32(.mlflow.SampleMessage.SampleInnerMessage:\x02\x38\x01\"8\n\nSampleEnum\x12\x08\n\x04NONE\x10\x00\x12\x0f\n\x0b\x45NUM_VALUE1\x10\x01\x12\x0f\n\x0b\x45NUM_VALUE2\x10\x02*\x06\x08\xe8\x07\x10\xd0\x0f\x42\x0e\n\x0csample_oneof\"H\n\x10\x45xtensionMessage24\n\x14\x66ield_extended_int64\x12\x15.mlflow.SampleMessage\x18\xe9\x07 \x01(\x03')
 22  
 23    _globals = globals()
 24    _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
 25    _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'test_message_pb2', _globals)
 26    if not _descriptor._USE_C_DESCRIPTORS:
 27      DESCRIPTOR._loaded_options = None
 28      _globals['_SAMPLEMESSAGE_FIELDMAP1ENTRY']._loaded_options = None
 29      _globals['_SAMPLEMESSAGE_FIELDMAP1ENTRY']._serialized_options = b'8\001'
 30      _globals['_SAMPLEMESSAGE_FIELDMAP2ENTRY']._loaded_options = None
 31      _globals['_SAMPLEMESSAGE_FIELDMAP2ENTRY']._serialized_options = b'8\001'
 32      _globals['_SAMPLEMESSAGE_FIELDMAP3ENTRY']._loaded_options = None
 33      _globals['_SAMPLEMESSAGE_FIELDMAP3ENTRY']._serialized_options = b'8\001'
 34      _globals['_SAMPLEMESSAGE_FIELDMAP4ENTRY']._loaded_options = None
 35      _globals['_SAMPLEMESSAGE_FIELDMAP4ENTRY']._serialized_options = b'8\001'
 36      _globals['_SAMPLEMESSAGE']._serialized_start=31
 37      _globals['_SAMPLEMESSAGE']._serialized_end=1240
 38      _globals['_SAMPLEMESSAGE_SAMPLEINNERMESSAGE']._serialized_start=805
 39      _globals['_SAMPLEMESSAGE_SAMPLEINNERMESSAGE']._serialized_end=916
 40      _globals['_SAMPLEMESSAGE_FIELDMAP1ENTRY']._serialized_start=918
 41      _globals['_SAMPLEMESSAGE_FIELDMAP1ENTRY']._serialized_end=966
 42      _globals['_SAMPLEMESSAGE_FIELDMAP2ENTRY']._serialized_start=968
 43      _globals['_SAMPLEMESSAGE_FIELDMAP2ENTRY']._serialized_end=1016
 44      _globals['_SAMPLEMESSAGE_FIELDMAP3ENTRY']._serialized_start=1018
 45      _globals['_SAMPLEMESSAGE_FIELDMAP3ENTRY']._serialized_end=1066
 46      _globals['_SAMPLEMESSAGE_FIELDMAP4ENTRY']._serialized_start=1068
 47      _globals['_SAMPLEMESSAGE_FIELDMAP4ENTRY']._serialized_end=1158
 48      _globals['_SAMPLEMESSAGE_SAMPLEENUM']._serialized_start=1160
 49      _globals['_SAMPLEMESSAGE_SAMPLEENUM']._serialized_end=1216
 50      _globals['_EXTENSIONMESSAGE']._serialized_start=1242
 51      _globals['_EXTENSIONMESSAGE']._serialized_end=1314
 52    # @@protoc_insertion_point(module_scope)
 53  
 54  else:
 55    # -*- coding: utf-8 -*-
 56    # Generated by the protocol buffer compiler.  DO NOT EDIT!
 57    # source: test_message.proto
 58    """Generated protocol buffer code."""
 59    from google.protobuf import descriptor as _descriptor
 60    from google.protobuf import descriptor_pool as _descriptor_pool
 61    from google.protobuf import message as _message
 62    from google.protobuf import reflection as _reflection
 63    from google.protobuf import symbol_database as _symbol_database
 64    # @@protoc_insertion_point(imports)
 65  
 66    _sym_db = _symbol_database.Default()
 67  
 68  
 69  
 70  
 71    DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x12test_message.proto\x12\x06mlflow\"\xb9\t\n\rSampleMessage\x12\x13\n\x0b\x66ield_int32\x18\x01 \x01(\x05\x12\x13\n\x0b\x66ield_int64\x18\x02 \x01(\x03\x12\x14\n\x0c\x66ield_uint32\x18\x03 \x01(\r\x12\x14\n\x0c\x66ield_uint64\x18\x04 \x01(\x04\x12\x14\n\x0c\x66ield_sint32\x18\x05 \x01(\x11\x12\x14\n\x0c\x66ield_sint64\x18\x06 \x01(\x12\x12\x15\n\rfield_fixed32\x18\x07 \x01(\x07\x12\x15\n\rfield_fixed64\x18\x08 \x01(\x06\x12\x16\n\x0e\x66ield_sfixed32\x18\t \x01(\x0f\x12\x16\n\x0e\x66ield_sfixed64\x18\n \x01(\x10\x12\x12\n\nfield_bool\x18\x0b \x01(\x08\x12\x14\n\x0c\x66ield_string\x18\x0c \x01(\t\x12 \n\x13\x66ield_with_default1\x18\r \x01(\x03:\x03\x31\x30\x30\x12 \n\x13\x66ield_with_default2\x18\x0e \x01(\x03:\x03\x32\x30\x30\x12\x1c\n\x14\x66ield_repeated_int64\x18\x0f \x03(\x03\x12\x34\n\nfield_enum\x18\x10 \x01(\x0e\x32 .mlflow.SampleMessage.SampleEnum\x12\x45\n\x13\x66ield_inner_message\x18\x11 \x03(\x0b\x32(.mlflow.SampleMessage.SampleInnerMessage\x12\x10\n\x06oneof1\x18\x12 \x01(\x03H\x00\x12\x10\n\x06oneof2\x18\x13 \x01(\x03H\x00\x12\x38\n\nfield_map1\x18\x14 \x03(\x0b\x32$.mlflow.SampleMessage.FieldMap1Entry\x12\x38\n\nfield_map2\x18\x15 \x03(\x0b\x32$.mlflow.SampleMessage.FieldMap2Entry\x12\x38\n\nfield_map3\x18\x16 \x03(\x0b\x32$.mlflow.SampleMessage.FieldMap3Entry\x12\x38\n\nfield_map4\x18\x17 \x03(\x0b\x32$.mlflow.SampleMessage.FieldMap4Entry\x1ao\n\x12SampleInnerMessage\x12\x19\n\x11\x66ield_inner_int64\x18\x01 \x01(\x03\x12\"\n\x1a\x66ield_inner_repeated_int64\x18\x02 \x03(\x03\x12\x1a\n\x12\x66ield_inner_string\x18\x03 \x01(\t\x1a\x30\n\x0e\x46ieldMap1Entry\x12\x0b\n\x03key\x18\x01 \x01(\x03\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x30\n\x0e\x46ieldMap2Entry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01\x1a\x30\n\x0e\x46ieldMap3Entry\x12\x0b\n\x03key\x18\x01 \x01(\x03\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01\x1aZ\n\x0e\x46ieldMap4Entry\x12\x0b\n\x03key\x18\x01 \x01(\x03\x12\x37\n\x05value\x18\x02 \x01(\x0b\x32(.mlflow.SampleMessage.SampleInnerMessage:\x02\x38\x01\"8\n\nSampleEnum\x12\x08\n\x04NONE\x10\x00\x12\x0f\n\x0b\x45NUM_VALUE1\x10\x01\x12\x0f\n\x0b\x45NUM_VALUE2\x10\x02*\x06\x08\xe8\x07\x10\xd0\x0f\x42\x0e\n\x0csample_oneof\"H\n\x10\x45xtensionMessage24\n\x14\x66ield_extended_int64\x12\x15.mlflow.SampleMessage\x18\xe9\x07 \x01(\x03')
 72  
 73  
 74  
 75    _SAMPLEMESSAGE = DESCRIPTOR.message_types_by_name['SampleMessage']
 76    _SAMPLEMESSAGE_SAMPLEINNERMESSAGE = _SAMPLEMESSAGE.nested_types_by_name['SampleInnerMessage']
 77    _SAMPLEMESSAGE_FIELDMAP1ENTRY = _SAMPLEMESSAGE.nested_types_by_name['FieldMap1Entry']
 78    _SAMPLEMESSAGE_FIELDMAP2ENTRY = _SAMPLEMESSAGE.nested_types_by_name['FieldMap2Entry']
 79    _SAMPLEMESSAGE_FIELDMAP3ENTRY = _SAMPLEMESSAGE.nested_types_by_name['FieldMap3Entry']
 80    _SAMPLEMESSAGE_FIELDMAP4ENTRY = _SAMPLEMESSAGE.nested_types_by_name['FieldMap4Entry']
 81    _EXTENSIONMESSAGE = DESCRIPTOR.message_types_by_name['ExtensionMessage']
 82    _SAMPLEMESSAGE_SAMPLEENUM = _SAMPLEMESSAGE.enum_types_by_name['SampleEnum']
 83    SampleMessage = _reflection.GeneratedProtocolMessageType('SampleMessage', (_message.Message,), {
 84  
 85      'SampleInnerMessage' : _reflection.GeneratedProtocolMessageType('SampleInnerMessage', (_message.Message,), {
 86        'DESCRIPTOR' : _SAMPLEMESSAGE_SAMPLEINNERMESSAGE,
 87        '__module__' : 'test_message_pb2'
 88        # @@protoc_insertion_point(class_scope:mlflow.SampleMessage.SampleInnerMessage)
 89        })
 90      ,
 91  
 92      'FieldMap1Entry' : _reflection.GeneratedProtocolMessageType('FieldMap1Entry', (_message.Message,), {
 93        'DESCRIPTOR' : _SAMPLEMESSAGE_FIELDMAP1ENTRY,
 94        '__module__' : 'test_message_pb2'
 95        # @@protoc_insertion_point(class_scope:mlflow.SampleMessage.FieldMap1Entry)
 96        })
 97      ,
 98  
 99      'FieldMap2Entry' : _reflection.GeneratedProtocolMessageType('FieldMap2Entry', (_message.Message,), {
100        'DESCRIPTOR' : _SAMPLEMESSAGE_FIELDMAP2ENTRY,
101        '__module__' : 'test_message_pb2'
102        # @@protoc_insertion_point(class_scope:mlflow.SampleMessage.FieldMap2Entry)
103        })
104      ,
105  
106      'FieldMap3Entry' : _reflection.GeneratedProtocolMessageType('FieldMap3Entry', (_message.Message,), {
107        'DESCRIPTOR' : _SAMPLEMESSAGE_FIELDMAP3ENTRY,
108        '__module__' : 'test_message_pb2'
109        # @@protoc_insertion_point(class_scope:mlflow.SampleMessage.FieldMap3Entry)
110        })
111      ,
112  
113      'FieldMap4Entry' : _reflection.GeneratedProtocolMessageType('FieldMap4Entry', (_message.Message,), {
114        'DESCRIPTOR' : _SAMPLEMESSAGE_FIELDMAP4ENTRY,
115        '__module__' : 'test_message_pb2'
116        # @@protoc_insertion_point(class_scope:mlflow.SampleMessage.FieldMap4Entry)
117        })
118      ,
119      'DESCRIPTOR' : _SAMPLEMESSAGE,
120      '__module__' : 'test_message_pb2'
121      # @@protoc_insertion_point(class_scope:mlflow.SampleMessage)
122      })
123    _sym_db.RegisterMessage(SampleMessage)
124    _sym_db.RegisterMessage(SampleMessage.SampleInnerMessage)
125    _sym_db.RegisterMessage(SampleMessage.FieldMap1Entry)
126    _sym_db.RegisterMessage(SampleMessage.FieldMap2Entry)
127    _sym_db.RegisterMessage(SampleMessage.FieldMap3Entry)
128    _sym_db.RegisterMessage(SampleMessage.FieldMap4Entry)
129  
130    ExtensionMessage = _reflection.GeneratedProtocolMessageType('ExtensionMessage', (_message.Message,), {
131      'DESCRIPTOR' : _EXTENSIONMESSAGE,
132      '__module__' : 'test_message_pb2'
133      # @@protoc_insertion_point(class_scope:mlflow.ExtensionMessage)
134      })
135    _sym_db.RegisterMessage(ExtensionMessage)
136  
137    if _descriptor._USE_C_DESCRIPTORS == False:
138      SampleMessage.RegisterExtension(_EXTENSIONMESSAGE.extensions_by_name['field_extended_int64'])
139  
140      DESCRIPTOR._options = None
141      _SAMPLEMESSAGE_FIELDMAP1ENTRY._options = None
142      _SAMPLEMESSAGE_FIELDMAP1ENTRY._serialized_options = b'8\001'
143      _SAMPLEMESSAGE_FIELDMAP2ENTRY._options = None
144      _SAMPLEMESSAGE_FIELDMAP2ENTRY._serialized_options = b'8\001'
145      _SAMPLEMESSAGE_FIELDMAP3ENTRY._options = None
146      _SAMPLEMESSAGE_FIELDMAP3ENTRY._serialized_options = b'8\001'
147      _SAMPLEMESSAGE_FIELDMAP4ENTRY._options = None
148      _SAMPLEMESSAGE_FIELDMAP4ENTRY._serialized_options = b'8\001'
149      _SAMPLEMESSAGE._serialized_start=31
150      _SAMPLEMESSAGE._serialized_end=1240
151      _SAMPLEMESSAGE_SAMPLEINNERMESSAGE._serialized_start=805
152      _SAMPLEMESSAGE_SAMPLEINNERMESSAGE._serialized_end=916
153      _SAMPLEMESSAGE_FIELDMAP1ENTRY._serialized_start=918
154      _SAMPLEMESSAGE_FIELDMAP1ENTRY._serialized_end=966
155      _SAMPLEMESSAGE_FIELDMAP2ENTRY._serialized_start=968
156      _SAMPLEMESSAGE_FIELDMAP2ENTRY._serialized_end=1016
157      _SAMPLEMESSAGE_FIELDMAP3ENTRY._serialized_start=1018
158      _SAMPLEMESSAGE_FIELDMAP3ENTRY._serialized_end=1066
159      _SAMPLEMESSAGE_FIELDMAP4ENTRY._serialized_start=1068
160      _SAMPLEMESSAGE_FIELDMAP4ENTRY._serialized_end=1158
161      _SAMPLEMESSAGE_SAMPLEENUM._serialized_start=1160
162      _SAMPLEMESSAGE_SAMPLEENUM._serialized_end=1216
163      _EXTENSIONMESSAGE._serialized_start=1242
164      _EXTENSIONMESSAGE._serialized_end=1314
165    # @@protoc_insertion_point(module_scope)
166