Package io.grpc

Interface MethodDescriptor.PrototypeMarshaller<T>

    • Method Detail

      • getMessagePrototype

        T getMessagePrototype()
        An instance of the expected message type, typically used as a schema and helper for producing other message instances. The 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.