java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.envoy.config.filter.http.compressor.v2.Compressor
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, CompressorOrBuilder, Serializable

public final class Compressor extends com.google.protobuf.GeneratedMessageV3 implements CompressorOrBuilder
 [#next-free-field: 6]
 
Protobuf type envoy.config.filter.http.compressor.v2.Compressor
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    [#next-free-field: 6]

    Nested 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

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageV3

    alwaysUseFieldBuilders, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    com.google.protobuf.UInt32Value
    Minimum response length, in bytes, which will trigger compression.
    com.google.protobuf.UInt32ValueOrBuilder
    Minimum response length, in bytes, which will trigger compression.
    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
    Set of strings that allows specifying which mime-types yield compression; e.g., application/json, text/html, etc.
    int
    Set of strings that allows specifying which mime-types yield compression; e.g., application/json, text/html, etc.
    com.google.protobuf.ProtocolStringList
    Set of strings that allows specifying which mime-types yield compression; e.g., application/json, text/html, etc.
    static Compressor
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    boolean
    If true, disables compression when the response contains an etag header.
    com.google.protobuf.Parser<Compressor>
     
    boolean
    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.
    Runtime flag that controls whether the filter is enabled or not.
    Runtime flag that controls whether the filter is enabled or not.
    int
     
    boolean
    Minimum response length, in bytes, which will trigger compression.
    int
     
    boolean
    Runtime flag that controls whether the filter is enabled or not.
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
     
    protected Object
    newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
     
    static Compressor
     
    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(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
     
    static Compressor
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Compressor
     
    static Compressor
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<Compressor>
     
     
    void
    writeTo(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, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

    • CONTENT_LENGTH_FIELD_NUMBER

      public static final int CONTENT_LENGTH_FIELD_NUMBER
      See Also:
    • CONTENT_TYPE_FIELD_NUMBER

      public static final int CONTENT_TYPE_FIELD_NUMBER
      See Also:
    • DISABLE_ON_ETAG_HEADER_FIELD_NUMBER

      public static final int DISABLE_ON_ETAG_HEADER_FIELD_NUMBER
      See Also:
    • REMOVE_ACCEPT_ENCODING_HEADER_FIELD_NUMBER

      public static final int REMOVE_ACCEPT_ENCODING_HEADER_FIELD_NUMBER
      See Also:
    • RUNTIME_ENABLED_FIELD_NUMBER

      public static final int RUNTIME_ENABLED_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • 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:
      hasContentLength in interface CompressorOrBuilder
      Returns:
      Whether the contentLength field is set.
    • 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:
      getContentLength in interface CompressorOrBuilder
      Returns:
      The contentLength.
    • 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:
      getContentLengthOrBuilder in interface CompressorOrBuilder
    • 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:
      getContentTypeList in interface CompressorOrBuilder
      Returns:
      A list containing the contentType.
    • 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:
      getContentTypeCount in interface CompressorOrBuilder
      Returns:
      The count of contentType.
    • 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:
      getContentType in interface CompressorOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The contentType at the given index.
    • 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:
      getContentTypeBytes in interface CompressorOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the contentType at the given index.
    • 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:
      getDisableOnEtagHeader in interface CompressorOrBuilder
      Returns:
      The disableOnEtagHeader.
    • 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:
      getRemoveAcceptEncodingHeader in interface CompressorOrBuilder
      Returns:
      The removeAcceptEncodingHeader.
    • 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:
      hasRuntimeEnabled in interface CompressorOrBuilder
      Returns:
      Whether the runtimeEnabled field is set.
    • 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:
      getRuntimeEnabled in interface CompressorOrBuilder
      Returns:
      The runtimeEnabled.
    • 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:
      getRuntimeEnabledOrBuilder in interface CompressorOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Compressor parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Compressor parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Compressor parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Compressor parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Compressor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Compressor parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Compressor parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Compressor parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Compressor parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Compressor parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Compressor parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Compressor parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Compressor.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Compressor.Builder newBuilder()
    • newBuilder

      public static Compressor.Builder newBuilder(Compressor prototype)
    • toBuilder

      public Compressor.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Compressor.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static Compressor getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Compressor> parser()
    • getParserForType

      public com.google.protobuf.Parser<Compressor> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public Compressor getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder