Class MessageContext<E extends MessageContext>

    • Constructor Detail

      • MessageContext

        public MessageContext​(E parentContext,
                              String fieldName,
                              Descriptor messageDescriptor)
    • Method Detail

      • getParentContext

        public E getParentContext()
      • getFieldName

        public String getFieldName()
        Gets the name of the nested field.
        Returns:
        the name of the nested field if any or null if this is the root context
      • getFullFieldName

        public String getFullFieldName()
      • getMessageDescriptor

        public Descriptor getMessageDescriptor()
      • isFieldMarked

        public boolean isFieldMarked​(int fieldNumber)
      • markField

        public boolean markField​(int fieldNumber)
        Mark a field as seen.
        Parameters:
        fieldNumber - the field number
        Returns:
        true if it was added, false if it was already there
      • getMaxSeenFieldNumber

        public int getMaxSeenFieldNumber()