Package io.qdrant.client.grpc
Class Points.SearchParams.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Points.SearchParams.Builder>
io.qdrant.client.grpc.Points.SearchParams.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Points.SearchParamsOrBuilder
,Cloneable
- Enclosing class:
- Points.SearchParams
public static final class Points.SearchParams.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Points.SearchParams.Builder>
implements Points.SearchParamsOrBuilder
Protobuf type
qdrant.SearchParams
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
Search without approximation.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) Params relevant to HNSW index.If enabled, the engine will only perform search among indexed or small segments.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) If set to true, search will ignore quantized vector dataclone()
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
boolean
getExact()
Search without approximation.long
Params relevant to HNSW index.boolean
If enabled, the engine will only perform search among indexed or small segments.If set to true, search will ignore quantized vector dataIf set to true, search will ignore quantized vector dataIf set to true, search will ignore quantized vector databoolean
hasExact()
Search without approximation.boolean
Params relevant to HNSW index.boolean
If enabled, the engine will only perform search among indexed or small segments.boolean
If set to true, search will ignore quantized vector dataprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(Points.SearchParams other) If set to true, search will ignore quantized vector datamergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setExact
(boolean value) Search without approximation.setHnswEf
(long value) Params relevant to HNSW index.setIndexedOnly
(boolean value) If enabled, the engine will only perform search among indexed or small segments.If set to true, search will ignore quantized vector datasetQuantization
(Points.QuantizationSearchParams.Builder builderForValue) If set to true, search will ignore quantized vector datasetRepeatedField
(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<Points.SearchParams.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<Points.SearchParams.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<Points.SearchParams.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<Points.SearchParams.Builder>
-
setField
public Points.SearchParams.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<Points.SearchParams.Builder>
-
clearField
public Points.SearchParams.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<Points.SearchParams.Builder>
-
clearOneof
public Points.SearchParams.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<Points.SearchParams.Builder>
-
setRepeatedField
public Points.SearchParams.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<Points.SearchParams.Builder>
-
addRepeatedField
public Points.SearchParams.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<Points.SearchParams.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Points.SearchParams.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Points.SearchParams.Builder>
-
mergeFrom
public Points.SearchParams.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<Points.SearchParams.Builder>
- Throws:
IOException
-
hasHnswEf
public boolean hasHnswEf()Params relevant to HNSW index. Size of the beam in a beam-search. Larger the value - more accurate the result, more time required for search.
optional uint64 hnsw_ef = 1;
- Specified by:
hasHnswEf
in interfacePoints.SearchParamsOrBuilder
- Returns:
- Whether the hnswEf field is set.
-
getHnswEf
public long getHnswEf()Params relevant to HNSW index. Size of the beam in a beam-search. Larger the value - more accurate the result, more time required for search.
optional uint64 hnsw_ef = 1;
- Specified by:
getHnswEf
in interfacePoints.SearchParamsOrBuilder
- Returns:
- The hnswEf.
-
setHnswEf
Params relevant to HNSW index. Size of the beam in a beam-search. Larger the value - more accurate the result, more time required for search.
optional uint64 hnsw_ef = 1;
- Parameters:
value
- The hnswEf to set.- Returns:
- This builder for chaining.
-
clearHnswEf
Params relevant to HNSW index. Size of the beam in a beam-search. Larger the value - more accurate the result, more time required for search.
optional uint64 hnsw_ef = 1;
- Returns:
- This builder for chaining.
-
hasExact
public boolean hasExact()Search without approximation. If set to true, search may run long but with exact results.
optional bool exact = 2;
- Specified by:
hasExact
in interfacePoints.SearchParamsOrBuilder
- Returns:
- Whether the exact field is set.
-
getExact
public boolean getExact()Search without approximation. If set to true, search may run long but with exact results.
optional bool exact = 2;
- Specified by:
getExact
in interfacePoints.SearchParamsOrBuilder
- Returns:
- The exact.
-
setExact
Search without approximation. If set to true, search may run long but with exact results.
optional bool exact = 2;
- Parameters:
value
- The exact to set.- Returns:
- This builder for chaining.
-
clearExact
Search without approximation. If set to true, search may run long but with exact results.
optional bool exact = 2;
- Returns:
- This builder for chaining.
-
hasQuantization
public boolean hasQuantization()If set to true, search will ignore quantized vector data
optional .qdrant.QuantizationSearchParams quantization = 3;
- Specified by:
hasQuantization
in interfacePoints.SearchParamsOrBuilder
- Returns:
- Whether the quantization field is set.
-
getQuantization
If set to true, search will ignore quantized vector data
optional .qdrant.QuantizationSearchParams quantization = 3;
- Specified by:
getQuantization
in interfacePoints.SearchParamsOrBuilder
- Returns:
- The quantization.
-
setQuantization
If set to true, search will ignore quantized vector data
optional .qdrant.QuantizationSearchParams quantization = 3;
-
setQuantization
public Points.SearchParams.Builder setQuantization(Points.QuantizationSearchParams.Builder builderForValue) If set to true, search will ignore quantized vector data
optional .qdrant.QuantizationSearchParams quantization = 3;
-
mergeQuantization
If set to true, search will ignore quantized vector data
optional .qdrant.QuantizationSearchParams quantization = 3;
-
clearQuantization
If set to true, search will ignore quantized vector data
optional .qdrant.QuantizationSearchParams quantization = 3;
-
getQuantizationBuilder
If set to true, search will ignore quantized vector data
optional .qdrant.QuantizationSearchParams quantization = 3;
-
getQuantizationOrBuilder
If set to true, search will ignore quantized vector data
optional .qdrant.QuantizationSearchParams quantization = 3;
- Specified by:
getQuantizationOrBuilder
in interfacePoints.SearchParamsOrBuilder
-
hasIndexedOnly
public boolean hasIndexedOnly()If enabled, the engine will only perform search among indexed or small segments. Using this option prevents slow searches in case of delayed index, but does not guarantee that all uploaded vectors will be included in search results
optional bool indexed_only = 4;
- Specified by:
hasIndexedOnly
in interfacePoints.SearchParamsOrBuilder
- Returns:
- Whether the indexedOnly field is set.
-
getIndexedOnly
public boolean getIndexedOnly()If enabled, the engine will only perform search among indexed or small segments. Using this option prevents slow searches in case of delayed index, but does not guarantee that all uploaded vectors will be included in search results
optional bool indexed_only = 4;
- Specified by:
getIndexedOnly
in interfacePoints.SearchParamsOrBuilder
- Returns:
- The indexedOnly.
-
setIndexedOnly
If enabled, the engine will only perform search among indexed or small segments. Using this option prevents slow searches in case of delayed index, but does not guarantee that all uploaded vectors will be included in search results
optional bool indexed_only = 4;
- Parameters:
value
- The indexedOnly to set.- Returns:
- This builder for chaining.
-
clearIndexedOnly
If enabled, the engine will only perform search among indexed or small segments. Using this option prevents slow searches in case of delayed index, but does not guarantee that all uploaded vectors will be included in search results
optional bool indexed_only = 4;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final Points.SearchParams.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Points.SearchParams.Builder>
-
mergeUnknownFields
public final Points.SearchParams.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Points.SearchParams.Builder>
-