Interface UnknownFieldSetHandler<T>


@Deprecated public interface UnknownFieldSetHandler<T>
Deprecated.
since 4.3.1. This will be removed together with MessageMarshaller
An interface to be implemented by marshaller objects of type MessageMarshaller) that are able to handle unknown fields by storing them into an UnknownFieldSet. ProtobufTagMarshallers are expected to handle unknown fields manually and cannot benefit from automatic handling by implementing this interface.
Since:
3.0
Author:
[email protected]
  • Method Details

    • getUnknownFieldSet

      UnknownFieldSet getUnknownFieldSet(T message)
      Deprecated.
      Extract the UnknownFieldSet that was previously attached to a message during unmarshalling.
      Returns:
      the UnknownFieldSet or null
    • setUnknownFieldSet

      void setUnknownFieldSet(T message, UnknownFieldSet unknownFieldSet)
      Deprecated.
      Attach a non-empty UnknownFieldSet to a message that was newly unmarshalled.