public final class Compressor extends com.google.protobuf.GeneratedMessageV3 implements CompressorOrBuilder
[#next-free-field: 9]Protobuf type
envoy.extensions.filters.http.compressor.v3.Compressor| Modifier and Type | Class and Description |
|---|---|
static class |
Compressor.Builder
[#next-free-field: 9]
Protobuf type
envoy.extensions.filters.http.compressor.v3.Compressor |
static class |
Compressor.CommonDirectionConfig
Protobuf type
envoy.extensions.filters.http.compressor.v3.Compressor.CommonDirectionConfig |
static interface |
Compressor.CommonDirectionConfigOrBuilder |
static class |
Compressor.RequestDirectionConfig
Configuration for filter behavior on the request direction.
|
static interface |
Compressor.RequestDirectionConfigOrBuilder |
static class |
Compressor.ResponseDirectionConfig
Configuration for filter behavior on the response direction.
|
static interface |
Compressor.ResponseDirectionConfigOrBuilder |
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, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
COMPRESSOR_LIBRARY_FIELD_NUMBER |
static int |
CONTENT_LENGTH_FIELD_NUMBER |
static int |
CONTENT_TYPE_FIELD_NUMBER |
static int |
DISABLE_ON_ETAG_HEADER_FIELD_NUMBER |
static int |
REMOVE_ACCEPT_ENCODING_HEADER_FIELD_NUMBER |
static int |
REQUEST_DIRECTION_CONFIG_FIELD_NUMBER |
static int |
RESPONSE_DIRECTION_CONFIG_FIELD_NUMBER |
static int |
RUNTIME_ENABLED_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
TypedExtensionConfig |
getCompressorLibrary()
A compressor library to use for compression.
|
TypedExtensionConfigOrBuilder |
getCompressorLibraryOrBuilder()
A compressor library to use for compression.
|
com.google.protobuf.UInt32Value |
getContentLength()
Deprecated.
|
com.google.protobuf.UInt32ValueOrBuilder |
getContentLengthOrBuilder()
Deprecated.
|
String |
getContentType(int index)
Deprecated.
|
com.google.protobuf.ByteString |
getContentTypeBytes(int index)
Deprecated.
|
int |
getContentTypeCount()
Deprecated.
|
com.google.protobuf.ProtocolStringList |
getContentTypeList()
Deprecated.
|
static Compressor |
getDefaultInstance() |
Compressor |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
boolean |
getDisableOnEtagHeader()
Deprecated.
|
com.google.protobuf.Parser<Compressor> |
getParserForType() |
boolean |
getRemoveAcceptEncodingHeader()
Deprecated.
|
Compressor.RequestDirectionConfig |
getRequestDirectionConfig()
Configuration for request compression.
|
Compressor.RequestDirectionConfigOrBuilder |
getRequestDirectionConfigOrBuilder()
Configuration for request compression.
|
Compressor.ResponseDirectionConfig |
getResponseDirectionConfig()
Configuration for response compression.
|
Compressor.ResponseDirectionConfigOrBuilder |
getResponseDirectionConfigOrBuilder()
Configuration for response compression.
|
RuntimeFeatureFlag |
getRuntimeEnabled()
Deprecated.
|
RuntimeFeatureFlagOrBuilder |
getRuntimeEnabledOrBuilder()
Deprecated.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasCompressorLibrary()
A compressor library to use for compression.
|
boolean |
hasContentLength()
Deprecated.
|
int |
hashCode() |
boolean |
hasRequestDirectionConfig()
Configuration for request compression.
|
boolean |
hasResponseDirectionConfig()
Configuration for response compression.
|
boolean |
hasRuntimeEnabled()
Deprecated.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Compressor.Builder |
newBuilder() |
static Compressor.Builder |
newBuilder(Compressor prototype) |
Compressor.Builder |
newBuilderForType() |
protected Compressor.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Compressor |
parseDelimitedFrom(InputStream input) |
static Compressor |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Compressor |
parseFrom(byte[] data) |
static Compressor |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Compressor |
parseFrom(ByteBuffer data) |
static Compressor |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Compressor |
parseFrom(com.google.protobuf.ByteString data) |
static Compressor |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Compressor |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Compressor |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Compressor |
parseFrom(InputStream input) |
static Compressor |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Compressor> |
parser() |
Compressor.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int CONTENT_LENGTH_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 RUNTIME_ENABLED_FIELD_NUMBER
public static final int COMPRESSOR_LIBRARY_FIELD_NUMBER
public static final int REQUEST_DIRECTION_CONFIG_FIELD_NUMBER
public static final int RESPONSE_DIRECTION_CONFIG_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public 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.GeneratedMessageV3@Deprecated public boolean hasContentLength()
Minimum response length, in bytes, which will trigger compression. The default value is 30.
.google.protobuf.UInt32Value content_length = 1 [deprecated = true];hasContentLength in interface CompressorOrBuilder@Deprecated 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 [deprecated = true];getContentLength in interface CompressorOrBuilder@Deprecated 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 [deprecated = true];getContentLengthOrBuilder in interface CompressorOrBuilder@Deprecated 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 [deprecated = true];getContentTypeList in interface CompressorOrBuilder@Deprecated 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 [deprecated = true];getContentTypeCount in interface CompressorOrBuilder@Deprecated 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 [deprecated = true];getContentType in interface CompressorOrBuilder@Deprecated 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 [deprecated = true];getContentTypeBytes in interface CompressorOrBuilder@Deprecated 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 [deprecated = true];getDisableOnEtagHeader in interface CompressorOrBuilder@Deprecated 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 [deprecated = true];getRemoveAcceptEncodingHeader in interface CompressorOrBuilder@Deprecated 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.config.core.v3.RuntimeFeatureFlag runtime_enabled = 5 [deprecated = true];hasRuntimeEnabled in interface CompressorOrBuilder@Deprecated 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.config.core.v3.RuntimeFeatureFlag runtime_enabled = 5 [deprecated = true];getRuntimeEnabled in interface CompressorOrBuilder@Deprecated 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.config.core.v3.RuntimeFeatureFlag runtime_enabled = 5 [deprecated = true];getRuntimeEnabledOrBuilder in interface CompressorOrBuilderpublic boolean hasCompressorLibrary()
A compressor library to use for compression. Currently only :ref:`envoy.compression.gzip.compressor<envoy_api_msg_extensions.compression.gzip.compressor.v3.Gzip>` is included in Envoy. This field is ignored if used in the context of the gzip http-filter, but is mandatory otherwise.
.envoy.config.core.v3.TypedExtensionConfig compressor_library = 6;hasCompressorLibrary in interface CompressorOrBuilderpublic TypedExtensionConfig getCompressorLibrary()
A compressor library to use for compression. Currently only :ref:`envoy.compression.gzip.compressor<envoy_api_msg_extensions.compression.gzip.compressor.v3.Gzip>` is included in Envoy. This field is ignored if used in the context of the gzip http-filter, but is mandatory otherwise.
.envoy.config.core.v3.TypedExtensionConfig compressor_library = 6;getCompressorLibrary in interface CompressorOrBuilderpublic TypedExtensionConfigOrBuilder getCompressorLibraryOrBuilder()
A compressor library to use for compression. Currently only :ref:`envoy.compression.gzip.compressor<envoy_api_msg_extensions.compression.gzip.compressor.v3.Gzip>` is included in Envoy. This field is ignored if used in the context of the gzip http-filter, but is mandatory otherwise.
.envoy.config.core.v3.TypedExtensionConfig compressor_library = 6;getCompressorLibraryOrBuilder in interface CompressorOrBuilderpublic boolean hasRequestDirectionConfig()
Configuration for request compression. Compression is disabled by default if left empty.
.envoy.extensions.filters.http.compressor.v3.Compressor.RequestDirectionConfig request_direction_config = 7;hasRequestDirectionConfig in interface CompressorOrBuilderpublic Compressor.RequestDirectionConfig getRequestDirectionConfig()
Configuration for request compression. Compression is disabled by default if left empty.
.envoy.extensions.filters.http.compressor.v3.Compressor.RequestDirectionConfig request_direction_config = 7;getRequestDirectionConfig in interface CompressorOrBuilderpublic Compressor.RequestDirectionConfigOrBuilder getRequestDirectionConfigOrBuilder()
Configuration for request compression. Compression is disabled by default if left empty.
.envoy.extensions.filters.http.compressor.v3.Compressor.RequestDirectionConfig request_direction_config = 7;getRequestDirectionConfigOrBuilder in interface CompressorOrBuilderpublic boolean hasResponseDirectionConfig()
Configuration for response compression. Compression is enabled by default if left empty.
.. attention::
If the field is not empty then the duplicate deprecated fields of the `Compressor` message,
such as `content_length`, `content_type`, `disable_on_etag_header`,
`remove_accept_encoding_header` and `runtime_enabled`, are ignored.
Also all the statistics related to response compression will be rooted in
`<stat_prefix>.compressor.<compressor_library.name>.<compressor_library_stat_prefix>.response.*`
instead of
`<stat_prefix>.compressor.<compressor_library.name>.<compressor_library_stat_prefix>.*`.
.envoy.extensions.filters.http.compressor.v3.Compressor.ResponseDirectionConfig response_direction_config = 8;hasResponseDirectionConfig in interface CompressorOrBuilderpublic Compressor.ResponseDirectionConfig getResponseDirectionConfig()
Configuration for response compression. Compression is enabled by default if left empty.
.. attention::
If the field is not empty then the duplicate deprecated fields of the `Compressor` message,
such as `content_length`, `content_type`, `disable_on_etag_header`,
`remove_accept_encoding_header` and `runtime_enabled`, are ignored.
Also all the statistics related to response compression will be rooted in
`<stat_prefix>.compressor.<compressor_library.name>.<compressor_library_stat_prefix>.response.*`
instead of
`<stat_prefix>.compressor.<compressor_library.name>.<compressor_library_stat_prefix>.*`.
.envoy.extensions.filters.http.compressor.v3.Compressor.ResponseDirectionConfig response_direction_config = 8;getResponseDirectionConfig in interface CompressorOrBuilderpublic Compressor.ResponseDirectionConfigOrBuilder getResponseDirectionConfigOrBuilder()
Configuration for response compression. Compression is enabled by default if left empty.
.. attention::
If the field is not empty then the duplicate deprecated fields of the `Compressor` message,
such as `content_length`, `content_type`, `disable_on_etag_header`,
`remove_accept_encoding_header` and `runtime_enabled`, are ignored.
Also all the statistics related to response compression will be rooted in
`<stat_prefix>.compressor.<compressor_library.name>.<compressor_library_stat_prefix>.response.*`
instead of
`<stat_prefix>.compressor.<compressor_library.name>.<compressor_library_stat_prefix>.*`.
.envoy.extensions.filters.http.compressor.v3.Compressor.ResponseDirectionConfig response_direction_config = 8;getResponseDirectionConfigOrBuilder in interface CompressorOrBuilderpublic 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 Compressor parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Compressor parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Compressor parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Compressor parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Compressor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Compressor parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Compressor parseFrom(InputStream input) throws IOException
IOExceptionpublic static Compressor parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Compressor parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Compressor parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Compressor parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Compressor parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Compressor.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Compressor.Builder newBuilder()
public static Compressor.Builder newBuilder(Compressor prototype)
public Compressor.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Compressor.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Compressor getDefaultInstance()
public static com.google.protobuf.Parser<Compressor> parser()
public com.google.protobuf.Parser<Compressor> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Compressor getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2021 The Envoy Project. All rights reserved.