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