Package io.qdrant.client.grpc
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 Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
Number of neighbours to consider during the index building.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) Minimal size (in KiloBytes) of vectors for additional payload-based indexing.clearM()
Number of edges per node in the index graph.Number of parallel threads used for background index building.Store HNSW index on disk.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) Number of additional payload-aware links per node in the index graph.clone()
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
long
Number of neighbours to consider during the index building.long
Minimal size (in KiloBytes) of vectors for additional payload-based indexing.long
getM()
Number of edges per node in the index graph.long
Number of parallel threads used for background index building.boolean
Store HNSW index on disk.long
Number of additional payload-aware links per node in the index graph.boolean
Number of neighbours to consider during the index building.boolean
Minimal size (in KiloBytes) of vectors for additional payload-based indexing.boolean
hasM()
Number of edges per node in the index graph.boolean
Number of parallel threads used for background index building.boolean
Store HNSW index on disk.boolean
Number of additional payload-aware links per node in the index graph.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setEfConstruct
(long value) Number of neighbours to consider during the index building.setFullScanThreshold
(long value) Minimal size (in KiloBytes) of vectors for additional payload-based indexing.setM
(long value) Number of edges per node in the index graph.setMaxIndexingThreads
(long value) Number of parallel threads used for background index building.setOnDisk
(boolean value) Store HNSW index on disk.setPayloadM
(long value) Number of additional payload-aware links per node in the index graph.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, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Collections.HnswConfigDiff.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Collections.HnswConfigDiff.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Collections.HnswConfigDiff.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Collections.HnswConfigDiff.Builder>
-
clearField
public Collections.HnswConfigDiff.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Collections.HnswConfigDiff.Builder>
-
clearOneof
public Collections.HnswConfigDiff.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Collections.HnswConfigDiff.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Collections.HnswConfigDiff.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.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 interfaceCollections.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 interfaceCollections.HnswConfigDiffOrBuilder
- Returns:
- The m.
-
setM
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 interfaceCollections.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 interfaceCollections.HnswConfigDiffOrBuilder
- Returns:
- The efConstruct.
-
setEfConstruct
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
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 interfaceCollections.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 interfaceCollections.HnswConfigDiffOrBuilder
- Returns:
- The fullScanThreshold.
-
setFullScanThreshold
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
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 interfaceCollections.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 interfaceCollections.HnswConfigDiffOrBuilder
- Returns:
- The maxIndexingThreads.
-
setMaxIndexingThreads
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
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 interfaceCollections.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 interfaceCollections.HnswConfigDiffOrBuilder
- Returns:
- The onDisk.
-
setOnDisk
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
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 interfaceCollections.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 interfaceCollections.HnswConfigDiffOrBuilder
- Returns:
- The payloadM.
-
setPayloadM
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
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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Collections.HnswConfigDiff.Builder>
-
mergeUnknownFields
public final Collections.HnswConfigDiff.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Collections.HnswConfigDiff.Builder>
-