class documentation

Callable RPC method for services.

Async Method __call__ Invoke underlying client with the given request.
Method __init__ Initialize the service call.
Instance Variable name Undocumented
Instance Variable req_type Undocumented
Instance Variable resp_type Undocumented
Instance Variable service Undocumented
Instance Variable service_client Undocumented
async def __call__(self, req: ServiceRequest, *, retry: bool = False, metadata: Mapping[str, str] = {}, timeout: Optional[timedelta] = None) -> ServiceResponse: (source)

Invoke underlying client with the given request.

Parameters
req:ServiceRequestRequest for the call.
retry:boolIf true, will use retry config to retry failed calls.
metadata:Mapping[str, str]Headers used on the RPC call. Keys here override client-level RPC metadata keys.
timeout:Optional[timedelta]Optional RPC deadline to set for the RPC call.
Returns
ServiceResponseRPC response.
Raises
RPCErrorAny RPC error that occurs during the call.
def __init__(self, service_client: ServiceClient, name: str, req_type: Type[ServiceRequest], resp_type: Type[ServiceResponse], service: str): (source)

Initialize the service call.

Undocumented

req_type = (source)

Undocumented

resp_type = (source)

Undocumented

Undocumented

service_client = (source)

Undocumented