Package hydra.ext.protobuf.proto3
Class EnumValue
- java.lang.Object
-
- hydra.ext.protobuf.proto3.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 Summary
Fields Modifier and Type Field Description static Name
FIELD_NAME_NAME
static Name
FIELD_NAME_NUMBER
static Name
FIELD_NAME_OPTIONS
EnumValueName
name
Enum value namejava.lang.Integer
number
Enum value numberjava.util.List<Option>
options
Protocol buffer optionsstatic Name
TYPE_NAME
-
Constructor Summary
Constructors Constructor Description EnumValue(EnumValueName name, java.lang.Integer number, java.util.List<Option> options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
int
hashCode()
EnumValue
withName(EnumValueName name)
EnumValue
withNumber(java.lang.Integer number)
EnumValue
withOptions(java.util.List<Option> options)
-
-
-
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
-
name
public final EnumValueName name
Enum value name
-
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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
withName
public EnumValue withName(EnumValueName name)
-
withNumber
public EnumValue withNumber(java.lang.Integer number)
-
-