Package com.google.protobuf
Enum Class DescriptorProtos.Edition
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,ProtocolMessageEnum
,Serializable
,Comparable<DescriptorProtos.Edition>
,Constable
- Enclosing class:
DescriptorProtos
public static enum DescriptorProtos.Edition
extends Enum<DescriptorProtos.Edition>
implements ProtocolMessageEnum
Protobuf enum
google.protobuf.Edition
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEDITION_1_TEST_ONLY = 1;
EDITION_2_TEST_ONLY = 2;
EDITION_2023 = 1000;
EDITION_2024 = 1001;
EDITION_99997_TEST_ONLY = 99997;
EDITION_99998_TEST_ONLY = 99998;
EDITION_99999_TEST_ONLY = 99999;
EDITION_LEGACY = 900;
EDITION_MAX = 2147483647;
EDITION_PROTO2 = 998;
EDITION_PROTO3 = 999;
EDITION_UNKNOWN = 0;
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
EDITION_1_TEST_ONLY = 1;
static final int
EDITION_2_TEST_ONLY = 2;
static final int
EDITION_2023 = 1000;
static final int
EDITION_2024 = 1001;
static final int
EDITION_99997_TEST_ONLY = 99997;
static final int
EDITION_99998_TEST_ONLY = 99998;
static final int
EDITION_99999_TEST_ONLY = 99999;
static final int
EDITION_LEGACY = 900;
static final int
EDITION_MAX = 2147483647;
static final int
EDITION_PROTO2 = 998;
static final int
EDITION_PROTO3 = 999;
static final int
EDITION_UNKNOWN = 0;
-
Method Summary
Modifier and TypeMethodDescriptionstatic DescriptorProtos.Edition
forNumber
(int value) static final Descriptors.EnumDescriptor
Return the enum type's descriptor, which contains information about each defined value, etc.final int
Return the value's numeric value as defined in the .proto file.Return the value's descriptor, which contains information such as value name, number, and type.static com.google.protobuf.Internal.EnumLiteMap
<DescriptorProtos.Edition> static DescriptorProtos.Edition
valueOf
(int value) Deprecated.static DescriptorProtos.Edition
Returns the enum constant of this class with the specified name.static DescriptorProtos.Edition
Returns the enum constant of this class with the specified name.static DescriptorProtos.Edition[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EDITION_UNKNOWN
EDITION_UNKNOWN = 0;
-
EDITION_LEGACY
EDITION_LEGACY = 900;
-
EDITION_PROTO2
EDITION_PROTO2 = 998;
-
EDITION_PROTO3
EDITION_PROTO3 = 999;
-
EDITION_2023
EDITION_2023 = 1000;
-
EDITION_2024
EDITION_2024 = 1001;
-
EDITION_1_TEST_ONLY
EDITION_1_TEST_ONLY = 1;
-
EDITION_2_TEST_ONLY
EDITION_2_TEST_ONLY = 2;
-
EDITION_99997_TEST_ONLY
EDITION_99997_TEST_ONLY = 99997;
-
EDITION_99998_TEST_ONLY
EDITION_99998_TEST_ONLY = 99998;
-
EDITION_99999_TEST_ONLY
EDITION_99999_TEST_ONLY = 99999;
-
EDITION_MAX
EDITION_MAX = 2147483647;
-
-
Field Details
-
EDITION_UNKNOWN_VALUE
public static final int EDITION_UNKNOWN_VALUEEDITION_UNKNOWN = 0;
- See Also:
-
EDITION_LEGACY_VALUE
public static final int EDITION_LEGACY_VALUEEDITION_LEGACY = 900;
- See Also:
-
EDITION_PROTO2_VALUE
public static final int EDITION_PROTO2_VALUEEDITION_PROTO2 = 998;
- See Also:
-
EDITION_PROTO3_VALUE
public static final int EDITION_PROTO3_VALUEEDITION_PROTO3 = 999;
- See Also:
-
EDITION_2023_VALUE
public static final int EDITION_2023_VALUEEDITION_2023 = 1000;
- See Also:
-
EDITION_2024_VALUE
public static final int EDITION_2024_VALUEEDITION_2024 = 1001;
- See Also:
-
EDITION_1_TEST_ONLY_VALUE
public static final int EDITION_1_TEST_ONLY_VALUEEDITION_1_TEST_ONLY = 1;
- See Also:
-
EDITION_2_TEST_ONLY_VALUE
public static final int EDITION_2_TEST_ONLY_VALUEEDITION_2_TEST_ONLY = 2;
- See Also:
-
EDITION_99997_TEST_ONLY_VALUE
public static final int EDITION_99997_TEST_ONLY_VALUEEDITION_99997_TEST_ONLY = 99997;
- See Also:
-
EDITION_99998_TEST_ONLY_VALUE
public static final int EDITION_99998_TEST_ONLY_VALUEEDITION_99998_TEST_ONLY = 99998;
- See Also:
-
EDITION_99999_TEST_ONLY_VALUE
public static final int EDITION_99999_TEST_ONLY_VALUEEDITION_99999_TEST_ONLY = 99999;
- See Also:
-
EDITION_MAX_VALUE
public static final int EDITION_MAX_VALUEEDITION_MAX = 2147483647;
- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getNumber
public final int getNumber()Description copied from interface:ProtocolMessageEnum
Return the value's numeric value as defined in the .proto file.- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfaceProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
value
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
forNumber
- Parameters:
value
- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<DescriptorProtos.Edition> internalGetValueMap() -
getValueDescriptor
Description copied from interface:ProtocolMessageEnum
Return the value's descriptor, which contains information such as value name, number, and type.- Specified by:
getValueDescriptor
in interfaceProtocolMessageEnum
-
getDescriptorForType
Description copied from interface:ProtocolMessageEnum
Return the enum type's descriptor, which contains information about each defined value, etc.- Specified by:
getDescriptorForType
in interfaceProtocolMessageEnum
-
getDescriptor
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
desc
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-