Class Compressor.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Compressor.Builder>
io.envoyproxy.envoy.extensions.filters.http.compressor.v3.Compressor.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,CompressorOrBuilder,Cloneable
- Enclosing class:
- Compressor
public static final class Compressor.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Compressor.Builder>
implements CompressorOrBuilder
[#next-free-field: 10]Protobuf type
envoy.extensions.filters.http.compressor.v3.Compressor-
Method Summary
Modifier and TypeMethodDescriptionaddAllContentType(Iterable<String> values) Deprecated.envoy.extensions.filters.http.compressor.v3.Compressor.content_type is deprecated.addContentType(String value) Deprecated.envoy.extensions.filters.http.compressor.v3.Compressor.content_type is deprecated.addContentTypeBytes(com.google.protobuf.ByteString value) Deprecated.envoy.extensions.filters.http.compressor.v3.Compressor.content_type is deprecated.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()When this field is ``true``, this compressor is preferred when q-values in ``Accept-Encoding`` are equal.A compressor library to use for compression.Deprecated.Deprecated.envoy.extensions.filters.http.compressor.v3.Compressor.content_type is deprecated.Deprecated.envoy.extensions.filters.http.compressor.v3.Compressor.disable_on_etag_header is deprecated.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Deprecated.envoy.extensions.filters.http.compressor.v3.Compressor.remove_accept_encoding_header is deprecated.Configuration for request compression.Configuration for response compression.Deprecated.clone()booleanWhen this field is ``true``, this compressor is preferred when q-values in ``Accept-Encoding`` are equal.A compressor library to use for compression.A compressor library to use for compression.A compressor library to use for compression.com.google.protobuf.UInt32ValueDeprecated.envoy.extensions.filters.http.compressor.v3.Compressor.content_length is deprecated.com.google.protobuf.UInt32Value.BuilderDeprecated.com.google.protobuf.UInt32ValueOrBuilderDeprecated.getContentType(int index) Deprecated.envoy.extensions.filters.http.compressor.v3.Compressor.content_type is deprecated.com.google.protobuf.ByteStringgetContentTypeBytes(int index) Deprecated.envoy.extensions.filters.http.compressor.v3.Compressor.content_type is deprecated.intDeprecated.envoy.extensions.filters.http.compressor.v3.Compressor.content_type is deprecated.com.google.protobuf.ProtocolStringListDeprecated.envoy.extensions.filters.http.compressor.v3.Compressor.content_type is deprecated.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanDeprecated.envoy.extensions.filters.http.compressor.v3.Compressor.disable_on_etag_header is deprecated.booleanDeprecated.envoy.extensions.filters.http.compressor.v3.Compressor.remove_accept_encoding_header is deprecated.Configuration for request compression.Configuration for request compression.Configuration for request compression.Configuration for response compression.Configuration for response compression.Configuration for response compression.Deprecated.envoy.extensions.filters.http.compressor.v3.Compressor.runtime_enabled is deprecated.Deprecated.Deprecated.booleanA compressor library to use for compression.booleanDeprecated.envoy.extensions.filters.http.compressor.v3.Compressor.content_length is deprecated.booleanConfiguration for request compression.booleanConfiguration for response compression.booleanDeprecated.envoy.extensions.filters.http.compressor.v3.Compressor.runtime_enabled is deprecated.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanA compressor library to use for compression.mergeContentLength(com.google.protobuf.UInt32Value value) Deprecated.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Compressor other) Configuration for request compression.Configuration for response compression.Deprecated.final Compressor.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setChooseFirst(boolean value) When this field is ``true``, this compressor is preferred when q-values in ``Accept-Encoding`` are equal.A compressor library to use for compression.setCompressorLibrary(TypedExtensionConfig.Builder builderForValue) A compressor library to use for compression.setContentLength(com.google.protobuf.UInt32Value value) Deprecated.setContentLength(com.google.protobuf.UInt32Value.Builder builderForValue) Deprecated.setContentType(int index, String value) Deprecated.envoy.extensions.filters.http.compressor.v3.Compressor.content_type is deprecated.setDisableOnEtagHeader(boolean value) Deprecated.envoy.extensions.filters.http.compressor.v3.Compressor.disable_on_etag_header is deprecated.setRemoveAcceptEncodingHeader(boolean value) Deprecated.envoy.extensions.filters.http.compressor.v3.Compressor.remove_accept_encoding_header is deprecated.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) Configuration for request compression.setRequestDirectionConfig(Compressor.RequestDirectionConfig.Builder builderForValue) Configuration for request compression.Configuration for response compression.setResponseDirectionConfig(Compressor.ResponseDirectionConfig.Builder builderForValue) Configuration for response compression.Deprecated.setRuntimeEnabled(RuntimeFeatureFlag.Builder builderForValue) Deprecated.final Compressor.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Compressor.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Compressor.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Compressor.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Compressor.Builder>
-
setField
public Compressor.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Compressor.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Compressor.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Compressor.Builder>
-
setRepeatedField
public Compressor.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Compressor.Builder>
-
addRepeatedField
public Compressor.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Compressor.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Compressor.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Compressor.Builder>
-
mergeFrom
public Compressor.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Compressor.Builder>- Throws:
IOException
-
hasContentLength
Deprecated.envoy.extensions.filters.http.compressor.v3.Compressor.content_length is deprecated. See envoy/extensions/filters/http/compressor/v3/compressor.proto;l=101Minimum response length, in bytes, which will trigger compression. The default value is 30.
.google.protobuf.UInt32Value content_length = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];- Specified by:
hasContentLengthin interfaceCompressorOrBuilder- Returns:
- Whether the contentLength field is set.
-
getContentLength
Deprecated.envoy.extensions.filters.http.compressor.v3.Compressor.content_length is deprecated. See envoy/extensions/filters/http/compressor/v3/compressor.proto;l=101Minimum response length, in bytes, which will trigger compression. The default value is 30.
.google.protobuf.UInt32Value content_length = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];- Specified by:
getContentLengthin interfaceCompressorOrBuilder- Returns:
- The contentLength.
-
setContentLength
Deprecated.Minimum response length, in bytes, which will trigger compression. The default value is 30.
.google.protobuf.UInt32Value content_length = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"]; -
setContentLength
@Deprecated public Compressor.Builder setContentLength(com.google.protobuf.UInt32Value.Builder builderForValue) Deprecated.Minimum response length, in bytes, which will trigger compression. The default value is 30.
.google.protobuf.UInt32Value content_length = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"]; -
mergeContentLength
Deprecated.Minimum response length, in bytes, which will trigger compression. The default value is 30.
.google.protobuf.UInt32Value content_length = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"]; -
clearContentLength
Deprecated.Minimum response length, in bytes, which will trigger compression. The default value is 30.
.google.protobuf.UInt32Value content_length = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"]; -
getContentLengthBuilder
Deprecated.Minimum response length, in bytes, which will trigger compression. The default value is 30.
.google.protobuf.UInt32Value content_length = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"]; -
getContentLengthOrBuilder
Deprecated.Minimum response length, in bytes, which will trigger compression. The default value is 30.
.google.protobuf.UInt32Value content_length = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];- Specified by:
getContentLengthOrBuilderin interfaceCompressorOrBuilder
-
getContentTypeList
Deprecated.envoy.extensions.filters.http.compressor.v3.Compressor.content_type is deprecated. See envoy/extensions/filters/http/compressor/v3/compressor.proto;l=119Set 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 = 2 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];- Specified by:
getContentTypeListin interfaceCompressorOrBuilder- Returns:
- A list containing the contentType.
-
getContentTypeCount
Deprecated.envoy.extensions.filters.http.compressor.v3.Compressor.content_type is deprecated. See envoy/extensions/filters/http/compressor/v3/compressor.proto;l=119Set 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 = 2 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];- Specified by:
getContentTypeCountin interfaceCompressorOrBuilder- Returns:
- The count of contentType.
-
getContentType
Deprecated.envoy.extensions.filters.http.compressor.v3.Compressor.content_type is deprecated. See envoy/extensions/filters/http/compressor/v3/compressor.proto;l=119Set 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 = 2 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];- Specified by:
getContentTypein interfaceCompressorOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The contentType at the given index.
-
getContentTypeBytes
Deprecated.envoy.extensions.filters.http.compressor.v3.Compressor.content_type is deprecated. See envoy/extensions/filters/http/compressor/v3/compressor.proto;l=119Set 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 = 2 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];- Specified by:
getContentTypeBytesin interfaceCompressorOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the contentType at the given index.
-
setContentType
Deprecated.envoy.extensions.filters.http.compressor.v3.Compressor.content_type is deprecated. See envoy/extensions/filters/http/compressor/v3/compressor.proto;l=119Set 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 = 2 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];- Parameters:
index- The index to set the value at.value- The contentType to set.- Returns:
- This builder for chaining.
-
addContentType
Deprecated.envoy.extensions.filters.http.compressor.v3.Compressor.content_type is deprecated. See envoy/extensions/filters/http/compressor/v3/compressor.proto;l=119Set 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 = 2 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];- Parameters:
value- The contentType to add.- Returns:
- This builder for chaining.
-
addAllContentType
Deprecated.envoy.extensions.filters.http.compressor.v3.Compressor.content_type is deprecated. See envoy/extensions/filters/http/compressor/v3/compressor.proto;l=119Set 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 = 2 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];- Parameters:
values- The contentType to add.- Returns:
- This builder for chaining.
-
clearContentType
Deprecated.envoy.extensions.filters.http.compressor.v3.Compressor.content_type is deprecated. See envoy/extensions/filters/http/compressor/v3/compressor.proto;l=119Set 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 = 2 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];- Returns:
- This builder for chaining.
-
addContentTypeBytes
Deprecated.envoy.extensions.filters.http.compressor.v3.Compressor.content_type is deprecated. See envoy/extensions/filters/http/compressor/v3/compressor.proto;l=119Set 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 = 2 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];- Parameters:
value- The bytes of the contentType to add.- Returns:
- This builder for chaining.
-
getDisableOnEtagHeader
Deprecated.envoy.extensions.filters.http.compressor.v3.Compressor.disable_on_etag_header is deprecated. See envoy/extensions/filters/http/compressor/v3/compressor.proto;l=125When this field is ``true``, disables compression when the response contains an ``ETag`` header. When this field is ``false``, the filter will preserve weak ``ETag`` values and remove those that require strong validation.
bool disable_on_etag_header = 3 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];- Specified by:
getDisableOnEtagHeaderin interfaceCompressorOrBuilder- Returns:
- The disableOnEtagHeader.
-
setDisableOnEtagHeader
Deprecated.envoy.extensions.filters.http.compressor.v3.Compressor.disable_on_etag_header is deprecated. See envoy/extensions/filters/http/compressor/v3/compressor.proto;l=125When this field is ``true``, disables compression when the response contains an ``ETag`` header. When this field is ``false``, the filter will preserve weak ``ETag`` values and remove those that require strong validation.
bool disable_on_etag_header = 3 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];- Parameters:
value- The disableOnEtagHeader to set.- Returns:
- This builder for chaining.
-
clearDisableOnEtagHeader
Deprecated.envoy.extensions.filters.http.compressor.v3.Compressor.disable_on_etag_header is deprecated. See envoy/extensions/filters/http/compressor/v3/compressor.proto;l=125When this field is ``true``, disables compression when the response contains an ``ETag`` header. When this field is ``false``, the filter will preserve weak ``ETag`` values and remove those that require strong validation.
bool disable_on_etag_header = 3 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];- Returns:
- This builder for chaining.
-
getRemoveAcceptEncodingHeader
Deprecated.envoy.extensions.filters.http.compressor.v3.Compressor.remove_accept_encoding_header is deprecated. See envoy/extensions/filters/http/compressor/v3/compressor.proto;l=135When this field is ``true``, removes ``Accept-Encoding`` from the request headers before dispatching the request 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 = 4 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];- Specified by:
getRemoveAcceptEncodingHeaderin interfaceCompressorOrBuilder- Returns:
- The removeAcceptEncodingHeader.
-
setRemoveAcceptEncodingHeader
Deprecated.envoy.extensions.filters.http.compressor.v3.Compressor.remove_accept_encoding_header is deprecated. See envoy/extensions/filters/http/compressor/v3/compressor.proto;l=135When this field is ``true``, removes ``Accept-Encoding`` from the request headers before dispatching the request 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 = 4 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];- Parameters:
value- The removeAcceptEncodingHeader to set.- Returns:
- This builder for chaining.
-
clearRemoveAcceptEncodingHeader
Deprecated.envoy.extensions.filters.http.compressor.v3.Compressor.remove_accept_encoding_header is deprecated. See envoy/extensions/filters/http/compressor/v3/compressor.proto;l=135When this field is ``true``, removes ``Accept-Encoding`` from the request headers before dispatching the request 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 = 4 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];- Returns:
- This builder for chaining.
-
hasRuntimeEnabled
Deprecated.envoy.extensions.filters.http.compressor.v3.Compressor.runtime_enabled is deprecated. See envoy/extensions/filters/http/compressor/v3/compressor.proto;l=141Runtime flag that controls whether the filter is enabled. When this field is ``false``, the filter will operate as a pass-through filter, unless overridden by ``CompressorPerRoute``. If this field is not specified, the filter is enabled by default.
.envoy.config.core.v3.RuntimeFeatureFlag runtime_enabled = 5 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];- Specified by:
hasRuntimeEnabledin interfaceCompressorOrBuilder- Returns:
- Whether the runtimeEnabled field is set.
-
getRuntimeEnabled
Deprecated.envoy.extensions.filters.http.compressor.v3.Compressor.runtime_enabled is deprecated. See envoy/extensions/filters/http/compressor/v3/compressor.proto;l=141Runtime flag that controls whether the filter is enabled. When this field is ``false``, the filter will operate as a pass-through filter, unless overridden by ``CompressorPerRoute``. If this field is not specified, the filter is enabled by default.
.envoy.config.core.v3.RuntimeFeatureFlag runtime_enabled = 5 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];- Specified by:
getRuntimeEnabledin interfaceCompressorOrBuilder- Returns:
- The runtimeEnabled.
-
setRuntimeEnabled
Deprecated.Runtime flag that controls whether the filter is enabled. When this field is ``false``, the filter will operate as a pass-through filter, unless overridden by ``CompressorPerRoute``. If this field is not specified, the filter is enabled by default.
.envoy.config.core.v3.RuntimeFeatureFlag runtime_enabled = 5 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"]; -
setRuntimeEnabled
Deprecated.Runtime flag that controls whether the filter is enabled. When this field is ``false``, the filter will operate as a pass-through filter, unless overridden by ``CompressorPerRoute``. If this field is not specified, the filter is enabled by default.
.envoy.config.core.v3.RuntimeFeatureFlag runtime_enabled = 5 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"]; -
mergeRuntimeEnabled
Deprecated.Runtime flag that controls whether the filter is enabled. When this field is ``false``, the filter will operate as a pass-through filter, unless overridden by ``CompressorPerRoute``. If this field is not specified, the filter is enabled by default.
.envoy.config.core.v3.RuntimeFeatureFlag runtime_enabled = 5 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"]; -
clearRuntimeEnabled
Deprecated.Runtime flag that controls whether the filter is enabled. When this field is ``false``, the filter will operate as a pass-through filter, unless overridden by ``CompressorPerRoute``. If this field is not specified, the filter is enabled by default.
.envoy.config.core.v3.RuntimeFeatureFlag runtime_enabled = 5 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"]; -
getRuntimeEnabledBuilder
Deprecated.Runtime flag that controls whether the filter is enabled. When this field is ``false``, the filter will operate as a pass-through filter, unless overridden by ``CompressorPerRoute``. If this field is not specified, the filter is enabled by default.
.envoy.config.core.v3.RuntimeFeatureFlag runtime_enabled = 5 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"]; -
getRuntimeEnabledOrBuilder
Deprecated.Runtime flag that controls whether the filter is enabled. When this field is ``false``, the filter will operate as a pass-through filter, unless overridden by ``CompressorPerRoute``. If this field is not specified, the filter is enabled by default.
.envoy.config.core.v3.RuntimeFeatureFlag runtime_enabled = 5 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];- Specified by:
getRuntimeEnabledOrBuilderin interfaceCompressorOrBuilder
-
hasCompressorLibrary
public boolean hasCompressorLibrary()A compressor library to use for compression. [#extension-category: envoy.compression.compressor]
.envoy.config.core.v3.TypedExtensionConfig compressor_library = 6 [(.validate.rules) = { ... }- Specified by:
hasCompressorLibraryin interfaceCompressorOrBuilder- Returns:
- Whether the compressorLibrary field is set.
-
getCompressorLibrary
A compressor library to use for compression. [#extension-category: envoy.compression.compressor]
.envoy.config.core.v3.TypedExtensionConfig compressor_library = 6 [(.validate.rules) = { ... }- Specified by:
getCompressorLibraryin interfaceCompressorOrBuilder- Returns:
- The compressorLibrary.
-
setCompressorLibrary
A compressor library to use for compression. [#extension-category: envoy.compression.compressor]
.envoy.config.core.v3.TypedExtensionConfig compressor_library = 6 [(.validate.rules) = { ... } -
setCompressorLibrary
A compressor library to use for compression. [#extension-category: envoy.compression.compressor]
.envoy.config.core.v3.TypedExtensionConfig compressor_library = 6 [(.validate.rules) = { ... } -
mergeCompressorLibrary
A compressor library to use for compression. [#extension-category: envoy.compression.compressor]
.envoy.config.core.v3.TypedExtensionConfig compressor_library = 6 [(.validate.rules) = { ... } -
clearCompressorLibrary
A compressor library to use for compression. [#extension-category: envoy.compression.compressor]
.envoy.config.core.v3.TypedExtensionConfig compressor_library = 6 [(.validate.rules) = { ... } -
getCompressorLibraryBuilder
A compressor library to use for compression. [#extension-category: envoy.compression.compressor]
.envoy.config.core.v3.TypedExtensionConfig compressor_library = 6 [(.validate.rules) = { ... } -
getCompressorLibraryOrBuilder
A compressor library to use for compression. [#extension-category: envoy.compression.compressor]
.envoy.config.core.v3.TypedExtensionConfig compressor_library = 6 [(.validate.rules) = { ... }- Specified by:
getCompressorLibraryOrBuilderin interfaceCompressorOrBuilder
-
hasRequestDirectionConfig
public boolean hasRequestDirectionConfig()Configuration for request compression. If this field is not specified, request compression is disabled.
.envoy.extensions.filters.http.compressor.v3.Compressor.RequestDirectionConfig request_direction_config = 7;- Specified by:
hasRequestDirectionConfigin interfaceCompressorOrBuilder- Returns:
- Whether the requestDirectionConfig field is set.
-
getRequestDirectionConfig
Configuration for request compression. If this field is not specified, request compression is disabled.
.envoy.extensions.filters.http.compressor.v3.Compressor.RequestDirectionConfig request_direction_config = 7;- Specified by:
getRequestDirectionConfigin interfaceCompressorOrBuilder- Returns:
- The requestDirectionConfig.
-
setRequestDirectionConfig
Configuration for request compression. If this field is not specified, request compression is disabled.
.envoy.extensions.filters.http.compressor.v3.Compressor.RequestDirectionConfig request_direction_config = 7; -
setRequestDirectionConfig
public Compressor.Builder setRequestDirectionConfig(Compressor.RequestDirectionConfig.Builder builderForValue) Configuration for request compression. If this field is not specified, request compression is disabled.
.envoy.extensions.filters.http.compressor.v3.Compressor.RequestDirectionConfig request_direction_config = 7; -
mergeRequestDirectionConfig
Configuration for request compression. If this field is not specified, request compression is disabled.
.envoy.extensions.filters.http.compressor.v3.Compressor.RequestDirectionConfig request_direction_config = 7; -
clearRequestDirectionConfig
Configuration for request compression. If this field is not specified, request compression is disabled.
.envoy.extensions.filters.http.compressor.v3.Compressor.RequestDirectionConfig request_direction_config = 7; -
getRequestDirectionConfigBuilder
Configuration for request compression. If this field is not specified, request compression is disabled.
.envoy.extensions.filters.http.compressor.v3.Compressor.RequestDirectionConfig request_direction_config = 7; -
getRequestDirectionConfigOrBuilder
Configuration for request compression. If this field is not specified, request compression is disabled.
.envoy.extensions.filters.http.compressor.v3.Compressor.RequestDirectionConfig request_direction_config = 7;- Specified by:
getRequestDirectionConfigOrBuilderin interfaceCompressorOrBuilder
-
hasResponseDirectionConfig
public boolean hasResponseDirectionConfig()Configuration for response compression. If this field is not specified, response compression is enabled. .. attention:: When this field is set, duplicate deprecated fields of the ``Compressor`` message, such as ``content_length``, ``content_type``, ``disable_on_etag_header``, ``remove_accept_encoding_header``, and ``runtime_enabled``, are ignored. Additionally, all statistics related to response compression will be rooted in ``<stat_prefix>.compressor.<compressor_library.name>.<compressor_library_stat_prefix>.response.*`` instead of ``<stat_prefix>.compressor.<compressor_library.name>.<compressor_library_stat_prefix>.*``..envoy.extensions.filters.http.compressor.v3.Compressor.ResponseDirectionConfig response_direction_config = 8;- Specified by:
hasResponseDirectionConfigin interfaceCompressorOrBuilder- Returns:
- Whether the responseDirectionConfig field is set.
-
getResponseDirectionConfig
Configuration for response compression. If this field is not specified, response compression is enabled. .. attention:: When this field is set, duplicate deprecated fields of the ``Compressor`` message, such as ``content_length``, ``content_type``, ``disable_on_etag_header``, ``remove_accept_encoding_header``, and ``runtime_enabled``, are ignored. Additionally, all statistics related to response compression will be rooted in ``<stat_prefix>.compressor.<compressor_library.name>.<compressor_library_stat_prefix>.response.*`` instead of ``<stat_prefix>.compressor.<compressor_library.name>.<compressor_library_stat_prefix>.*``..envoy.extensions.filters.http.compressor.v3.Compressor.ResponseDirectionConfig response_direction_config = 8;- Specified by:
getResponseDirectionConfigin interfaceCompressorOrBuilder- Returns:
- The responseDirectionConfig.
-
setResponseDirectionConfig
Configuration for response compression. If this field is not specified, response compression is enabled. .. attention:: When this field is set, duplicate deprecated fields of the ``Compressor`` message, such as ``content_length``, ``content_type``, ``disable_on_etag_header``, ``remove_accept_encoding_header``, and ``runtime_enabled``, are ignored. Additionally, all statistics related to response compression will be rooted in ``<stat_prefix>.compressor.<compressor_library.name>.<compressor_library_stat_prefix>.response.*`` instead of ``<stat_prefix>.compressor.<compressor_library.name>.<compressor_library_stat_prefix>.*``..envoy.extensions.filters.http.compressor.v3.Compressor.ResponseDirectionConfig response_direction_config = 8; -
setResponseDirectionConfig
public Compressor.Builder setResponseDirectionConfig(Compressor.ResponseDirectionConfig.Builder builderForValue) Configuration for response compression. If this field is not specified, response compression is enabled. .. attention:: When this field is set, duplicate deprecated fields of the ``Compressor`` message, such as ``content_length``, ``content_type``, ``disable_on_etag_header``, ``remove_accept_encoding_header``, and ``runtime_enabled``, are ignored. Additionally, all statistics related to response compression will be rooted in ``<stat_prefix>.compressor.<compressor_library.name>.<compressor_library_stat_prefix>.response.*`` instead of ``<stat_prefix>.compressor.<compressor_library.name>.<compressor_library_stat_prefix>.*``..envoy.extensions.filters.http.compressor.v3.Compressor.ResponseDirectionConfig response_direction_config = 8; -
mergeResponseDirectionConfig
Configuration for response compression. If this field is not specified, response compression is enabled. .. attention:: When this field is set, duplicate deprecated fields of the ``Compressor`` message, such as ``content_length``, ``content_type``, ``disable_on_etag_header``, ``remove_accept_encoding_header``, and ``runtime_enabled``, are ignored. Additionally, all statistics related to response compression will be rooted in ``<stat_prefix>.compressor.<compressor_library.name>.<compressor_library_stat_prefix>.response.*`` instead of ``<stat_prefix>.compressor.<compressor_library.name>.<compressor_library_stat_prefix>.*``..envoy.extensions.filters.http.compressor.v3.Compressor.ResponseDirectionConfig response_direction_config = 8; -
clearResponseDirectionConfig
Configuration for response compression. If this field is not specified, response compression is enabled. .. attention:: When this field is set, duplicate deprecated fields of the ``Compressor`` message, such as ``content_length``, ``content_type``, ``disable_on_etag_header``, ``remove_accept_encoding_header``, and ``runtime_enabled``, are ignored. Additionally, all statistics related to response compression will be rooted in ``<stat_prefix>.compressor.<compressor_library.name>.<compressor_library_stat_prefix>.response.*`` instead of ``<stat_prefix>.compressor.<compressor_library.name>.<compressor_library_stat_prefix>.*``..envoy.extensions.filters.http.compressor.v3.Compressor.ResponseDirectionConfig response_direction_config = 8; -
getResponseDirectionConfigBuilder
Configuration for response compression. If this field is not specified, response compression is enabled. .. attention:: When this field is set, duplicate deprecated fields of the ``Compressor`` message, such as ``content_length``, ``content_type``, ``disable_on_etag_header``, ``remove_accept_encoding_header``, and ``runtime_enabled``, are ignored. Additionally, all statistics related to response compression will be rooted in ``<stat_prefix>.compressor.<compressor_library.name>.<compressor_library_stat_prefix>.response.*`` instead of ``<stat_prefix>.compressor.<compressor_library.name>.<compressor_library_stat_prefix>.*``..envoy.extensions.filters.http.compressor.v3.Compressor.ResponseDirectionConfig response_direction_config = 8; -
getResponseDirectionConfigOrBuilder
Configuration for response compression. If this field is not specified, response compression is enabled. .. attention:: When this field is set, duplicate deprecated fields of the ``Compressor`` message, such as ``content_length``, ``content_type``, ``disable_on_etag_header``, ``remove_accept_encoding_header``, and ``runtime_enabled``, are ignored. Additionally, all statistics related to response compression will be rooted in ``<stat_prefix>.compressor.<compressor_library.name>.<compressor_library_stat_prefix>.response.*`` instead of ``<stat_prefix>.compressor.<compressor_library.name>.<compressor_library_stat_prefix>.*``..envoy.extensions.filters.http.compressor.v3.Compressor.ResponseDirectionConfig response_direction_config = 8;- Specified by:
getResponseDirectionConfigOrBuilderin interfaceCompressorOrBuilder
-
getChooseFirst
public boolean getChooseFirst()When this field is ``true``, this compressor is preferred when q-values in ``Accept-Encoding`` are equal. If multiple compressor filters set ``choose_first`` to ``true``, the last one in the filter chain is chosen.
bool choose_first = 9;- Specified by:
getChooseFirstin interfaceCompressorOrBuilder- Returns:
- The chooseFirst.
-
setChooseFirst
When this field is ``true``, this compressor is preferred when q-values in ``Accept-Encoding`` are equal. If multiple compressor filters set ``choose_first`` to ``true``, the last one in the filter chain is chosen.
bool choose_first = 9;- Parameters:
value- The chooseFirst to set.- Returns:
- This builder for chaining.
-
clearChooseFirst
When this field is ``true``, this compressor is preferred when q-values in ``Accept-Encoding`` are equal. If multiple compressor filters set ``choose_first`` to ``true``, the last one in the filter chain is chosen.
bool choose_first = 9;- Returns:
- This builder for chaining.
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Compressor.Builder>
-
mergeUnknownFields
public final Compressor.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Compressor.Builder>
-