Class Compressor.CommonDirectionConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Compressor.CommonDirectionConfig.Builder>
io.envoyproxy.envoy.extensions.filters.http.compressor.v3.Compressor.CommonDirectionConfig.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Compressor.CommonDirectionConfigOrBuilder, Cloneable
Enclosing class:
Compressor.CommonDirectionConfig

public static final class Compressor.CommonDirectionConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Compressor.CommonDirectionConfig.Builder> implements Compressor.CommonDirectionConfigOrBuilder
Protobuf type envoy.extensions.filters.http.compressor.v3.Compressor.CommonDirectionConfig
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Compressor.CommonDirectionConfig.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<Compressor.CommonDirectionConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Compressor.CommonDirectionConfig.Builder>
    • getDefaultInstanceForType

      public Compressor.CommonDirectionConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Compressor.CommonDirectionConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Compressor.CommonDirectionConfig.Builder>
    • setField

      public Compressor.CommonDirectionConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Compressor.CommonDirectionConfig.Builder>
    • clearField

      public Compressor.CommonDirectionConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Compressor.CommonDirectionConfig.Builder>
    • clearOneof

      public Compressor.CommonDirectionConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Compressor.CommonDirectionConfig.Builder>
    • setRepeatedField

      public Compressor.CommonDirectionConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Compressor.CommonDirectionConfig.Builder>
    • addRepeatedField

      public Compressor.CommonDirectionConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Compressor.CommonDirectionConfig.Builder>
    • mergeFrom

      public Compressor.CommonDirectionConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Compressor.CommonDirectionConfig.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Compressor.CommonDirectionConfig.Builder>
    • mergeFrom

      public Compressor.CommonDirectionConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Compressor.CommonDirectionConfig.Builder>
      Throws:
      IOException
    • hasEnabled

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

      public RuntimeFeatureFlag getEnabled()
       Runtime flag that controls whether compression is enabled for the direction this
       common config is applied to. When this field is ``false``, the filter will operate as a
       pass-through filter in the chosen direction, unless overridden by ``CompressorPerRoute``.
       If this field is not specified, the filter will be enabled.
       
      .envoy.config.core.v3.RuntimeFeatureFlag enabled = 1;
      Specified by:
      getEnabled in interface Compressor.CommonDirectionConfigOrBuilder
      Returns:
      The enabled.
    • setEnabled

       Runtime flag that controls whether compression is enabled for the direction this
       common config is applied to. When this field is ``false``, the filter will operate as a
       pass-through filter in the chosen direction, unless overridden by ``CompressorPerRoute``.
       If this field is not specified, the filter will be enabled.
       
      .envoy.config.core.v3.RuntimeFeatureFlag enabled = 1;
    • setEnabled

       Runtime flag that controls whether compression is enabled for the direction this
       common config is applied to. When this field is ``false``, the filter will operate as a
       pass-through filter in the chosen direction, unless overridden by ``CompressorPerRoute``.
       If this field is not specified, the filter will be enabled.
       
      .envoy.config.core.v3.RuntimeFeatureFlag enabled = 1;
    • mergeEnabled

       Runtime flag that controls whether compression is enabled for the direction this
       common config is applied to. When this field is ``false``, the filter will operate as a
       pass-through filter in the chosen direction, unless overridden by ``CompressorPerRoute``.
       If this field is not specified, the filter will be enabled.
       
      .envoy.config.core.v3.RuntimeFeatureFlag enabled = 1;
    • clearEnabled

       Runtime flag that controls whether compression is enabled for the direction this
       common config is applied to. When this field is ``false``, the filter will operate as a
       pass-through filter in the chosen direction, unless overridden by ``CompressorPerRoute``.
       If this field is not specified, the filter will be enabled.
       
      .envoy.config.core.v3.RuntimeFeatureFlag enabled = 1;
    • getEnabledBuilder

      public RuntimeFeatureFlag.Builder getEnabledBuilder()
       Runtime flag that controls whether compression is enabled for the direction this
       common config is applied to. When this field is ``false``, the filter will operate as a
       pass-through filter in the chosen direction, unless overridden by ``CompressorPerRoute``.
       If this field is not specified, the filter will be enabled.
       
      .envoy.config.core.v3.RuntimeFeatureFlag enabled = 1;
    • getEnabledOrBuilder

      public RuntimeFeatureFlagOrBuilder getEnabledOrBuilder()
       Runtime flag that controls whether compression is enabled for the direction this
       common config is applied to. When this field is ``false``, the filter will operate as a
       pass-through filter in the chosen direction, unless overridden by ``CompressorPerRoute``.
       If this field is not specified, the filter will be enabled.
       
      .envoy.config.core.v3.RuntimeFeatureFlag enabled = 1;
      Specified by:
      getEnabledOrBuilder in interface Compressor.CommonDirectionConfigOrBuilder
    • hasMinContentLength

      public boolean hasMinContentLength()
       Minimum value of the ``Content-Length`` header in request or response messages (depending on the
       direction this common config is applied to), in bytes, that will trigger compression. Defaults to 30.
       
      .google.protobuf.UInt32Value min_content_length = 2;
      Specified by:
      hasMinContentLength in interface Compressor.CommonDirectionConfigOrBuilder
      Returns:
      Whether the minContentLength field is set.
    • getMinContentLength

      public com.google.protobuf.UInt32Value getMinContentLength()
       Minimum value of the ``Content-Length`` header in request or response messages (depending on the
       direction this common config is applied to), in bytes, that will trigger compression. Defaults to 30.
       
      .google.protobuf.UInt32Value min_content_length = 2;
      Specified by:
      getMinContentLength in interface Compressor.CommonDirectionConfigOrBuilder
      Returns:
      The minContentLength.
    • setMinContentLength

      public Compressor.CommonDirectionConfig.Builder setMinContentLength(com.google.protobuf.UInt32Value value)
       Minimum value of the ``Content-Length`` header in request or response messages (depending on the
       direction this common config is applied to), in bytes, that will trigger compression. Defaults to 30.
       
      .google.protobuf.UInt32Value min_content_length = 2;
    • setMinContentLength

      public Compressor.CommonDirectionConfig.Builder setMinContentLength(com.google.protobuf.UInt32Value.Builder builderForValue)
       Minimum value of the ``Content-Length`` header in request or response messages (depending on the
       direction this common config is applied to), in bytes, that will trigger compression. Defaults to 30.
       
      .google.protobuf.UInt32Value min_content_length = 2;
    • mergeMinContentLength

      public Compressor.CommonDirectionConfig.Builder mergeMinContentLength(com.google.protobuf.UInt32Value value)
       Minimum value of the ``Content-Length`` header in request or response messages (depending on the
       direction this common config is applied to), in bytes, that will trigger compression. Defaults to 30.
       
      .google.protobuf.UInt32Value min_content_length = 2;
    • clearMinContentLength

      public Compressor.CommonDirectionConfig.Builder clearMinContentLength()
       Minimum value of the ``Content-Length`` header in request or response messages (depending on the
       direction this common config is applied to), in bytes, that will trigger compression. Defaults to 30.
       
      .google.protobuf.UInt32Value min_content_length = 2;
    • getMinContentLengthBuilder

      public com.google.protobuf.UInt32Value.Builder getMinContentLengthBuilder()
       Minimum value of the ``Content-Length`` header in request or response messages (depending on the
       direction this common config is applied to), in bytes, that will trigger compression. Defaults to 30.
       
      .google.protobuf.UInt32Value min_content_length = 2;
    • getMinContentLengthOrBuilder

      public com.google.protobuf.UInt32ValueOrBuilder getMinContentLengthOrBuilder()
       Minimum value of the ``Content-Length`` header in request or response messages (depending on the
       direction this common config is applied to), in bytes, that will trigger compression. Defaults to 30.
       
      .google.protobuf.UInt32Value min_content_length = 2;
      Specified by:
      getMinContentLengthOrBuilder in interface Compressor.CommonDirectionConfigOrBuilder
    • getContentTypeList

      public com.google.protobuf.ProtocolStringList getContentTypeList()
       Set of strings that allows specifying which mime-types yield compression; e.g.,
       ``application/json``, ``text/html``, etc.
      
       When this field is not specified, compression will be applied to these following mime-types
       and their synonyms:
      
       * ``application/javascript``
       * ``application/json``
       * ``application/xhtml+xml``
       * ``image/svg+xml``
       * ``text/css``
       * ``text/html``
       * ``text/plain``
       * ``text/xml``
       
      repeated string content_type = 3;
      Specified by:
      getContentTypeList in interface Compressor.CommonDirectionConfigOrBuilder
      Returns:
      A list containing the contentType.
    • getContentTypeCount

      public 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 specified, compression will be applied to these following mime-types
       and their synonyms:
      
       * ``application/javascript``
       * ``application/json``
       * ``application/xhtml+xml``
       * ``image/svg+xml``
       * ``text/css``
       * ``text/html``
       * ``text/plain``
       * ``text/xml``
       
      repeated string content_type = 3;
      Specified by:
      getContentTypeCount in interface Compressor.CommonDirectionConfigOrBuilder
      Returns:
      The count of contentType.
    • getContentType

      public 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 specified, compression will be applied to these following mime-types
       and their synonyms:
      
       * ``application/javascript``
       * ``application/json``
       * ``application/xhtml+xml``
       * ``image/svg+xml``
       * ``text/css``
       * ``text/html``
       * ``text/plain``
       * ``text/xml``
       
      repeated string content_type = 3;
      Specified by:
      getContentType in interface Compressor.CommonDirectionConfigOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The contentType at the given index.
    • getContentTypeBytes

      public 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 specified, compression will be applied to these following mime-types
       and their synonyms:
      
       * ``application/javascript``
       * ``application/json``
       * ``application/xhtml+xml``
       * ``image/svg+xml``
       * ``text/css``
       * ``text/html``
       * ``text/plain``
       * ``text/xml``
       
      repeated string content_type = 3;
      Specified by:
      getContentTypeBytes in interface Compressor.CommonDirectionConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the contentType at the given index.
    • setContentType

      public Compressor.CommonDirectionConfig.Builder setContentType(int index, String value)
       Set of strings that allows specifying which mime-types yield compression; e.g.,
       ``application/json``, ``text/html``, etc.
      
       When this field is not specified, compression will be applied to these following mime-types
       and their synonyms:
      
       * ``application/javascript``
       * ``application/json``
       * ``application/xhtml+xml``
       * ``image/svg+xml``
       * ``text/css``
       * ``text/html``
       * ``text/plain``
       * ``text/xml``
       
      repeated string content_type = 3;
      Parameters:
      index - The index to set the value at.
      value - The contentType to set.
      Returns:
      This builder for chaining.
    • addContentType

      public Compressor.CommonDirectionConfig.Builder addContentType(String value)
       Set of strings that allows specifying which mime-types yield compression; e.g.,
       ``application/json``, ``text/html``, etc.
      
       When this field is not specified, compression will be applied to these following mime-types
       and their synonyms:
      
       * ``application/javascript``
       * ``application/json``
       * ``application/xhtml+xml``
       * ``image/svg+xml``
       * ``text/css``
       * ``text/html``
       * ``text/plain``
       * ``text/xml``
       
      repeated string content_type = 3;
      Parameters:
      value - The contentType to add.
      Returns:
      This builder for chaining.
    • addAllContentType

      public Compressor.CommonDirectionConfig.Builder addAllContentType(Iterable<String> values)
       Set of strings that allows specifying which mime-types yield compression; e.g.,
       ``application/json``, ``text/html``, etc.
      
       When this field is not specified, compression will be applied to these following mime-types
       and their synonyms:
      
       * ``application/javascript``
       * ``application/json``
       * ``application/xhtml+xml``
       * ``image/svg+xml``
       * ``text/css``
       * ``text/html``
       * ``text/plain``
       * ``text/xml``
       
      repeated string content_type = 3;
      Parameters:
      values - The contentType to add.
      Returns:
      This builder for chaining.
    • clearContentType

      public Compressor.CommonDirectionConfig.Builder clearContentType()
       Set of strings that allows specifying which mime-types yield compression; e.g.,
       ``application/json``, ``text/html``, etc.
      
       When this field is not specified, compression will be applied to these following mime-types
       and their synonyms:
      
       * ``application/javascript``
       * ``application/json``
       * ``application/xhtml+xml``
       * ``image/svg+xml``
       * ``text/css``
       * ``text/html``
       * ``text/plain``
       * ``text/xml``
       
      repeated string content_type = 3;
      Returns:
      This builder for chaining.
    • addContentTypeBytes

      public Compressor.CommonDirectionConfig.Builder addContentTypeBytes(com.google.protobuf.ByteString value)
       Set of strings that allows specifying which mime-types yield compression; e.g.,
       ``application/json``, ``text/html``, etc.
      
       When this field is not specified, compression will be applied to these following mime-types
       and their synonyms:
      
       * ``application/javascript``
       * ``application/json``
       * ``application/xhtml+xml``
       * ``image/svg+xml``
       * ``text/css``
       * ``text/html``
       * ``text/plain``
       * ``text/xml``
       
      repeated string content_type = 3;
      Parameters:
      value - The bytes of the contentType to add.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final Compressor.CommonDirectionConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Compressor.CommonDirectionConfig.Builder>
    • mergeUnknownFields

      public final Compressor.CommonDirectionConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Compressor.CommonDirectionConfig.Builder>