Class StructuralMessageInfo

  • All Implemented Interfaces:
    MessageInfo

    @ExperimentalApi
    @CheckReturnValue
    final class StructuralMessageInfo
    extends java.lang.Object
    implements MessageInfo
    Information for the layout of a protobuf message class. This describes all of the fields contained within a message.
    • Field Detail

      • messageSetWireFormat

        private final boolean messageSetWireFormat
      • checkInitialized

        private final int[] checkInitialized
      • defaultInstance

        private final MessageLite defaultInstance
    • Constructor Detail

      • StructuralMessageInfo

        StructuralMessageInfo​(ProtoSyntax syntax,
                              boolean messageSetWireFormat,
                              int[] checkInitialized,
                              FieldInfo[] fields,
                              java.lang.Object defaultInstance)
        Constructor.
        Parameters:
        checkInitialized - fields to check in isInitialized().
        fields - the set of fields for the message, in field number order.
    • Method Detail

      • isMessageSetWireFormat

        public boolean isMessageSetWireFormat()
        Indicates whether or not the message should be represented with message set wire format.
        Specified by:
        isMessageSetWireFormat in interface MessageInfo
      • getCheckInitialized

        public int[] getCheckInitialized()
        An array of field numbers that need to be checked for isInitialized().
      • getFields

        public FieldInfo[] getFields()
        Gets the information for all fields within this message, sorted in ascending order by their field number.