Enum Class DescriptorProtos.Edition

java.lang.Object
java.lang.Enum<DescriptorProtos.Edition>
com.google.protobuf.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
  • Enum Constant Details

  • Field Details

    • EDITION_UNKNOWN_VALUE

      public static final int EDITION_UNKNOWN_VALUE
      EDITION_UNKNOWN = 0;
      See Also:
    • EDITION_LEGACY_VALUE

      public static final int EDITION_LEGACY_VALUE
      EDITION_LEGACY = 900;
      See Also:
    • EDITION_PROTO2_VALUE

      public static final int EDITION_PROTO2_VALUE
      EDITION_PROTO2 = 998;
      See Also:
    • EDITION_PROTO3_VALUE

      public static final int EDITION_PROTO3_VALUE
      EDITION_PROTO3 = 999;
      See Also:
    • EDITION_2023_VALUE

      public static final int EDITION_2023_VALUE
      EDITION_2023 = 1000;
      See Also:
    • EDITION_2024_VALUE

      public static final int EDITION_2024_VALUE
      EDITION_2024 = 1001;
      See Also:
    • EDITION_1_TEST_ONLY_VALUE

      public static final int EDITION_1_TEST_ONLY_VALUE
      EDITION_1_TEST_ONLY = 1;
      See Also:
    • EDITION_2_TEST_ONLY_VALUE

      public static final int EDITION_2_TEST_ONLY_VALUE
      EDITION_2_TEST_ONLY = 2;
      See Also:
    • EDITION_99997_TEST_ONLY_VALUE

      public static final int EDITION_99997_TEST_ONLY_VALUE
      EDITION_99997_TEST_ONLY = 99997;
      See Also:
    • EDITION_99998_TEST_ONLY_VALUE

      public static final int EDITION_99998_TEST_ONLY_VALUE
      EDITION_99998_TEST_ONLY = 99998;
      See Also:
    • EDITION_99999_TEST_ONLY_VALUE

      public static final int EDITION_99999_TEST_ONLY_VALUE
      EDITION_99999_TEST_ONLY = 99999;
      See Also:
    • EDITION_MAX_VALUE

      public static final int EDITION_MAX_VALUE
      EDITION_MAX = 2147483647;
      See Also:
  • Method Details

    • values

      public static DescriptorProtos.Edition[] 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

      public static DescriptorProtos.Edition valueOf(String name)
      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 name
      NullPointerException - 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 interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface ProtocolMessageEnum
    • valueOf

      @Deprecated public static DescriptorProtos.Edition valueOf(int value)
      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 name
      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: ProtocolMessageEnum
      Return the value's descriptor, which contains information such as value name, number, and type.
      Specified by:
      getValueDescriptor in interface ProtocolMessageEnum
    • getDescriptorForType

      public final Descriptors.EnumDescriptor getDescriptorForType()
      Description copied from interface: ProtocolMessageEnum
      Return the enum type's descriptor, which contains information about each defined value, etc.
      Specified by:
      getDescriptorForType in interface ProtocolMessageEnum
    • getDescriptor

      public static final Descriptors.EnumDescriptor 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 name
      NullPointerException - if the argument is null