Package io.grpc
Interface MethodDescriptor.ReflectableMarshaller<T>
- All Superinterfaces:
MethodDescriptor.Marshaller<T>
- All Known Subinterfaces:
MethodDescriptor.PrototypeMarshaller<T>
- Enclosing class:
- MethodDescriptor<ReqT,
RespT>
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/2222")
public static interface MethodDescriptor.ReflectableMarshaller<T>
extends MethodDescriptor.Marshaller<T>
A marshaller that supports retrieving its type parameter
T at runtime.- Since:
- 1.1.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns theClassthat this marshaller serializes and deserializes.Methods inherited from interface io.grpc.MethodDescriptor.Marshaller
parse, stream
-
Method Details
-
getMessageClass
Returns theClassthat this marshaller serializes and deserializes. If inheritance is allowed, this is the base class or interface for all supported classes.- Returns:
- non-
nullbase class for all objects produced and consumed by this marshaller
-