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 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<FileBasedKeyValueStoreConfig.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<FileBasedKeyValueStoreConfig.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<FileBasedKeyValueStoreConfig.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public FileBasedKeyValueStoreConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<FileBasedKeyValueStoreConfig.Builder>
    • setField

      public FileBasedKeyValueStoreConfig.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<FileBasedKeyValueStoreConfig.Builder>
    • clearField

      public FileBasedKeyValueStoreConfig.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<FileBasedKeyValueStoreConfig.Builder>
    • clearOneof

      public FileBasedKeyValueStoreConfig.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<FileBasedKeyValueStoreConfig.Builder>
    • setRepeatedField

      public FileBasedKeyValueStoreConfig.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<FileBasedKeyValueStoreConfig.Builder>
    • addRepeatedField

      public FileBasedKeyValueStoreConfig.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<FileBasedKeyValueStoreConfig.Builder>
    • mergeFrom

      public FileBasedKeyValueStoreConfig.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<FileBasedKeyValueStoreConfig.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      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<FileBasedKeyValueStoreConfig.Builder>
      Throws:
      IOException
    • getFilename

      public String getFilename()
       The filename to read the keys and values from, and write the keys and
       values to.
       
      string filename = 1 [(.validate.rules) = { ... }
      Specified by:
      getFilename in interface FileBasedKeyValueStoreConfigOrBuilder
      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:
      getFilenameBytes in interface FileBasedKeyValueStoreConfigOrBuilder
      Returns:
      The bytes for filename.
    • setFilename

      public FileBasedKeyValueStoreConfig.Builder setFilename(String value)
       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

      public FileBasedKeyValueStoreConfig.Builder 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

      public FileBasedKeyValueStoreConfig.Builder setFilenameBytes(com.google.protobuf.ByteString value)
       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:
      hasFlushInterval in interface FileBasedKeyValueStoreConfigOrBuilder
      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:
      getFlushInterval in interface FileBasedKeyValueStoreConfigOrBuilder
      Returns:
      The flushInterval.
    • setFlushInterval

      public FileBasedKeyValueStoreConfig.Builder setFlushInterval(com.google.protobuf.Duration value)
       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

      public FileBasedKeyValueStoreConfig.Builder mergeFlushInterval(com.google.protobuf.Duration value)
       The interval at which the key value store should be flushed to the file.
       
      .google.protobuf.Duration flush_interval = 2;
    • clearFlushInterval

      public FileBasedKeyValueStoreConfig.Builder 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:
      getFlushIntervalOrBuilder in interface FileBasedKeyValueStoreConfigOrBuilder
    • 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:
      hasMaxEntries in interface FileBasedKeyValueStoreConfigOrBuilder
      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:
      getMaxEntries in interface FileBasedKeyValueStoreConfigOrBuilder
      Returns:
      The maxEntries.
    • setMaxEntries

      public FileBasedKeyValueStoreConfig.Builder setMaxEntries(com.google.protobuf.UInt32Value value)
       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

      public FileBasedKeyValueStoreConfig.Builder mergeMaxEntries(com.google.protobuf.UInt32Value value)
       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

      public FileBasedKeyValueStoreConfig.Builder 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:
      getMaxEntriesOrBuilder in interface FileBasedKeyValueStoreConfigOrBuilder
    • setUnknownFields

      public final FileBasedKeyValueStoreConfig.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<FileBasedKeyValueStoreConfig.Builder>
    • mergeUnknownFields

      public final FileBasedKeyValueStoreConfig.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<FileBasedKeyValueStoreConfig.Builder>