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
  • Method Details

    • metadata

      Description copied from interface: GrpcRequest

      Configures the gRPC request metadata to send in the request.

      Specified by:
      metadata in interface GrpcRequest<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

      default void value(A value)

      Sets the request message.

      Parameters:
      value - a request message
    • value

      void value(Mono<A> value)

      Sets the request message.

      Parameters:
      value - a request message mono