public static final class GzipOuterClass.Gzip extends com.google.protobuf.GeneratedMessageV3 implements GzipOuterClass.GzipOrBuilder
envoy.config.filter.http.gzip.v2.Gzip| Modifier and Type | Class and Description |
|---|---|
static class |
GzipOuterClass.Gzip.Builder
Protobuf type
envoy.config.filter.http.gzip.v2.Gzip |
static class |
GzipOuterClass.Gzip.CompressionLevel
Protobuf type
envoy.config.filter.http.gzip.v2.Gzip.CompressionLevel |
static interface |
GzipOuterClass.Gzip.CompressionLevelOrBuilder |
static class |
GzipOuterClass.Gzip.CompressionStrategy
Protobuf enum
envoy.config.filter.http.gzip.v2.Gzip.CompressionStrategy |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
COMPRESSION_LEVEL_FIELD_NUMBER |
static int |
COMPRESSION_STRATEGY_FIELD_NUMBER |
static int |
CONTENT_LENGTH_FIELD_NUMBER |
static int |
CONTENT_TYPE_FIELD_NUMBER |
static int |
DISABLE_ON_ETAG_HEADER_FIELD_NUMBER |
static int |
MEMORY_LEVEL_FIELD_NUMBER |
static int |
REMOVE_ACCEPT_ENCODING_HEADER_FIELD_NUMBER |
static int |
WINDOW_BITS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
GzipOuterClass.Gzip.CompressionLevel.Enum |
getCompressionLevel()
A value used for selecting the zlib compression level.
|
int |
getCompressionLevelValue()
A value used for selecting the zlib compression level.
|
GzipOuterClass.Gzip.CompressionStrategy |
getCompressionStrategy()
A value used for selecting the zlib compression strategy which is directly related to the
characteristics of the content.
|
int |
getCompressionStrategyValue()
A value used for selecting the zlib compression strategy which is directly related to the
characteristics of the content.
|
com.google.protobuf.UInt32Value |
getContentLength()
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.
|
static GzipOuterClass.Gzip |
getDefaultInstance() |
GzipOuterClass.Gzip |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
boolean |
getDisableOnEtagHeader()
If true, disables compression when the response contains an etag header.
|
com.google.protobuf.UInt32Value |
getMemoryLevel()
Value from 1 to 9 that controls the amount of internal memory used by zlib.
|
com.google.protobuf.UInt32ValueOrBuilder |
getMemoryLevelOrBuilder()
Value from 1 to 9 that controls the amount of internal memory used by zlib.
|
com.google.protobuf.Parser<GzipOuterClass.Gzip> |
getParserForType() |
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.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
com.google.protobuf.UInt32Value |
getWindowBits()
Value from 9 to 15 that represents the base two logarithmic of the compressor's window size.
|
com.google.protobuf.UInt32ValueOrBuilder |
getWindowBitsOrBuilder()
Value from 9 to 15 that represents the base two logarithmic of the compressor's window size.
|
boolean |
hasContentLength()
Minimum response length, in bytes, which will trigger compression.
|
int |
hashCode() |
boolean |
hasMemoryLevel()
Value from 1 to 9 that controls the amount of internal memory used by zlib.
|
boolean |
hasWindowBits()
Value from 9 to 15 that represents the base two logarithmic of the compressor's window size.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static GzipOuterClass.Gzip.Builder |
newBuilder() |
static GzipOuterClass.Gzip.Builder |
newBuilder(GzipOuterClass.Gzip prototype) |
GzipOuterClass.Gzip.Builder |
newBuilderForType() |
protected GzipOuterClass.Gzip.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static GzipOuterClass.Gzip |
parseDelimitedFrom(InputStream input) |
static GzipOuterClass.Gzip |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GzipOuterClass.Gzip |
parseFrom(byte[] data) |
static GzipOuterClass.Gzip |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GzipOuterClass.Gzip |
parseFrom(ByteBuffer data) |
static GzipOuterClass.Gzip |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GzipOuterClass.Gzip |
parseFrom(com.google.protobuf.ByteString data) |
static GzipOuterClass.Gzip |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GzipOuterClass.Gzip |
parseFrom(com.google.protobuf.CodedInputStream input) |
static GzipOuterClass.Gzip |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GzipOuterClass.Gzip |
parseFrom(InputStream input) |
static GzipOuterClass.Gzip |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<GzipOuterClass.Gzip> |
parser() |
GzipOuterClass.Gzip.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int MEMORY_LEVEL_FIELD_NUMBER
public static final int CONTENT_LENGTH_FIELD_NUMBER
public static final int COMPRESSION_LEVEL_FIELD_NUMBER
public static final int COMPRESSION_STRATEGY_FIELD_NUMBER
public static final int CONTENT_TYPE_FIELD_NUMBER
public static final int DISABLE_ON_ETAG_HEADER_FIELD_NUMBER
public static final int REMOVE_ACCEPT_ENCODING_HEADER_FIELD_NUMBER
public static final int WINDOW_BITS_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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) = { ... }hasMemoryLevel in interface GzipOuterClass.GzipOrBuilderpublic 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) = { ... }getMemoryLevel in interface GzipOuterClass.GzipOrBuilderpublic 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) = { ... }getMemoryLevelOrBuilder in interface GzipOuterClass.GzipOrBuilderpublic boolean hasContentLength()
Minimum response length, in bytes, which will trigger compression. The default value is 30.
.google.protobuf.UInt32Value content_length = 2 [(.validate.rules) = { ... }hasContentLength in interface GzipOuterClass.GzipOrBuilderpublic com.google.protobuf.UInt32Value getContentLength()
Minimum response length, in bytes, which will trigger compression. The default value is 30.
.google.protobuf.UInt32Value content_length = 2 [(.validate.rules) = { ... }getContentLength in interface GzipOuterClass.GzipOrBuilderpublic com.google.protobuf.UInt32ValueOrBuilder getContentLengthOrBuilder()
Minimum response length, in bytes, which will trigger compression. The default value is 30.
.google.protobuf.UInt32Value content_length = 2 [(.validate.rules) = { ... }getContentLengthOrBuilder in interface GzipOuterClass.GzipOrBuilderpublic 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.config.filter.http.gzip.v2.Gzip.CompressionLevel.Enum compression_level = 3 [(.validate.rules) = { ... }getCompressionLevelValue in interface GzipOuterClass.GzipOrBuilderpublic GzipOuterClass.Gzip.CompressionLevel.Enum 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.config.filter.http.gzip.v2.Gzip.CompressionLevel.Enum compression_level = 3 [(.validate.rules) = { ... }getCompressionLevel in interface GzipOuterClass.GzipOrBuilderpublic 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.config.filter.http.gzip.v2.Gzip.CompressionStrategy compression_strategy = 4 [(.validate.rules) = { ... }getCompressionStrategyValue in interface GzipOuterClass.GzipOrBuilderpublic GzipOuterClass.Gzip.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.config.filter.http.gzip.v2.Gzip.CompressionStrategy compression_strategy = 4 [(.validate.rules) = { ... }getCompressionStrategy in interface GzipOuterClass.GzipOrBuilderpublic 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".
repeated string content_type = 6 [(.validate.rules) = { ... }getContentTypeList in interface GzipOuterClass.GzipOrBuilderpublic 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".
repeated string content_type = 6 [(.validate.rules) = { ... }getContentTypeCount in interface GzipOuterClass.GzipOrBuilderpublic 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".
repeated string content_type = 6 [(.validate.rules) = { ... }getContentType in interface GzipOuterClass.GzipOrBuilderpublic 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".
repeated string content_type = 6 [(.validate.rules) = { ... }getContentTypeBytes in interface GzipOuterClass.GzipOrBuilderpublic 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 = 7;getDisableOnEtagHeader in interface GzipOuterClass.GzipOrBuilderpublic 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.
bool remove_accept_encoding_header = 8;getRemoveAcceptEncodingHeader in interface GzipOuterClass.GzipOrBuilderpublic 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) = { ... }hasWindowBits in interface GzipOuterClass.GzipOrBuilderpublic 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) = { ... }getWindowBits in interface GzipOuterClass.GzipOrBuilderpublic 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) = { ... }getWindowBitsOrBuilder in interface GzipOuterClass.GzipOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static GzipOuterClass.Gzip parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GzipOuterClass.Gzip parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GzipOuterClass.Gzip parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GzipOuterClass.Gzip parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GzipOuterClass.Gzip parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GzipOuterClass.Gzip parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GzipOuterClass.Gzip parseFrom(InputStream input) throws IOException
IOExceptionpublic static GzipOuterClass.Gzip parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GzipOuterClass.Gzip parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static GzipOuterClass.Gzip parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GzipOuterClass.Gzip parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static GzipOuterClass.Gzip parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic GzipOuterClass.Gzip.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static GzipOuterClass.Gzip.Builder newBuilder()
public static GzipOuterClass.Gzip.Builder newBuilder(GzipOuterClass.Gzip prototype)
public GzipOuterClass.Gzip.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected GzipOuterClass.Gzip.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static GzipOuterClass.Gzip getDefaultInstance()
public static com.google.protobuf.Parser<GzipOuterClass.Gzip> parser()
public com.google.protobuf.Parser<GzipOuterClass.Gzip> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public GzipOuterClass.Gzip getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018 The Envoy Project. All rights reserved.