Enum Class Value.KindCase
- All Implemented Interfaces:
AbstractMessageLite.InternalOneOfEnum, Serializable, Comparable<Value.KindCase>, Constable
- Enclosing class:
Value
public static enum Value.KindCase
extends Enum<Value.KindCase>
implements AbstractMessageLite.InternalOneOfEnum
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Value.KindCaseforNumber(int value) intRetrieves the field number of the field which was set in thisoneof, or0if none were.static Value.KindCasevalueOf(int value) Deprecated.static Value.KindCaseReturns the enum constant of this class with the specified name.static Value.KindCase[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NULL_VALUE
-
NUMBER_VALUE
-
STRING_VALUE
-
BOOL_VALUE
-
STRUCT_VALUE
-
LIST_VALUE
-
KIND_NOT_SET
-
-
Field Details
-
value
private final int value
-
-
Constructor Details
-
KindCase
private KindCase(int value)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
valueOf
Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
-
getNumber
public int getNumber()Description copied from interface:AbstractMessageLite.InternalOneOfEnumRetrieves the field number of the field which was set in thisoneof, or0if none were.- Specified by:
getNumberin interfaceAbstractMessageLite.InternalOneOfEnum
-