Interface GzipOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    Gzip, Gzip.Builder

    public interface GzipOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      Gzip.CompressionLevel.Enum getCompressionLevel()
      A value used for selecting the zlib compression level.
      int getCompressionLevelValue()
      A value used for selecting the zlib compression level.
      Gzip.CompressionStrategy getCompressionStrategy()
      A value used for selecting the zlib compression strategy which is directly related to the characteristics of the content.
      int getCompressionStrategyValue()
      A value used for selecting the zlib compression strategy which is directly related to the characteristics of the content.
      Compressor getCompressor()
      Set of configuration parameters common for all compression filters.
      CompressorOrBuilder getCompressorOrBuilder()
      Set of configuration parameters common for all compression filters.
      com.google.protobuf.UInt32Value getContentLength()
      Deprecated.
      envoy.config.filter.http.gzip.v2.Gzip.content_length is deprecated.
      com.google.protobuf.UInt32ValueOrBuilder getContentLengthOrBuilder()
      Deprecated.
      String getContentType​(int index)
      Deprecated.
      envoy.config.filter.http.gzip.v2.Gzip.content_type is deprecated.
      com.google.protobuf.ByteString getContentTypeBytes​(int index)
      Deprecated.
      envoy.config.filter.http.gzip.v2.Gzip.content_type is deprecated.
      int getContentTypeCount()
      Deprecated.
      envoy.config.filter.http.gzip.v2.Gzip.content_type is deprecated.
      List<String> getContentTypeList()
      Deprecated.
      envoy.config.filter.http.gzip.v2.Gzip.content_type is deprecated.
      boolean getDisableOnEtagHeader()
      Deprecated.
      envoy.config.filter.http.gzip.v2.Gzip.disable_on_etag_header is deprecated.
      com.google.protobuf.UInt32Value getMemoryLevel()
      Value from 1 to 9 that controls the amount of internal memory used by zlib.
      com.google.protobuf.UInt32ValueOrBuilder getMemoryLevelOrBuilder()
      Value from 1 to 9 that controls the amount of internal memory used by zlib.
      boolean getRemoveAcceptEncodingHeader()
      Deprecated.
      envoy.config.filter.http.gzip.v2.Gzip.remove_accept_encoding_header is deprecated.
      com.google.protobuf.UInt32Value getWindowBits()
      Value from 9 to 15 that represents the base two logarithmic of the compressor's window size.
      com.google.protobuf.UInt32ValueOrBuilder getWindowBitsOrBuilder()
      Value from 9 to 15 that represents the base two logarithmic of the compressor's window size.
      boolean hasCompressor()
      Set of configuration parameters common for all compression filters.
      boolean hasContentLength()
      Deprecated.
      envoy.config.filter.http.gzip.v2.Gzip.content_length is deprecated.
      boolean hasMemoryLevel()
      Value from 1 to 9 that controls the amount of internal memory used by zlib.
      boolean hasWindowBits()
      Value from 9 to 15 that represents the base two logarithmic of the compressor's window size.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • hasMemoryLevel

        boolean hasMemoryLevel()
         Value from 1 to 9 that controls the amount of internal memory used by zlib. Higher values
         use more memory, but are faster and produce better compression results. The default value is 5.
         
        .google.protobuf.UInt32Value memory_level = 1 [(.validate.rules) = { ... }
        Returns:
        Whether the memoryLevel field is set.
      • getMemoryLevel

        com.google.protobuf.UInt32Value getMemoryLevel()
         Value from 1 to 9 that controls the amount of internal memory used by zlib. Higher values
         use more memory, but are faster and produce better compression results. The default value is 5.
         
        .google.protobuf.UInt32Value memory_level = 1 [(.validate.rules) = { ... }
        Returns:
        The memoryLevel.
      • getMemoryLevelOrBuilder

        com.google.protobuf.UInt32ValueOrBuilder getMemoryLevelOrBuilder()
         Value from 1 to 9 that controls the amount of internal memory used by zlib. Higher values
         use more memory, but are faster and produce better compression results. The default value is 5.
         
        .google.protobuf.UInt32Value memory_level = 1 [(.validate.rules) = { ... }
      • hasContentLength

        @Deprecated
        boolean hasContentLength()
        Deprecated.
        envoy.config.filter.http.gzip.v2.Gzip.content_length is deprecated. See envoy/config/filter/http/gzip/v2/gzip.proto;l=46
         Minimum response length, in bytes, which will trigger compression. The default value is 30.
         .. attention:
            **This field is deprecated**. Set the `compressor` field instead.
         
        .google.protobuf.UInt32Value content_length = 2 [deprecated = true];
        Returns:
        Whether the contentLength field is set.
      • getContentLength

        @Deprecated
        com.google.protobuf.UInt32Value getContentLength()
        Deprecated.
        envoy.config.filter.http.gzip.v2.Gzip.content_length is deprecated. See envoy/config/filter/http/gzip/v2/gzip.proto;l=46
         Minimum response length, in bytes, which will trigger compression. The default value is 30.
         .. attention:
            **This field is deprecated**. Set the `compressor` field instead.
         
        .google.protobuf.UInt32Value content_length = 2 [deprecated = true];
        Returns:
        The contentLength.
      • getContentLengthOrBuilder

        @Deprecated
        com.google.protobuf.UInt32ValueOrBuilder getContentLengthOrBuilder()
        Deprecated.
         Minimum response length, in bytes, which will trigger compression. The default value is 30.
         .. attention:
            **This field is deprecated**. Set the `compressor` field instead.
         
        .google.protobuf.UInt32Value content_length = 2 [deprecated = true];
      • getCompressionLevelValue

        int getCompressionLevelValue()
         A value used for selecting the zlib compression level. This setting will affect speed and
         amount of compression applied to the content. "BEST" provides higher compression at the cost of
         higher latency, "SPEED" provides lower compression with minimum impact on response time.
         "DEFAULT" provides an optimal result between speed and compression. This field will be set to
         "DEFAULT" if not specified.
         
        .envoy.config.filter.http.gzip.v2.Gzip.CompressionLevel.Enum compression_level = 3 [(.validate.rules) = { ... }
        Returns:
        The enum numeric value on the wire for compressionLevel.
      • getCompressionLevel

        Gzip.CompressionLevel.Enum getCompressionLevel()
         A value used for selecting the zlib compression level. This setting will affect speed and
         amount of compression applied to the content. "BEST" provides higher compression at the cost of
         higher latency, "SPEED" provides lower compression with minimum impact on response time.
         "DEFAULT" provides an optimal result between speed and compression. This field will be set to
         "DEFAULT" if not specified.
         
        .envoy.config.filter.http.gzip.v2.Gzip.CompressionLevel.Enum compression_level = 3 [(.validate.rules) = { ... }
        Returns:
        The compressionLevel.
      • getCompressionStrategyValue

        int getCompressionStrategyValue()
         A value used for selecting the zlib compression strategy which is directly related to the
         characteristics of the content. Most of the time "DEFAULT" will be the best choice, though
         there are situations which changing this parameter might produce better results. For example,
         run-length encoding (RLE) is typically used when the content is known for having sequences
         which same data occurs many consecutive times. For more information about each strategy, please
         refer to zlib manual.
         
        .envoy.config.filter.http.gzip.v2.Gzip.CompressionStrategy compression_strategy = 4 [(.validate.rules) = { ... }
        Returns:
        The enum numeric value on the wire for compressionStrategy.
      • getCompressionStrategy

        Gzip.CompressionStrategy getCompressionStrategy()
         A value used for selecting the zlib compression strategy which is directly related to the
         characteristics of the content. Most of the time "DEFAULT" will be the best choice, though
         there are situations which changing this parameter might produce better results. For example,
         run-length encoding (RLE) is typically used when the content is known for having sequences
         which same data occurs many consecutive times. For more information about each strategy, please
         refer to zlib manual.
         
        .envoy.config.filter.http.gzip.v2.Gzip.CompressionStrategy compression_strategy = 4 [(.validate.rules) = { ... }
        Returns:
        The compressionStrategy.
      • getContentTypeList

        @Deprecated
        List<String> getContentTypeList()
        Deprecated.
        envoy.config.filter.http.gzip.v2.Gzip.content_type is deprecated. See envoy/config/filter/http/gzip/v2/gzip.proto;l=70
         Set of strings that allows specifying which mime-types yield compression; e.g.,
         application/json, text/html, etc. When this field is not defined, compression will be applied
         to the following mime-types: "application/javascript", "application/json",
         "application/xhtml+xml", "image/svg+xml", "text/css", "text/html", "text/plain", "text/xml".
         .. attention:
            **This field is deprecated**. Set the `compressor` field instead.
         
        repeated string content_type = 6 [deprecated = true];
        Returns:
        A list containing the contentType.
      • getContentTypeCount

        @Deprecated
        int getContentTypeCount()
        Deprecated.
        envoy.config.filter.http.gzip.v2.Gzip.content_type is deprecated. See envoy/config/filter/http/gzip/v2/gzip.proto;l=70
         Set of strings that allows specifying which mime-types yield compression; e.g.,
         application/json, text/html, etc. When this field is not defined, compression will be applied
         to the following mime-types: "application/javascript", "application/json",
         "application/xhtml+xml", "image/svg+xml", "text/css", "text/html", "text/plain", "text/xml".
         .. attention:
            **This field is deprecated**. Set the `compressor` field instead.
         
        repeated string content_type = 6 [deprecated = true];
        Returns:
        The count of contentType.
      • getContentType

        @Deprecated
        String getContentType​(int index)
        Deprecated.
        envoy.config.filter.http.gzip.v2.Gzip.content_type is deprecated. See envoy/config/filter/http/gzip/v2/gzip.proto;l=70
         Set of strings that allows specifying which mime-types yield compression; e.g.,
         application/json, text/html, etc. When this field is not defined, compression will be applied
         to the following mime-types: "application/javascript", "application/json",
         "application/xhtml+xml", "image/svg+xml", "text/css", "text/html", "text/plain", "text/xml".
         .. attention:
            **This field is deprecated**. Set the `compressor` field instead.
         
        repeated string content_type = 6 [deprecated = true];
        Parameters:
        index - The index of the element to return.
        Returns:
        The contentType at the given index.
      • getContentTypeBytes

        @Deprecated
        com.google.protobuf.ByteString getContentTypeBytes​(int index)
        Deprecated.
        envoy.config.filter.http.gzip.v2.Gzip.content_type is deprecated. See envoy/config/filter/http/gzip/v2/gzip.proto;l=70
         Set of strings that allows specifying which mime-types yield compression; e.g.,
         application/json, text/html, etc. When this field is not defined, compression will be applied
         to the following mime-types: "application/javascript", "application/json",
         "application/xhtml+xml", "image/svg+xml", "text/css", "text/html", "text/plain", "text/xml".
         .. attention:
            **This field is deprecated**. Set the `compressor` field instead.
         
        repeated string content_type = 6 [deprecated = true];
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the contentType at the given index.
      • getDisableOnEtagHeader

        @Deprecated
        boolean getDisableOnEtagHeader()
        Deprecated.
        envoy.config.filter.http.gzip.v2.Gzip.disable_on_etag_header is deprecated. See envoy/config/filter/http/gzip/v2/gzip.proto;l=77
         If true, disables compression when the response contains an etag header. When it is false, the
         filter will preserve weak etags and remove the ones that require strong validation.
         .. attention:
            **This field is deprecated**. Set the `compressor` field instead.
         
        bool disable_on_etag_header = 7 [deprecated = true];
        Returns:
        The disableOnEtagHeader.
      • getRemoveAcceptEncodingHeader

        @Deprecated
        boolean getRemoveAcceptEncodingHeader()
        Deprecated.
        envoy.config.filter.http.gzip.v2.Gzip.remove_accept_encoding_header is deprecated. See envoy/config/filter/http/gzip/v2/gzip.proto;l=84
         If true, removes accept-encoding from the request headers before dispatching it to the upstream
         so that responses do not get compressed before reaching the filter.
         .. attention:
            **This field is deprecated**. Set the `compressor` field instead.
         
        bool remove_accept_encoding_header = 8 [deprecated = true];
        Returns:
        The removeAcceptEncodingHeader.
      • hasWindowBits

        boolean hasWindowBits()
         Value from 9 to 15 that represents the base two logarithmic of the compressor's window size.
         Larger window results in better compression at the expense of memory usage. The default is 12
         which will produce a 4096 bytes window. For more details about this parameter, please refer to
         zlib manual > deflateInit2.
         
        .google.protobuf.UInt32Value window_bits = 9 [(.validate.rules) = { ... }
        Returns:
        Whether the windowBits field is set.
      • getWindowBits

        com.google.protobuf.UInt32Value getWindowBits()
         Value from 9 to 15 that represents the base two logarithmic of the compressor's window size.
         Larger window results in better compression at the expense of memory usage. The default is 12
         which will produce a 4096 bytes window. For more details about this parameter, please refer to
         zlib manual > deflateInit2.
         
        .google.protobuf.UInt32Value window_bits = 9 [(.validate.rules) = { ... }
        Returns:
        The windowBits.
      • getWindowBitsOrBuilder

        com.google.protobuf.UInt32ValueOrBuilder getWindowBitsOrBuilder()
         Value from 9 to 15 that represents the base two logarithmic of the compressor's window size.
         Larger window results in better compression at the expense of memory usage. The default is 12
         which will produce a 4096 bytes window. For more details about this parameter, please refer to
         zlib manual > deflateInit2.
         
        .google.protobuf.UInt32Value window_bits = 9 [(.validate.rules) = { ... }
      • hasCompressor

        boolean hasCompressor()
         Set of configuration parameters common for all compression filters. If this field is set then
         the fields `content_length`, `content_type`, `disable_on_etag_header` and
         `remove_accept_encoding_header` are ignored.
         
        .envoy.config.filter.http.compressor.v2.Compressor compressor = 10;
        Returns:
        Whether the compressor field is set.
      • getCompressor

        Compressor getCompressor()
         Set of configuration parameters common for all compression filters. If this field is set then
         the fields `content_length`, `content_type`, `disable_on_etag_header` and
         `remove_accept_encoding_header` are ignored.
         
        .envoy.config.filter.http.compressor.v2.Compressor compressor = 10;
        Returns:
        The compressor.
      • getCompressorOrBuilder

        CompressorOrBuilder getCompressorOrBuilder()
         Set of configuration parameters common for all compression filters. If this field is set then
         the fields `content_length`, `content_type`, `disable_on_etag_header` and
         `remove_accept_encoding_header` are ignored.
         
        .envoy.config.filter.http.compressor.v2.Compressor compressor = 10;