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_ASPARSE_A = 123; | 
| SPARSE_BSPARSE_B = 62374; | 
| SPARSE_CSPARSE_C = 12589234; | 
| SPARSE_DSPARSE_D = -15; | 
| SPARSE_ESPARSE_E = -53452; | 
| SPARSE_FSPARSE_F = 0; | 
| SPARSE_GSPARSE_G = 2; | 
| Modifier and Type | Field and Description | 
|---|---|
| static int | SPARSE_A_VALUESPARSE_A = 123; | 
| static int | SPARSE_B_VALUESPARSE_B = 62374; | 
| static int | SPARSE_C_VALUESPARSE_C = 12589234; | 
| static int | SPARSE_D_VALUESPARSE_D = -15; | 
| static int | SPARSE_E_VALUESPARSE_E = -53452; | 
| static int | SPARSE_F_VALUESPARSE_F = 0; | 
| static int | SPARSE_G_VALUESPARSE_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.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnumpublic 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.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static UnittestProto.TestSparseEnum valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)