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, Serializable, Comparable<DescriptorProtos.Edition>, java.lang.constant.Constable
Enclosing class:
DescriptorProtos

public static enum DescriptorProtos.Edition extends Enum<DescriptorProtos.Edition> implements com.google.protobuf.Internal.EnumLite
 The full set of known editions.
 
Protobuf enum google.protobuf.Edition
  • Enum Constant Details

    • EDITION_UNKNOWN

      public static final DescriptorProtos.Edition EDITION_UNKNOWN
       A placeholder for an unknown edition value.
       
      EDITION_UNKNOWN = 0;
    • EDITION_PROTO2

      public static final DescriptorProtos.Edition EDITION_PROTO2
       Legacy syntax "editions".  These pre-date editions, but behave much like
       distinct editions.  These can't be used to specify the edition of proto
       files, but feature definitions must supply proto2/proto3 defaults for
       backwards compatibility.
       
      EDITION_PROTO2 = 998;
    • EDITION_PROTO3

      public static final DescriptorProtos.Edition EDITION_PROTO3
      EDITION_PROTO3 = 999;
    • EDITION_2023

      public static final DescriptorProtos.Edition EDITION_2023
       Editions that have been released.  The specific values are arbitrary and
       should not be depended on, but they will always be time-ordered for easy
       comparison.
       
      EDITION_2023 = 1000;
    • EDITION_1_TEST_ONLY

      public static final DescriptorProtos.Edition EDITION_1_TEST_ONLY
       Placeholder editions for testing feature resolution.  These should not be
       used or relyed on outside of tests.
       
      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;
  • Field Details

    • EDITION_UNKNOWN_VALUE

      public static final int EDITION_UNKNOWN_VALUE
       A placeholder for an unknown edition value.
       
      EDITION_UNKNOWN = 0;
      See Also:
    • EDITION_PROTO2_VALUE

      public static final int EDITION_PROTO2_VALUE
       Legacy syntax "editions".  These pre-date editions, but behave much like
       distinct editions.  These can't be used to specify the edition of proto
       files, but feature definitions must supply proto2/proto3 defaults for
       backwards compatibility.
       
      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
       Editions that have been released.  The specific values are arbitrary and
       should not be depended on, but they will always be time-ordered for easy
       comparison.
       
      EDITION_2023 = 1000;
      See Also:
    • EDITION_1_TEST_ONLY_VALUE

      public static final int EDITION_1_TEST_ONLY_VALUE
       Placeholder editions for testing feature resolution.  These should not be
       used or relyed on outside of tests.
       
      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:
  • 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()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
    • 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)
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<DescriptorProtos.Edition> internalGetValueMap()
    • internalGetVerifier

      public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()