Class EnumValue

  • All Implemented Interfaces:
    java.io.Serializable

    public class EnumValue
    extends java.lang.Object
    implements java.io.Serializable
    Enum value definition
    See Also:
    Serialized Form
    • Field Detail

      • TYPE_NAME

        public static final Name TYPE_NAME
      • FIELD_NAME_NAME

        public static final Name FIELD_NAME_NAME
      • FIELD_NAME_NUMBER

        public static final Name FIELD_NAME_NUMBER
      • FIELD_NAME_OPTIONS

        public static final Name FIELD_NAME_OPTIONS
      • number

        public final java.lang.Integer number
        Enum value number
      • options

        public final java.util.List<Option> options
        Protocol buffer options
    • Constructor Detail

      • EnumValue

        public EnumValue​(EnumValueName name,
                         java.lang.Integer number,
                         java.util.List<Option> options)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • withNumber

        public EnumValue withNumber​(java.lang.Integer number)
      • withOptions

        public EnumValue withOptions​(java.util.List<Option> options)