Interface BaseMarshaller<T>
- All Known Subinterfaces:
EnumMarshaller<E>, MessageMarshaller<T>, ProtobufTagMarshaller<T>
public interface BaseMarshaller<T>
This is the base interface of the marshaller hierarchy, exposing common methods for identifying the Java and Protobuf
types handled by this marshaller instance. A marshaller handles a single type pair. The marshaller implementation
must be stateless and thread-safe.
- Since:
- 1.0
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturns the Java type handled by this marshaller.default String[]Returns any subclass namesReturns the full name of the message or enum type, defined in a proto file.
-
Field Details
-
EMPTY
-
-
Method Details
-
getJavaClass
-
getTypeName
String getTypeName()Returns the full name of the message or enum type, defined in a proto file. This must not change over multiple invocations.- Returns:
- the full name of the message or enum type, defined in a proto file.
-
getSubClassNames
Returns any subclass names
-