Class Gzip.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Gzip.Builder>
io.envoyproxy.envoy.extensions.compression.gzip.decompressor.v3.Gzip.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,GzipOrBuilder,Cloneable
- Enclosing class:
- Gzip
public static final class Gzip.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Gzip.Builder>
implements GzipOrBuilder
Protobuf type
envoy.extensions.compression.gzip.decompressor.v3.Gzip-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Value for zlib's decompressor output buffer.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) An upper bound to the number of times the output buffer is allowed to be bigger than the size of the accumulated input.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Value from 9 to 15 that represents the base two logarithmic of the decompressor's window size.clone()com.google.protobuf.UInt32ValueValue for zlib's decompressor output buffer.com.google.protobuf.UInt32Value.BuilderValue for zlib's decompressor output buffer.com.google.protobuf.UInt32ValueOrBuilderValue for zlib's decompressor output buffer.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.UInt32ValueAn upper bound to the number of times the output buffer is allowed to be bigger than the size of the accumulated input.com.google.protobuf.UInt32Value.BuilderAn upper bound to the number of times the output buffer is allowed to be bigger than the size of the accumulated input.com.google.protobuf.UInt32ValueOrBuilderAn upper bound to the number of times the output buffer is allowed to be bigger than the size of the accumulated input.com.google.protobuf.UInt32ValueValue from 9 to 15 that represents the base two logarithmic of the decompressor's window size.com.google.protobuf.UInt32Value.BuilderValue from 9 to 15 that represents the base two logarithmic of the decompressor's window size.com.google.protobuf.UInt32ValueOrBuilderValue from 9 to 15 that represents the base two logarithmic of the decompressor's window size.booleanValue for zlib's decompressor output buffer.booleanAn upper bound to the number of times the output buffer is allowed to be bigger than the size of the accumulated input.booleanValue from 9 to 15 that represents the base two logarithmic of the decompressor's window size.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeChunkSize(com.google.protobuf.UInt32Value value) Value for zlib's decompressor output buffer.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeMaxInflateRatio(com.google.protobuf.UInt32Value value) An upper bound to the number of times the output buffer is allowed to be bigger than the size of the accumulated input.final Gzip.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) mergeWindowBits(com.google.protobuf.UInt32Value value) Value from 9 to 15 that represents the base two logarithmic of the decompressor's window size.setChunkSize(com.google.protobuf.UInt32Value value) Value for zlib's decompressor output buffer.setChunkSize(com.google.protobuf.UInt32Value.Builder builderForValue) Value for zlib's decompressor output buffer.setMaxInflateRatio(com.google.protobuf.UInt32Value value) An upper bound to the number of times the output buffer is allowed to be bigger than the size of the accumulated input.setMaxInflateRatio(com.google.protobuf.UInt32Value.Builder builderForValue) An upper bound to the number of times the output buffer is allowed to be bigger than the size of the accumulated input.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final Gzip.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setWindowBits(com.google.protobuf.UInt32Value value) Value from 9 to 15 that represents the base two logarithmic of the decompressor's window size.setWindowBits(com.google.protobuf.UInt32Value.Builder builderForValue) Value from 9 to 15 that represents the base two logarithmic of the decompressor's window size.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<Gzip.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<Gzip.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<Gzip.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<Gzip.Builder>
-
setField
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Gzip.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Gzip.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Gzip.Builder>
-
setRepeatedField
public Gzip.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<Gzip.Builder>
-
addRepeatedField
public Gzip.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<Gzip.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Gzip.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Gzip.Builder>
-
mergeFrom
public Gzip.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<Gzip.Builder>- Throws:
IOException
-
hasWindowBits
public boolean hasWindowBits()Value from 9 to 15 that represents the base two logarithmic of the decompressor's window size. The decompression window size needs to be equal or larger than the compression window size. The default window size is 15. This is so that the decompressor can decompress a response compressed by a compressor with any compression window size. For more details about this parameter, please refer to `zlib manual <https://www.zlib.net/manual.html>`_ > inflateInit2.
.google.protobuf.UInt32Value window_bits = 1 [(.validate.rules) = { ... }- Specified by:
hasWindowBitsin interfaceGzipOrBuilder- Returns:
- Whether the windowBits field is set.
-
getWindowBits
public com.google.protobuf.UInt32Value getWindowBits()Value from 9 to 15 that represents the base two logarithmic of the decompressor's window size. The decompression window size needs to be equal or larger than the compression window size. The default window size is 15. This is so that the decompressor can decompress a response compressed by a compressor with any compression window size. For more details about this parameter, please refer to `zlib manual <https://www.zlib.net/manual.html>`_ > inflateInit2.
.google.protobuf.UInt32Value window_bits = 1 [(.validate.rules) = { ... }- Specified by:
getWindowBitsin interfaceGzipOrBuilder- Returns:
- The windowBits.
-
setWindowBits
Value from 9 to 15 that represents the base two logarithmic of the decompressor's window size. The decompression window size needs to be equal or larger than the compression window size. The default window size is 15. This is so that the decompressor can decompress a response compressed by a compressor with any compression window size. For more details about this parameter, please refer to `zlib manual <https://www.zlib.net/manual.html>`_ > inflateInit2.
.google.protobuf.UInt32Value window_bits = 1 [(.validate.rules) = { ... } -
setWindowBits
Value from 9 to 15 that represents the base two logarithmic of the decompressor's window size. The decompression window size needs to be equal or larger than the compression window size. The default window size is 15. This is so that the decompressor can decompress a response compressed by a compressor with any compression window size. For more details about this parameter, please refer to `zlib manual <https://www.zlib.net/manual.html>`_ > inflateInit2.
.google.protobuf.UInt32Value window_bits = 1 [(.validate.rules) = { ... } -
mergeWindowBits
Value from 9 to 15 that represents the base two logarithmic of the decompressor's window size. The decompression window size needs to be equal or larger than the compression window size. The default window size is 15. This is so that the decompressor can decompress a response compressed by a compressor with any compression window size. For more details about this parameter, please refer to `zlib manual <https://www.zlib.net/manual.html>`_ > inflateInit2.
.google.protobuf.UInt32Value window_bits = 1 [(.validate.rules) = { ... } -
clearWindowBits
Value from 9 to 15 that represents the base two logarithmic of the decompressor's window size. The decompression window size needs to be equal or larger than the compression window size. The default window size is 15. This is so that the decompressor can decompress a response compressed by a compressor with any compression window size. For more details about this parameter, please refer to `zlib manual <https://www.zlib.net/manual.html>`_ > inflateInit2.
.google.protobuf.UInt32Value window_bits = 1 [(.validate.rules) = { ... } -
getWindowBitsBuilder
public com.google.protobuf.UInt32Value.Builder getWindowBitsBuilder()Value from 9 to 15 that represents the base two logarithmic of the decompressor's window size. The decompression window size needs to be equal or larger than the compression window size. The default window size is 15. This is so that the decompressor can decompress a response compressed by a compressor with any compression window size. For more details about this parameter, please refer to `zlib manual <https://www.zlib.net/manual.html>`_ > inflateInit2.
.google.protobuf.UInt32Value window_bits = 1 [(.validate.rules) = { ... } -
getWindowBitsOrBuilder
public com.google.protobuf.UInt32ValueOrBuilder getWindowBitsOrBuilder()Value from 9 to 15 that represents the base two logarithmic of the decompressor's window size. The decompression window size needs to be equal or larger than the compression window size. The default window size is 15. This is so that the decompressor can decompress a response compressed by a compressor with any compression window size. For more details about this parameter, please refer to `zlib manual <https://www.zlib.net/manual.html>`_ > inflateInit2.
.google.protobuf.UInt32Value window_bits = 1 [(.validate.rules) = { ... }- Specified by:
getWindowBitsOrBuilderin interfaceGzipOrBuilder
-
hasChunkSize
public boolean hasChunkSize()Value for zlib's decompressor output buffer. If not set, defaults to 4096. See https://www.zlib.net/manual.html for more details.
.google.protobuf.UInt32Value chunk_size = 2 [(.validate.rules) = { ... }- Specified by:
hasChunkSizein interfaceGzipOrBuilder- Returns:
- Whether the chunkSize field is set.
-
getChunkSize
public com.google.protobuf.UInt32Value getChunkSize()Value for zlib's decompressor output buffer. If not set, defaults to 4096. See https://www.zlib.net/manual.html for more details.
.google.protobuf.UInt32Value chunk_size = 2 [(.validate.rules) = { ... }- Specified by:
getChunkSizein interfaceGzipOrBuilder- Returns:
- The chunkSize.
-
setChunkSize
Value for zlib's decompressor output buffer. If not set, defaults to 4096. See https://www.zlib.net/manual.html for more details.
.google.protobuf.UInt32Value chunk_size = 2 [(.validate.rules) = { ... } -
setChunkSize
Value for zlib's decompressor output buffer. If not set, defaults to 4096. See https://www.zlib.net/manual.html for more details.
.google.protobuf.UInt32Value chunk_size = 2 [(.validate.rules) = { ... } -
mergeChunkSize
Value for zlib's decompressor output buffer. If not set, defaults to 4096. See https://www.zlib.net/manual.html for more details.
.google.protobuf.UInt32Value chunk_size = 2 [(.validate.rules) = { ... } -
clearChunkSize
Value for zlib's decompressor output buffer. If not set, defaults to 4096. See https://www.zlib.net/manual.html for more details.
.google.protobuf.UInt32Value chunk_size = 2 [(.validate.rules) = { ... } -
getChunkSizeBuilder
public com.google.protobuf.UInt32Value.Builder getChunkSizeBuilder()Value for zlib's decompressor output buffer. If not set, defaults to 4096. See https://www.zlib.net/manual.html for more details.
.google.protobuf.UInt32Value chunk_size = 2 [(.validate.rules) = { ... } -
getChunkSizeOrBuilder
public com.google.protobuf.UInt32ValueOrBuilder getChunkSizeOrBuilder()Value for zlib's decompressor output buffer. If not set, defaults to 4096. See https://www.zlib.net/manual.html for more details.
.google.protobuf.UInt32Value chunk_size = 2 [(.validate.rules) = { ... }- Specified by:
getChunkSizeOrBuilderin interfaceGzipOrBuilder
-
hasMaxInflateRatio
public boolean hasMaxInflateRatio()An upper bound to the number of times the output buffer is allowed to be bigger than the size of the accumulated input. This value is used to prevent decompression bombs. If not set, defaults to 100. [#comment:TODO(rojkov): Re-design the Decompressor interface to handle compression bombs gracefully instead of this quick solution. See https://github.com/envoyproxy/envoy/commit/d4c39e635603e2f23e1e08ddecf5a5fb5a706338 for details.]
.google.protobuf.UInt32Value max_inflate_ratio = 3 [(.validate.rules) = { ... }- Specified by:
hasMaxInflateRatioin interfaceGzipOrBuilder- Returns:
- Whether the maxInflateRatio field is set.
-
getMaxInflateRatio
public com.google.protobuf.UInt32Value getMaxInflateRatio()An upper bound to the number of times the output buffer is allowed to be bigger than the size of the accumulated input. This value is used to prevent decompression bombs. If not set, defaults to 100. [#comment:TODO(rojkov): Re-design the Decompressor interface to handle compression bombs gracefully instead of this quick solution. See https://github.com/envoyproxy/envoy/commit/d4c39e635603e2f23e1e08ddecf5a5fb5a706338 for details.]
.google.protobuf.UInt32Value max_inflate_ratio = 3 [(.validate.rules) = { ... }- Specified by:
getMaxInflateRatioin interfaceGzipOrBuilder- Returns:
- The maxInflateRatio.
-
setMaxInflateRatio
An upper bound to the number of times the output buffer is allowed to be bigger than the size of the accumulated input. This value is used to prevent decompression bombs. If not set, defaults to 100. [#comment:TODO(rojkov): Re-design the Decompressor interface to handle compression bombs gracefully instead of this quick solution. See https://github.com/envoyproxy/envoy/commit/d4c39e635603e2f23e1e08ddecf5a5fb5a706338 for details.]
.google.protobuf.UInt32Value max_inflate_ratio = 3 [(.validate.rules) = { ... } -
setMaxInflateRatio
An upper bound to the number of times the output buffer is allowed to be bigger than the size of the accumulated input. This value is used to prevent decompression bombs. If not set, defaults to 100. [#comment:TODO(rojkov): Re-design the Decompressor interface to handle compression bombs gracefully instead of this quick solution. See https://github.com/envoyproxy/envoy/commit/d4c39e635603e2f23e1e08ddecf5a5fb5a706338 for details.]
.google.protobuf.UInt32Value max_inflate_ratio = 3 [(.validate.rules) = { ... } -
mergeMaxInflateRatio
An upper bound to the number of times the output buffer is allowed to be bigger than the size of the accumulated input. This value is used to prevent decompression bombs. If not set, defaults to 100. [#comment:TODO(rojkov): Re-design the Decompressor interface to handle compression bombs gracefully instead of this quick solution. See https://github.com/envoyproxy/envoy/commit/d4c39e635603e2f23e1e08ddecf5a5fb5a706338 for details.]
.google.protobuf.UInt32Value max_inflate_ratio = 3 [(.validate.rules) = { ... } -
clearMaxInflateRatio
An upper bound to the number of times the output buffer is allowed to be bigger than the size of the accumulated input. This value is used to prevent decompression bombs. If not set, defaults to 100. [#comment:TODO(rojkov): Re-design the Decompressor interface to handle compression bombs gracefully instead of this quick solution. See https://github.com/envoyproxy/envoy/commit/d4c39e635603e2f23e1e08ddecf5a5fb5a706338 for details.]
.google.protobuf.UInt32Value max_inflate_ratio = 3 [(.validate.rules) = { ... } -
getMaxInflateRatioBuilder
public com.google.protobuf.UInt32Value.Builder getMaxInflateRatioBuilder()An upper bound to the number of times the output buffer is allowed to be bigger than the size of the accumulated input. This value is used to prevent decompression bombs. If not set, defaults to 100. [#comment:TODO(rojkov): Re-design the Decompressor interface to handle compression bombs gracefully instead of this quick solution. See https://github.com/envoyproxy/envoy/commit/d4c39e635603e2f23e1e08ddecf5a5fb5a706338 for details.]
.google.protobuf.UInt32Value max_inflate_ratio = 3 [(.validate.rules) = { ... } -
getMaxInflateRatioOrBuilder
public com.google.protobuf.UInt32ValueOrBuilder getMaxInflateRatioOrBuilder()An upper bound to the number of times the output buffer is allowed to be bigger than the size of the accumulated input. This value is used to prevent decompression bombs. If not set, defaults to 100. [#comment:TODO(rojkov): Re-design the Decompressor interface to handle compression bombs gracefully instead of this quick solution. See https://github.com/envoyproxy/envoy/commit/d4c39e635603e2f23e1e08ddecf5a5fb5a706338 for details.]
.google.protobuf.UInt32Value max_inflate_ratio = 3 [(.validate.rules) = { ... }- Specified by:
getMaxInflateRatioOrBuilderin interfaceGzipOrBuilder
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Gzip.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Gzip.Builder>
-