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.config.filter.http.compressor.v2.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: 6]Protobuf type
envoy.config.filter.http.compressor.v2.Compressor-
Method Summary
Modifier and TypeMethodDescriptionaddAllContentType(Iterable<String> values) Set of strings that allows specifying which mime-types yield compression; e.g., application/json, text/html, etc.addContentType(String value) Set of strings that allows specifying which mime-types yield compression; e.g., application/json, text/html, etc.addContentTypeBytes(com.google.protobuf.ByteString value) Set of strings that allows specifying which mime-types yield compression; e.g., application/json, text/html, etc.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Minimum response length, in bytes, which will trigger compression.Set of strings that allows specifying which mime-types yield compression; e.g., application/json, text/html, etc.If true, disables compression when the response contains an etag header.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) 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.Runtime flag that controls whether the filter is enabled or not.clone()com.google.protobuf.UInt32ValueMinimum response length, in bytes, which will trigger compression.com.google.protobuf.UInt32Value.BuilderMinimum response length, in bytes, which will trigger compression.com.google.protobuf.UInt32ValueOrBuilderMinimum response length, in bytes, which will trigger compression.getContentType(int index) Set of strings that allows specifying which mime-types yield compression; e.g., application/json, text/html, etc.com.google.protobuf.ByteStringgetContentTypeBytes(int index) Set of strings that allows specifying which mime-types yield compression; e.g., application/json, text/html, etc.intSet of strings that allows specifying which mime-types yield compression; e.g., application/json, text/html, etc.com.google.protobuf.ProtocolStringListSet of strings that allows specifying which mime-types yield compression; e.g., application/json, text/html, etc.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanIf true, disables compression when the response contains an etag header.booleanIf 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.Runtime flag that controls whether the filter is enabled or not.Runtime flag that controls whether the filter is enabled or not.Runtime flag that controls whether the filter is enabled or not.booleanMinimum response length, in bytes, which will trigger compression.booleanRuntime flag that controls whether the filter is enabled or not.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeContentLength(com.google.protobuf.UInt32Value value) Minimum response length, in bytes, which will trigger compression.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Compressor other) Runtime flag that controls whether the filter is enabled or not.final Compressor.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setContentLength(com.google.protobuf.UInt32Value value) Minimum response length, in bytes, which will trigger compression.setContentLength(com.google.protobuf.UInt32Value.Builder builderForValue) Minimum response length, in bytes, which will trigger compression.setContentType(int index, String value) Set of strings that allows specifying which mime-types yield compression; e.g., application/json, text/html, etc.setDisableOnEtagHeader(boolean value) If true, disables compression when the response contains an etag header.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.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) Runtime flag that controls whether the filter is enabled or not.setRuntimeEnabled(RuntimeFeatureFlag.Builder builderForValue) Runtime flag that controls whether the filter is enabled or not.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
public boolean hasContentLength()Minimum response length, in bytes, which will trigger compression. The default value is 30.
.google.protobuf.UInt32Value content_length = 1;- Specified by:
hasContentLengthin interfaceCompressorOrBuilder- Returns:
- Whether the contentLength field is set.
-
getContentLength
public 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;- Specified by:
getContentLengthin interfaceCompressorOrBuilder- Returns:
- The contentLength.
-
setContentLength
Minimum response length, in bytes, which will trigger compression. The default value is 30.
.google.protobuf.UInt32Value content_length = 1; -
setContentLength
Minimum response length, in bytes, which will trigger compression. The default value is 30.
.google.protobuf.UInt32Value content_length = 1; -
mergeContentLength
Minimum response length, in bytes, which will trigger compression. The default value is 30.
.google.protobuf.UInt32Value content_length = 1; -
clearContentLength
Minimum response length, in bytes, which will trigger compression. The default value is 30.
.google.protobuf.UInt32Value content_length = 1; -
getContentLengthBuilder
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; -
getContentLengthOrBuilder
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;- Specified by:
getContentLengthOrBuilderin interfaceCompressorOrBuilder
-
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 = 2;- Specified by:
getContentTypeListin interfaceCompressorOrBuilder- 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 = 2;- Specified by:
getContentTypeCountin interfaceCompressorOrBuilder- Returns:
- The count of contentType.
-
getContentType
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;- Specified by:
getContentTypein interfaceCompressorOrBuilder- 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 = 2;- Specified by:
getContentTypeBytesin interfaceCompressorOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the contentType at the given index.
-
setContentType
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;- Parameters:
index- The index to set the value at.value- The contentType to set.- Returns:
- This builder for chaining.
-
addContentType
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;- Parameters:
value- The contentType to add.- Returns:
- This builder for chaining.
-
addAllContentType
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;- Parameters:
values- The contentType to add.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
addContentTypeBytes
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;- Parameters:
value- The bytes of the contentType to add.- Returns:
- This builder for chaining.
-
getDisableOnEtagHeader
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;- Specified by:
getDisableOnEtagHeaderin interfaceCompressorOrBuilder- Returns:
- The disableOnEtagHeader.
-
setDisableOnEtagHeader
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;- Parameters:
value- The disableOnEtagHeader to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
getRemoveAcceptEncodingHeader
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;- Specified by:
getRemoveAcceptEncodingHeaderin interfaceCompressorOrBuilder- Returns:
- The removeAcceptEncodingHeader.
-
setRemoveAcceptEncodingHeader
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;- Parameters:
value- The removeAcceptEncodingHeader to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
hasRuntimeEnabled
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;- Specified by:
hasRuntimeEnabledin interfaceCompressorOrBuilder- Returns:
- Whether the runtimeEnabled field is set.
-
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;- Specified by:
getRuntimeEnabledin interfaceCompressorOrBuilder- Returns:
- The runtimeEnabled.
-
setRuntimeEnabled
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; -
setRuntimeEnabled
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; -
mergeRuntimeEnabled
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; -
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; -
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; -
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;- Specified by:
getRuntimeEnabledOrBuilderin interfaceCompressorOrBuilder
-
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>
-