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
    Modifier and Type
    Field
    Description
    static final String[]
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Class<? extends T>
    Returns the Java type handled by this marshaller.
    default String[]
    Returns any subclass names
    Returns the full name of the message or enum type, defined in a proto file.
  • Field Details

    • EMPTY

      static final String[] EMPTY
  • Method Details

    • getJavaClass

      Class<? extends T> getJavaClass()
      Returns the Java type handled by this marshaller. This must not change over multiple invocations.
      Returns:
      the Java type.
    • 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

      default String[] getSubClassNames()
      Returns any subclass names