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