Module io.inverno.mod.grpc.client
Package io.inverno.mod.grpc.client
Interface GrpcRequest.Unary<A extends com.google.protobuf.Message>
- Type Parameters:
A- The request message type
- All Superinterfaces:
GrpcBaseRequest,GrpcRequest<A>
- Enclosing interface:
GrpcRequest<A extends com.google.protobuf.Message>
public static interface GrpcRequest.Unary<A extends com.google.protobuf.Message>
extends GrpcRequest<A>
Represents a unary (single message) request.
- Since:
- 1.9
- Author:
- Jeremy Kuhn
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.inverno.mod.grpc.client.GrpcRequest
GrpcRequest.Streaming<A extends com.google.protobuf.Message>, GrpcRequest.Unary<A extends com.google.protobuf.Message> -
Method Summary
Modifier and TypeMethodDescriptionmetadata(Consumer<GrpcOutboundRequestMetadata> metadataConfigurer) Configures the gRPC request metadata to send in the request.default voidSets the request message.voidSets the request message.Methods inherited from interface io.inverno.mod.grpc.base.GrpcBaseRequest
getFullMethodName, getMethodName, getServiceName, metadata
-
Method Details
-
metadata
GrpcRequest.Unary<A> metadata(Consumer<GrpcOutboundRequestMetadata> metadataConfigurer) throws IllegalStateException Description copied from interface:GrpcRequestConfigures the gRPC request metadata to send in the request.
- Specified by:
metadatain interfaceGrpcRequest<A extends com.google.protobuf.Message>- Parameters:
metadataConfigurer- an outbound request metadata configurer- Returns:
- the request
- Throws:
IllegalStateException- if the request has already been sent to the endpoint
-
value
Sets the request message.
- Parameters:
value- a request message
-
value
Sets the request message.
- Parameters:
value- a request message mono
-