RpcClient class abstract
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.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
invoke<
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.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited