public static enum Value.KindCase extends java.lang.Enum<Value.KindCase> implements com.google.protobuf.Internal.EnumLite
Enum Constant and Description |
---|
BOOL_VALUE |
KIND_NOT_SET |
LIST_VALUE |
NULL_VALUE |
NUMBER_VALUE |
STRING_VALUE |
STRUCT_VALUE |
Modifier and Type | Method and Description |
---|---|
static Value.KindCase |
forNumber(int value) |
int |
getNumber()
Retrieves the field number of the field which was set in this
oneof , or 0 if
none were. |
static Value.KindCase |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Value.KindCase |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Value.KindCase[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Value.KindCase NULL_VALUE
public static final Value.KindCase NUMBER_VALUE
public static final Value.KindCase STRING_VALUE
public static final Value.KindCase BOOL_VALUE
public static final Value.KindCase STRUCT_VALUE
public static final Value.KindCase LIST_VALUE
public static final Value.KindCase KIND_NOT_SET
public static Value.KindCase[] values()
for (Value.KindCase c : Value.KindCase.values()) System.out.println(c);
public static Value.KindCase valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null@Deprecated public static Value.KindCase valueOf(int value)
forNumber(int)
instead.value
- The number of the enum to look for.public static Value.KindCase forNumber(int value)
public int getNumber()
oneof
, or 0
if
none were.getNumber
in interface com.google.protobuf.Internal.EnumLite