Home
last modified time | relevance | path

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

/third_party/protobuf/python/google/protobuf/
Dservice_reflection.py159 def _WrapCallMethod(srvc, method_descriptor, argument
161 return self._CallMethod(srvc, method_descriptor,
172 def _CallMethod(self, srvc, method_descriptor, argument
183 if method_descriptor.containing_service != self.descriptor:
186 method = getattr(srvc, method_descriptor.name)
189 def _GetRequestClass(self, method_descriptor): argument
200 if method_descriptor.containing_service != self.descriptor:
203 return method_descriptor.input_type._concrete_class
205 def _GetResponseClass(self, method_descriptor): argument
216 if method_descriptor.containing_service != self.descriptor:
[all …]
Dservice.py65 def CallMethod(self, method_descriptor, rpc_controller, argument
95 def GetRequestClass(self, method_descriptor): argument
110 def GetResponseClass(self, method_descriptor): argument
219 def CallMethod(self, method_descriptor, rpc_controller, argument
/third_party/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[
/third_party/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()
/third_party/protobuf/python/google/protobuf/internal/
Ddescriptor_test.py158 method_descriptor = service_descriptor.FindMethodByName('Foo')
184 method_options = method_descriptor.GetOptions()
360 method_descriptor = service_descriptor.FindMethodByName("Method")
397 method_descriptor.GetOptions().Extensions[
920 method_descriptor = unittest_pb2.TestService.DESCRIPTOR.FindMethodByName(
923 method_descriptor,
/third_party/protobuf/src/google/protobuf/
Ddescriptor.cc97 const MethodDescriptor* method_descriptor; member
121 CONSTRUCTOR(MethodDescriptor, METHOD, method_descriptor) in CONSTRUCTOR()
142 return method_descriptor->service()->file(); in CONSTRUCTOR()
1477 return (result.type == Symbol::METHOD) ? result.method_descriptor : nullptr; in FindMethodByName()
1746 return result.method_descriptor; in FindMethodByName()
/third_party/python/Doc/whatsnew/
D2.4.rst953 :meth:`dict.__contains__` are now implemented as :class:`method_descriptor`