Uses of Interface
io.grpc.MethodDescriptor.Marshaller
-
Packages that use MethodDescriptor.Marshaller 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.services Service definitions and utilities with protobuf dependency for the pre-defined gRPC services. -
-
Uses of MethodDescriptor.Marshaller in io.grpc
Subinterfaces of MethodDescriptor.Marshaller in io.grpc Modifier and Type Interface 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 its type parameterT
at runtime.Fields in io.grpc declared as MethodDescriptor.Marshaller Modifier and Type Field Description private MethodDescriptor.Marshaller<ReqT>
MethodDescriptor.Builder. requestMarshaller
private MethodDescriptor.Marshaller<ReqT>
MethodDescriptor. requestMarshaller
private MethodDescriptor.Marshaller<RespT>
MethodDescriptor.Builder. responseMarshaller
private MethodDescriptor.Marshaller<RespT>
MethodDescriptor. responseMarshaller
Methods in io.grpc that return MethodDescriptor.Marshaller Modifier and Type Method 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.Methods in io.grpc with parameters of type MethodDescriptor.Marshaller Modifier and Type Method Description static <RequestT,ResponseT>
MethodDescriptor<RequestT,ResponseT>MethodDescriptor. create(MethodDescriptor.MethodType type, java.lang.String fullMethodName, MethodDescriptor.Marshaller<RequestT> requestMarshaller, MethodDescriptor.Marshaller<ResponseT> responseMarshaller)
Deprecated.static <ReqT,RespT>
MethodDescriptor.Builder<ReqT,RespT>MethodDescriptor. newBuilder(MethodDescriptor.Marshaller<ReqT> requestMarshaller, MethodDescriptor.Marshaller<RespT> responseMarshaller)
Creates a new builder for aMethodDescriptor
.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.Builder<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 <ReqT,RespT>
ServerServiceDefinitionServerInterceptors. useMarshalledMessages(ServerServiceDefinition serviceDef, MethodDescriptor.Marshaller<ReqT> requestMarshaller, MethodDescriptor.Marshaller<RespT> responseMarshaller)
Create a newServerServiceDefinition
withMethodDescriptor
for deserializing requests and separateMethodDescriptor
for serializing responses.static <T> ServerServiceDefinition
ServerInterceptors. useMarshalledMessages(ServerServiceDefinition serviceDef, MethodDescriptor.Marshaller<T> marshaller)
Create a newServerServiceDefinition
whoseMethodDescriptor
serializes to and from T for all methods.(package private) static <WReqT,WRespT>
ClientInterceptorClientInterceptors. wrapClientInterceptor(ClientInterceptor interceptor, MethodDescriptor.Marshaller<WReqT> reqMarshaller, MethodDescriptor.Marshaller<WRespT> respMarshaller)
Creates a new ClientInterceptor that transforms requests intoWReqT
and responses intoWRespT
before passing them into theinterceptor
.static <ReqT,RespT>
ClientInterceptorInternalClientInterceptors. wrapClientInterceptor(ClientInterceptor interceptor, MethodDescriptor.Marshaller<ReqT> reqMarshaller, MethodDescriptor.Marshaller<RespT> respMarshaller)
Constructors in io.grpc with parameters of type MethodDescriptor.Marshaller Constructor Description MethodDescriptor(MethodDescriptor.MethodType type, java.lang.String fullMethodName, MethodDescriptor.Marshaller<ReqT> requestMarshaller, MethodDescriptor.Marshaller<RespT> responseMarshaller, java.lang.Object schemaDescriptor, boolean idempotent, boolean safe, boolean sampledToLocalTracing)
-
Uses of MethodDescriptor.Marshaller in io.grpc.protobuf
Methods in io.grpc.protobuf that return MethodDescriptor.Marshaller Modifier and Type Method Description static <T extends com.google.protobuf.Message>
MethodDescriptor.Marshaller<T>ProtoUtils. marshaller(T defaultInstance)
Create aMethodDescriptor.Marshaller
for protos of the same type asdefaultInstance
.static <T extends com.google.protobuf.Message>
MethodDescriptor.Marshaller<T>ProtoUtils. marshallerWithRecursionLimit(T defaultInstance, int recursionLimit)
Creates aMethodDescriptor.Marshaller
for protos of the same type asdefaultInstance
and a custom limit for the recursion depth. -
Uses of MethodDescriptor.Marshaller in io.grpc.protobuf.lite
Classes in io.grpc.protobuf.lite that implement MethodDescriptor.Marshaller Modifier and Type Class Description private static class
ProtoLiteUtils.MessageMarshaller<T extends com.google.protobuf.MessageLite>
Methods in io.grpc.protobuf.lite that return MethodDescriptor.Marshaller Modifier and Type Method Description static <T extends com.google.protobuf.MessageLite>
MethodDescriptor.Marshaller<T>ProtoLiteUtils. marshaller(T defaultInstance)
Creates aMethodDescriptor.Marshaller
for protos of the same type asdefaultInstance
.static <T extends com.google.protobuf.MessageLite>
MethodDescriptor.Marshaller<T>ProtoLiteUtils. marshallerWithRecursionLimit(T defaultInstance, int recursionLimit)
Creates aMethodDescriptor.Marshaller
for protos of the same type asdefaultInstance
and a custom limit for the recursion depth. -
Uses of MethodDescriptor.Marshaller in io.grpc.protobuf.services
Classes in io.grpc.protobuf.services that implement MethodDescriptor.Marshaller Modifier and Type Class Description private static class
BinaryLogProvider.ByteArrayMarshaller
Fields in io.grpc.protobuf.services declared as MethodDescriptor.Marshaller Modifier and Type Field Description static MethodDescriptor.Marshaller<byte[]>
BinaryLogProvider. BYTEARRAY_MARSHALLER
Methods in io.grpc.protobuf.services with parameters of type MethodDescriptor.Marshaller Modifier and Type Method Description (package private) abstract <T> void
BinlogHelper.SinkWriter. logRpcMessage(long seq, GrpcLogEntry.EventType eventType, MethodDescriptor.Marshaller<T> marshaller, T message, GrpcLogEntry.Logger logger, long callId)
Logs the message message.(package private) <T> void
BinlogHelper.SinkWriterImpl. logRpcMessage(long seq, GrpcLogEntry.EventType eventType, MethodDescriptor.Marshaller<T> marshaller, T message, GrpcLogEntry.Logger logger, long callId)
-