| Package | Description |
|---|---|
| io.grpc |
The gRPC core public API.
|
| io.grpc.protobuf |
API for gRPC over Protocol Buffers, including tools for serializing and de-serializing protobuf
messages.
|
| io.grpc.protobuf.lite |
API for gRPC over Protocol Buffers with proto message classes generated by the Lite Runtime
library.
|
| io.grpc.protobuf.nano |
API for gRPC over Protocol Buffers with proto message classes generated by the JavaNano compiler.
|
| 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. |
| Modifier and Type | Method and Description |
|---|---|
static <T extends com.google.protobuf.Message> |
ProtoUtils.jsonMarshaller(T defaultInstance)
Create a
Marshaller for json protos of the same type as defaultInstance. |
static <T extends com.google.protobuf.Message> |
ProtoUtils.jsonMarshaller(T defaultInstance,
com.google.protobuf.util.JsonFormat.Parser parser,
com.google.protobuf.util.JsonFormat.Printer printer)
Create a
Marshaller for json protos of the same type as defaultInstance. |
static <T extends com.google.protobuf.Message> |
ProtoUtils.marshaller(T defaultInstance)
Create a
Marshaller for protos of the same type as defaultInstance. |
| Modifier and Type | Method and Description |
|---|---|
static <T extends com.google.protobuf.MessageLite> |
ProtoLiteUtils.marshaller(T defaultInstance)
Create a
Marshaller for protos of the same type as defaultInstance. |
| Modifier and Type | Method and Description |
|---|---|
static <T extends com.google.protobuf.nano.MessageNano> |
NanoUtils.marshaller(MessageNanoFactory<T> factory)
Adapt
parser to a Marshaller. |