public static enum OneofTest.TestOneofCase extends Enum<OneofTest.TestOneofCase> implements com.google.protobuf.Internal.EnumLite
| Enum Constant and Description |
|---|
A |
B |
TESTONEOF_NOT_SET |
| Modifier and Type | Method and Description |
|---|---|
static OneofTest.TestOneofCase |
forNumber(int value) |
int |
getNumber() |
static OneofTest.TestOneofCase |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static OneofTest.TestOneofCase |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OneofTest.TestOneofCase[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OneofTest.TestOneofCase A
public static final OneofTest.TestOneofCase B
public static final OneofTest.TestOneofCase TESTONEOF_NOT_SET
public static OneofTest.TestOneofCase[] values()
for (OneofTest.TestOneofCase c : OneofTest.TestOneofCase.values()) System.out.println(c);
public static OneofTest.TestOneofCase valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null@Deprecated public static OneofTest.TestOneofCase valueOf(int value)
forNumber(int) instead.value - The number of the enum to look for.public static OneofTest.TestOneofCase forNumber(int value)
public int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLiteCopyright © 2019–2021 The Apache Software Foundation. All rights reserved.