Enum Gzip.CompressionLevel

  • All Implemented Interfaces:
    com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<Gzip.CompressionLevel>
    Enclosing class:
    Gzip

    public static enum Gzip.CompressionLevel
    extends Enum<Gzip.CompressionLevel>
    implements com.google.protobuf.ProtocolMessageEnum
    Protobuf enum envoy.extensions.compression.gzip.compressor.v3.Gzip.CompressionLevel
    • Field Detail

      • COMPRESSION_LEVEL_1

        public static final Gzip.CompressionLevel COMPRESSION_LEVEL_1
        COMPRESSION_LEVEL_1 = 1;
      • DEFAULT_COMPRESSION_VALUE

        public static final int DEFAULT_COMPRESSION_VALUE
        DEFAULT_COMPRESSION = 0;
        See Also:
        Constant Field Values
      • BEST_SPEED_VALUE

        public static final int BEST_SPEED_VALUE
        BEST_SPEED = 1;
        See Also:
        Constant Field Values
      • COMPRESSION_LEVEL_1_VALUE

        public static final int COMPRESSION_LEVEL_1_VALUE
        COMPRESSION_LEVEL_1 = 1;
        See Also:
        Constant Field Values
      • COMPRESSION_LEVEL_2_VALUE

        public static final int COMPRESSION_LEVEL_2_VALUE
        COMPRESSION_LEVEL_2 = 2;
        See Also:
        Constant Field Values
      • COMPRESSION_LEVEL_3_VALUE

        public static final int COMPRESSION_LEVEL_3_VALUE
        COMPRESSION_LEVEL_3 = 3;
        See Also:
        Constant Field Values
      • COMPRESSION_LEVEL_4_VALUE

        public static final int COMPRESSION_LEVEL_4_VALUE
        COMPRESSION_LEVEL_4 = 4;
        See Also:
        Constant Field Values
      • COMPRESSION_LEVEL_5_VALUE

        public static final int COMPRESSION_LEVEL_5_VALUE
        COMPRESSION_LEVEL_5 = 5;
        See Also:
        Constant Field Values
      • COMPRESSION_LEVEL_6_VALUE

        public static final int COMPRESSION_LEVEL_6_VALUE
        COMPRESSION_LEVEL_6 = 6;
        See Also:
        Constant Field Values
      • COMPRESSION_LEVEL_7_VALUE

        public static final int COMPRESSION_LEVEL_7_VALUE
        COMPRESSION_LEVEL_7 = 7;
        See Also:
        Constant Field Values
      • COMPRESSION_LEVEL_8_VALUE

        public static final int COMPRESSION_LEVEL_8_VALUE
        COMPRESSION_LEVEL_8 = 8;
        See Also:
        Constant Field Values
      • COMPRESSION_LEVEL_9_VALUE

        public static final int COMPRESSION_LEVEL_9_VALUE
        COMPRESSION_LEVEL_9 = 9;
        See Also:
        Constant Field Values
      • BEST_COMPRESSION_VALUE

        public static final int BEST_COMPRESSION_VALUE
        BEST_COMPRESSION = 9;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static Gzip.CompressionLevel[] 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 (Gzip.CompressionLevel c : Gzip.CompressionLevel.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Gzip.CompressionLevel valueOf​(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:
        IllegalArgumentException - if this enum type 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
        Specified by:
        getNumber in interface com.google.protobuf.ProtocolMessageEnum
      • valueOf

        @Deprecated
        public static Gzip.CompressionLevel 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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • forNumber

        public static Gzip.CompressionLevel 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<Gzip.CompressionLevel> internalGetValueMap()
      • getValueDescriptor

        public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
        Specified by:
        getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptorForType

        public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptor

        public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
      • valueOf

        public static Gzip.CompressionLevel valueOf​(com.google.protobuf.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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null