Interface Compressor.ResponseDirectionConfigOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Compressor.ResponseDirectionConfig, Compressor.ResponseDirectionConfig.Builder
Enclosing class:
Compressor

public static interface Compressor.ResponseDirectionConfigOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    .envoy.extensions.filters.http.compressor.v3.Compressor.CommonDirectionConfig common_config = 1;
    .envoy.extensions.filters.http.compressor.v3.Compressor.CommonDirectionConfig common_config = 1;
    boolean
    If true, disables compression when the response contains an etag header.
    boolean
    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:: To avoid interfering with other compression filters in the same chain use this option in the filter closest to the upstream.
    int
    Set of response codes for which compression is disabled, e.g. 206 Partial Content should not be compressed.
    int
    Set of response codes for which compression is disabled, e.g. 206 Partial Content should not be compressed.
    Set of response codes for which compression is disabled, e.g. 206 Partial Content should not be compressed.
    boolean
    .envoy.extensions.filters.http.compressor.v3.Compressor.CommonDirectionConfig common_config = 1;

    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 Details

    • hasCommonConfig

      boolean hasCommonConfig()
      .envoy.extensions.filters.http.compressor.v3.Compressor.CommonDirectionConfig common_config = 1;
      Returns:
      Whether the commonConfig field is set.
    • getCommonConfig

      .envoy.extensions.filters.http.compressor.v3.Compressor.CommonDirectionConfig common_config = 1;
      Returns:
      The commonConfig.
    • getCommonConfigOrBuilder

      Compressor.CommonDirectionConfigOrBuilder getCommonConfigOrBuilder()
      .envoy.extensions.filters.http.compressor.v3.Compressor.CommonDirectionConfig common_config = 1;
    • getDisableOnEtagHeader

      boolean getDisableOnEtagHeader()
       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.
       
      bool disable_on_etag_header = 2;
      Returns:
      The disableOnEtagHeader.
    • getRemoveAcceptEncodingHeader

      boolean getRemoveAcceptEncodingHeader()
       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::
      
          To avoid interfering with other compression filters in the same chain use this option in
          the filter closest to the upstream.
       
      bool remove_accept_encoding_header = 3;
      Returns:
      The removeAcceptEncodingHeader.
    • getUncompressibleResponseCodesList

      List<Integer> getUncompressibleResponseCodesList()
       Set of response codes for which compression is disabled, e.g. 206 Partial Content should not
       be compressed.
       
      repeated uint32 uncompressible_response_codes = 4 [(.validate.rules) = { ... }
      Returns:
      A list containing the uncompressibleResponseCodes.
    • getUncompressibleResponseCodesCount

      int getUncompressibleResponseCodesCount()
       Set of response codes for which compression is disabled, e.g. 206 Partial Content should not
       be compressed.
       
      repeated uint32 uncompressible_response_codes = 4 [(.validate.rules) = { ... }
      Returns:
      The count of uncompressibleResponseCodes.
    • getUncompressibleResponseCodes

      int getUncompressibleResponseCodes(int index)
       Set of response codes for which compression is disabled, e.g. 206 Partial Content should not
       be compressed.
       
      repeated uint32 uncompressible_response_codes = 4 [(.validate.rules) = { ... }
      Parameters:
      index - The index of the element to return.
      Returns:
      The uncompressibleResponseCodes at the given index.