Class Compressor.CommonDirectionConfig.Builder

    • Method Detail

      • 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>
      • 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

        public Compressor.CommonDirectionConfig 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
      • 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>
      • hasEnabled

        public 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. If the field is omitted, 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 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. If the field is omitted, the filter will be enabled.
         
        .envoy.config.core.v3.RuntimeFeatureFlag enabled = 1;
        Specified by:
        getEnabled in interface Compressor.CommonDirectionConfigOrBuilder
        Returns:
        The enabled.
      • setEnabled

        public Compressor.CommonDirectionConfig.Builder setEnabled​(RuntimeFeatureFlag value)
         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. If the field is omitted, the filter will be enabled.
         
        .envoy.config.core.v3.RuntimeFeatureFlag enabled = 1;
      • setEnabled

        public Compressor.CommonDirectionConfig.Builder setEnabled​(RuntimeFeatureFlag.Builder builderForValue)
         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. If the field is omitted, the filter will be enabled.
         
        .envoy.config.core.v3.RuntimeFeatureFlag enabled = 1;
      • mergeEnabled

        public Compressor.CommonDirectionConfig.Builder mergeEnabled​(RuntimeFeatureFlag value)
         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. If the field is omitted, the filter will be enabled.
         
        .envoy.config.core.v3.RuntimeFeatureFlag enabled = 1;
      • clearEnabled

        public Compressor.CommonDirectionConfig.Builder clearEnabled()
         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. If the field is omitted, 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 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. If the field is omitted, the filter will be enabled.
         
        .envoy.config.core.v3.RuntimeFeatureFlag enabled = 1;
      • getEnabledOrBuilder

        public 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. If the field is omitted, 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 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;
        Specified by:
        hasMinContentLength in interface Compressor.CommonDirectionConfigOrBuilder
        Returns:
        Whether the minContentLength field is set.
      • getMinContentLength

        public 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;
        Specified by:
        getMinContentLength in interface Compressor.CommonDirectionConfigOrBuilder
        Returns:
        The minContentLength.
      • setMinContentLength

        public Compressor.CommonDirectionConfig.Builder setMinContentLength​(com.google.protobuf.UInt32Value value)
         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;
      • setMinContentLength

        public Compressor.CommonDirectionConfig.Builder setMinContentLength​(com.google.protobuf.UInt32Value.Builder builderForValue)
         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;
      • mergeMinContentLength

        public Compressor.CommonDirectionConfig.Builder mergeMinContentLength​(com.google.protobuf.UInt32Value value)
         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;
      • clearMinContentLength

        public Compressor.CommonDirectionConfig.Builder clearMinContentLength()
         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;
      • getMinContentLengthBuilder

        public com.google.protobuf.UInt32Value.Builder getMinContentLengthBuilder()
         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;
      • getMinContentLengthOrBuilder

        public 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;
        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 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;
        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 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;
        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 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;
        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 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;
        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 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 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 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:
        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 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:
        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 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:
        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 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:
        value - The bytes of the contentType to add.
        Returns:
        This builder for chaining.