Class Brotli

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, BrotliOrBuilder, Serializable

    public final class Brotli
    extends com.google.protobuf.GeneratedMessageV3
    implements BrotliOrBuilder
     [#next-free-field: 7]
     
    Protobuf type envoy.extensions.compression.brotli.compressor.v3.Brotli
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Brotli.Builder
      [#next-free-field: 7]
      static class  Brotli.EncoderMode
      Protobuf enum envoy.extensions.compression.brotli.compressor.v3.Brotli.EncoderMode
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        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
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(Object obj)  
      com.google.protobuf.UInt32Value getChunkSize()
      Value for compressor's next output buffer.
      com.google.protobuf.UInt32ValueOrBuilder getChunkSizeOrBuilder()
      Value for compressor's next output buffer.
      static Brotli getDefaultInstance()  
      Brotli getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      boolean getDisableLiteralContextModeling()
      If true, disables "literal context modeling" format feature.
      Brotli.EncoderMode getEncoderMode()
      A value used to tune encoder for specific input.
      int getEncoderModeValue()
      A value used to tune encoder for specific input.
      com.google.protobuf.UInt32Value getInputBlockBits()
      Value from 16 to 24 that represents the base two logarithmic of the compressor's input block size.
      com.google.protobuf.UInt32ValueOrBuilder getInputBlockBitsOrBuilder()
      Value from 16 to 24 that represents the base two logarithmic of the compressor's input block size.
      com.google.protobuf.Parser<Brotli> getParserForType()  
      com.google.protobuf.UInt32Value getQuality()
      Value from 0 to 11 that controls the main compression speed-density lever.
      com.google.protobuf.UInt32ValueOrBuilder getQualityOrBuilder()
      Value from 0 to 11 that controls the main compression speed-density lever.
      int getSerializedSize()  
      com.google.protobuf.UnknownFieldSet getUnknownFields()  
      com.google.protobuf.UInt32Value getWindowBits()
      Value from 10 to 24 that represents the base two logarithmic of the compressor's window size.
      com.google.protobuf.UInt32ValueOrBuilder getWindowBitsOrBuilder()
      Value from 10 to 24 that represents the base two logarithmic of the compressor's window size.
      boolean hasChunkSize()
      Value for compressor's next output buffer.
      int hashCode()  
      boolean hasInputBlockBits()
      Value from 16 to 24 that represents the base two logarithmic of the compressor's input block size.
      boolean hasQuality()
      Value from 0 to 11 that controls the main compression speed-density lever.
      boolean hasWindowBits()
      Value from 10 to 24 that represents the base two logarithmic of the compressor's window size.
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      static Brotli.Builder newBuilder()  
      static Brotli.Builder newBuilder​(Brotli prototype)  
      Brotli.Builder newBuilderForType()  
      protected Brotli.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)  
      protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)  
      static Brotli parseDelimitedFrom​(InputStream input)  
      static Brotli parseDelimitedFrom​(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Brotli parseFrom​(byte[] data)  
      static Brotli parseFrom​(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Brotli parseFrom​(com.google.protobuf.ByteString data)  
      static Brotli parseFrom​(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Brotli parseFrom​(com.google.protobuf.CodedInputStream input)  
      static Brotli parseFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Brotli parseFrom​(InputStream input)  
      static Brotli parseFrom​(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Brotli parseFrom​(ByteBuffer data)  
      static Brotli parseFrom​(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static com.google.protobuf.Parser<Brotli> parser()  
      Brotli.Builder toBuilder()  
      void writeTo​(com.google.protobuf.CodedOutputStream output)  
      • Methods inherited from class com.google.protobuf.GeneratedMessageV3

        canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, 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, 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 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, hasField, hasOneof
    • Field Detail

      • ENCODER_MODE_FIELD_NUMBER

        public static final int ENCODER_MODE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • WINDOW_BITS_FIELD_NUMBER

        public static final int WINDOW_BITS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • INPUT_BLOCK_BITS_FIELD_NUMBER

        public static final int INPUT_BLOCK_BITS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CHUNK_SIZE_FIELD_NUMBER

        public static final int CHUNK_SIZE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DISABLE_LITERAL_CONTEXT_MODELING_FIELD_NUMBER

        public static final int DISABLE_LITERAL_CONTEXT_MODELING_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

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

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields 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
      • hasQuality

        public boolean hasQuality()
         Value from 0 to 11 that controls the main compression speed-density lever.
         The higher quality, the slower compression. The default value is 3.
         
        .google.protobuf.UInt32Value quality = 1 [(.validate.rules) = { ... }
        Specified by:
        hasQuality in interface BrotliOrBuilder
        Returns:
        Whether the quality field is set.
      • getQuality

        public com.google.protobuf.UInt32Value getQuality()
         Value from 0 to 11 that controls the main compression speed-density lever.
         The higher quality, the slower compression. The default value is 3.
         
        .google.protobuf.UInt32Value quality = 1 [(.validate.rules) = { ... }
        Specified by:
        getQuality in interface BrotliOrBuilder
        Returns:
        The quality.
      • getQualityOrBuilder

        public com.google.protobuf.UInt32ValueOrBuilder getQualityOrBuilder()
         Value from 0 to 11 that controls the main compression speed-density lever.
         The higher quality, the slower compression. The default value is 3.
         
        .google.protobuf.UInt32Value quality = 1 [(.validate.rules) = { ... }
        Specified by:
        getQualityOrBuilder in interface BrotliOrBuilder
      • getEncoderModeValue

        public int getEncoderModeValue()
         A value used to tune encoder for specific input. For more information about modes,
         please refer to brotli manual: https://brotli.org/encode.html#aa6f
         This field will be set to "DEFAULT" if not specified.
         
        .envoy.extensions.compression.brotli.compressor.v3.Brotli.EncoderMode encoder_mode = 2 [(.validate.rules) = { ... }
        Specified by:
        getEncoderModeValue in interface BrotliOrBuilder
        Returns:
        The enum numeric value on the wire for encoderMode.
      • getEncoderMode

        public Brotli.EncoderMode getEncoderMode()
         A value used to tune encoder for specific input. For more information about modes,
         please refer to brotli manual: https://brotli.org/encode.html#aa6f
         This field will be set to "DEFAULT" if not specified.
         
        .envoy.extensions.compression.brotli.compressor.v3.Brotli.EncoderMode encoder_mode = 2 [(.validate.rules) = { ... }
        Specified by:
        getEncoderMode in interface BrotliOrBuilder
        Returns:
        The encoderMode.
      • hasWindowBits

        public boolean hasWindowBits()
         Value from 10 to 24 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 18.
         For more details about this parameter, please refer to brotli manual:
         https://brotli.org/encode.html#a9a8
         
        .google.protobuf.UInt32Value window_bits = 3 [(.validate.rules) = { ... }
        Specified by:
        hasWindowBits in interface BrotliOrBuilder
        Returns:
        Whether the windowBits field is set.
      • getWindowBits

        public com.google.protobuf.UInt32Value getWindowBits()
         Value from 10 to 24 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 18.
         For more details about this parameter, please refer to brotli manual:
         https://brotli.org/encode.html#a9a8
         
        .google.protobuf.UInt32Value window_bits = 3 [(.validate.rules) = { ... }
        Specified by:
        getWindowBits in interface BrotliOrBuilder
        Returns:
        The windowBits.
      • getWindowBitsOrBuilder

        public com.google.protobuf.UInt32ValueOrBuilder getWindowBitsOrBuilder()
         Value from 10 to 24 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 18.
         For more details about this parameter, please refer to brotli manual:
         https://brotli.org/encode.html#a9a8
         
        .google.protobuf.UInt32Value window_bits = 3 [(.validate.rules) = { ... }
        Specified by:
        getWindowBitsOrBuilder in interface BrotliOrBuilder
      • hasInputBlockBits

        public boolean hasInputBlockBits()
         Value from 16 to 24 that represents the base two logarithmic of the compressor's input block
         size. Larger input block results in better compression at the expense of memory usage. The
         default is 24. For more details about this parameter, please refer to brotli manual:
         https://brotli.org/encode.html#a9a8
         
        .google.protobuf.UInt32Value input_block_bits = 4 [(.validate.rules) = { ... }
        Specified by:
        hasInputBlockBits in interface BrotliOrBuilder
        Returns:
        Whether the inputBlockBits field is set.
      • getInputBlockBits

        public com.google.protobuf.UInt32Value getInputBlockBits()
         Value from 16 to 24 that represents the base two logarithmic of the compressor's input block
         size. Larger input block results in better compression at the expense of memory usage. The
         default is 24. For more details about this parameter, please refer to brotli manual:
         https://brotli.org/encode.html#a9a8
         
        .google.protobuf.UInt32Value input_block_bits = 4 [(.validate.rules) = { ... }
        Specified by:
        getInputBlockBits in interface BrotliOrBuilder
        Returns:
        The inputBlockBits.
      • getInputBlockBitsOrBuilder

        public com.google.protobuf.UInt32ValueOrBuilder getInputBlockBitsOrBuilder()
         Value from 16 to 24 that represents the base two logarithmic of the compressor's input block
         size. Larger input block results in better compression at the expense of memory usage. The
         default is 24. For more details about this parameter, please refer to brotli manual:
         https://brotli.org/encode.html#a9a8
         
        .google.protobuf.UInt32Value input_block_bits = 4 [(.validate.rules) = { ... }
        Specified by:
        getInputBlockBitsOrBuilder in interface BrotliOrBuilder
      • hasChunkSize

        public boolean hasChunkSize()
         Value for compressor's next output buffer. If not set, defaults to 4096.
         
        .google.protobuf.UInt32Value chunk_size = 5 [(.validate.rules) = { ... }
        Specified by:
        hasChunkSize in interface BrotliOrBuilder
        Returns:
        Whether the chunkSize field is set.
      • getChunkSize

        public com.google.protobuf.UInt32Value getChunkSize()
         Value for compressor's next output buffer. If not set, defaults to 4096.
         
        .google.protobuf.UInt32Value chunk_size = 5 [(.validate.rules) = { ... }
        Specified by:
        getChunkSize in interface BrotliOrBuilder
        Returns:
        The chunkSize.
      • getChunkSizeOrBuilder

        public com.google.protobuf.UInt32ValueOrBuilder getChunkSizeOrBuilder()
         Value for compressor's next output buffer. If not set, defaults to 4096.
         
        .google.protobuf.UInt32Value chunk_size = 5 [(.validate.rules) = { ... }
        Specified by:
        getChunkSizeOrBuilder in interface BrotliOrBuilder
      • getDisableLiteralContextModeling

        public boolean getDisableLiteralContextModeling()
         If true, disables "literal context modeling" format feature.
         This flag is a "decoding-speed vs compression ratio" trade-off.
         
        bool disable_literal_context_modeling = 6;
        Specified by:
        getDisableLiteralContextModeling in interface BrotliOrBuilder
        Returns:
        The disableLiteralContextModeling.
      • 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 Brotli parseFrom​(ByteBuffer data)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

        public static Brotli getDefaultInstance()
      • parser

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

        public com.google.protobuf.Parser<Brotli> 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 Brotli getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder