mirror of https://github.com/grpc/grpc.git
The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)
https://grpc.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
175 lines
5.3 KiB
175 lines
5.3 KiB
5 years ago
|
# -*- coding: utf-8 -*-
|
||
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||
|
# source: demo.proto
|
||
|
|
||
|
import sys
|
||
|
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||
|
from google.protobuf import descriptor as _descriptor
|
||
|
from google.protobuf import message as _message
|
||
|
from google.protobuf import reflection as _reflection
|
||
|
from google.protobuf import symbol_database as _symbol_database
|
||
|
# @@protoc_insertion_point(imports)
|
||
|
|
||
|
_sym_db = _symbol_database.Default()
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
DESCRIPTOR = _descriptor.FileDescriptor(
|
||
|
name='demo.proto',
|
||
|
package='demo',
|
||
|
syntax='proto3',
|
||
|
serialized_options=None,
|
||
5 years ago
|
serialized_pb=_b('\n\ndemo.proto\x12\x04\x64\x65mo\"2\n\x07Request\x12\x11\n\tclient_id\x18\x01 \x01(\x03\x12\x14\n\x0crequest_data\x18\x02 \x01(\t\"4\n\x08Response\x12\x11\n\tserver_id\x18\x01 \x01(\x03\x12\x15\n\rresponse_data\x18\x02 \x01(\t2\xf0\x01\n\x08GRPCDemo\x12-\n\x0cSimpleMethod\x12\r.demo.Request\x1a\x0e.demo.Response\x12\x38\n\x15\x43lientStreamingMethod\x12\r.demo.Request\x1a\x0e.demo.Response(\x01\x12\x38\n\x15ServerStreamingMethod\x12\r.demo.Request\x1a\x0e.demo.Response0\x01\x12\x41\n\x1c\x42idirectionalStreamingMethod\x12\r.demo.Request\x1a\x0e.demo.Response(\x01\x30\x01\x62\x06proto3')
|
||
5 years ago
|
)
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
_REQUEST = _descriptor.Descriptor(
|
||
|
name='Request',
|
||
|
full_name='demo.Request',
|
||
|
filename=None,
|
||
|
file=DESCRIPTOR,
|
||
|
containing_type=None,
|
||
|
fields=[
|
||
|
_descriptor.FieldDescriptor(
|
||
5 years ago
|
name='client_id', full_name='demo.Request.client_id', index=0,
|
||
5 years ago
|
number=1, type=3, cpp_type=2, label=1,
|
||
|
has_default_value=False, default_value=0,
|
||
|
message_type=None, enum_type=None, containing_type=None,
|
||
|
is_extension=False, extension_scope=None,
|
||
|
serialized_options=None, file=DESCRIPTOR),
|
||
|
_descriptor.FieldDescriptor(
|
||
5 years ago
|
name='request_data', full_name='demo.Request.request_data', index=1,
|
||
5 years ago
|
number=2, type=9, cpp_type=9, label=1,
|
||
|
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||
|
message_type=None, enum_type=None, containing_type=None,
|
||
|
is_extension=False, extension_scope=None,
|
||
|
serialized_options=None, file=DESCRIPTOR),
|
||
|
],
|
||
|
extensions=[
|
||
|
],
|
||
|
nested_types=[],
|
||
|
enum_types=[
|
||
|
],
|
||
|
serialized_options=None,
|
||
|
is_extendable=False,
|
||
|
syntax='proto3',
|
||
|
extension_ranges=[],
|
||
|
oneofs=[
|
||
|
],
|
||
|
serialized_start=20,
|
||
5 years ago
|
serialized_end=70,
|
||
5 years ago
|
)
|
||
|
|
||
|
|
||
|
_RESPONSE = _descriptor.Descriptor(
|
||
|
name='Response',
|
||
|
full_name='demo.Response',
|
||
|
filename=None,
|
||
|
file=DESCRIPTOR,
|
||
|
containing_type=None,
|
||
|
fields=[
|
||
|
_descriptor.FieldDescriptor(
|
||
5 years ago
|
name='server_id', full_name='demo.Response.server_id', index=0,
|
||
5 years ago
|
number=1, type=3, cpp_type=2, label=1,
|
||
|
has_default_value=False, default_value=0,
|
||
|
message_type=None, enum_type=None, containing_type=None,
|
||
|
is_extension=False, extension_scope=None,
|
||
|
serialized_options=None, file=DESCRIPTOR),
|
||
|
_descriptor.FieldDescriptor(
|
||
5 years ago
|
name='response_data', full_name='demo.Response.response_data', index=1,
|
||
5 years ago
|
number=2, type=9, cpp_type=9, label=1,
|
||
|
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||
|
message_type=None, enum_type=None, containing_type=None,
|
||
|
is_extension=False, extension_scope=None,
|
||
|
serialized_options=None, file=DESCRIPTOR),
|
||
|
],
|
||
|
extensions=[
|
||
|
],
|
||
|
nested_types=[],
|
||
|
enum_types=[
|
||
|
],
|
||
|
serialized_options=None,
|
||
|
is_extendable=False,
|
||
|
syntax='proto3',
|
||
|
extension_ranges=[],
|
||
|
oneofs=[
|
||
|
],
|
||
5 years ago
|
serialized_start=72,
|
||
|
serialized_end=124,
|
||
5 years ago
|
)
|
||
|
|
||
|
DESCRIPTOR.message_types_by_name['Request'] = _REQUEST
|
||
|
DESCRIPTOR.message_types_by_name['Response'] = _RESPONSE
|
||
|
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||
|
|
||
|
Request = _reflection.GeneratedProtocolMessageType('Request', (_message.Message,), {
|
||
|
'DESCRIPTOR' : _REQUEST,
|
||
|
'__module__' : 'demo_pb2'
|
||
|
# @@protoc_insertion_point(class_scope:demo.Request)
|
||
|
})
|
||
|
_sym_db.RegisterMessage(Request)
|
||
|
|
||
|
Response = _reflection.GeneratedProtocolMessageType('Response', (_message.Message,), {
|
||
|
'DESCRIPTOR' : _RESPONSE,
|
||
|
'__module__' : 'demo_pb2'
|
||
|
# @@protoc_insertion_point(class_scope:demo.Response)
|
||
|
})
|
||
|
_sym_db.RegisterMessage(Response)
|
||
|
|
||
|
|
||
|
|
||
|
_GRPCDEMO = _descriptor.ServiceDescriptor(
|
||
|
name='GRPCDemo',
|
||
|
full_name='demo.GRPCDemo',
|
||
|
file=DESCRIPTOR,
|
||
|
index=0,
|
||
|
serialized_options=None,
|
||
5 years ago
|
serialized_start=127,
|
||
|
serialized_end=367,
|
||
5 years ago
|
methods=[
|
||
|
_descriptor.MethodDescriptor(
|
||
|
name='SimpleMethod',
|
||
|
full_name='demo.GRPCDemo.SimpleMethod',
|
||
|
index=0,
|
||
|
containing_service=None,
|
||
|
input_type=_REQUEST,
|
||
|
output_type=_RESPONSE,
|
||
|
serialized_options=None,
|
||
|
),
|
||
|
_descriptor.MethodDescriptor(
|
||
5 years ago
|
name='ClientStreamingMethod',
|
||
|
full_name='demo.GRPCDemo.ClientStreamingMethod',
|
||
5 years ago
|
index=1,
|
||
|
containing_service=None,
|
||
|
input_type=_REQUEST,
|
||
|
output_type=_RESPONSE,
|
||
|
serialized_options=None,
|
||
|
),
|
||
|
_descriptor.MethodDescriptor(
|
||
5 years ago
|
name='ServerStreamingMethod',
|
||
|
full_name='demo.GRPCDemo.ServerStreamingMethod',
|
||
5 years ago
|
index=2,
|
||
|
containing_service=None,
|
||
|
input_type=_REQUEST,
|
||
|
output_type=_RESPONSE,
|
||
|
serialized_options=None,
|
||
|
),
|
||
|
_descriptor.MethodDescriptor(
|
||
5 years ago
|
name='BidirectionalStreamingMethod',
|
||
|
full_name='demo.GRPCDemo.BidirectionalStreamingMethod',
|
||
5 years ago
|
index=3,
|
||
|
containing_service=None,
|
||
|
input_type=_REQUEST,
|
||
|
output_type=_RESPONSE,
|
||
|
serialized_options=None,
|
||
|
),
|
||
|
])
|
||
|
_sym_db.RegisterServiceDescriptor(_GRPCDEMO)
|
||
|
|
||
|
DESCRIPTOR.services_by_name['GRPCDemo'] = _GRPCDEMO
|
||
|
|
||
|
# @@protoc_insertion_point(module_scope)
|