github.com/dbernstein1/tyk@v2.9.0-beta9-dl-apic+incompatible/coprocess/bindings/python/coprocess_object_pb2.py (about) 1 # Generated by the protocol buffer compiler. DO NOT EDIT! 2 # source: coprocess_object.proto 3 4 import sys 5 _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) 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 13 _sym_db = _symbol_database.Default() 14 15 16 import coprocess_mini_request_object_pb2 as coprocess__mini__request__object__pb2 17 import coprocess_session_state_pb2 as coprocess__session__state__pb2 18 import coprocess_common_pb2 as coprocess__common__pb2 19 20 21 DESCRIPTOR = _descriptor.FileDescriptor( 22 name='coprocess_object.proto', 23 package='coprocess', 24 syntax='proto3', 25 serialized_pb=_b('\n\x16\x63oprocess_object.proto\x12\tcoprocess\x1a#coprocess_mini_request_object.proto\x1a\x1d\x63oprocess_session_state.proto\x1a\x16\x63oprocess_common.proto\"\xd8\x02\n\x06Object\x12&\n\thook_type\x18\x01 \x01(\x0e\x32\x13.coprocess.HookType\x12\x11\n\thook_name\x18\x02 \x01(\t\x12-\n\x07request\x18\x03 \x01(\x0b\x32\x1c.coprocess.MiniRequestObject\x12(\n\x07session\x18\x04 \x01(\x0b\x32\x17.coprocess.SessionState\x12\x31\n\x08metadata\x18\x05 \x03(\x0b\x32\x1f.coprocess.Object.MetadataEntry\x12)\n\x04spec\x18\x06 \x03(\x0b\x32\x1b.coprocess.Object.SpecEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a+\n\tSpecEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x18\n\x05\x45vent\x12\x0f\n\x07payload\x18\x01 \x01(\t\"\x0c\n\nEventReply2|\n\nDispatcher\x12\x32\n\x08\x44ispatch\x12\x11.coprocess.Object\x1a\x11.coprocess.Object\"\x00\x12:\n\rDispatchEvent\x12\x10.coprocess.Event\x1a\x15.coprocess.EventReply\"\x00\x62\x06proto3') 26 , 27 dependencies=[coprocess__mini__request__object__pb2.DESCRIPTOR,coprocess__session__state__pb2.DESCRIPTOR,coprocess__common__pb2.DESCRIPTOR,]) 28 29 30 31 32 _OBJECT_METADATAENTRY = _descriptor.Descriptor( 33 name='MetadataEntry', 34 full_name='coprocess.Object.MetadataEntry', 35 filename=None, 36 file=DESCRIPTOR, 37 containing_type=None, 38 fields=[ 39 _descriptor.FieldDescriptor( 40 name='key', full_name='coprocess.Object.MetadataEntry.key', index=0, 41 number=1, type=9, cpp_type=9, label=1, 42 has_default_value=False, default_value=_b("").decode('utf-8'), 43 message_type=None, enum_type=None, containing_type=None, 44 is_extension=False, extension_scope=None, 45 options=None, file=DESCRIPTOR), 46 _descriptor.FieldDescriptor( 47 name='value', full_name='coprocess.Object.MetadataEntry.value', index=1, 48 number=2, type=9, cpp_type=9, label=1, 49 has_default_value=False, default_value=_b("").decode('utf-8'), 50 message_type=None, enum_type=None, containing_type=None, 51 is_extension=False, extension_scope=None, 52 options=None, file=DESCRIPTOR), 53 ], 54 extensions=[ 55 ], 56 nested_types=[], 57 enum_types=[ 58 ], 59 options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), 60 is_extendable=False, 61 syntax='proto3', 62 extension_ranges=[], 63 oneofs=[ 64 ], 65 serialized_start=382, 66 serialized_end=429, 67 ) 68 69 _OBJECT_SPECENTRY = _descriptor.Descriptor( 70 name='SpecEntry', 71 full_name='coprocess.Object.SpecEntry', 72 filename=None, 73 file=DESCRIPTOR, 74 containing_type=None, 75 fields=[ 76 _descriptor.FieldDescriptor( 77 name='key', full_name='coprocess.Object.SpecEntry.key', index=0, 78 number=1, 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, file=DESCRIPTOR), 83 _descriptor.FieldDescriptor( 84 name='value', full_name='coprocess.Object.SpecEntry.value', index=1, 85 number=2, 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, file=DESCRIPTOR), 90 ], 91 extensions=[ 92 ], 93 nested_types=[], 94 enum_types=[ 95 ], 96 options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), 97 is_extendable=False, 98 syntax='proto3', 99 extension_ranges=[], 100 oneofs=[ 101 ], 102 serialized_start=431, 103 serialized_end=474, 104 ) 105 106 _OBJECT = _descriptor.Descriptor( 107 name='Object', 108 full_name='coprocess.Object', 109 filename=None, 110 file=DESCRIPTOR, 111 containing_type=None, 112 fields=[ 113 _descriptor.FieldDescriptor( 114 name='hook_type', full_name='coprocess.Object.hook_type', index=0, 115 number=1, type=14, cpp_type=8, label=1, 116 has_default_value=False, default_value=0, 117 message_type=None, enum_type=None, containing_type=None, 118 is_extension=False, extension_scope=None, 119 options=None, file=DESCRIPTOR), 120 _descriptor.FieldDescriptor( 121 name='hook_name', full_name='coprocess.Object.hook_name', index=1, 122 number=2, type=9, cpp_type=9, label=1, 123 has_default_value=False, default_value=_b("").decode('utf-8'), 124 message_type=None, enum_type=None, containing_type=None, 125 is_extension=False, extension_scope=None, 126 options=None, file=DESCRIPTOR), 127 _descriptor.FieldDescriptor( 128 name='request', full_name='coprocess.Object.request', index=2, 129 number=3, type=11, cpp_type=10, label=1, 130 has_default_value=False, default_value=None, 131 message_type=None, enum_type=None, containing_type=None, 132 is_extension=False, extension_scope=None, 133 options=None, file=DESCRIPTOR), 134 _descriptor.FieldDescriptor( 135 name='session', full_name='coprocess.Object.session', index=3, 136 number=4, type=11, cpp_type=10, label=1, 137 has_default_value=False, default_value=None, 138 message_type=None, enum_type=None, containing_type=None, 139 is_extension=False, extension_scope=None, 140 options=None, file=DESCRIPTOR), 141 _descriptor.FieldDescriptor( 142 name='metadata', full_name='coprocess.Object.metadata', index=4, 143 number=5, type=11, cpp_type=10, label=3, 144 has_default_value=False, default_value=[], 145 message_type=None, enum_type=None, containing_type=None, 146 is_extension=False, extension_scope=None, 147 options=None, file=DESCRIPTOR), 148 _descriptor.FieldDescriptor( 149 name='spec', full_name='coprocess.Object.spec', index=5, 150 number=6, type=11, cpp_type=10, label=3, 151 has_default_value=False, default_value=[], 152 message_type=None, enum_type=None, containing_type=None, 153 is_extension=False, extension_scope=None, 154 options=None, file=DESCRIPTOR), 155 ], 156 extensions=[ 157 ], 158 nested_types=[_OBJECT_METADATAENTRY, _OBJECT_SPECENTRY, ], 159 enum_types=[ 160 ], 161 options=None, 162 is_extendable=False, 163 syntax='proto3', 164 extension_ranges=[], 165 oneofs=[ 166 ], 167 serialized_start=130, 168 serialized_end=474, 169 ) 170 171 172 _EVENT = _descriptor.Descriptor( 173 name='Event', 174 full_name='coprocess.Event', 175 filename=None, 176 file=DESCRIPTOR, 177 containing_type=None, 178 fields=[ 179 _descriptor.FieldDescriptor( 180 name='payload', full_name='coprocess.Event.payload', index=0, 181 number=1, type=9, cpp_type=9, label=1, 182 has_default_value=False, default_value=_b("").decode('utf-8'), 183 message_type=None, enum_type=None, containing_type=None, 184 is_extension=False, extension_scope=None, 185 options=None, file=DESCRIPTOR), 186 ], 187 extensions=[ 188 ], 189 nested_types=[], 190 enum_types=[ 191 ], 192 options=None, 193 is_extendable=False, 194 syntax='proto3', 195 extension_ranges=[], 196 oneofs=[ 197 ], 198 serialized_start=476, 199 serialized_end=500, 200 ) 201 202 203 _EVENTREPLY = _descriptor.Descriptor( 204 name='EventReply', 205 full_name='coprocess.EventReply', 206 filename=None, 207 file=DESCRIPTOR, 208 containing_type=None, 209 fields=[ 210 ], 211 extensions=[ 212 ], 213 nested_types=[], 214 enum_types=[ 215 ], 216 options=None, 217 is_extendable=False, 218 syntax='proto3', 219 extension_ranges=[], 220 oneofs=[ 221 ], 222 serialized_start=502, 223 serialized_end=514, 224 ) 225 226 _OBJECT_METADATAENTRY.containing_type = _OBJECT 227 _OBJECT_SPECENTRY.containing_type = _OBJECT 228 _OBJECT.fields_by_name['hook_type'].enum_type = coprocess__common__pb2._HOOKTYPE 229 _OBJECT.fields_by_name['request'].message_type = coprocess__mini__request__object__pb2._MINIREQUESTOBJECT 230 _OBJECT.fields_by_name['session'].message_type = coprocess__session__state__pb2._SESSIONSTATE 231 _OBJECT.fields_by_name['metadata'].message_type = _OBJECT_METADATAENTRY 232 _OBJECT.fields_by_name['spec'].message_type = _OBJECT_SPECENTRY 233 DESCRIPTOR.message_types_by_name['Object'] = _OBJECT 234 DESCRIPTOR.message_types_by_name['Event'] = _EVENT 235 DESCRIPTOR.message_types_by_name['EventReply'] = _EVENTREPLY 236 _sym_db.RegisterFileDescriptor(DESCRIPTOR) 237 238 Object = _reflection.GeneratedProtocolMessageType('Object', (_message.Message,), dict( 239 240 MetadataEntry = _reflection.GeneratedProtocolMessageType('MetadataEntry', (_message.Message,), dict( 241 DESCRIPTOR = _OBJECT_METADATAENTRY, 242 __module__ = 'coprocess_object_pb2' 243 # @@protoc_insertion_point(class_scope:coprocess.Object.MetadataEntry) 244 )) 245 , 246 247 SpecEntry = _reflection.GeneratedProtocolMessageType('SpecEntry', (_message.Message,), dict( 248 DESCRIPTOR = _OBJECT_SPECENTRY, 249 __module__ = 'coprocess_object_pb2' 250 # @@protoc_insertion_point(class_scope:coprocess.Object.SpecEntry) 251 )) 252 , 253 DESCRIPTOR = _OBJECT, 254 __module__ = 'coprocess_object_pb2' 255 # @@protoc_insertion_point(class_scope:coprocess.Object) 256 )) 257 _sym_db.RegisterMessage(Object) 258 _sym_db.RegisterMessage(Object.MetadataEntry) 259 _sym_db.RegisterMessage(Object.SpecEntry) 260 261 Event = _reflection.GeneratedProtocolMessageType('Event', (_message.Message,), dict( 262 DESCRIPTOR = _EVENT, 263 __module__ = 'coprocess_object_pb2' 264 # @@protoc_insertion_point(class_scope:coprocess.Event) 265 )) 266 _sym_db.RegisterMessage(Event) 267 268 EventReply = _reflection.GeneratedProtocolMessageType('EventReply', (_message.Message,), dict( 269 DESCRIPTOR = _EVENTREPLY, 270 __module__ = 'coprocess_object_pb2' 271 # @@protoc_insertion_point(class_scope:coprocess.EventReply) 272 )) 273 _sym_db.RegisterMessage(EventReply) 274 275 276 _OBJECT_METADATAENTRY.has_options = True 277 _OBJECT_METADATAENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) 278 _OBJECT_SPECENTRY.has_options = True 279 _OBJECT_SPECENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) 280 281 _DISPATCHER = _descriptor.ServiceDescriptor( 282 name='Dispatcher', 283 full_name='coprocess.Dispatcher', 284 file=DESCRIPTOR, 285 index=0, 286 options=None, 287 serialized_start=516, 288 serialized_end=640, 289 methods=[ 290 _descriptor.MethodDescriptor( 291 name='Dispatch', 292 full_name='coprocess.Dispatcher.Dispatch', 293 index=0, 294 containing_service=None, 295 input_type=_OBJECT, 296 output_type=_OBJECT, 297 options=None, 298 ), 299 _descriptor.MethodDescriptor( 300 name='DispatchEvent', 301 full_name='coprocess.Dispatcher.DispatchEvent', 302 index=1, 303 containing_service=None, 304 input_type=_EVENT, 305 output_type=_EVENTREPLY, 306 options=None, 307 ), 308 ]) 309 _sym_db.RegisterServiceDescriptor(_DISPATCHER) 310 311 DESCRIPTOR.services_by_name['Dispatcher'] = _DISPATCHER 312 313 # @@protoc_insertion_point(module_scope)