java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Zstd.Builder>
io.envoyproxy.envoy.extensions.compression.zstd.compressor.v3.Zstd.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ZstdOrBuilder, Cloneable
Enclosing class:
Zstd

public static final class Zstd.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Zstd.Builder> implements ZstdOrBuilder
 [#next-free-field: 6]
 
Protobuf type envoy.extensions.compression.zstd.compressor.v3.Zstd
  • Method Details

    • 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.Builder<Zstd.Builder>
    • clear

      public Zstd.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<Zstd.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Zstd.Builder>
    • getDefaultInstanceForType

      public Zstd getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Zstd build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Zstd buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public Zstd.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Zstd.Builder>
    • setField

      public Zstd.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Zstd.Builder>
    • clearField

      public Zstd.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Zstd.Builder>
    • clearOneof

      public Zstd.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Zstd.Builder>
    • setRepeatedField

      public Zstd.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Zstd.Builder>
    • addRepeatedField

      public Zstd.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Zstd.Builder>
    • mergeFrom

      public Zstd.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Zstd.Builder>
    • mergeFrom

      public Zstd.Builder mergeFrom(Zstd other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Zstd.Builder>
    • mergeFrom

      public Zstd.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Zstd.Builder>
      Throws:
      IOException
    • hasCompressionLevel

      public boolean hasCompressionLevel()
       Set compression parameters according to pre-defined compression level table.
       Note that exact compression parameters are dynamically determined,
       depending on both compression level and source content size (when known).
       Value 0 means default, and default level is 3.
       Setting a level does not automatically set all other compression parameters
       to default. Setting this will however eventually dynamically impact the compression
       parameters which have not been manually set. The manually set
       ones will 'stick'.
       
      .google.protobuf.UInt32Value compression_level = 1;
      Specified by:
      hasCompressionLevel in interface ZstdOrBuilder
      Returns:
      Whether the compressionLevel field is set.
    • getCompressionLevel

      public com.google.protobuf.UInt32Value getCompressionLevel()
       Set compression parameters according to pre-defined compression level table.
       Note that exact compression parameters are dynamically determined,
       depending on both compression level and source content size (when known).
       Value 0 means default, and default level is 3.
       Setting a level does not automatically set all other compression parameters
       to default. Setting this will however eventually dynamically impact the compression
       parameters which have not been manually set. The manually set
       ones will 'stick'.
       
      .google.protobuf.UInt32Value compression_level = 1;
      Specified by:
      getCompressionLevel in interface ZstdOrBuilder
      Returns:
      The compressionLevel.
    • setCompressionLevel

      public Zstd.Builder setCompressionLevel(com.google.protobuf.UInt32Value value)
       Set compression parameters according to pre-defined compression level table.
       Note that exact compression parameters are dynamically determined,
       depending on both compression level and source content size (when known).
       Value 0 means default, and default level is 3.
       Setting a level does not automatically set all other compression parameters
       to default. Setting this will however eventually dynamically impact the compression
       parameters which have not been manually set. The manually set
       ones will 'stick'.
       
      .google.protobuf.UInt32Value compression_level = 1;
    • setCompressionLevel

      public Zstd.Builder setCompressionLevel(com.google.protobuf.UInt32Value.Builder builderForValue)
       Set compression parameters according to pre-defined compression level table.
       Note that exact compression parameters are dynamically determined,
       depending on both compression level and source content size (when known).
       Value 0 means default, and default level is 3.
       Setting a level does not automatically set all other compression parameters
       to default. Setting this will however eventually dynamically impact the compression
       parameters which have not been manually set. The manually set
       ones will 'stick'.
       
      .google.protobuf.UInt32Value compression_level = 1;
    • mergeCompressionLevel

      public Zstd.Builder mergeCompressionLevel(com.google.protobuf.UInt32Value value)
       Set compression parameters according to pre-defined compression level table.
       Note that exact compression parameters are dynamically determined,
       depending on both compression level and source content size (when known).
       Value 0 means default, and default level is 3.
       Setting a level does not automatically set all other compression parameters
       to default. Setting this will however eventually dynamically impact the compression
       parameters which have not been manually set. The manually set
       ones will 'stick'.
       
      .google.protobuf.UInt32Value compression_level = 1;
    • clearCompressionLevel

      public Zstd.Builder clearCompressionLevel()
       Set compression parameters according to pre-defined compression level table.
       Note that exact compression parameters are dynamically determined,
       depending on both compression level and source content size (when known).
       Value 0 means default, and default level is 3.
       Setting a level does not automatically set all other compression parameters
       to default. Setting this will however eventually dynamically impact the compression
       parameters which have not been manually set. The manually set
       ones will 'stick'.
       
      .google.protobuf.UInt32Value compression_level = 1;
    • getCompressionLevelBuilder

      public com.google.protobuf.UInt32Value.Builder getCompressionLevelBuilder()
       Set compression parameters according to pre-defined compression level table.
       Note that exact compression parameters are dynamically determined,
       depending on both compression level and source content size (when known).
       Value 0 means default, and default level is 3.
       Setting a level does not automatically set all other compression parameters
       to default. Setting this will however eventually dynamically impact the compression
       parameters which have not been manually set. The manually set
       ones will 'stick'.
       
      .google.protobuf.UInt32Value compression_level = 1;
    • getCompressionLevelOrBuilder

      public com.google.protobuf.UInt32ValueOrBuilder getCompressionLevelOrBuilder()
       Set compression parameters according to pre-defined compression level table.
       Note that exact compression parameters are dynamically determined,
       depending on both compression level and source content size (when known).
       Value 0 means default, and default level is 3.
       Setting a level does not automatically set all other compression parameters
       to default. Setting this will however eventually dynamically impact the compression
       parameters which have not been manually set. The manually set
       ones will 'stick'.
       
      .google.protobuf.UInt32Value compression_level = 1;
      Specified by:
      getCompressionLevelOrBuilder in interface ZstdOrBuilder
    • getEnableChecksum

      public boolean getEnableChecksum()
       A 32-bits checksum of content is written at end of frame. If not set, defaults to false.
       
      bool enable_checksum = 2;
      Specified by:
      getEnableChecksum in interface ZstdOrBuilder
      Returns:
      The enableChecksum.
    • setEnableChecksum

      public Zstd.Builder setEnableChecksum(boolean value)
       A 32-bits checksum of content is written at end of frame. If not set, defaults to false.
       
      bool enable_checksum = 2;
      Parameters:
      value - The enableChecksum to set.
      Returns:
      This builder for chaining.
    • clearEnableChecksum

      public Zstd.Builder clearEnableChecksum()
       A 32-bits checksum of content is written at end of frame. If not set, defaults to false.
       
      bool enable_checksum = 2;
      Returns:
      This builder for chaining.
    • getStrategyValue

      public int getStrategyValue()
       The higher the value of selected strategy, the more complex it is,
       resulting in stronger and slower compression.
       Special: value 0 means "use default strategy".
       
      .envoy.extensions.compression.zstd.compressor.v3.Zstd.Strategy strategy = 3 [(.validate.rules) = { ... }
      Specified by:
      getStrategyValue in interface ZstdOrBuilder
      Returns:
      The enum numeric value on the wire for strategy.
    • setStrategyValue

      public Zstd.Builder setStrategyValue(int value)
       The higher the value of selected strategy, the more complex it is,
       resulting in stronger and slower compression.
       Special: value 0 means "use default strategy".
       
      .envoy.extensions.compression.zstd.compressor.v3.Zstd.Strategy strategy = 3 [(.validate.rules) = { ... }
      Parameters:
      value - The enum numeric value on the wire for strategy to set.
      Returns:
      This builder for chaining.
    • getStrategy

      public Zstd.Strategy getStrategy()
       The higher the value of selected strategy, the more complex it is,
       resulting in stronger and slower compression.
       Special: value 0 means "use default strategy".
       
      .envoy.extensions.compression.zstd.compressor.v3.Zstd.Strategy strategy = 3 [(.validate.rules) = { ... }
      Specified by:
      getStrategy in interface ZstdOrBuilder
      Returns:
      The strategy.
    • setStrategy

      public Zstd.Builder setStrategy(Zstd.Strategy value)
       The higher the value of selected strategy, the more complex it is,
       resulting in stronger and slower compression.
       Special: value 0 means "use default strategy".
       
      .envoy.extensions.compression.zstd.compressor.v3.Zstd.Strategy strategy = 3 [(.validate.rules) = { ... }
      Parameters:
      value - The strategy to set.
      Returns:
      This builder for chaining.
    • clearStrategy

      public Zstd.Builder clearStrategy()
       The higher the value of selected strategy, the more complex it is,
       resulting in stronger and slower compression.
       Special: value 0 means "use default strategy".
       
      .envoy.extensions.compression.zstd.compressor.v3.Zstd.Strategy strategy = 3 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • hasDictionary

      public boolean hasDictionary()
       A dictionary for compression. Zstd offers dictionary compression, which greatly improves
       efficiency on small files and messages. Each dictionary will be generated with a dictionary ID
       that can be used to search the same dictionary during decompression.
       Please refer to `zstd manual <https://github.com/facebook/zstd/blob/dev/programs/zstd.1.md#dictionary-builder>`_
       to train a specific dictionary for compression.
       
      .envoy.config.core.v3.DataSource dictionary = 4;
      Specified by:
      hasDictionary in interface ZstdOrBuilder
      Returns:
      Whether the dictionary field is set.
    • getDictionary

      public DataSource getDictionary()
       A dictionary for compression. Zstd offers dictionary compression, which greatly improves
       efficiency on small files and messages. Each dictionary will be generated with a dictionary ID
       that can be used to search the same dictionary during decompression.
       Please refer to `zstd manual <https://github.com/facebook/zstd/blob/dev/programs/zstd.1.md#dictionary-builder>`_
       to train a specific dictionary for compression.
       
      .envoy.config.core.v3.DataSource dictionary = 4;
      Specified by:
      getDictionary in interface ZstdOrBuilder
      Returns:
      The dictionary.
    • setDictionary

      public Zstd.Builder setDictionary(DataSource value)
       A dictionary for compression. Zstd offers dictionary compression, which greatly improves
       efficiency on small files and messages. Each dictionary will be generated with a dictionary ID
       that can be used to search the same dictionary during decompression.
       Please refer to `zstd manual <https://github.com/facebook/zstd/blob/dev/programs/zstd.1.md#dictionary-builder>`_
       to train a specific dictionary for compression.
       
      .envoy.config.core.v3.DataSource dictionary = 4;
    • setDictionary

      public Zstd.Builder setDictionary(DataSource.Builder builderForValue)
       A dictionary for compression. Zstd offers dictionary compression, which greatly improves
       efficiency on small files and messages. Each dictionary will be generated with a dictionary ID
       that can be used to search the same dictionary during decompression.
       Please refer to `zstd manual <https://github.com/facebook/zstd/blob/dev/programs/zstd.1.md#dictionary-builder>`_
       to train a specific dictionary for compression.
       
      .envoy.config.core.v3.DataSource dictionary = 4;
    • mergeDictionary

      public Zstd.Builder mergeDictionary(DataSource value)
       A dictionary for compression. Zstd offers dictionary compression, which greatly improves
       efficiency on small files and messages. Each dictionary will be generated with a dictionary ID
       that can be used to search the same dictionary during decompression.
       Please refer to `zstd manual <https://github.com/facebook/zstd/blob/dev/programs/zstd.1.md#dictionary-builder>`_
       to train a specific dictionary for compression.
       
      .envoy.config.core.v3.DataSource dictionary = 4;
    • clearDictionary

      public Zstd.Builder clearDictionary()
       A dictionary for compression. Zstd offers dictionary compression, which greatly improves
       efficiency on small files and messages. Each dictionary will be generated with a dictionary ID
       that can be used to search the same dictionary during decompression.
       Please refer to `zstd manual <https://github.com/facebook/zstd/blob/dev/programs/zstd.1.md#dictionary-builder>`_
       to train a specific dictionary for compression.
       
      .envoy.config.core.v3.DataSource dictionary = 4;
    • getDictionaryBuilder

      public DataSource.Builder getDictionaryBuilder()
       A dictionary for compression. Zstd offers dictionary compression, which greatly improves
       efficiency on small files and messages. Each dictionary will be generated with a dictionary ID
       that can be used to search the same dictionary during decompression.
       Please refer to `zstd manual <https://github.com/facebook/zstd/blob/dev/programs/zstd.1.md#dictionary-builder>`_
       to train a specific dictionary for compression.
       
      .envoy.config.core.v3.DataSource dictionary = 4;
    • getDictionaryOrBuilder

      public DataSourceOrBuilder getDictionaryOrBuilder()
       A dictionary for compression. Zstd offers dictionary compression, which greatly improves
       efficiency on small files and messages. Each dictionary will be generated with a dictionary ID
       that can be used to search the same dictionary during decompression.
       Please refer to `zstd manual <https://github.com/facebook/zstd/blob/dev/programs/zstd.1.md#dictionary-builder>`_
       to train a specific dictionary for compression.
       
      .envoy.config.core.v3.DataSource dictionary = 4;
      Specified by:
      getDictionaryOrBuilder in interface ZstdOrBuilder
    • 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 ZstdOrBuilder
      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 ZstdOrBuilder
      Returns:
      The chunkSize.
    • setChunkSize

      public Zstd.Builder setChunkSize(com.google.protobuf.UInt32Value value)
       Value for compressor's next output buffer. If not set, defaults to 4096.
       
      .google.protobuf.UInt32Value chunk_size = 5 [(.validate.rules) = { ... }
    • setChunkSize

      public Zstd.Builder setChunkSize(com.google.protobuf.UInt32Value.Builder builderForValue)
       Value for compressor's next output buffer. If not set, defaults to 4096.
       
      .google.protobuf.UInt32Value chunk_size = 5 [(.validate.rules) = { ... }
    • mergeChunkSize

      public Zstd.Builder mergeChunkSize(com.google.protobuf.UInt32Value value)
       Value for compressor's next output buffer. If not set, defaults to 4096.
       
      .google.protobuf.UInt32Value chunk_size = 5 [(.validate.rules) = { ... }
    • clearChunkSize

      public Zstd.Builder clearChunkSize()
       Value for compressor's next output buffer. If not set, defaults to 4096.
       
      .google.protobuf.UInt32Value chunk_size = 5 [(.validate.rules) = { ... }
    • getChunkSizeBuilder

      public com.google.protobuf.UInt32Value.Builder getChunkSizeBuilder()
       Value for compressor's next output buffer. If not set, defaults to 4096.
       
      .google.protobuf.UInt32Value chunk_size = 5 [(.validate.rules) = { ... }
    • 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 ZstdOrBuilder
    • setUnknownFields

      public final Zstd.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Zstd.Builder>
    • mergeUnknownFields

      public final Zstd.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Zstd.Builder>