Public Member Functions | |
def | CallMethod (self, method_descriptor, rpc_controller, request, response_class, done) |
def | CallMethod (self, method_descriptor, rpc_controller, request, response_class, done) |
Abstract interface for an RPC channel. An RpcChannel represents a communication line to a service which can be used to call that service's methods. The service may be running on another machine. Normally, you should not use an RpcChannel directly, but instead construct a stub {@link Service} wrapping it. Example: Example: RpcChannel channel = rpcImpl.Channel("remotehost.example.com:1234") RpcController controller = rpcImpl.Controller() MyService service = MyService_Stub(channel) service.MyMethod(controller, request, callback)
Definition at line 201 of file third_party/bloaty/third_party/protobuf/python/google/protobuf/service.py.
def google.protobuf.service.RpcChannel.CallMethod | ( | self, | |
method_descriptor, | |||
rpc_controller, | |||
request, | |||
response_class, | |||
done | |||
) |
Calls the method identified by the descriptor. Call the given method of the remote service. The signature of this procedure looks the same as Service.CallMethod(), but the requirements are less strict in one important way: the request object doesn't have to be of any specific class as long as its descriptor is method.input_type.
Definition at line 217 of file third_party/bloaty/third_party/protobuf/python/google/protobuf/service.py.
def google.protobuf.service.RpcChannel.CallMethod | ( | self, | |
method_descriptor, | |||
rpc_controller, | |||
request, | |||
response_class, | |||
done | |||
) |
Calls the method identified by the descriptor. Call the given method of the remote service. The signature of this procedure looks the same as Service.CallMethod(), but the requirements are less strict in one important way: the request object doesn't have to be of any specific class as long as its descriptor is method.input_type.
Definition at line 219 of file third_party/protobuf/python/google/protobuf/service.py.