github.com/craicoverflow/tyk@v2.9.6-rc3+incompatible/coprocess/bindings/python/coprocess_object_pb2.py (about)

     1  # -*- coding: utf-8 -*-
     2  # Generated by the protocol buffer compiler.  DO NOT EDIT!
     3  # source: coprocess_object.proto
     4  
     5  import sys
     6  _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
     7  from google.protobuf import descriptor as _descriptor
     8  from google.protobuf import message as _message
     9  from google.protobuf import reflection as _reflection
    10  from google.protobuf import symbol_database as _symbol_database
    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_options=None,
    26    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')
    27    ,
    28    dependencies=[coprocess__mini__request__object__pb2.DESCRIPTOR,coprocess__session__state__pb2.DESCRIPTOR,coprocess__common__pb2.DESCRIPTOR,])
    29  
    30  
    31  
    32  
    33  _OBJECT_METADATAENTRY = _descriptor.Descriptor(
    34    name='MetadataEntry',
    35    full_name='coprocess.Object.MetadataEntry',
    36    filename=None,
    37    file=DESCRIPTOR,
    38    containing_type=None,
    39    fields=[
    40      _descriptor.FieldDescriptor(
    41        name='key', full_name='coprocess.Object.MetadataEntry.key', index=0,
    42        number=1, type=9, cpp_type=9, label=1,
    43        has_default_value=False, default_value=_b("").decode('utf-8'),
    44        message_type=None, enum_type=None, containing_type=None,
    45        is_extension=False, extension_scope=None,
    46        serialized_options=None, file=DESCRIPTOR),
    47      _descriptor.FieldDescriptor(
    48        name='value', full_name='coprocess.Object.MetadataEntry.value', index=1,
    49        number=2, type=9, cpp_type=9, label=1,
    50        has_default_value=False, default_value=_b("").decode('utf-8'),
    51        message_type=None, enum_type=None, containing_type=None,
    52        is_extension=False, extension_scope=None,
    53        serialized_options=None, file=DESCRIPTOR),
    54    ],
    55    extensions=[
    56    ],
    57    nested_types=[],
    58    enum_types=[
    59    ],
    60    serialized_options=_b('8\001'),
    61    is_extendable=False,
    62    syntax='proto3',
    63    extension_ranges=[],
    64    oneofs=[
    65    ],
    66    serialized_start=382,
    67    serialized_end=429,
    68  )
    69  
    70  _OBJECT_SPECENTRY = _descriptor.Descriptor(
    71    name='SpecEntry',
    72    full_name='coprocess.Object.SpecEntry',
    73    filename=None,
    74    file=DESCRIPTOR,
    75    containing_type=None,
    76    fields=[
    77      _descriptor.FieldDescriptor(
    78        name='key', full_name='coprocess.Object.SpecEntry.key', index=0,
    79        number=1, type=9, cpp_type=9, label=1,
    80        has_default_value=False, default_value=_b("").decode('utf-8'),
    81        message_type=None, enum_type=None, containing_type=None,
    82        is_extension=False, extension_scope=None,
    83        serialized_options=None, file=DESCRIPTOR),
    84      _descriptor.FieldDescriptor(
    85        name='value', full_name='coprocess.Object.SpecEntry.value', index=1,
    86        number=2, type=9, cpp_type=9, label=1,
    87        has_default_value=False, default_value=_b("").decode('utf-8'),
    88        message_type=None, enum_type=None, containing_type=None,
    89        is_extension=False, extension_scope=None,
    90        serialized_options=None, file=DESCRIPTOR),
    91    ],
    92    extensions=[
    93    ],
    94    nested_types=[],
    95    enum_types=[
    96    ],
    97    serialized_options=_b('8\001'),
    98    is_extendable=False,
    99    syntax='proto3',
   100    extension_ranges=[],
   101    oneofs=[
   102    ],
   103    serialized_start=431,
   104    serialized_end=474,
   105  )
   106  
   107  _OBJECT = _descriptor.Descriptor(
   108    name='Object',
   109    full_name='coprocess.Object',
   110    filename=None,
   111    file=DESCRIPTOR,
   112    containing_type=None,
   113    fields=[
   114      _descriptor.FieldDescriptor(
   115        name='hook_type', full_name='coprocess.Object.hook_type', index=0,
   116        number=1, type=14, cpp_type=8, label=1,
   117        has_default_value=False, default_value=0,
   118        message_type=None, enum_type=None, containing_type=None,
   119        is_extension=False, extension_scope=None,
   120        serialized_options=None, file=DESCRIPTOR),
   121      _descriptor.FieldDescriptor(
   122        name='hook_name', full_name='coprocess.Object.hook_name', index=1,
   123        number=2, type=9, cpp_type=9, label=1,
   124        has_default_value=False, default_value=_b("").decode('utf-8'),
   125        message_type=None, enum_type=None, containing_type=None,
   126        is_extension=False, extension_scope=None,
   127        serialized_options=None, file=DESCRIPTOR),
   128      _descriptor.FieldDescriptor(
   129        name='request', full_name='coprocess.Object.request', index=2,
   130        number=3, type=11, cpp_type=10, label=1,
   131        has_default_value=False, default_value=None,
   132        message_type=None, enum_type=None, containing_type=None,
   133        is_extension=False, extension_scope=None,
   134        serialized_options=None, file=DESCRIPTOR),
   135      _descriptor.FieldDescriptor(
   136        name='session', full_name='coprocess.Object.session', index=3,
   137        number=4, type=11, cpp_type=10, label=1,
   138        has_default_value=False, default_value=None,
   139        message_type=None, enum_type=None, containing_type=None,
   140        is_extension=False, extension_scope=None,
   141        serialized_options=None, file=DESCRIPTOR),
   142      _descriptor.FieldDescriptor(
   143        name='metadata', full_name='coprocess.Object.metadata', index=4,
   144        number=5, type=11, cpp_type=10, label=3,
   145        has_default_value=False, default_value=[],
   146        message_type=None, enum_type=None, containing_type=None,
   147        is_extension=False, extension_scope=None,
   148        serialized_options=None, file=DESCRIPTOR),
   149      _descriptor.FieldDescriptor(
   150        name='spec', full_name='coprocess.Object.spec', index=5,
   151        number=6, type=11, cpp_type=10, label=3,
   152        has_default_value=False, default_value=[],
   153        message_type=None, enum_type=None, containing_type=None,
   154        is_extension=False, extension_scope=None,
   155        serialized_options=None, file=DESCRIPTOR),
   156    ],
   157    extensions=[
   158    ],
   159    nested_types=[_OBJECT_METADATAENTRY, _OBJECT_SPECENTRY, ],
   160    enum_types=[
   161    ],
   162    serialized_options=None,
   163    is_extendable=False,
   164    syntax='proto3',
   165    extension_ranges=[],
   166    oneofs=[
   167    ],
   168    serialized_start=130,
   169    serialized_end=474,
   170  )
   171  
   172  
   173  _EVENT = _descriptor.Descriptor(
   174    name='Event',
   175    full_name='coprocess.Event',
   176    filename=None,
   177    file=DESCRIPTOR,
   178    containing_type=None,
   179    fields=[
   180      _descriptor.FieldDescriptor(
   181        name='payload', full_name='coprocess.Event.payload', index=0,
   182        number=1, type=9, cpp_type=9, label=1,
   183        has_default_value=False, default_value=_b("").decode('utf-8'),
   184        message_type=None, enum_type=None, containing_type=None,
   185        is_extension=False, extension_scope=None,
   186        serialized_options=None, file=DESCRIPTOR),
   187    ],
   188    extensions=[
   189    ],
   190    nested_types=[],
   191    enum_types=[
   192    ],
   193    serialized_options=None,
   194    is_extendable=False,
   195    syntax='proto3',
   196    extension_ranges=[],
   197    oneofs=[
   198    ],
   199    serialized_start=476,
   200    serialized_end=500,
   201  )
   202  
   203  
   204  _EVENTREPLY = _descriptor.Descriptor(
   205    name='EventReply',
   206    full_name='coprocess.EventReply',
   207    filename=None,
   208    file=DESCRIPTOR,
   209    containing_type=None,
   210    fields=[
   211    ],
   212    extensions=[
   213    ],
   214    nested_types=[],
   215    enum_types=[
   216    ],
   217    serialized_options=None,
   218    is_extendable=False,
   219    syntax='proto3',
   220    extension_ranges=[],
   221    oneofs=[
   222    ],
   223    serialized_start=502,
   224    serialized_end=514,
   225  )
   226  
   227  _OBJECT_METADATAENTRY.containing_type = _OBJECT
   228  _OBJECT_SPECENTRY.containing_type = _OBJECT
   229  _OBJECT.fields_by_name['hook_type'].enum_type = coprocess__common__pb2._HOOKTYPE
   230  _OBJECT.fields_by_name['request'].message_type = coprocess__mini__request__object__pb2._MINIREQUESTOBJECT
   231  _OBJECT.fields_by_name['session'].message_type = coprocess__session__state__pb2._SESSIONSTATE
   232  _OBJECT.fields_by_name['metadata'].message_type = _OBJECT_METADATAENTRY
   233  _OBJECT.fields_by_name['spec'].message_type = _OBJECT_SPECENTRY
   234  DESCRIPTOR.message_types_by_name['Object'] = _OBJECT
   235  DESCRIPTOR.message_types_by_name['Event'] = _EVENT
   236  DESCRIPTOR.message_types_by_name['EventReply'] = _EVENTREPLY
   237  _sym_db.RegisterFileDescriptor(DESCRIPTOR)
   238  
   239  Object = _reflection.GeneratedProtocolMessageType('Object', (_message.Message,), {
   240  
   241    'MetadataEntry' : _reflection.GeneratedProtocolMessageType('MetadataEntry', (_message.Message,), {
   242      'DESCRIPTOR' : _OBJECT_METADATAENTRY,
   243      '__module__' : 'coprocess_object_pb2'
   244      # @@protoc_insertion_point(class_scope:coprocess.Object.MetadataEntry)
   245      })
   246    ,
   247  
   248    'SpecEntry' : _reflection.GeneratedProtocolMessageType('SpecEntry', (_message.Message,), {
   249      'DESCRIPTOR' : _OBJECT_SPECENTRY,
   250      '__module__' : 'coprocess_object_pb2'
   251      # @@protoc_insertion_point(class_scope:coprocess.Object.SpecEntry)
   252      })
   253    ,
   254    'DESCRIPTOR' : _OBJECT,
   255    '__module__' : 'coprocess_object_pb2'
   256    # @@protoc_insertion_point(class_scope:coprocess.Object)
   257    })
   258  _sym_db.RegisterMessage(Object)
   259  _sym_db.RegisterMessage(Object.MetadataEntry)
   260  _sym_db.RegisterMessage(Object.SpecEntry)
   261  
   262  Event = _reflection.GeneratedProtocolMessageType('Event', (_message.Message,), {
   263    'DESCRIPTOR' : _EVENT,
   264    '__module__' : 'coprocess_object_pb2'
   265    # @@protoc_insertion_point(class_scope:coprocess.Event)
   266    })
   267  _sym_db.RegisterMessage(Event)
   268  
   269  EventReply = _reflection.GeneratedProtocolMessageType('EventReply', (_message.Message,), {
   270    'DESCRIPTOR' : _EVENTREPLY,
   271    '__module__' : 'coprocess_object_pb2'
   272    # @@protoc_insertion_point(class_scope:coprocess.EventReply)
   273    })
   274  _sym_db.RegisterMessage(EventReply)
   275  
   276  
   277  _OBJECT_METADATAENTRY._options = None
   278  _OBJECT_SPECENTRY._options = None
   279  
   280  _DISPATCHER = _descriptor.ServiceDescriptor(
   281    name='Dispatcher',
   282    full_name='coprocess.Dispatcher',
   283    file=DESCRIPTOR,
   284    index=0,
   285    serialized_options=None,
   286    serialized_start=516,
   287    serialized_end=640,
   288    methods=[
   289    _descriptor.MethodDescriptor(
   290      name='Dispatch',
   291      full_name='coprocess.Dispatcher.Dispatch',
   292      index=0,
   293      containing_service=None,
   294      input_type=_OBJECT,
   295      output_type=_OBJECT,
   296      serialized_options=None,
   297    ),
   298    _descriptor.MethodDescriptor(
   299      name='DispatchEvent',
   300      full_name='coprocess.Dispatcher.DispatchEvent',
   301      index=1,
   302      containing_service=None,
   303      input_type=_EVENT,
   304      output_type=_EVENTREPLY,
   305      serialized_options=None,
   306    ),
   307  ])
   308  _sym_db.RegisterServiceDescriptor(_DISPATCHER)
   309  
   310  DESCRIPTOR.services_by_name['Dispatcher'] = _DISPATCHER
   311  
   312  # @@protoc_insertion_point(module_scope)