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