Class Collections.HnswConfigDiff.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Collections.HnswConfigDiff.Builder>
io.qdrant.client.grpc.Collections.HnswConfigDiff.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Collections.HnswConfigDiffOrBuilder, Cloneable
Enclosing class:
Collections.HnswConfigDiff

public static final class Collections.HnswConfigDiff.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Collections.HnswConfigDiff.Builder> implements Collections.HnswConfigDiffOrBuilder
Protobuf type qdrant.HnswConfigDiff
  • 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<Collections.HnswConfigDiff.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<Collections.HnswConfigDiff.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<Collections.HnswConfigDiff.Builder>
    • getDefaultInstanceForType

      public Collections.HnswConfigDiff 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 Collections.HnswConfigDiff 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<Collections.HnswConfigDiff.Builder>
    • setField

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

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

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

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

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

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

      public Collections.HnswConfigDiff.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<Collections.HnswConfigDiff.Builder>
      Throws:
      IOException
    • hasM

      public boolean hasM()
      
      Number of edges per node in the index graph. Larger the value - more accurate the search, more space required.
       
      optional uint64 m = 1;
      Specified by:
      hasM in interface Collections.HnswConfigDiffOrBuilder
      Returns:
      Whether the m field is set.
    • getM

      public long getM()
      
      Number of edges per node in the index graph. Larger the value - more accurate the search, more space required.
       
      optional uint64 m = 1;
      Specified by:
      getM in interface Collections.HnswConfigDiffOrBuilder
      Returns:
      The m.
    • setM

      public Collections.HnswConfigDiff.Builder setM(long value)
      
      Number of edges per node in the index graph. Larger the value - more accurate the search, more space required.
       
      optional uint64 m = 1;
      Parameters:
      value - The m to set.
      Returns:
      This builder for chaining.
    • clearM

      
      Number of edges per node in the index graph. Larger the value - more accurate the search, more space required.
       
      optional uint64 m = 1;
      Returns:
      This builder for chaining.
    • hasEfConstruct

      public boolean hasEfConstruct()
      
      Number of neighbours to consider during the index building. Larger the value - more accurate the search, more time required to build the index.
       
      optional uint64 ef_construct = 2;
      Specified by:
      hasEfConstruct in interface Collections.HnswConfigDiffOrBuilder
      Returns:
      Whether the efConstruct field is set.
    • getEfConstruct

      public long getEfConstruct()
      
      Number of neighbours to consider during the index building. Larger the value - more accurate the search, more time required to build the index.
       
      optional uint64 ef_construct = 2;
      Specified by:
      getEfConstruct in interface Collections.HnswConfigDiffOrBuilder
      Returns:
      The efConstruct.
    • setEfConstruct

      public Collections.HnswConfigDiff.Builder setEfConstruct(long value)
      
      Number of neighbours to consider during the index building. Larger the value - more accurate the search, more time required to build the index.
       
      optional uint64 ef_construct = 2;
      Parameters:
      value - The efConstruct to set.
      Returns:
      This builder for chaining.
    • clearEfConstruct

      public Collections.HnswConfigDiff.Builder clearEfConstruct()
      
      Number of neighbours to consider during the index building. Larger the value - more accurate the search, more time required to build the index.
       
      optional uint64 ef_construct = 2;
      Returns:
      This builder for chaining.
    • hasFullScanThreshold

      public boolean hasFullScanThreshold()
      
      Minimal size (in KiloBytes) of vectors for additional payload-based indexing.
      If the payload chunk is smaller than `full_scan_threshold` additional indexing won't be used -
      in this case full-scan search should be preferred by query planner and additional indexing is not required.
      Note: 1 Kb = 1 vector of size 256
       
      optional uint64 full_scan_threshold = 3;
      Specified by:
      hasFullScanThreshold in interface Collections.HnswConfigDiffOrBuilder
      Returns:
      Whether the fullScanThreshold field is set.
    • getFullScanThreshold

      public long getFullScanThreshold()
      
      Minimal size (in KiloBytes) of vectors for additional payload-based indexing.
      If the payload chunk is smaller than `full_scan_threshold` additional indexing won't be used -
      in this case full-scan search should be preferred by query planner and additional indexing is not required.
      Note: 1 Kb = 1 vector of size 256
       
      optional uint64 full_scan_threshold = 3;
      Specified by:
      getFullScanThreshold in interface Collections.HnswConfigDiffOrBuilder
      Returns:
      The fullScanThreshold.
    • setFullScanThreshold

      public Collections.HnswConfigDiff.Builder setFullScanThreshold(long value)
      
      Minimal size (in KiloBytes) of vectors for additional payload-based indexing.
      If the payload chunk is smaller than `full_scan_threshold` additional indexing won't be used -
      in this case full-scan search should be preferred by query planner and additional indexing is not required.
      Note: 1 Kb = 1 vector of size 256
       
      optional uint64 full_scan_threshold = 3;
      Parameters:
      value - The fullScanThreshold to set.
      Returns:
      This builder for chaining.
    • clearFullScanThreshold

      public Collections.HnswConfigDiff.Builder clearFullScanThreshold()
      
      Minimal size (in KiloBytes) of vectors for additional payload-based indexing.
      If the payload chunk is smaller than `full_scan_threshold` additional indexing won't be used -
      in this case full-scan search should be preferred by query planner and additional indexing is not required.
      Note: 1 Kb = 1 vector of size 256
       
      optional uint64 full_scan_threshold = 3;
      Returns:
      This builder for chaining.
    • hasMaxIndexingThreads

      public boolean hasMaxIndexingThreads()
      
      Number of parallel threads used for background index building. If 0 - auto selection.
       
      optional uint64 max_indexing_threads = 4;
      Specified by:
      hasMaxIndexingThreads in interface Collections.HnswConfigDiffOrBuilder
      Returns:
      Whether the maxIndexingThreads field is set.
    • getMaxIndexingThreads

      public long getMaxIndexingThreads()
      
      Number of parallel threads used for background index building. If 0 - auto selection.
       
      optional uint64 max_indexing_threads = 4;
      Specified by:
      getMaxIndexingThreads in interface Collections.HnswConfigDiffOrBuilder
      Returns:
      The maxIndexingThreads.
    • setMaxIndexingThreads

      public Collections.HnswConfigDiff.Builder setMaxIndexingThreads(long value)
      
      Number of parallel threads used for background index building. If 0 - auto selection.
       
      optional uint64 max_indexing_threads = 4;
      Parameters:
      value - The maxIndexingThreads to set.
      Returns:
      This builder for chaining.
    • clearMaxIndexingThreads

      public Collections.HnswConfigDiff.Builder clearMaxIndexingThreads()
      
      Number of parallel threads used for background index building. If 0 - auto selection.
       
      optional uint64 max_indexing_threads = 4;
      Returns:
      This builder for chaining.
    • hasOnDisk

      public boolean hasOnDisk()
      
      Store HNSW index on disk. If set to false, the index will be stored in RAM.
       
      optional bool on_disk = 5;
      Specified by:
      hasOnDisk in interface Collections.HnswConfigDiffOrBuilder
      Returns:
      Whether the onDisk field is set.
    • getOnDisk

      public boolean getOnDisk()
      
      Store HNSW index on disk. If set to false, the index will be stored in RAM.
       
      optional bool on_disk = 5;
      Specified by:
      getOnDisk in interface Collections.HnswConfigDiffOrBuilder
      Returns:
      The onDisk.
    • setOnDisk

      public Collections.HnswConfigDiff.Builder setOnDisk(boolean value)
      
      Store HNSW index on disk. If set to false, the index will be stored in RAM.
       
      optional bool on_disk = 5;
      Parameters:
      value - The onDisk to set.
      Returns:
      This builder for chaining.
    • clearOnDisk

      public Collections.HnswConfigDiff.Builder clearOnDisk()
      
      Store HNSW index on disk. If set to false, the index will be stored in RAM.
       
      optional bool on_disk = 5;
      Returns:
      This builder for chaining.
    • hasPayloadM

      public boolean hasPayloadM()
      
      Number of additional payload-aware links per node in the index graph. If not set - regular M parameter will be used.
       
      optional uint64 payload_m = 6;
      Specified by:
      hasPayloadM in interface Collections.HnswConfigDiffOrBuilder
      Returns:
      Whether the payloadM field is set.
    • getPayloadM

      public long getPayloadM()
      
      Number of additional payload-aware links per node in the index graph. If not set - regular M parameter will be used.
       
      optional uint64 payload_m = 6;
      Specified by:
      getPayloadM in interface Collections.HnswConfigDiffOrBuilder
      Returns:
      The payloadM.
    • setPayloadM

      public Collections.HnswConfigDiff.Builder setPayloadM(long value)
      
      Number of additional payload-aware links per node in the index graph. If not set - regular M parameter will be used.
       
      optional uint64 payload_m = 6;
      Parameters:
      value - The payloadM to set.
      Returns:
      This builder for chaining.
    • clearPayloadM

      public Collections.HnswConfigDiff.Builder clearPayloadM()
      
      Number of additional payload-aware links per node in the index graph. If not set - regular M parameter will be used.
       
      optional uint64 payload_m = 6;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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