Advertisement
dkanavis

Untitled

Apr 23rd, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.68 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2. # Generated by the protocol buffer compiler.  DO NOT EDIT!
  3. # source: pilling/grpc/protos/echo.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.  
  17.  
  18. DESCRIPTOR = _descriptor.FileDescriptor(
  19.   name='pilling/grpc/protos/echo.proto',
  20.   package='',
  21.   syntax='proto2',
  22.   serialized_options=None,
  23.   serialized_pb=_b('\n\x1epilling/grpc/protos/echo.proto\"\x1b\n\x0b\x45\x63hoRequest\x12\x0c\n\x04\x64\x61ta\x18\x01 \x02(\t\"\x19\n\tEchoReply\x12\x0c\n\x04\x64\x61ta\x18\x01 \x02(\t2-\n\x04\x45\x63ho\x12%\n\x07GetEcho\x12\x0c.EchoRequest\x1a\n.EchoReply\"\x00')
  24. )
  25.  
  26.  
  27.  
  28.  
  29. _ECHOREQUEST = _descriptor.Descriptor(
  30.   name='EchoRequest',
  31.   full_name='EchoRequest',
  32.   filename=None,
  33.   file=DESCRIPTOR,
  34.   containing_type=None,
  35.   fields=[
  36.     _descriptor.FieldDescriptor(
  37.       name='data', full_name='EchoRequest.data', index=0,
  38.       number=1, type=9, cpp_type=9, label=2,
  39.       has_default_value=False, default_value=_b("").decode('utf-8'),
  40.       message_type=None, enum_type=None, containing_type=None,
  41.       is_extension=False, extension_scope=None,
  42.       serialized_options=None, file=DESCRIPTOR),
  43.   ],
  44.   extensions=[
  45.   ],
  46.   nested_types=[],
  47.   enum_types=[
  48.   ],
  49.   serialized_options=None,
  50.   is_extendable=False,
  51.   syntax='proto2',
  52.   extension_ranges=[],
  53.   oneofs=[
  54.   ],
  55.   serialized_start=34,
  56.   serialized_end=61,
  57. )
  58.  
  59.  
  60. _ECHOREPLY = _descriptor.Descriptor(
  61.   name='EchoReply',
  62.   full_name='EchoReply',
  63.   filename=None,
  64.   file=DESCRIPTOR,
  65.   containing_type=None,
  66.   fields=[
  67.     _descriptor.FieldDescriptor(
  68.       name='data', full_name='EchoReply.data', index=0,
  69.       number=1, type=9, cpp_type=9, label=2,
  70.       has_default_value=False, default_value=_b("").decode('utf-8'),
  71.       message_type=None, enum_type=None, containing_type=None,
  72.       is_extension=False, extension_scope=None,
  73.       serialized_options=None, file=DESCRIPTOR),
  74.   ],
  75.   extensions=[
  76.   ],
  77.   nested_types=[],
  78.   enum_types=[
  79.   ],
  80.   serialized_options=None,
  81.   is_extendable=False,
  82.   syntax='proto2',
  83.   extension_ranges=[],
  84.   oneofs=[
  85.   ],
  86.   serialized_start=63,
  87.   serialized_end=88,
  88. )
  89.  
  90. DESCRIPTOR.message_types_by_name['EchoRequest'] = _ECHOREQUEST
  91. DESCRIPTOR.message_types_by_name['EchoReply'] = _ECHOREPLY
  92. _sym_db.RegisterFileDescriptor(DESCRIPTOR)
  93.  
  94. EchoRequest = _reflection.GeneratedProtocolMessageType('EchoRequest', (_message.Message,), dict(
  95.   DESCRIPTOR = _ECHOREQUEST,
  96.   __module__ = 'pilling.grpc.protos.echo_pb2'
  97.   # @@protoc_insertion_point(class_scope:EchoRequest)
  98.   ))
  99. _sym_db.RegisterMessage(EchoRequest)
  100.  
  101. EchoReply = _reflection.GeneratedProtocolMessageType('EchoReply', (_message.Message,), dict(
  102.   DESCRIPTOR = _ECHOREPLY,
  103.   __module__ = 'pilling.grpc.protos.echo_pb2'
  104.   # @@protoc_insertion_point(class_scope:EchoReply)
  105.   ))
  106. _sym_db.RegisterMessage(EchoReply)
  107.  
  108.  
  109.  
  110. _ECHO = _descriptor.ServiceDescriptor(
  111.   name='Echo',
  112.   full_name='Echo',
  113.   file=DESCRIPTOR,
  114.   index=0,
  115.   serialized_options=None,
  116.   serialized_start=90,
  117.   serialized_end=135,
  118.   methods=[
  119.   _descriptor.MethodDescriptor(
  120.     name='GetEcho',
  121.     full_name='Echo.GetEcho',
  122.     index=0,
  123.     containing_service=None,
  124.     input_type=_ECHOREQUEST,
  125.     output_type=_ECHOREPLY,
  126.     serialized_options=None,
  127.   ),
  128. ])
  129. _sym_db.RegisterServiceDescriptor(_ECHO)
  130.  
  131. DESCRIPTOR.services_by_name['Echo'] = _ECHO
  132.  
  133. # @@protoc_insertion_point(module_scope)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement