Uses of Interface
io.grpc.MethodDescriptor.Marshaller
Packages that use MethodDescriptor.Marshaller
Package
Description
The gRPC core public API.
API for gRPC over Protocol Buffers, including tools for serializing and de-serializing protobuf
messages.
API for gRPC over Protocol Buffers with proto message classes generated by the Lite Runtime
library.
-
Uses of MethodDescriptor.Marshaller in io.grpc
Subinterfaces of MethodDescriptor.Marshaller in io.grpcModifier and TypeInterfaceDescriptionstatic interface
A marshaller that uses a fixed instance of the type it produces.static interface
A marshaller that supports retrieving its type parameterT
at runtime.Methods in io.grpc that return MethodDescriptor.MarshallerModifier and TypeMethodDescriptionMethodDescriptor.getRequestMarshaller()
Returns the marshaller for the request type.MethodDescriptor.getResponseMarshaller()
Returns the marshaller for the response type.Methods in io.grpc with parameters of type MethodDescriptor.MarshallerModifier and TypeMethodDescriptionstatic <RequestT,
ResponseT>
MethodDescriptor<RequestT, ResponseT> MethodDescriptor.create
(MethodDescriptor.MethodType type, 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.setRequestMarshaller
(MethodDescriptor.Marshaller<ReqT> requestMarshaller) Sets the request marshaller.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.static <ReqT,
RespT>
ClientInterceptorInternalClientInterceptors.wrapClientInterceptor
(ClientInterceptor interceptor, MethodDescriptor.Marshaller<ReqT> reqMarshaller, MethodDescriptor.Marshaller<RespT> respMarshaller) -
Uses of MethodDescriptor.Marshaller in io.grpc.protobuf
Methods in io.grpc.protobuf that return MethodDescriptor.MarshallerModifier and TypeMethodDescriptionstatic <T extends Message>
MethodDescriptor.Marshaller<T> ProtoUtils.marshaller
(T defaultInstance) Create aMethodDescriptor.Marshaller
for protos of the same type asdefaultInstance
.static <T extends 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
Methods in io.grpc.protobuf.lite that return MethodDescriptor.MarshallerModifier and TypeMethodDescriptionstatic <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.
MethodDescriptor.newBuilder()
.