public static enum UnittestLite.TestAllTypesLite.OneofFieldCase extends java.lang.Enum<UnittestLite.TestAllTypesLite.OneofFieldCase> implements com.google.protobuf.Internal.EnumLite
Enum Constant and Description |
---|
ONEOF_BYTES |
ONEOF_NESTED_MESSAGE |
ONEOF_STRING |
ONEOF_UINT32 |
ONEOFFIELD_NOT_SET |
Modifier and Type | Method and Description |
---|---|
int |
getNumber() |
static UnittestLite.TestAllTypesLite.OneofFieldCase |
valueOf(int value) |
static UnittestLite.TestAllTypesLite.OneofFieldCase |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static UnittestLite.TestAllTypesLite.OneofFieldCase[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnittestLite.TestAllTypesLite.OneofFieldCase ONEOF_UINT32
public static final UnittestLite.TestAllTypesLite.OneofFieldCase ONEOF_NESTED_MESSAGE
public static final UnittestLite.TestAllTypesLite.OneofFieldCase ONEOF_STRING
public static final UnittestLite.TestAllTypesLite.OneofFieldCase ONEOF_BYTES
public static final UnittestLite.TestAllTypesLite.OneofFieldCase ONEOFFIELD_NOT_SET
public static UnittestLite.TestAllTypesLite.OneofFieldCase[] values()
for (UnittestLite.TestAllTypesLite.OneofFieldCase c : UnittestLite.TestAllTypesLite.OneofFieldCase.values()) System.out.println(c);
public static UnittestLite.TestAllTypesLite.OneofFieldCase 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 nullpublic static UnittestLite.TestAllTypesLite.OneofFieldCase valueOf(int value)
public int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite