public static enum UnittestProto.TestOneof.FooCase extends java.lang.Enum<UnittestProto.TestOneof.FooCase> implements com.google.protobuf.Internal.EnumLite
| Enum Constant and Description |
|---|
FOO_INT |
FOO_MESSAGE |
FOO_NOT_SET |
FOO_STRING |
FOOGROUP |
| Modifier and Type | Method and Description |
|---|---|
int |
getNumber() |
static UnittestProto.TestOneof.FooCase |
valueOf(int value) |
static UnittestProto.TestOneof.FooCase |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static UnittestProto.TestOneof.FooCase[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnittestProto.TestOneof.FooCase FOO_INT
public static final UnittestProto.TestOneof.FooCase FOO_STRING
public static final UnittestProto.TestOneof.FooCase FOO_MESSAGE
public static final UnittestProto.TestOneof.FooCase FOOGROUP
public static final UnittestProto.TestOneof.FooCase FOO_NOT_SET
public static UnittestProto.TestOneof.FooCase[] values()
for (UnittestProto.TestOneof.FooCase c : UnittestProto.TestOneof.FooCase.values()) System.out.println(c);
public static UnittestProto.TestOneof.FooCase 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.TestOneof.FooCase valueOf(int value)
public int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLite