Class Compressor.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- 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 typeenvoy.config.filter.http.compressor.v2.Compressor
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Compressor.BuilderaddAllContentType(Iterable<String> values)Set of strings that allows specifying which mime-types yield compression; e.g., application/json, text/html, etc.Compressor.BuilderaddContentType(String value)Set of strings that allows specifying which mime-types yield compression; e.g., application/json, text/html, etc.Compressor.BuilderaddContentTypeBytes(com.google.protobuf.ByteString value)Set of strings that allows specifying which mime-types yield compression; e.g., application/json, text/html, etc.Compressor.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Compressorbuild()CompressorbuildPartial()Compressor.Builderclear()Compressor.BuilderclearContentLength()Minimum response length, in bytes, which will trigger compression.Compressor.BuilderclearContentType()Set of strings that allows specifying which mime-types yield compression; e.g., application/json, text/html, etc.Compressor.BuilderclearDisableOnEtagHeader()If true, disables compression when the response contains an etag header.Compressor.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Compressor.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Compressor.BuilderclearRemoveAcceptEncodingHeader()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.BuilderclearRuntimeEnabled()Runtime flag that controls whether the filter is enabled or not.Compressor.Builderclone()com.google.protobuf.UInt32ValuegetContentLength()Minimum response length, in bytes, which will trigger compression.com.google.protobuf.UInt32Value.BuildergetContentLengthBuilder()Minimum response length, in bytes, which will trigger compression.com.google.protobuf.UInt32ValueOrBuildergetContentLengthOrBuilder()Minimum response length, in bytes, which will trigger compression.StringgetContentType(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.intgetContentTypeCount()Set of strings that allows specifying which mime-types yield compression; e.g., application/json, text/html, etc.com.google.protobuf.ProtocolStringListgetContentTypeList()Set of strings that allows specifying which mime-types yield compression; e.g., application/json, text/html, etc.CompressorgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()booleangetDisableOnEtagHeader()If true, disables compression when the response contains an etag header.booleangetRemoveAcceptEncodingHeader()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.RuntimeFeatureFlaggetRuntimeEnabled()Runtime flag that controls whether the filter is enabled or not.RuntimeFeatureFlag.BuildergetRuntimeEnabledBuilder()Runtime flag that controls whether the filter is enabled or not.RuntimeFeatureFlagOrBuildergetRuntimeEnabledOrBuilder()Runtime flag that controls whether the filter is enabled or not.booleanhasContentLength()Minimum response length, in bytes, which will trigger compression.booleanhasRuntimeEnabled()Runtime flag that controls whether the filter is enabled or not.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Compressor.BuildermergeContentLength(com.google.protobuf.UInt32Value value)Minimum response length, in bytes, which will trigger compression.Compressor.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Compressor.BuildermergeFrom(com.google.protobuf.Message other)Compressor.BuildermergeFrom(Compressor other)Compressor.BuildermergeRuntimeEnabled(RuntimeFeatureFlag value)Runtime flag that controls whether the filter is enabled or not.Compressor.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Compressor.BuildersetContentLength(com.google.protobuf.UInt32Value value)Minimum response length, in bytes, which will trigger compression.Compressor.BuildersetContentLength(com.google.protobuf.UInt32Value.Builder builderForValue)Minimum response length, in bytes, which will trigger compression.Compressor.BuildersetContentType(int index, String value)Set of strings that allows specifying which mime-types yield compression; e.g., application/json, text/html, etc.Compressor.BuildersetDisableOnEtagHeader(boolean value)If true, disables compression when the response contains an etag header.Compressor.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Compressor.BuildersetRemoveAcceptEncodingHeader(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.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Compressor.BuildersetRuntimeEnabled(RuntimeFeatureFlag value)Runtime flag that controls whether the filter is enabled or not.Compressor.BuildersetRuntimeEnabled(RuntimeFeatureFlag.Builder builderForValue)Runtime flag that controls whether the filter is enabled or not.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, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
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
public 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
public Compressor getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Compressor build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Compressor buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Compressor.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
public Compressor.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Compressor.Builder>
-
clearOneof
public Compressor.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- 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
public Compressor.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Compressor.Builder>
-
mergeFrom
public Compressor.Builder mergeFrom(Compressor other)
-
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
-
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
-
setContentLength
public 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;
-
setContentLength
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;
-
mergeContentLength
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;
-
clearContentLength
public Compressor.Builder 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
-
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
-
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 = 2;- Specified by:
getContentTypein interfaceCompressorOrBuilder
-
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
-
setContentType
public 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;
-
addContentType
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;
-
addAllContentType
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;
-
clearContentType
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;
-
addContentTypeBytes
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;
-
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
-
setDisableOnEtagHeader
public 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;
-
clearDisableOnEtagHeader
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;
-
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
-
setRemoveAcceptEncodingHeader
public 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;
-
clearRemoveAcceptEncodingHeader
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;
-
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
-
getRuntimeEnabled
public 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;- Specified by:
getRuntimeEnabledin interfaceCompressorOrBuilder
-
setRuntimeEnabled
public 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;
-
setRuntimeEnabled
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;
-
mergeRuntimeEnabled
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;
-
clearRuntimeEnabled
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;
-
getRuntimeEnabledBuilder
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;
-
getRuntimeEnabledOrBuilder
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;- Specified by:
getRuntimeEnabledOrBuilderin interfaceCompressorOrBuilder
-
setUnknownFields
public final Compressor.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- 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>
-
-