@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/2222") public static interface MethodDescriptor.PrototypeMarshaller<T> extends MethodDescriptor.ReflectableMarshaller<T>
Modifier and Type | Method and Description |
---|---|
T |
getMessagePrototype()
An instance of the expected message type, typically used as a schema and helper for producing
other message instances.
|
getMessageClass
parse, stream
@Nullable T getMessagePrototype()
null
value may be a special value for the marshaller
(like the equivalent of Void
), so it is a valid return value. null
does
not mean "unsupported" or "unknown".
It is generally expected this would return the same instance each invocation, but it is not a requirement.