public static enum UnittestProto.TestSparseEnum extends java.lang.Enum<UnittestProto.TestSparseEnum> implements com.google.protobuf.ProtocolMessageEnum
protobuf_unittest.TestSparseEnum
Test an enum with large, unordered values.
Enum Constant and Description |
---|
SPARSE_A
SPARSE_A = 123; |
SPARSE_B
SPARSE_B = 62374; |
SPARSE_C
SPARSE_C = 12589234; |
SPARSE_D
SPARSE_D = -15; |
SPARSE_E
SPARSE_E = -53452; |
SPARSE_F
SPARSE_F = 0; |
SPARSE_G
SPARSE_G = 2; |
Modifier and Type | Field and Description |
---|---|
static int |
SPARSE_A_VALUE
SPARSE_A = 123; |
static int |
SPARSE_B_VALUE
SPARSE_B = 62374; |
static int |
SPARSE_C_VALUE
SPARSE_C = 12589234; |
static int |
SPARSE_D_VALUE
SPARSE_D = -15; |
static int |
SPARSE_E_VALUE
SPARSE_E = -53452; |
static int |
SPARSE_F_VALUE
SPARSE_F = 0; |
static int |
SPARSE_G_VALUE
SPARSE_G = 2; |
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.TestSparseEnum> |
internalGetValueMap() |
static UnittestProto.TestSparseEnum |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static UnittestProto.TestSparseEnum |
valueOf(int value) |
static UnittestProto.TestSparseEnum |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static UnittestProto.TestSparseEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnittestProto.TestSparseEnum SPARSE_A
SPARSE_A = 123;
public static final UnittestProto.TestSparseEnum SPARSE_B
SPARSE_B = 62374;
public static final UnittestProto.TestSparseEnum SPARSE_C
SPARSE_C = 12589234;
public static final UnittestProto.TestSparseEnum SPARSE_D
SPARSE_D = -15;
public static final UnittestProto.TestSparseEnum SPARSE_E
SPARSE_E = -53452;
public static final UnittestProto.TestSparseEnum SPARSE_F
SPARSE_F = 0;
public static final UnittestProto.TestSparseEnum SPARSE_G
SPARSE_G = 2;
public static final int SPARSE_A_VALUE
SPARSE_A = 123;
public static final int SPARSE_B_VALUE
SPARSE_B = 62374;
public static final int SPARSE_C_VALUE
SPARSE_C = 12589234;
public static final int SPARSE_D_VALUE
SPARSE_D = -15;
public static final int SPARSE_E_VALUE
SPARSE_E = -53452;
public static final int SPARSE_F_VALUE
SPARSE_F = 0;
public static final int SPARSE_G_VALUE
SPARSE_G = 2;
public static UnittestProto.TestSparseEnum[] values()
for (UnittestProto.TestSparseEnum c : UnittestProto.TestSparseEnum.values()) System.out.println(c);
public static UnittestProto.TestSparseEnum 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.TestSparseEnum valueOf(int value)
public static com.google.protobuf.Internal.EnumLiteMap<UnittestProto.TestSparseEnum> 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.TestSparseEnum valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)