Class Gzip
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.envoy.extensions.filters.http.gzip.v3.Gzip
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,GzipOrBuilder,Serializable
[#next-free-field: 12]Protobuf type
envoy.extensions.filters.http.gzip.v3.Gzip- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class[#next-free-field: 12]static final classProtobuf typeenvoy.extensions.filters.http.gzip.v3.Gzip.CompressionLevelstatic interfacestatic enumProtobuf enumenvoy.extensions.filters.http.gzip.v3.Gzip.CompressionStrategyNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancom.google.protobuf.UInt32ValueValue for Zlib's next output buffer.com.google.protobuf.UInt32ValueOrBuilderValue for Zlib's next output buffer.A value used for selecting the zlib compression level.intA value used for selecting the zlib compression level.A value used for selecting the zlib compression strategy which is directly related to the characteristics of the content.intA value used for selecting the zlib compression strategy which is directly related to the characteristics of the content.Set of configuration parameters common for all compression filters.Set of configuration parameters common for all compression filters.static Gzipstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.UInt32ValueValue from 1 to 9 that controls the amount of internal memory used by zlib.com.google.protobuf.UInt32ValueOrBuilderValue from 1 to 9 that controls the amount of internal memory used by zlib.com.google.protobuf.Parser<Gzip>intcom.google.protobuf.UInt32ValueValue from 9 to 15 that represents the base two logarithmic of the compressor's window size.com.google.protobuf.UInt32ValueOrBuilderValue from 9 to 15 that represents the base two logarithmic of the compressor's window size.booleanValue for Zlib's next output buffer.booleanSet of configuration parameters common for all compression filters.inthashCode()booleanValue from 1 to 9 that controls the amount of internal memory used by zlib.booleanValue from 9 to 15 that represents the base two logarithmic of the compressor's window size.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic Gzip.Builderstatic Gzip.BuildernewBuilder(Gzip prototype) protected Gzip.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static GzipparseDelimitedFrom(InputStream input) static GzipparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GzipparseFrom(byte[] data) static GzipparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GzipparseFrom(com.google.protobuf.ByteString data) static GzipparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GzipparseFrom(com.google.protobuf.CodedInputStream input) static GzipparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GzipparseFrom(InputStream input) static GzipparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GzipparseFrom(ByteBuffer data) static GzipparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Gzip>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
MEMORY_LEVEL_FIELD_NUMBER
public static final int MEMORY_LEVEL_FIELD_NUMBER- See Also:
-
COMPRESSION_LEVEL_FIELD_NUMBER
public static final int COMPRESSION_LEVEL_FIELD_NUMBER- See Also:
-
COMPRESSION_STRATEGY_FIELD_NUMBER
public static final int COMPRESSION_STRATEGY_FIELD_NUMBER- See Also:
-
WINDOW_BITS_FIELD_NUMBER
public static final int WINDOW_BITS_FIELD_NUMBER- See Also:
-
COMPRESSOR_FIELD_NUMBER
public static final int COMPRESSOR_FIELD_NUMBER- See Also:
-
CHUNK_SIZE_FIELD_NUMBER
public static final int CHUNK_SIZE_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
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
-
hasMemoryLevel
public boolean hasMemoryLevel()Value from 1 to 9 that controls the amount of internal memory used by zlib. Higher values use more memory, but are faster and produce better compression results. The default value is 5.
.google.protobuf.UInt32Value memory_level = 1 [(.validate.rules) = { ... }- Specified by:
hasMemoryLevelin interfaceGzipOrBuilder- Returns:
- Whether the memoryLevel field is set.
-
getMemoryLevel
public com.google.protobuf.UInt32Value getMemoryLevel()Value from 1 to 9 that controls the amount of internal memory used by zlib. Higher values use more memory, but are faster and produce better compression results. The default value is 5.
.google.protobuf.UInt32Value memory_level = 1 [(.validate.rules) = { ... }- Specified by:
getMemoryLevelin interfaceGzipOrBuilder- Returns:
- The memoryLevel.
-
getMemoryLevelOrBuilder
public com.google.protobuf.UInt32ValueOrBuilder getMemoryLevelOrBuilder()Value from 1 to 9 that controls the amount of internal memory used by zlib. Higher values use more memory, but are faster and produce better compression results. The default value is 5.
.google.protobuf.UInt32Value memory_level = 1 [(.validate.rules) = { ... }- Specified by:
getMemoryLevelOrBuilderin interfaceGzipOrBuilder
-
getCompressionLevelValue
public int getCompressionLevelValue()A value used for selecting the zlib compression level. This setting will affect speed and amount of compression applied to the content. "BEST" provides higher compression at the cost of higher latency, "SPEED" provides lower compression with minimum impact on response time. "DEFAULT" provides an optimal result between speed and compression. This field will be set to "DEFAULT" if not specified.
.envoy.extensions.filters.http.gzip.v3.Gzip.CompressionLevel.Enum compression_level = 3 [(.validate.rules) = { ... }- Specified by:
getCompressionLevelValuein interfaceGzipOrBuilder- Returns:
- The enum numeric value on the wire for compressionLevel.
-
getCompressionLevel
A value used for selecting the zlib compression level. This setting will affect speed and amount of compression applied to the content. "BEST" provides higher compression at the cost of higher latency, "SPEED" provides lower compression with minimum impact on response time. "DEFAULT" provides an optimal result between speed and compression. This field will be set to "DEFAULT" if not specified.
.envoy.extensions.filters.http.gzip.v3.Gzip.CompressionLevel.Enum compression_level = 3 [(.validate.rules) = { ... }- Specified by:
getCompressionLevelin interfaceGzipOrBuilder- Returns:
- The compressionLevel.
-
getCompressionStrategyValue
public int getCompressionStrategyValue()A value used for selecting the zlib compression strategy which is directly related to the characteristics of the content. Most of the time "DEFAULT" will be the best choice, though there are situations which changing this parameter might produce better results. For example, run-length encoding (RLE) is typically used when the content is known for having sequences which same data occurs many consecutive times. For more information about each strategy, please refer to zlib manual.
.envoy.extensions.filters.http.gzip.v3.Gzip.CompressionStrategy compression_strategy = 4 [(.validate.rules) = { ... }- Specified by:
getCompressionStrategyValuein interfaceGzipOrBuilder- Returns:
- The enum numeric value on the wire for compressionStrategy.
-
getCompressionStrategy
A value used for selecting the zlib compression strategy which is directly related to the characteristics of the content. Most of the time "DEFAULT" will be the best choice, though there are situations which changing this parameter might produce better results. For example, run-length encoding (RLE) is typically used when the content is known for having sequences which same data occurs many consecutive times. For more information about each strategy, please refer to zlib manual.
.envoy.extensions.filters.http.gzip.v3.Gzip.CompressionStrategy compression_strategy = 4 [(.validate.rules) = { ... }- Specified by:
getCompressionStrategyin interfaceGzipOrBuilder- Returns:
- The compressionStrategy.
-
hasWindowBits
public boolean hasWindowBits()Value from 9 to 15 that represents the base two logarithmic of the compressor's window size. Larger window results in better compression at the expense of memory usage. The default is 12 which will produce a 4096 bytes window. For more details about this parameter, please refer to zlib manual > deflateInit2.
.google.protobuf.UInt32Value window_bits = 9 [(.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 compressor's window size. Larger window results in better compression at the expense of memory usage. The default is 12 which will produce a 4096 bytes window. For more details about this parameter, please refer to zlib manual > deflateInit2.
.google.protobuf.UInt32Value window_bits = 9 [(.validate.rules) = { ... }- Specified by:
getWindowBitsin interfaceGzipOrBuilder- Returns:
- The windowBits.
-
getWindowBitsOrBuilder
public com.google.protobuf.UInt32ValueOrBuilder getWindowBitsOrBuilder()Value from 9 to 15 that represents the base two logarithmic of the compressor's window size. Larger window results in better compression at the expense of memory usage. The default is 12 which will produce a 4096 bytes window. For more details about this parameter, please refer to zlib manual > deflateInit2.
.google.protobuf.UInt32Value window_bits = 9 [(.validate.rules) = { ... }- Specified by:
getWindowBitsOrBuilderin interfaceGzipOrBuilder
-
hasCompressor
public boolean hasCompressor()Set of configuration parameters common for all compression filters. You can define ``content_length``, ``content_type`` and other parameters in this field.
.envoy.extensions.filters.http.compressor.v3.Compressor compressor = 10;- Specified by:
hasCompressorin interfaceGzipOrBuilder- Returns:
- Whether the compressor field is set.
-
getCompressor
Set of configuration parameters common for all compression filters. You can define ``content_length``, ``content_type`` and other parameters in this field.
.envoy.extensions.filters.http.compressor.v3.Compressor compressor = 10;- Specified by:
getCompressorin interfaceGzipOrBuilder- Returns:
- The compressor.
-
getCompressorOrBuilder
Set of configuration parameters common for all compression filters. You can define ``content_length``, ``content_type`` and other parameters in this field.
.envoy.extensions.filters.http.compressor.v3.Compressor compressor = 10;- Specified by:
getCompressorOrBuilderin interfaceGzipOrBuilder
-
hasChunkSize
public boolean hasChunkSize()Value for Zlib's next output buffer. If not set, defaults to 4096. See https://www.zlib.net/manual.html for more details. Also see https://github.com/envoyproxy/envoy/issues/8448 for context on this filter's performance.
.google.protobuf.UInt32Value chunk_size = 11 [(.validate.rules) = { ... }- Specified by:
hasChunkSizein interfaceGzipOrBuilder- Returns:
- Whether the chunkSize field is set.
-
getChunkSize
public com.google.protobuf.UInt32Value getChunkSize()Value for Zlib's next output buffer. If not set, defaults to 4096. See https://www.zlib.net/manual.html for more details. Also see https://github.com/envoyproxy/envoy/issues/8448 for context on this filter's performance.
.google.protobuf.UInt32Value chunk_size = 11 [(.validate.rules) = { ... }- Specified by:
getChunkSizein interfaceGzipOrBuilder- Returns:
- The chunkSize.
-
getChunkSizeOrBuilder
public com.google.protobuf.UInt32ValueOrBuilder getChunkSizeOrBuilder()Value for Zlib's next output buffer. If not set, defaults to 4096. See https://www.zlib.net/manual.html for more details. Also see https://github.com/envoyproxy/envoy/issues/8448 for context on this filter's performance.
.google.protobuf.UInt32Value chunk_size = 11 [(.validate.rules) = { ... }- Specified by:
getChunkSizeOrBuilderin interfaceGzipOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Gzip parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Gzip parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Gzip parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Gzip parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Gzip parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Gzip parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Gzip parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Gzip parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Gzip.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-