Package io.qdrant.client.grpc
Class Points.QuantizationSearchParams.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Points.QuantizationSearchParams.Builder>
io.qdrant.client.grpc.Points.QuantizationSearchParams.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Points.QuantizationSearchParamsOrBuilder
,Cloneable
- Enclosing class:
- Points.QuantizationSearchParams
public static final class Points.QuantizationSearchParams.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Points.QuantizationSearchParams.Builder>
implements Points.QuantizationSearchParamsOrBuilder
Protobuf type
qdrant.QuantizationSearchParams
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) If set to true, search will ignore quantized vector dataclearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) Oversampling factor for quantization.If true, use original vectors to re-score top-k results.clone()
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
boolean
If set to true, search will ignore quantized vector datadouble
Oversampling factor for quantization.boolean
If true, use original vectors to re-score top-k results.boolean
If set to true, search will ignore quantized vector databoolean
Oversampling factor for quantization.boolean
If true, use original vectors to re-score top-k results.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) setIgnore
(boolean value) If set to true, search will ignore quantized vector datasetOversampling
(double value) Oversampling factor for quantization.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRescore
(boolean value) If true, use original vectors to re-score top-k results.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.QuantizationSearchParams.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.QuantizationSearchParams.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.QuantizationSearchParams.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.QuantizationSearchParams.Builder>
-
setField
public Points.QuantizationSearchParams.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.QuantizationSearchParams.Builder>
-
clearField
public Points.QuantizationSearchParams.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.QuantizationSearchParams.Builder>
-
clearOneof
public Points.QuantizationSearchParams.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.QuantizationSearchParams.Builder>
-
setRepeatedField
public Points.QuantizationSearchParams.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.QuantizationSearchParams.Builder>
-
addRepeatedField
public Points.QuantizationSearchParams.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.QuantizationSearchParams.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Points.QuantizationSearchParams.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Points.QuantizationSearchParams.Builder>
-
mergeFrom
public Points.QuantizationSearchParams.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.QuantizationSearchParams.Builder>
- Throws:
IOException
-
hasIgnore
public boolean hasIgnore()If set to true, search will ignore quantized vector data
optional bool ignore = 1;
- Specified by:
hasIgnore
in interfacePoints.QuantizationSearchParamsOrBuilder
- Returns:
- Whether the ignore field is set.
-
getIgnore
public boolean getIgnore()If set to true, search will ignore quantized vector data
optional bool ignore = 1;
- Specified by:
getIgnore
in interfacePoints.QuantizationSearchParamsOrBuilder
- Returns:
- The ignore.
-
setIgnore
If set to true, search will ignore quantized vector data
optional bool ignore = 1;
- Parameters:
value
- The ignore to set.- Returns:
- This builder for chaining.
-
clearIgnore
If set to true, search will ignore quantized vector data
optional bool ignore = 1;
- Returns:
- This builder for chaining.
-
hasRescore
public boolean hasRescore()If true, use original vectors to re-score top-k results. If ignored, qdrant decides automatically does rescore enabled or not.
optional bool rescore = 2;
- Specified by:
hasRescore
in interfacePoints.QuantizationSearchParamsOrBuilder
- Returns:
- Whether the rescore field is set.
-
getRescore
public boolean getRescore()If true, use original vectors to re-score top-k results. If ignored, qdrant decides automatically does rescore enabled or not.
optional bool rescore = 2;
- Specified by:
getRescore
in interfacePoints.QuantizationSearchParamsOrBuilder
- Returns:
- The rescore.
-
setRescore
If true, use original vectors to re-score top-k results. If ignored, qdrant decides automatically does rescore enabled or not.
optional bool rescore = 2;
- Parameters:
value
- The rescore to set.- Returns:
- This builder for chaining.
-
clearRescore
If true, use original vectors to re-score top-k results. If ignored, qdrant decides automatically does rescore enabled or not.
optional bool rescore = 2;
- Returns:
- This builder for chaining.
-
hasOversampling
public boolean hasOversampling()Oversampling factor for quantization. Defines how many extra vectors should be pre-selected using quantized index, and then re-scored using original vectors. For example, if `oversampling` is 2.4 and `limit` is 100, then 240 vectors will be pre-selected using quantized index, and then top-100 will be returned after re-scoring.
optional double oversampling = 3;
- Specified by:
hasOversampling
in interfacePoints.QuantizationSearchParamsOrBuilder
- Returns:
- Whether the oversampling field is set.
-
getOversampling
public double getOversampling()Oversampling factor for quantization. Defines how many extra vectors should be pre-selected using quantized index, and then re-scored using original vectors. For example, if `oversampling` is 2.4 and `limit` is 100, then 240 vectors will be pre-selected using quantized index, and then top-100 will be returned after re-scoring.
optional double oversampling = 3;
- Specified by:
getOversampling
in interfacePoints.QuantizationSearchParamsOrBuilder
- Returns:
- The oversampling.
-
setOversampling
Oversampling factor for quantization. Defines how many extra vectors should be pre-selected using quantized index, and then re-scored using original vectors. For example, if `oversampling` is 2.4 and `limit` is 100, then 240 vectors will be pre-selected using quantized index, and then top-100 will be returned after re-scoring.
optional double oversampling = 3;
- Parameters:
value
- The oversampling to set.- Returns:
- This builder for chaining.
-
clearOversampling
Oversampling factor for quantization. Defines how many extra vectors should be pre-selected using quantized index, and then re-scored using original vectors. For example, if `oversampling` is 2.4 and `limit` is 100, then 240 vectors will be pre-selected using quantized index, and then top-100 will be returned after re-scoring.
optional double oversampling = 3;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final Points.QuantizationSearchParams.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.QuantizationSearchParams.Builder>
-
mergeUnknownFields
public final Points.QuantizationSearchParams.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.QuantizationSearchParams.Builder>
-