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 Details

    • getMessageClass

      Class<T> getMessageClass()
      Returns the Class that this marshaller serializes and deserializes. If inheritance is allowed, this is the base class or interface for all supported classes.
      Returns:
      non-null base class for all objects produced and consumed by this marshaller