Package com.google.protobuf
Enum DescriptorProtos.Edition
- java.lang.Object
-
- java.lang.Enum<DescriptorProtos.Edition>
-
- com.google.protobuf.DescriptorProtos.Edition
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,ProtocolMessageEnum,java.io.Serializable,java.lang.Comparable<DescriptorProtos.Edition>
- Enclosing class:
- DescriptorProtos
public static enum DescriptorProtos.Edition extends java.lang.Enum<DescriptorProtos.Edition> implements ProtocolMessageEnum
Protobuf enumgoogle.protobuf.Edition
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EDITION_1_TEST_ONLYEDITION_1_TEST_ONLY = 1;EDITION_2_TEST_ONLYEDITION_2_TEST_ONLY = 2;EDITION_2023EDITION_2023 = 1000;EDITION_2024EDITION_2024 = 1001;EDITION_99997_TEST_ONLYEDITION_99997_TEST_ONLY = 99997;EDITION_99998_TEST_ONLYEDITION_99998_TEST_ONLY = 99998;EDITION_99999_TEST_ONLYEDITION_99999_TEST_ONLY = 99999;EDITION_LEGACYEDITION_LEGACY = 900;EDITION_MAXEDITION_MAX = 2147483647;EDITION_PROTO2EDITION_PROTO2 = 998;EDITION_PROTO3EDITION_PROTO3 = 999;EDITION_UNKNOWNEDITION_UNKNOWN = 0;
-
Field Summary
Fields Modifier and Type Field Description static intEDITION_1_TEST_ONLY_VALUEEDITION_1_TEST_ONLY = 1;static intEDITION_2_TEST_ONLY_VALUEEDITION_2_TEST_ONLY = 2;static intEDITION_2023_VALUEEDITION_2023 = 1000;static intEDITION_2024_VALUEEDITION_2024 = 1001;static intEDITION_99997_TEST_ONLY_VALUEEDITION_99997_TEST_ONLY = 99997;static intEDITION_99998_TEST_ONLY_VALUEEDITION_99998_TEST_ONLY = 99998;static intEDITION_99999_TEST_ONLY_VALUEEDITION_99999_TEST_ONLY = 99999;static intEDITION_LEGACY_VALUEEDITION_LEGACY = 900;static intEDITION_MAX_VALUEEDITION_MAX = 2147483647;static intEDITION_PROTO2_VALUEEDITION_PROTO2 = 998;static intEDITION_PROTO3_VALUEEDITION_PROTO3 = 999;static intEDITION_UNKNOWN_VALUEEDITION_UNKNOWN = 0;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static DescriptorProtos.EditionforNumber(int value)static Descriptors.EnumDescriptorgetDescriptor()Descriptors.EnumDescriptorgetDescriptorForType()Return the enum type's descriptor, which contains information about each defined value, etc.intgetNumber()Return the value's numeric value as defined in the .proto file.Descriptors.EnumValueDescriptorgetValueDescriptor()Return the value's descriptor, which contains information such as value name, number, and type.static com.google.protobuf.Internal.EnumLiteMap<DescriptorProtos.Edition>internalGetValueMap()static DescriptorProtos.EditionvalueOf(int value)Deprecated.static DescriptorProtos.EditionvalueOf(Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static DescriptorProtos.EditionvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static DescriptorProtos.Edition[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EDITION_UNKNOWN
public static final DescriptorProtos.Edition EDITION_UNKNOWN
EDITION_UNKNOWN = 0;
-
EDITION_LEGACY
public static final DescriptorProtos.Edition EDITION_LEGACY
EDITION_LEGACY = 900;
-
EDITION_PROTO2
public static final DescriptorProtos.Edition EDITION_PROTO2
EDITION_PROTO2 = 998;
-
EDITION_PROTO3
public static final DescriptorProtos.Edition EDITION_PROTO3
EDITION_PROTO3 = 999;
-
EDITION_2023
public static final DescriptorProtos.Edition EDITION_2023
EDITION_2023 = 1000;
-
EDITION_2024
public static final DescriptorProtos.Edition EDITION_2024
EDITION_2024 = 1001;
-
EDITION_1_TEST_ONLY
public static final DescriptorProtos.Edition EDITION_1_TEST_ONLY
EDITION_1_TEST_ONLY = 1;
-
EDITION_2_TEST_ONLY
public static final DescriptorProtos.Edition EDITION_2_TEST_ONLY
EDITION_2_TEST_ONLY = 2;
-
EDITION_99997_TEST_ONLY
public static final DescriptorProtos.Edition EDITION_99997_TEST_ONLY
EDITION_99997_TEST_ONLY = 99997;
-
EDITION_99998_TEST_ONLY
public static final DescriptorProtos.Edition EDITION_99998_TEST_ONLY
EDITION_99998_TEST_ONLY = 99998;
-
EDITION_99999_TEST_ONLY
public static final DescriptorProtos.Edition EDITION_99999_TEST_ONLY
EDITION_99999_TEST_ONLY = 99999;
-
EDITION_MAX
public static final DescriptorProtos.Edition EDITION_MAX
EDITION_MAX = 2147483647;
-
-
Field Detail
-
EDITION_UNKNOWN_VALUE
public static final int EDITION_UNKNOWN_VALUE
EDITION_UNKNOWN = 0;- See Also:
- Constant Field Values
-
EDITION_LEGACY_VALUE
public static final int EDITION_LEGACY_VALUE
EDITION_LEGACY = 900;- See Also:
- Constant Field Values
-
EDITION_PROTO2_VALUE
public static final int EDITION_PROTO2_VALUE
EDITION_PROTO2 = 998;- See Also:
- Constant Field Values
-
EDITION_PROTO3_VALUE
public static final int EDITION_PROTO3_VALUE
EDITION_PROTO3 = 999;- See Also:
- Constant Field Values
-
EDITION_2023_VALUE
public static final int EDITION_2023_VALUE
EDITION_2023 = 1000;- See Also:
- Constant Field Values
-
EDITION_2024_VALUE
public static final int EDITION_2024_VALUE
EDITION_2024 = 1001;- See Also:
- Constant Field Values
-
EDITION_1_TEST_ONLY_VALUE
public static final int EDITION_1_TEST_ONLY_VALUE
EDITION_1_TEST_ONLY = 1;- See Also:
- Constant Field Values
-
EDITION_2_TEST_ONLY_VALUE
public static final int EDITION_2_TEST_ONLY_VALUE
EDITION_2_TEST_ONLY = 2;- See Also:
- Constant Field Values
-
EDITION_99997_TEST_ONLY_VALUE
public static final int EDITION_99997_TEST_ONLY_VALUE
EDITION_99997_TEST_ONLY = 99997;- See Also:
- Constant Field Values
-
EDITION_99998_TEST_ONLY_VALUE
public static final int EDITION_99998_TEST_ONLY_VALUE
EDITION_99998_TEST_ONLY = 99998;- See Also:
- Constant Field Values
-
EDITION_99999_TEST_ONLY_VALUE
public static final int EDITION_99999_TEST_ONLY_VALUE
EDITION_99999_TEST_ONLY = 99999;- See Also:
- Constant Field Values
-
EDITION_MAX_VALUE
public static final int EDITION_MAX_VALUE
EDITION_MAX = 2147483647;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static DescriptorProtos.Edition[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DescriptorProtos.Edition c : DescriptorProtos.Edition.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DescriptorProtos.Edition valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getNumber
public final int getNumber()
Description copied from interface:ProtocolMessageEnumReturn the value's numeric value as defined in the .proto file.- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfaceProtocolMessageEnum
-
valueOf
@Deprecated public static DescriptorProtos.Edition valueOf(int value)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
forNumber
public static DescriptorProtos.Edition forNumber(int value)
- 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
public final Descriptors.EnumValueDescriptor getValueDescriptor()
Description copied from interface:ProtocolMessageEnumReturn the value's descriptor, which contains information such as value name, number, and type.- Specified by:
getValueDescriptorin interfaceProtocolMessageEnum
-
getDescriptorForType
public final Descriptors.EnumDescriptor getDescriptorForType()
Description copied from interface:ProtocolMessageEnumReturn the enum type's descriptor, which contains information about each defined value, etc.- Specified by:
getDescriptorForTypein interfaceProtocolMessageEnum
-
getDescriptor
public static Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static DescriptorProtos.Edition valueOf(Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-