Class ClientMethodDescriptor
java.lang.Object
io.helidon.microprofile.grpc.client.ClientMethodDescriptor
Encapsulates all metadata necessary to define a gRPC method. In addition to wrapping a
MethodDescriptor,
this class also holds the request and response types of the gRPC method. A
ClientServiceDescriptor can contain zero or more MethodDescriptor.
An instance of ClientMethodDescriptor can be created either from an existing MethodDescriptor or
from one of the factory methods bidirectional(String, String), clientStreaming(String, String),
serverStreaming(String, String) or unary(String, String).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classMethodDescriptorbuilder implementation.static interfaceClientMethod configuration API. -
Method Summary
Modifier and TypeMethodDescriptionio.grpc.CallCredentialsReturn theCallCredentialsset on this service.<ReqT,RespT>
io.grpc.MethodDescriptor<ReqT, RespT> Returns theMethodDescriptorof this method.MethodHandler<?, ?> Obtain theMethodHandlerto use to make client calls.name()Returns the simple name of the method.
-
Method Details
-
callCredentials
public io.grpc.CallCredentials callCredentials()Return theCallCredentialsset on this service.- Returns:
- the
CallCredentialsset on this service
-
name
Returns the simple name of the method.- Returns:
- The simple name of the method.
-
descriptor
public <ReqT,RespT> io.grpc.MethodDescriptor<ReqT,RespT> descriptor()Returns theMethodDescriptorof this method.- Type Parameters:
ReqT- the request typeRespT- the response type- Returns:
- The
MethodDescriptorof this method.
-
methodHandler
Obtain theMethodHandlerto use to make client calls.- Returns:
- the
MethodHandlerto use to make client calls
-