Modifier and Type | Interface and Description |
---|---|
static interface |
MethodDescriptor.PrototypeMarshaller<T>
A marshaller that uses a fixed instance of the type it produces.
|
static interface |
MethodDescriptor.ReflectableMarshaller<T>
A marshaller that supports retrieving it's type parameter
T at runtime. |
Modifier and Type | Method and Description |
---|---|
MethodDescriptor.Marshaller<ReqT> |
MethodDescriptor.getRequestMarshaller()
Returns the marshaller for the request type.
|
MethodDescriptor.Marshaller<RespT> |
MethodDescriptor.getResponseMarshaller()
Returns the marshaller for the response type.
|
Modifier and Type | Method and Description |
---|---|
static <RequestT,ResponseT> |
MethodDescriptor.create(MethodDescriptor.MethodType type,
String fullMethodName,
MethodDescriptor.Marshaller<RequestT> requestMarshaller,
MethodDescriptor.Marshaller<ResponseT> responseMarshaller)
Deprecated.
|
static <RequestT,ResponseT> |
MethodDescriptor.create(MethodDescriptor.MethodType type,
String fullMethodName,
MethodDescriptor.Marshaller<RequestT> requestMarshaller,
MethodDescriptor.Marshaller<ResponseT> responseMarshaller)
Deprecated.
|
static <ReqT,RespT> |
MethodDescriptor.newBuilder(MethodDescriptor.Marshaller<ReqT> requestMarshaller,
MethodDescriptor.Marshaller<RespT> responseMarshaller)
Creates a new builder for a
MethodDescriptor . |
static <ReqT,RespT> |
MethodDescriptor.newBuilder(MethodDescriptor.Marshaller<ReqT> requestMarshaller,
MethodDescriptor.Marshaller<RespT> responseMarshaller)
Creates a new builder for a
MethodDescriptor . |
MethodDescriptor.Builder<ReqT,RespT> |
MethodDescriptor.Builder.setRequestMarshaller(MethodDescriptor.Marshaller<ReqT> requestMarshaller)
Sets the request marshaller.
|
MethodDescriptor.Builder<ReqT,RespT> |
MethodDescriptor.Builder.setResponseMarshaller(MethodDescriptor.Marshaller<RespT> responseMarshaller)
Sets the response marshaller.
|
<NewReqT,NewRespT> |
MethodDescriptor.toBuilder(MethodDescriptor.Marshaller<NewReqT> requestMarshaller,
MethodDescriptor.Marshaller<NewRespT> responseMarshaller)
Turns this descriptor into a builder, replacing the request and response marshallers.
|
<NewReqT,NewRespT> |
MethodDescriptor.toBuilder(MethodDescriptor.Marshaller<NewReqT> requestMarshaller,
MethodDescriptor.Marshaller<NewRespT> responseMarshaller)
Turns this descriptor into a builder, replacing the request and response marshallers.
|
static <T> ServerServiceDefinition |
ServerInterceptors.useMarshalledMessages(ServerServiceDefinition serviceDef,
MethodDescriptor.Marshaller<T> marshaller)
Create a new
ServerServiceDefinition whose MethodDescriptor serializes to
and from T for all methods. |