Enum DescriptorProtos.Edition

    • 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 name
        java.lang.NullPointerException - if the argument is null
      • 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 name
        java.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.
      • 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 name
        java.lang.NullPointerException - if the argument is null