Home
last modified time | relevance | path

Searched refs:method_descriptor (Results 1 – 18 of 18) sorted by relevance

/external/grpc-grpc/src/python/grpcio_testing/grpc_testing/_server/
D_server.py26 def _implementation(descriptors_to_servicers, method_descriptor): argument
27 servicer = descriptors_to_servicers[method_descriptor.containing_service]
28 return getattr(servicer, method_descriptor.name)
69 def _invoke(self, service_behavior, method_descriptor, handler, argument
72 method_descriptor)
86 def invoke_unary_unary(self, method_descriptor, handler, argument
89 _unary_unary_service(request), method_descriptor, handler,
92 def invoke_unary_stream(self, method_descriptor, handler, argument
95 _unary_stream_service(request), method_descriptor, handler,
98 def invoke_stream_unary(self, method_descriptor, handler, argument
[all …]
/external/protobuf/python/google/protobuf/
Dservice_reflection.py143 def _WrapCallMethod(srvc, method_descriptor, argument
145 return self._CallMethod(srvc, method_descriptor,
156 def _CallMethod(self, srvc, method_descriptor, argument
167 if method_descriptor.containing_service != self.descriptor:
170 method = getattr(srvc, method_descriptor.name)
173 def _GetRequestClass(self, method_descriptor): argument
184 if method_descriptor.containing_service != self.descriptor:
187 return method_descriptor.input_type._concrete_class
189 def _GetResponseClass(self, method_descriptor): argument
200 if method_descriptor.containing_service != self.descriptor:
[all …]
Dservice.py65 def CallMethod(self, method_descriptor, rpc_controller, argument
93 def GetRequestClass(self, method_descriptor): argument
108 def GetResponseClass(self, method_descriptor): argument
217 def CallMethod(self, method_descriptor, rpc_controller, argument
/external/grpc-grpc/src/python/grpcio_testing/grpc_testing/_channel/
D_channel.py74 def take_unary_unary(self, method_descriptor): argument
75 return _channel_rpc.unary_unary(self._state, method_descriptor)
77 def take_unary_stream(self, method_descriptor): argument
78 return _channel_rpc.unary_stream(self._state, method_descriptor)
80 def take_stream_unary(self, method_descriptor): argument
81 return _channel_rpc.stream_unary(self._state, method_descriptor)
83 def take_stream_stream(self, method_descriptor): argument
84 return _channel_rpc.stream_stream(self._state, method_descriptor)
D_channel_rpc.py98 def unary_unary(channel_state, method_descriptor): argument
99 rpc_state = channel_state.take_rpc_state(method_descriptor)
105 def unary_stream(channel_state, method_descriptor): argument
106 rpc_state = channel_state.take_rpc_state(method_descriptor)
112 def stream_unary(channel_state, method_descriptor): argument
113 rpc_state = channel_state.take_rpc_state(method_descriptor)
117 def stream_stream(channel_state, method_descriptor): argument
118 rpc_state = channel_state.take_rpc_state(method_descriptor)
D_channel_state.py37 def take_rpc_state(self, method_descriptor): argument
39 method_descriptor.containing_service.full_name,
40 method_descriptor.name)
/external/grpc-grpc/src/python/grpcio_testing/grpc_testing/
D_common.py42 for method_descriptor in service_descriptor.methods_by_name.values():
44 method_descriptor.name)
45 rpc_names_to_descriptors[rpc_name] = method_descriptor
145 def invoke_unary_unary(self, method_descriptor, handler, argument
150 def invoke_unary_stream(self, method_descriptor, handler, argument
155 def invoke_stream_unary(self, method_descriptor, handler, argument
160 def invoke_stream_stream(self, method_descriptor, handler, argument
D__init__.py220 def take_unary_unary(self, method_descriptor): argument
239 def take_unary_stream(self, method_descriptor): argument
258 def take_stream_unary(self, method_descriptor): argument
277 def take_stream_stream(self, method_descriptor): argument
498 def invoke_unary_unary(self, method_descriptor, invocation_metadata, argument
516 def invoke_unary_stream(self, method_descriptor, invocation_metadata, argument
534 def invoke_stream_unary(self, method_descriptor, invocation_metadata, argument
551 def invoke_stream_stream(self, method_descriptor, invocation_metadata, argument
/external/grpc-grpc/test/cpp/util/
Dproto_file_parser.cc137 const protobuf::MethodDescriptor* method_descriptor = nullptr; in GetFullMethodName() local
144 if (method_descriptor) { in GetFullMethodName()
147 error_stream << method_descriptor->full_name() << " "; in GetFullMethodName()
151 method_descriptor = method_desc; in GetFullMethodName()
155 if (!method_descriptor) { in GetFullMethodName()
162 known_methods_[method] = method_descriptor->full_name(); in GetFullMethodName()
164 return method_descriptor->full_name(); in GetFullMethodName()
/external/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/
Ddescriptor_test.py148 method_descriptor = service_descriptor.FindMethodByName("Foo")
171 method_options = method_descriptor.GetOptions()
329 method_descriptor = service_descriptor.FindMethodByName("Method")
366 method_descriptor.GetOptions().Extensions[
/external/pigweed/pw_rpc/py/pw_rpc/
Dcodegen.py92 method_descriptor: MethodGenerator) -> None:
147 method_descriptor(method, pw_rpc.ids.calculate(method.name()),
Ddescriptors.py66 Method.from_descriptor(method_descriptor, service)
67 for method_descriptor in descriptor.methods))
/external/protobuf/python/google/protobuf/pyext/
Ddescriptor.cc1692 const MethodDescriptor* method_descriptor = in FindMethodByName() local
1694 if (method_descriptor == NULL) { in FindMethodByName()
1699 return PyMethodDescriptor_FromDescriptor(method_descriptor); in FindMethodByName()
1780 namespace method_descriptor { namespace
1871 method_descriptor::Methods, // tp_methods
1873 method_descriptor::Getters, // tp_getset
1878 const MethodDescriptor* method_descriptor) { in PyMethodDescriptor_FromDescriptor() argument
1880 &PyMethodDescriptor_Type, method_descriptor, NULL); in PyMethodDescriptor_FromDescriptor()
Ddescriptor_pool.cc387 const MethodDescriptor* method_descriptor = in FindMethodByName() local
390 if (method_descriptor == NULL) { in FindMethodByName()
397 return PyMethodDescriptor_FromDescriptor(method_descriptor); in FindMethodByName()
/external/protobuf/python/google/protobuf/internal/
Ddescriptor_test.py154 method_descriptor = service_descriptor.FindMethodByName('Foo')
180 method_options = method_descriptor.GetOptions()
356 method_descriptor = service_descriptor.FindMethodByName("Method")
393 method_descriptor.GetOptions().Extensions[
908 method_descriptor = unittest_pb2.TestService.DESCRIPTOR.FindMethodByName(
911 method_descriptor,
/external/protobuf/src/google/protobuf/
Ddescriptor.cc99 const MethodDescriptor* method_descriptor; member
123 CONSTRUCTOR(MethodDescriptor, METHOD, method_descriptor) in CONSTRUCTOR()
144 return method_descriptor->service()->file(); in CONSTRUCTOR()
1485 return (result.type == Symbol::METHOD) ? result.method_descriptor : nullptr; in FindMethodByName()
1728 return result.method_descriptor; in FindMethodByName()
/external/python/cpython2/Doc/whatsnew/
D2.4.rst953 :meth:`dict.__contains__` are now implemented as :class:`method_descriptor`
/external/python/cpython3/Doc/whatsnew/
D2.4.rst953 :meth:`dict.__contains__` are now implemented as :class:`method_descriptor`