Class FileBasedKeyValueStoreConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<FileBasedKeyValueStoreConfig.Builder>
io.envoyproxy.envoy.extensions.key_value.file_based.v3.FileBasedKeyValueStoreConfig.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,FileBasedKeyValueStoreConfigOrBuilder,Cloneable
- Enclosing class:
- FileBasedKeyValueStoreConfig
public static final class FileBasedKeyValueStoreConfig.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<FileBasedKeyValueStoreConfig.Builder>
implements FileBasedKeyValueStoreConfigOrBuilder
[#extension: envoy.key_value.file_based] This is configuration to flush a key value store out to disk.Protobuf type
envoy.extensions.key_value.file_based.v3.FileBasedKeyValueStoreConfig-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The filename to read the keys and values from, and write the keys and values to.The interval at which the key value store should be flushed to the file.The maximum number of entries to cache, or 0 to allow for unlimited entries.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe filename to read the keys and values from, and write the keys and values to.com.google.protobuf.ByteStringThe filename to read the keys and values from, and write the keys and values to.com.google.protobuf.DurationThe interval at which the key value store should be flushed to the file.com.google.protobuf.Duration.BuilderThe interval at which the key value store should be flushed to the file.com.google.protobuf.DurationOrBuilderThe interval at which the key value store should be flushed to the file.com.google.protobuf.UInt32ValueThe maximum number of entries to cache, or 0 to allow for unlimited entries.com.google.protobuf.UInt32Value.BuilderThe maximum number of entries to cache, or 0 to allow for unlimited entries.com.google.protobuf.UInt32ValueOrBuilderThe maximum number of entries to cache, or 0 to allow for unlimited entries.booleanThe interval at which the key value store should be flushed to the file.booleanThe maximum number of entries to cache, or 0 to allow for unlimited entries.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFlushInterval(com.google.protobuf.Duration value) The interval at which the key value store should be flushed to the file.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeMaxEntries(com.google.protobuf.UInt32Value value) The maximum number of entries to cache, or 0 to allow for unlimited entries.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setFilename(String value) The filename to read the keys and values from, and write the keys and values to.setFilenameBytes(com.google.protobuf.ByteString value) The filename to read the keys and values from, and write the keys and values to.setFlushInterval(com.google.protobuf.Duration value) The interval at which the key value store should be flushed to the file.setFlushInterval(com.google.protobuf.Duration.Builder builderForValue) The interval at which the key value store should be flushed to the file.setMaxEntries(com.google.protobuf.UInt32Value value) The maximum number of entries to cache, or 0 to allow for unlimited entries.setMaxEntries(com.google.protobuf.UInt32Value.Builder builderForValue) The maximum number of entries to cache, or 0 to allow for unlimited entries.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(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<FileBasedKeyValueStoreConfig.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<FileBasedKeyValueStoreConfig.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<FileBasedKeyValueStoreConfig.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<FileBasedKeyValueStoreConfig.Builder>
-
setField
public FileBasedKeyValueStoreConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FileBasedKeyValueStoreConfig.Builder>
-
clearField
public FileBasedKeyValueStoreConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FileBasedKeyValueStoreConfig.Builder>
-
clearOneof
public FileBasedKeyValueStoreConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<FileBasedKeyValueStoreConfig.Builder>
-
setRepeatedField
public FileBasedKeyValueStoreConfig.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<FileBasedKeyValueStoreConfig.Builder>
-
addRepeatedField
public FileBasedKeyValueStoreConfig.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<FileBasedKeyValueStoreConfig.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FileBasedKeyValueStoreConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<FileBasedKeyValueStoreConfig.Builder>
-
mergeFrom
public FileBasedKeyValueStoreConfig.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<FileBasedKeyValueStoreConfig.Builder>- Throws:
IOException
-
getFilename
The filename to read the keys and values from, and write the keys and values to.
string filename = 1 [(.validate.rules) = { ... }- Specified by:
getFilenamein interfaceFileBasedKeyValueStoreConfigOrBuilder- Returns:
- The filename.
-
getFilenameBytes
public com.google.protobuf.ByteString getFilenameBytes()The filename to read the keys and values from, and write the keys and values to.
string filename = 1 [(.validate.rules) = { ... }- Specified by:
getFilenameBytesin interfaceFileBasedKeyValueStoreConfigOrBuilder- Returns:
- The bytes for filename.
-
setFilename
The filename to read the keys and values from, and write the keys and values to.
string filename = 1 [(.validate.rules) = { ... }- Parameters:
value- The filename to set.- Returns:
- This builder for chaining.
-
clearFilename
The filename to read the keys and values from, and write the keys and values to.
string filename = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setFilenameBytes
The filename to read the keys and values from, and write the keys and values to.
string filename = 1 [(.validate.rules) = { ... }- Parameters:
value- The bytes for filename to set.- Returns:
- This builder for chaining.
-
hasFlushInterval
public boolean hasFlushInterval()The interval at which the key value store should be flushed to the file.
.google.protobuf.Duration flush_interval = 2;- Specified by:
hasFlushIntervalin interfaceFileBasedKeyValueStoreConfigOrBuilder- Returns:
- Whether the flushInterval field is set.
-
getFlushInterval
public com.google.protobuf.Duration getFlushInterval()The interval at which the key value store should be flushed to the file.
.google.protobuf.Duration flush_interval = 2;- Specified by:
getFlushIntervalin interfaceFileBasedKeyValueStoreConfigOrBuilder- Returns:
- The flushInterval.
-
setFlushInterval
The interval at which the key value store should be flushed to the file.
.google.protobuf.Duration flush_interval = 2; -
setFlushInterval
public FileBasedKeyValueStoreConfig.Builder setFlushInterval(com.google.protobuf.Duration.Builder builderForValue) The interval at which the key value store should be flushed to the file.
.google.protobuf.Duration flush_interval = 2; -
mergeFlushInterval
The interval at which the key value store should be flushed to the file.
.google.protobuf.Duration flush_interval = 2; -
clearFlushInterval
The interval at which the key value store should be flushed to the file.
.google.protobuf.Duration flush_interval = 2; -
getFlushIntervalBuilder
public com.google.protobuf.Duration.Builder getFlushIntervalBuilder()The interval at which the key value store should be flushed to the file.
.google.protobuf.Duration flush_interval = 2; -
getFlushIntervalOrBuilder
public com.google.protobuf.DurationOrBuilder getFlushIntervalOrBuilder()The interval at which the key value store should be flushed to the file.
.google.protobuf.Duration flush_interval = 2;- Specified by:
getFlushIntervalOrBuilderin interfaceFileBasedKeyValueStoreConfigOrBuilder
-
hasMaxEntries
public boolean hasMaxEntries()The maximum number of entries to cache, or 0 to allow for unlimited entries. Defaults to 1000 if not present.
.google.protobuf.UInt32Value max_entries = 3;- Specified by:
hasMaxEntriesin interfaceFileBasedKeyValueStoreConfigOrBuilder- Returns:
- Whether the maxEntries field is set.
-
getMaxEntries
public com.google.protobuf.UInt32Value getMaxEntries()The maximum number of entries to cache, or 0 to allow for unlimited entries. Defaults to 1000 if not present.
.google.protobuf.UInt32Value max_entries = 3;- Specified by:
getMaxEntriesin interfaceFileBasedKeyValueStoreConfigOrBuilder- Returns:
- The maxEntries.
-
setMaxEntries
The maximum number of entries to cache, or 0 to allow for unlimited entries. Defaults to 1000 if not present.
.google.protobuf.UInt32Value max_entries = 3; -
setMaxEntries
public FileBasedKeyValueStoreConfig.Builder setMaxEntries(com.google.protobuf.UInt32Value.Builder builderForValue) The maximum number of entries to cache, or 0 to allow for unlimited entries. Defaults to 1000 if not present.
.google.protobuf.UInt32Value max_entries = 3; -
mergeMaxEntries
The maximum number of entries to cache, or 0 to allow for unlimited entries. Defaults to 1000 if not present.
.google.protobuf.UInt32Value max_entries = 3; -
clearMaxEntries
The maximum number of entries to cache, or 0 to allow for unlimited entries. Defaults to 1000 if not present.
.google.protobuf.UInt32Value max_entries = 3; -
getMaxEntriesBuilder
public com.google.protobuf.UInt32Value.Builder getMaxEntriesBuilder()The maximum number of entries to cache, or 0 to allow for unlimited entries. Defaults to 1000 if not present.
.google.protobuf.UInt32Value max_entries = 3; -
getMaxEntriesOrBuilder
public com.google.protobuf.UInt32ValueOrBuilder getMaxEntriesOrBuilder()The maximum number of entries to cache, or 0 to allow for unlimited entries. Defaults to 1000 if not present.
.google.protobuf.UInt32Value max_entries = 3;- Specified by:
getMaxEntriesOrBuilderin interfaceFileBasedKeyValueStoreConfigOrBuilder
-
setUnknownFields
public final FileBasedKeyValueStoreConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<FileBasedKeyValueStoreConfig.Builder>
-
mergeUnknownFields
public final FileBasedKeyValueStoreConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<FileBasedKeyValueStoreConfig.Builder>
-