public static final class Compressor.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Compressor.Builder> implements CompressorOrBuilder
[#next-free-field: 6]Protobuf type
envoy.config.filter.http.compressor.v2.Compressor| Modifier and Type | Method and Description |
|---|---|
Compressor.Builder |
addAllContentType(Iterable<String> values)
Set of strings that allows specifying which mime-types yield compression; e.g.,
application/json, text/html, etc.
|
Compressor.Builder |
addContentType(String value)
Set of strings that allows specifying which mime-types yield compression; e.g.,
application/json, text/html, etc.
|
Compressor.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.
|
Compressor.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Compressor |
build() |
Compressor |
buildPartial() |
Compressor.Builder |
clear() |
Compressor.Builder |
clearContentLength()
Minimum response length, in bytes, which will trigger compression.
|
Compressor.Builder |
clearContentType()
Set of strings that allows specifying which mime-types yield compression; e.g.,
application/json, text/html, etc.
|
Compressor.Builder |
clearDisableOnEtagHeader()
If true, disables compression when the response contains an etag header.
|
Compressor.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Compressor.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Compressor.Builder |
clearRemoveAcceptEncodingHeader()
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.
|
Compressor.Builder |
clearRuntimeEnabled()
Runtime flag that controls whether the filter is enabled or not.
|
Compressor.Builder |
clone() |
com.google.protobuf.UInt32Value |
getContentLength()
Minimum response length, in bytes, which will trigger compression.
|
com.google.protobuf.UInt32Value.Builder |
getContentLengthBuilder()
Minimum response length, in bytes, which will trigger compression.
|
com.google.protobuf.UInt32ValueOrBuilder |
getContentLengthOrBuilder()
Minimum response length, in bytes, which will trigger compression.
|
String |
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 |
getContentTypeBytes(int index)
Set of strings that allows specifying which mime-types yield compression; e.g.,
application/json, text/html, etc.
|
int |
getContentTypeCount()
Set of strings that allows specifying which mime-types yield compression; e.g.,
application/json, text/html, etc.
|
com.google.protobuf.ProtocolStringList |
getContentTypeList()
Set of strings that allows specifying which mime-types yield compression; e.g.,
application/json, text/html, etc.
|
Compressor |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getDisableOnEtagHeader()
If true, disables compression when the response contains an etag header.
|
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.
|
RuntimeFeatureFlag |
getRuntimeEnabled()
Runtime flag that controls whether the filter is enabled or not.
|
RuntimeFeatureFlag.Builder |
getRuntimeEnabledBuilder()
Runtime flag that controls whether the filter is enabled or not.
|
RuntimeFeatureFlagOrBuilder |
getRuntimeEnabledOrBuilder()
Runtime flag that controls whether the filter is enabled or not.
|
boolean |
hasContentLength()
Minimum response length, in bytes, which will trigger compression.
|
boolean |
hasRuntimeEnabled()
Runtime flag that controls whether the filter is enabled or not.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Compressor.Builder |
mergeContentLength(com.google.protobuf.UInt32Value value)
Minimum response length, in bytes, which will trigger compression.
|
Compressor.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Compressor.Builder |
mergeFrom(Compressor other) |
Compressor.Builder |
mergeFrom(com.google.protobuf.Message other) |
Compressor.Builder |
mergeRuntimeEnabled(RuntimeFeatureFlag value)
Runtime flag that controls whether the filter is enabled or not.
|
Compressor.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Compressor.Builder |
setContentLength(com.google.protobuf.UInt32Value.Builder builderForValue)
Minimum response length, in bytes, which will trigger compression.
|
Compressor.Builder |
setContentLength(com.google.protobuf.UInt32Value value)
Minimum response length, in bytes, which will trigger compression.
|
Compressor.Builder |
setContentType(int index,
String value)
Set of strings that allows specifying which mime-types yield compression; e.g.,
application/json, text/html, etc.
|
Compressor.Builder |
setDisableOnEtagHeader(boolean value)
If true, disables compression when the response contains an etag header.
|
Compressor.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Compressor.Builder |
setRemoveAcceptEncodingHeader(boolean value)
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.
|
Compressor.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Compressor.Builder |
setRuntimeEnabled(RuntimeFeatureFlag.Builder builderForValue)
Runtime flag that controls whether the filter is enabled or not.
|
Compressor.Builder |
setRuntimeEnabled(RuntimeFeatureFlag value)
Runtime flag that controls whether the filter is enabled or not.
|
Compressor.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Compressor.Builder>public Compressor.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Compressor.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Compressor.Builder>public Compressor getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Compressor build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Compressor buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Compressor.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Compressor.Builder>public Compressor.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Compressor.Builder>public Compressor.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Compressor.Builder>public Compressor.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Compressor.Builder>public Compressor.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Compressor.Builder>public Compressor.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Compressor.Builder>public Compressor.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Compressor.Builder>public Compressor.Builder mergeFrom(Compressor other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Compressor.Builder>public Compressor.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Compressor.Builder>IOExceptionpublic boolean hasContentLength()
Minimum response length, in bytes, which will trigger compression. The default value is 30.
.google.protobuf.UInt32Value content_length = 1;hasContentLength in interface CompressorOrBuilderpublic com.google.protobuf.UInt32Value getContentLength()
Minimum response length, in bytes, which will trigger compression. The default value is 30.
.google.protobuf.UInt32Value content_length = 1;getContentLength in interface CompressorOrBuilderpublic Compressor.Builder setContentLength(com.google.protobuf.UInt32Value value)
Minimum response length, in bytes, which will trigger compression. The default value is 30.
.google.protobuf.UInt32Value content_length = 1;public Compressor.Builder setContentLength(com.google.protobuf.UInt32Value.Builder builderForValue)
Minimum response length, in bytes, which will trigger compression. The default value is 30.
.google.protobuf.UInt32Value content_length = 1;public Compressor.Builder mergeContentLength(com.google.protobuf.UInt32Value value)
Minimum response length, in bytes, which will trigger compression. The default value is 30.
.google.protobuf.UInt32Value content_length = 1;public Compressor.Builder clearContentLength()
Minimum response length, in bytes, which will trigger compression. The default value is 30.
.google.protobuf.UInt32Value content_length = 1;public com.google.protobuf.UInt32Value.Builder getContentLengthBuilder()
Minimum response length, in bytes, which will trigger compression. The default value is 30.
.google.protobuf.UInt32Value content_length = 1;public com.google.protobuf.UInt32ValueOrBuilder getContentLengthOrBuilder()
Minimum response length, in bytes, which will trigger compression. The default value is 30.
.google.protobuf.UInt32Value content_length = 1;getContentLengthOrBuilder in interface CompressorOrBuilderpublic 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 = 2;getContentTypeList in interface CompressorOrBuilderpublic 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 = 2;getContentTypeCount in interface CompressorOrBuilderpublic 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 = 2;getContentType in interface CompressorOrBuilderpublic 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 = 2;getContentTypeBytes in interface CompressorOrBuilderpublic Compressor.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 = 2;public Compressor.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 = 2;public Compressor.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 = 2;public Compressor.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 = 2;public Compressor.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 = 2;public 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 = 3;getDisableOnEtagHeader in interface CompressorOrBuilderpublic Compressor.Builder setDisableOnEtagHeader(boolean value)
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 = 3;public Compressor.Builder clearDisableOnEtagHeader()
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 = 3;public 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 = 4;getRemoveAcceptEncodingHeader in interface CompressorOrBuilderpublic Compressor.Builder setRemoveAcceptEncodingHeader(boolean value)
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 = 4;public Compressor.Builder clearRemoveAcceptEncodingHeader()
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 = 4;public boolean hasRuntimeEnabled()
Runtime flag that controls whether the filter is enabled or not. If set to false, the filter will operate as a pass-through filter. If not specified, defaults to enabled.
.envoy.api.v2.core.RuntimeFeatureFlag runtime_enabled = 5;hasRuntimeEnabled in interface CompressorOrBuilderpublic RuntimeFeatureFlag getRuntimeEnabled()
Runtime flag that controls whether the filter is enabled or not. If set to false, the filter will operate as a pass-through filter. If not specified, defaults to enabled.
.envoy.api.v2.core.RuntimeFeatureFlag runtime_enabled = 5;getRuntimeEnabled in interface CompressorOrBuilderpublic Compressor.Builder setRuntimeEnabled(RuntimeFeatureFlag value)
Runtime flag that controls whether the filter is enabled or not. If set to false, the filter will operate as a pass-through filter. If not specified, defaults to enabled.
.envoy.api.v2.core.RuntimeFeatureFlag runtime_enabled = 5;public Compressor.Builder setRuntimeEnabled(RuntimeFeatureFlag.Builder builderForValue)
Runtime flag that controls whether the filter is enabled or not. If set to false, the filter will operate as a pass-through filter. If not specified, defaults to enabled.
.envoy.api.v2.core.RuntimeFeatureFlag runtime_enabled = 5;public Compressor.Builder mergeRuntimeEnabled(RuntimeFeatureFlag value)
Runtime flag that controls whether the filter is enabled or not. If set to false, the filter will operate as a pass-through filter. If not specified, defaults to enabled.
.envoy.api.v2.core.RuntimeFeatureFlag runtime_enabled = 5;public Compressor.Builder clearRuntimeEnabled()
Runtime flag that controls whether the filter is enabled or not. If set to false, the filter will operate as a pass-through filter. If not specified, defaults to enabled.
.envoy.api.v2.core.RuntimeFeatureFlag runtime_enabled = 5;public RuntimeFeatureFlag.Builder getRuntimeEnabledBuilder()
Runtime flag that controls whether the filter is enabled or not. If set to false, the filter will operate as a pass-through filter. If not specified, defaults to enabled.
.envoy.api.v2.core.RuntimeFeatureFlag runtime_enabled = 5;public RuntimeFeatureFlagOrBuilder getRuntimeEnabledOrBuilder()
Runtime flag that controls whether the filter is enabled or not. If set to false, the filter will operate as a pass-through filter. If not specified, defaults to enabled.
.envoy.api.v2.core.RuntimeFeatureFlag runtime_enabled = 5;getRuntimeEnabledOrBuilder in interface CompressorOrBuilderpublic final Compressor.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Compressor.Builder>public final Compressor.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Compressor.Builder>Copyright © 2018–2021 The Envoy Project. All rights reserved.