Public Member Functions | List of all members
google.protobuf.service.RpcChannel Class Reference
Inheritance diagram for google.protobuf.service.RpcChannel:
Inheritance graph
[legend]

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)
 

Detailed Description

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.

Member Function Documentation

◆ CallMethod() [1/2]

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.

◆ CallMethod() [2/2]

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.


The documentation for this class was generated from the following file:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:28