Interface Compressor.CommonDirectionConfigOrBuilder

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

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

    Modifier and Type
    Method
    Description
    getContentType(int index)
    Set of strings that allows specifying which mime-types yield compression; e.g., application/json, text/html, etc.
    com.google.protobuf.ByteString
    Set of strings that allows specifying which mime-types yield compression; e.g., application/json, text/html, etc.
    int
    Set of strings that allows specifying which mime-types yield compression; e.g., application/json, text/html, etc.
    Set of strings that allows specifying which mime-types yield compression; e.g., application/json, text/html, etc.
    Runtime flag that controls whether compression is enabled or not for the direction this common config is put in.
    Runtime flag that controls whether compression is enabled or not for the direction this common config is put in.
    com.google.protobuf.UInt32Value
    Minimum value of Content-Length header of request or response messages (depending on the direction this common config is put in), in bytes, which will trigger compression.
    com.google.protobuf.UInt32ValueOrBuilder
    Minimum value of Content-Length header of request or response messages (depending on the direction this common config is put in), in bytes, which will trigger compression.
    boolean
    Runtime flag that controls whether compression is enabled or not for the direction this common config is put in.
    boolean
    Minimum value of Content-Length header of request or response messages (depending on the direction this common config is put in), in bytes, which will trigger compression.

    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

    • hasEnabled

      boolean hasEnabled()
       Runtime flag that controls whether compression is enabled or not for the direction this
       common config is put in. If set to false, the filter will operate as a pass-through filter
       in the chosen direction, unless overridden by CompressorPerRoute.
       If the field is omitted, the filter will be enabled.
       
      .envoy.config.core.v3.RuntimeFeatureFlag enabled = 1;
      Returns:
      Whether the enabled field is set.
    • getEnabled

      RuntimeFeatureFlag getEnabled()
       Runtime flag that controls whether compression is enabled or not for the direction this
       common config is put in. If set to false, the filter will operate as a pass-through filter
       in the chosen direction, unless overridden by CompressorPerRoute.
       If the field is omitted, the filter will be enabled.
       
      .envoy.config.core.v3.RuntimeFeatureFlag enabled = 1;
      Returns:
      The enabled.
    • getEnabledOrBuilder

      RuntimeFeatureFlagOrBuilder getEnabledOrBuilder()
       Runtime flag that controls whether compression is enabled or not for the direction this
       common config is put in. If set to false, the filter will operate as a pass-through filter
       in the chosen direction, unless overridden by CompressorPerRoute.
       If the field is omitted, the filter will be enabled.
       
      .envoy.config.core.v3.RuntimeFeatureFlag enabled = 1;
    • hasMinContentLength

      boolean hasMinContentLength()
       Minimum value of Content-Length header of request or response messages (depending on the direction
       this common config is put in), in bytes, which will trigger compression. The default value is 30.
       
      .google.protobuf.UInt32Value min_content_length = 2;
      Returns:
      Whether the minContentLength field is set.
    • getMinContentLength

      com.google.protobuf.UInt32Value getMinContentLength()
       Minimum value of Content-Length header of request or response messages (depending on the direction
       this common config is put in), in bytes, which will trigger compression. The default value is 30.
       
      .google.protobuf.UInt32Value min_content_length = 2;
      Returns:
      The minContentLength.
    • getMinContentLengthOrBuilder

      com.google.protobuf.UInt32ValueOrBuilder getMinContentLengthOrBuilder()
       Minimum value of Content-Length header of request or response messages (depending on the direction
       this common config is put in), in bytes, which will trigger compression. The default value is 30.
       
      .google.protobuf.UInt32Value min_content_length = 2;
    • getContentTypeList

      List<String> getContentTypeList()
       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"
       and their synonyms.
       
      repeated string content_type = 3;
      Returns:
      A list containing the contentType.
    • getContentTypeCount

      int getContentTypeCount()
       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"
       and their synonyms.
       
      repeated string content_type = 3;
      Returns:
      The count of contentType.
    • getContentType

      String getContentType(int index)
       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"
       and their synonyms.
       
      repeated string content_type = 3;
      Parameters:
      index - The index of the element to return.
      Returns:
      The contentType at the given index.
    • getContentTypeBytes

      com.google.protobuf.ByteString getContentTypeBytes(int index)
       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"
       and their synonyms.
       
      repeated string content_type = 3;
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the contentType at the given index.