11 _sym_db = _symbol_database.Default()
16 DESCRIPTOR = _descriptor.FileDescriptor(
18 package=
'grpc.testing',
20 serialized_options=
None,
21 serialized_pb=b
'\n\x0bphone.proto\x12\x0cgrpc.testing\"-\n\x08\x43\x61llInfo\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\r\n\x05media\x18\x02 \x01(\t\"q\n\tCallState\x12,\n\x05state\x18\x02 \x01(\x0e\x32\x1d.grpc.testing.CallState.State\"6\n\x05State\x12\r\n\tUNDEFINED\x10\x00\x12\x07\n\x03NEW\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x06\x12\t\n\x05\x45NDED\x10\x07\")\n\x11StreamCallRequest\x12\x14\n\x0cphone_number\x18\x01 \x01(\t\"\x88\x01\n\x12StreamCallResponse\x12+\n\tcall_info\x18\x01 \x01(\x0b\x32\x16.grpc.testing.CallInfoH\x00\x12-\n\ncall_state\x18\x02 \x01(\x0b\x32\x17.grpc.testing.CallStateH\x00\x42\x16\n\x14stream_call_response2\\\n\x05Phone\x12S\n\nStreamCall\x12\x1f.grpc.testing.StreamCallRequest\x1a .grpc.testing.StreamCallResponse(\x01\x30\x01\x62\x06proto3'
26 _CALLSTATE_STATE = _descriptor.EnumDescriptor(
28 full_name=
'grpc.testing.CallState.State',
32 _descriptor.EnumValueDescriptor(
33 name=
'UNDEFINED', index=0, number=0,
34 serialized_options=
None,
36 _descriptor.EnumValueDescriptor(
37 name=
'NEW', index=1, number=1,
38 serialized_options=
None,
40 _descriptor.EnumValueDescriptor(
41 name=
'ACTIVE', index=2, number=6,
42 serialized_options=
None,
44 _descriptor.EnumValueDescriptor(
45 name=
'ENDED', index=3, number=7,
46 serialized_options=
None,
50 serialized_options=
None,
54 _sym_db.RegisterEnumDescriptor(_CALLSTATE_STATE)
57 _CALLINFO = _descriptor.Descriptor(
59 full_name=
'grpc.testing.CallInfo',
64 _descriptor.FieldDescriptor(
65 name=
'session_id', full_name=
'grpc.testing.CallInfo.session_id', index=0,
66 number=1, type=9, cpp_type=9, label=1,
67 has_default_value=
False, default_value=b
"".
decode(
'utf-8'),
68 message_type=
None, enum_type=
None, containing_type=
None,
69 is_extension=
False, extension_scope=
None,
70 serialized_options=
None, file=DESCRIPTOR),
71 _descriptor.FieldDescriptor(
72 name=
'media', full_name=
'grpc.testing.CallInfo.media', index=1,
73 number=2, type=9, cpp_type=9, label=1,
74 has_default_value=
False, default_value=b
"".
decode(
'utf-8'),
75 message_type=
None, enum_type=
None, containing_type=
None,
76 is_extension=
False, extension_scope=
None,
77 serialized_options=
None, file=DESCRIPTOR),
84 serialized_options=
None,
95 _CALLSTATE = _descriptor.Descriptor(
97 full_name=
'grpc.testing.CallState',
100 containing_type=
None,
102 _descriptor.FieldDescriptor(
103 name=
'state', full_name=
'grpc.testing.CallState.state', index=0,
104 number=2, type=14, cpp_type=8, label=1,
105 has_default_value=
False, default_value=0,
106 message_type=
None, enum_type=
None, containing_type=
None,
107 is_extension=
False, extension_scope=
None,
108 serialized_options=
None, file=DESCRIPTOR),
116 serialized_options=
None,
127 _STREAMCALLREQUEST = _descriptor.Descriptor(
128 name=
'StreamCallRequest',
129 full_name=
'grpc.testing.StreamCallRequest',
132 containing_type=
None,
134 _descriptor.FieldDescriptor(
135 name=
'phone_number', full_name=
'grpc.testing.StreamCallRequest.phone_number', index=0,
136 number=1, type=9, cpp_type=9, label=1,
137 has_default_value=
False, default_value=b
"".
decode(
'utf-8'),
138 message_type=
None, enum_type=
None, containing_type=
None,
139 is_extension=
False, extension_scope=
None,
140 serialized_options=
None, file=DESCRIPTOR),
147 serialized_options=
None,
153 serialized_start=191,
158 _STREAMCALLRESPONSE = _descriptor.Descriptor(
159 name=
'StreamCallResponse',
160 full_name=
'grpc.testing.StreamCallResponse',
163 containing_type=
None,
165 _descriptor.FieldDescriptor(
166 name=
'call_info', full_name=
'grpc.testing.StreamCallResponse.call_info', index=0,
167 number=1, type=11, cpp_type=10, label=1,
168 has_default_value=
False, default_value=
None,
169 message_type=
None, enum_type=
None, containing_type=
None,
170 is_extension=
False, extension_scope=
None,
171 serialized_options=
None, file=DESCRIPTOR),
172 _descriptor.FieldDescriptor(
173 name=
'call_state', full_name=
'grpc.testing.StreamCallResponse.call_state', index=1,
174 number=2, type=11, cpp_type=10, label=1,
175 has_default_value=
False, default_value=
None,
176 message_type=
None, enum_type=
None, containing_type=
None,
177 is_extension=
False, extension_scope=
None,
178 serialized_options=
None, file=DESCRIPTOR),
185 serialized_options=
None,
190 _descriptor.OneofDescriptor(
191 name=
'stream_call_response', full_name=
'grpc.testing.StreamCallResponse.stream_call_response',
192 index=0, containing_type=
None, fields=[]),
194 serialized_start=235,
198 _CALLSTATE.fields_by_name[
'state'].enum_type = _CALLSTATE_STATE
199 _CALLSTATE_STATE.containing_type = _CALLSTATE
200 _STREAMCALLRESPONSE.fields_by_name[
'call_info'].message_type = _CALLINFO
201 _STREAMCALLRESPONSE.fields_by_name[
'call_state'].message_type = _CALLSTATE
202 _STREAMCALLRESPONSE.oneofs_by_name[
'stream_call_response'].fields.append(
203 _STREAMCALLRESPONSE.fields_by_name[
'call_info'])
204 _STREAMCALLRESPONSE.fields_by_name[
'call_info'].containing_oneof = _STREAMCALLRESPONSE.oneofs_by_name[
'stream_call_response']
205 _STREAMCALLRESPONSE.oneofs_by_name[
'stream_call_response'].fields.append(
206 _STREAMCALLRESPONSE.fields_by_name[
'call_state'])
207 _STREAMCALLRESPONSE.fields_by_name[
'call_state'].containing_oneof = _STREAMCALLRESPONSE.oneofs_by_name[
'stream_call_response']
208 DESCRIPTOR.message_types_by_name[
'CallInfo'] = _CALLINFO
209 DESCRIPTOR.message_types_by_name[
'CallState'] = _CALLSTATE
210 DESCRIPTOR.message_types_by_name[
'StreamCallRequest'] = _STREAMCALLREQUEST
211 DESCRIPTOR.message_types_by_name[
'StreamCallResponse'] = _STREAMCALLRESPONSE
212 _sym_db.RegisterFileDescriptor(DESCRIPTOR)
214 CallInfo = _reflection.GeneratedProtocolMessageType(
'CallInfo', (_message.Message,), {
215 'DESCRIPTOR' : _CALLINFO,
216 '__module__' :
'phone_pb2'
219 _sym_db.RegisterMessage(CallInfo)
221 CallState = _reflection.GeneratedProtocolMessageType(
'CallState', (_message.Message,), {
222 'DESCRIPTOR' : _CALLSTATE,
223 '__module__' :
'phone_pb2'
226 _sym_db.RegisterMessage(CallState)
228 StreamCallRequest = _reflection.GeneratedProtocolMessageType(
'StreamCallRequest', (_message.Message,), {
229 'DESCRIPTOR' : _STREAMCALLREQUEST,
230 '__module__' :
'phone_pb2'
233 _sym_db.RegisterMessage(StreamCallRequest)
235 StreamCallResponse = _reflection.GeneratedProtocolMessageType(
'StreamCallResponse', (_message.Message,), {
236 'DESCRIPTOR' : _STREAMCALLRESPONSE,
237 '__module__' :
'phone_pb2'
240 _sym_db.RegisterMessage(StreamCallResponse)
244 _PHONE = _descriptor.ServiceDescriptor(
246 full_name=
'grpc.testing.Phone',
249 serialized_options=
None,
250 serialized_start=373,
253 _descriptor.MethodDescriptor(
255 full_name=
'grpc.testing.Phone.StreamCall',
257 containing_service=
None,
258 input_type=_STREAMCALLREQUEST,
259 output_type=_STREAMCALLRESPONSE,
260 serialized_options=
None,
263 _sym_db.RegisterServiceDescriptor(_PHONE)
265 DESCRIPTOR.services_by_name[
'Phone'] = _PHONE