public static enum Value.KindCase extends Enum<Value.KindCase> implements Internal.EnumLite, AbstractMessageLite.InternalOneOfEnum
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(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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- 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()
AbstractMessageLite.InternalOneOfEnum
oneof
, or 0
if
none were.getNumber
in interface AbstractMessageLite.InternalOneOfEnum
getNumber
in interface Internal.EnumLite
Copyright © 2008–2022. All rights reserved.