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