Client-side transport for making calls to a service.
Subclasses implement whatever serialization and networking is needed to make a call. They should serialize the request to binary or JSON as appropriate and merge the response into the supplied emptyResponse before returning it.
The protoc plugin generates a client-side stub for each service that takes an RpcClient as a constructor parameter.
T extends GeneratedMessage>( ClientContext ctx, String serviceName, String methodName, GeneratedMessage request, T emptyResponse) → Future< T>
- Sends a request to a server and returns the reply. [...]
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
) → String
A string representation of this object. [...]