Package io.qdrant.client.grpc
Class Collections.VectorParams.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Collections.VectorParams.Builder>
io.qdrant.client.grpc.Collections.VectorParams.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Collections.VectorParamsOrBuilder
,Cloneable
- Enclosing class:
- Collections.VectorParams
public static final class Collections.VectorParams.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Collections.VectorParams.Builder>
implements Collections.VectorParamsOrBuilder
Protobuf type
qdrant.VectorParams
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
Distance function used for comparing vectorsclearField
(com.google.protobuf.Descriptors.FieldDescriptor field) Configuration of vector HNSW graph.If true - serve vectors from disk.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) Configuration of vector quantization config.Size of the vectorsclone()
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
Distance function used for comparing vectorsint
Distance function used for comparing vectorsConfiguration of vector HNSW graph.Configuration of vector HNSW graph.Configuration of vector HNSW graph.boolean
If true - serve vectors from disk.Configuration of vector quantization config.Configuration of vector quantization config.Configuration of vector quantization config.long
getSize()
Size of the vectorsboolean
Configuration of vector HNSW graph.boolean
If true - serve vectors from disk.boolean
Configuration of vector quantization config.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) Configuration of vector HNSW graph.Configuration of vector quantization config.mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setDistance
(Collections.Distance value) Distance function used for comparing vectorssetDistanceValue
(int value) Distance function used for comparing vectorsConfiguration of vector HNSW graph.setHnswConfig
(Collections.HnswConfigDiff.Builder builderForValue) Configuration of vector HNSW graph.setOnDisk
(boolean value) If true - serve vectors from disk.Configuration of vector quantization config.setQuantizationConfig
(Collections.QuantizationConfig.Builder builderForValue) Configuration of vector quantization config.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSize
(long value) Size of the vectorssetUnknownFields
(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.VectorParams.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.VectorParams.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.VectorParams.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.VectorParams.Builder>
-
setField
public Collections.VectorParams.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.VectorParams.Builder>
-
clearField
public Collections.VectorParams.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.VectorParams.Builder>
-
clearOneof
public Collections.VectorParams.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.VectorParams.Builder>
-
setRepeatedField
public Collections.VectorParams.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.VectorParams.Builder>
-
addRepeatedField
public Collections.VectorParams.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.VectorParams.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Collections.VectorParams.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Collections.VectorParams.Builder>
-
mergeFrom
public Collections.VectorParams.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.VectorParams.Builder>
- Throws:
IOException
-
getSize
public long getSize()Size of the vectors
uint64 size = 1;
- Specified by:
getSize
in interfaceCollections.VectorParamsOrBuilder
- Returns:
- The size.
-
setSize
Size of the vectors
uint64 size = 1;
- Parameters:
value
- The size to set.- Returns:
- This builder for chaining.
-
clearSize
Size of the vectors
uint64 size = 1;
- Returns:
- This builder for chaining.
-
getDistanceValue
public int getDistanceValue()Distance function used for comparing vectors
.qdrant.Distance distance = 2;
- Specified by:
getDistanceValue
in interfaceCollections.VectorParamsOrBuilder
- Returns:
- The enum numeric value on the wire for distance.
-
setDistanceValue
Distance function used for comparing vectors
.qdrant.Distance distance = 2;
- Parameters:
value
- The enum numeric value on the wire for distance to set.- Returns:
- This builder for chaining.
-
getDistance
Distance function used for comparing vectors
.qdrant.Distance distance = 2;
- Specified by:
getDistance
in interfaceCollections.VectorParamsOrBuilder
- Returns:
- The distance.
-
setDistance
Distance function used for comparing vectors
.qdrant.Distance distance = 2;
- Parameters:
value
- The distance to set.- Returns:
- This builder for chaining.
-
clearDistance
Distance function used for comparing vectors
.qdrant.Distance distance = 2;
- Returns:
- This builder for chaining.
-
hasHnswConfig
public boolean hasHnswConfig()Configuration of vector HNSW graph. If omitted - the collection configuration will be used
optional .qdrant.HnswConfigDiff hnsw_config = 3;
- Specified by:
hasHnswConfig
in interfaceCollections.VectorParamsOrBuilder
- Returns:
- Whether the hnswConfig field is set.
-
getHnswConfig
Configuration of vector HNSW graph. If omitted - the collection configuration will be used
optional .qdrant.HnswConfigDiff hnsw_config = 3;
- Specified by:
getHnswConfig
in interfaceCollections.VectorParamsOrBuilder
- Returns:
- The hnswConfig.
-
setHnswConfig
Configuration of vector HNSW graph. If omitted - the collection configuration will be used
optional .qdrant.HnswConfigDiff hnsw_config = 3;
-
setHnswConfig
public Collections.VectorParams.Builder setHnswConfig(Collections.HnswConfigDiff.Builder builderForValue) Configuration of vector HNSW graph. If omitted - the collection configuration will be used
optional .qdrant.HnswConfigDiff hnsw_config = 3;
-
mergeHnswConfig
Configuration of vector HNSW graph. If omitted - the collection configuration will be used
optional .qdrant.HnswConfigDiff hnsw_config = 3;
-
clearHnswConfig
Configuration of vector HNSW graph. If omitted - the collection configuration will be used
optional .qdrant.HnswConfigDiff hnsw_config = 3;
-
getHnswConfigBuilder
Configuration of vector HNSW graph. If omitted - the collection configuration will be used
optional .qdrant.HnswConfigDiff hnsw_config = 3;
-
getHnswConfigOrBuilder
Configuration of vector HNSW graph. If omitted - the collection configuration will be used
optional .qdrant.HnswConfigDiff hnsw_config = 3;
- Specified by:
getHnswConfigOrBuilder
in interfaceCollections.VectorParamsOrBuilder
-
hasQuantizationConfig
public boolean hasQuantizationConfig()Configuration of vector quantization config. If omitted - the collection configuration will be used
optional .qdrant.QuantizationConfig quantization_config = 4;
- Specified by:
hasQuantizationConfig
in interfaceCollections.VectorParamsOrBuilder
- Returns:
- Whether the quantizationConfig field is set.
-
getQuantizationConfig
Configuration of vector quantization config. If omitted - the collection configuration will be used
optional .qdrant.QuantizationConfig quantization_config = 4;
- Specified by:
getQuantizationConfig
in interfaceCollections.VectorParamsOrBuilder
- Returns:
- The quantizationConfig.
-
setQuantizationConfig
Configuration of vector quantization config. If omitted - the collection configuration will be used
optional .qdrant.QuantizationConfig quantization_config = 4;
-
setQuantizationConfig
public Collections.VectorParams.Builder setQuantizationConfig(Collections.QuantizationConfig.Builder builderForValue) Configuration of vector quantization config. If omitted - the collection configuration will be used
optional .qdrant.QuantizationConfig quantization_config = 4;
-
mergeQuantizationConfig
public Collections.VectorParams.Builder mergeQuantizationConfig(Collections.QuantizationConfig value) Configuration of vector quantization config. If omitted - the collection configuration will be used
optional .qdrant.QuantizationConfig quantization_config = 4;
-
clearQuantizationConfig
Configuration of vector quantization config. If omitted - the collection configuration will be used
optional .qdrant.QuantizationConfig quantization_config = 4;
-
getQuantizationConfigBuilder
Configuration of vector quantization config. If omitted - the collection configuration will be used
optional .qdrant.QuantizationConfig quantization_config = 4;
-
getQuantizationConfigOrBuilder
Configuration of vector quantization config. If omitted - the collection configuration will be used
optional .qdrant.QuantizationConfig quantization_config = 4;
- Specified by:
getQuantizationConfigOrBuilder
in interfaceCollections.VectorParamsOrBuilder
-
hasOnDisk
public boolean hasOnDisk()If true - serve vectors from disk. If set to false, the vectors will be loaded in RAM.
optional bool on_disk = 5;
- Specified by:
hasOnDisk
in interfaceCollections.VectorParamsOrBuilder
- Returns:
- Whether the onDisk field is set.
-
getOnDisk
public boolean getOnDisk()If true - serve vectors from disk. If set to false, the vectors will be loaded in RAM.
optional bool on_disk = 5;
- Specified by:
getOnDisk
in interfaceCollections.VectorParamsOrBuilder
- Returns:
- The onDisk.
-
setOnDisk
If true - serve vectors from disk. If set to false, the vectors will be loaded in RAM.
optional bool on_disk = 5;
- Parameters:
value
- The onDisk to set.- Returns:
- This builder for chaining.
-
clearOnDisk
If true - serve vectors from disk. If set to false, the vectors will be loaded in RAM.
optional bool on_disk = 5;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final Collections.VectorParams.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.VectorParams.Builder>
-
mergeUnknownFields
public final Collections.VectorParams.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.VectorParams.Builder>
-