public static enum UnittestProto.TestOneof2.NestedEnum extends java.lang.Enum<UnittestProto.TestOneof2.NestedEnum> implements com.google.protobuf.ProtocolMessageEnum
protobuf_unittest.TestOneof2.NestedEnum
Enum Constant and Description |
---|
BAR
BAR = 2; |
BAZ
BAZ = 3; |
FOO
FOO = 1; |
Modifier and Type | Field and Description |
---|---|
static int |
BAR_VALUE
BAR = 2; |
static int |
BAZ_VALUE
BAZ = 3; |
static int |
FOO_VALUE
FOO = 1; |
Modifier and Type | Method and Description |
---|---|
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<UnittestProto.TestOneof2.NestedEnum> |
internalGetValueMap() |
static UnittestProto.TestOneof2.NestedEnum |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static UnittestProto.TestOneof2.NestedEnum |
valueOf(int value) |
static UnittestProto.TestOneof2.NestedEnum |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static UnittestProto.TestOneof2.NestedEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnittestProto.TestOneof2.NestedEnum FOO
FOO = 1;
public static final UnittestProto.TestOneof2.NestedEnum BAR
BAR = 2;
public static final UnittestProto.TestOneof2.NestedEnum BAZ
BAZ = 3;
public static final int FOO_VALUE
FOO = 1;
public static final int BAR_VALUE
BAR = 2;
public static final int BAZ_VALUE
BAZ = 3;
public static UnittestProto.TestOneof2.NestedEnum[] values()
for (UnittestProto.TestOneof2.NestedEnum c : UnittestProto.TestOneof2.NestedEnum.values()) System.out.println(c);
public static UnittestProto.TestOneof2.NestedEnum 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 final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
public static UnittestProto.TestOneof2.NestedEnum valueOf(int value)
public static com.google.protobuf.Internal.EnumLiteMap<UnittestProto.TestOneof2.NestedEnum> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static UnittestProto.TestOneof2.NestedEnum valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)