Class Zstd.Builder
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 Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Value for compressor's next output buffer.Set compression parameters according to pre-defined compression level table.A dictionary for compression.A 32-bits checksum of content is written at end of frame.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The higher the value of selected strategy, the more complex it is, resulting in stronger and slower compression.clone()com.google.protobuf.UInt32ValueValue for compressor's next output buffer.com.google.protobuf.UInt32Value.BuilderValue for compressor's next output buffer.com.google.protobuf.UInt32ValueOrBuilderValue for compressor's next output buffer.com.google.protobuf.UInt32ValueSet compression parameters according to pre-defined compression level table.com.google.protobuf.UInt32Value.BuilderSet compression parameters according to pre-defined compression level table.com.google.protobuf.UInt32ValueOrBuilderSet compression parameters according to pre-defined compression level table.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorA dictionary for compression.A dictionary for compression.A dictionary for compression.booleanA 32-bits checksum of content is written at end of frame.The higher the value of selected strategy, the more complex it is, resulting in stronger and slower compression.intThe higher the value of selected strategy, the more complex it is, resulting in stronger and slower compression.booleanValue for compressor's next output buffer.booleanSet compression parameters according to pre-defined compression level table.booleanA dictionary for compression.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeChunkSize(com.google.protobuf.UInt32Value value) Value for compressor's next output buffer.mergeCompressionLevel(com.google.protobuf.UInt32Value value) Set compression parameters according to pre-defined compression level table.mergeDictionary(DataSource value) A dictionary for compression.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final Zstd.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setChunkSize(com.google.protobuf.UInt32Value value) Value for compressor's next output buffer.setChunkSize(com.google.protobuf.UInt32Value.Builder builderForValue) Value for compressor's next output buffer.setCompressionLevel(com.google.protobuf.UInt32Value value) Set compression parameters according to pre-defined compression level table.setCompressionLevel(com.google.protobuf.UInt32Value.Builder builderForValue) Set compression parameters according to pre-defined compression level table.setDictionary(DataSource value) A dictionary for compression.setDictionary(DataSource.Builder builderForValue) A dictionary for compression.setEnableChecksum(boolean value) A 32-bits checksum of content is written at end of frame.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStrategy(Zstd.Strategy value) The higher the value of selected strategy, the more complex it is, resulting in stronger and slower compression.setStrategyValue(int value) The higher the value of selected strategy, the more complex it is, resulting in stronger and slower compression.final Zstd.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Zstd.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Zstd.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Zstd.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Zstd.Builder>
-
setField
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Zstd.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Zstd.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Zstd.Builder>
-
setRepeatedField
public Zstd.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Zstd.Builder>
-
addRepeatedField
public Zstd.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Zstd.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Zstd.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
hasCompressionLevelin interfaceZstdOrBuilder- 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:
getCompressionLevelin interfaceZstdOrBuilder- Returns:
- The compressionLevel.
-
setCompressionLevel
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
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
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
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:
getCompressionLevelOrBuilderin interfaceZstdOrBuilder
-
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:
getEnableChecksumin interfaceZstdOrBuilder- Returns:
- The enableChecksum.
-
setEnableChecksum
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
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:
getStrategyValuein interfaceZstdOrBuilder- Returns:
- The enum numeric value on the wire for strategy.
-
setStrategyValue
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
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:
getStrategyin interfaceZstdOrBuilder- Returns:
- The strategy.
-
setStrategy
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
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:
hasDictionaryin interfaceZstdOrBuilder- Returns:
- Whether the dictionary field is set.
-
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:
getDictionaryin interfaceZstdOrBuilder- Returns:
- The dictionary.
-
setDictionary
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
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
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
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
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
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:
getDictionaryOrBuilderin interfaceZstdOrBuilder
-
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:
hasChunkSizein interfaceZstdOrBuilder- 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:
getChunkSizein interfaceZstdOrBuilder- Returns:
- The chunkSize.
-
setChunkSize
Value for compressor's next output buffer. If not set, defaults to 4096.
.google.protobuf.UInt32Value chunk_size = 5 [(.validate.rules) = { ... } -
setChunkSize
Value for compressor's next output buffer. If not set, defaults to 4096.
.google.protobuf.UInt32Value chunk_size = 5 [(.validate.rules) = { ... } -
mergeChunkSize
Value for compressor's next output buffer. If not set, defaults to 4096.
.google.protobuf.UInt32Value chunk_size = 5 [(.validate.rules) = { ... } -
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:
getChunkSizeOrBuilderin interfaceZstdOrBuilder
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Zstd.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Zstd.Builder>
-