Class Field

    • Constructor Detail

      • Field

        public Field​(FieldContainer parent)
        Create a field instance for given parent. If parent is an oneof, also set field as oneof field.
    • Method Detail

      • setParent

        public void setParent​(Message parent)
      • setModifier

        public void setModifier​(FieldModifier modifier)
      • hasModifier

        public boolean hasModifier()
      • getTypeName

        public String getTypeName()
      • setTypeName

        public void setTypeName​(String typeName)
      • getTag

        public int getTag()
      • setTag

        public void setTag​(int tag)
      • setType

        public void setType​(FieldType type)
      • getIndex

        public int getIndex()
        Field index in the container (order, starting from 1).
      • setIndex

        public void setIndex​(int index)
      • getOneof

        public Oneof getOneof()
      • setOneof

        public void setOneof​(Oneof oneof)
      • isOneofPart

        public boolean isOneofPart()
      • isRepeated

        public boolean isRepeated()
        Test if this field is `repeated`.
      • isMap

        public boolean isMap()
        Returns true if this message is generated by parser as a holder for a map entries.