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 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.VectorParams.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.VectorParams.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.VectorParams.Builder>
    • getDefaultInstanceForType

      public Collections.VectorParams getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Collections.VectorParams build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

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

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

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

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

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

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

      public long getSize()
       Size of the vectors
       
      uint64 size = 1;
      Specified by:
      getSize in interface Collections.VectorParamsOrBuilder
      Returns:
      The size.
    • setSize

      public Collections.VectorParams.Builder setSize(long value)
       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 interface Collections.VectorParamsOrBuilder
      Returns:
      The enum numeric value on the wire for distance.
    • setDistanceValue

      public Collections.VectorParams.Builder setDistanceValue(int value)
       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

      public Collections.Distance getDistance()
       Distance function used for comparing vectors
       
      .qdrant.Distance distance = 2;
      Specified by:
      getDistance in interface Collections.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

      public Collections.VectorParams.Builder 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 interface Collections.VectorParamsOrBuilder
      Returns:
      Whether the hnswConfig field is set.
    • getHnswConfig

      public Collections.HnswConfigDiff getHnswConfig()
       Configuration of vector HNSW graph. If omitted - the collection configuration will be used
       
      optional .qdrant.HnswConfigDiff hnsw_config = 3;
      Specified by:
      getHnswConfig in interface Collections.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

       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

      public Collections.VectorParams.Builder clearHnswConfig()
       Configuration of vector HNSW graph. If omitted - the collection configuration will be used
       
      optional .qdrant.HnswConfigDiff hnsw_config = 3;
    • getHnswConfigBuilder

      public Collections.HnswConfigDiff.Builder getHnswConfigBuilder()
       Configuration of vector HNSW graph. If omitted - the collection configuration will be used
       
      optional .qdrant.HnswConfigDiff hnsw_config = 3;
    • getHnswConfigOrBuilder

      public Collections.HnswConfigDiffOrBuilder getHnswConfigOrBuilder()
       Configuration of vector HNSW graph. If omitted - the collection configuration will be used
       
      optional .qdrant.HnswConfigDiff hnsw_config = 3;
      Specified by:
      getHnswConfigOrBuilder in interface Collections.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 interface Collections.VectorParamsOrBuilder
      Returns:
      Whether the quantizationConfig field is set.
    • getQuantizationConfig

      public Collections.QuantizationConfig getQuantizationConfig()
       Configuration of vector quantization config. If omitted - the collection configuration will be used
       
      optional .qdrant.QuantizationConfig quantization_config = 4;
      Specified by:
      getQuantizationConfig in interface Collections.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

      public Collections.VectorParams.Builder clearQuantizationConfig()
       Configuration of vector quantization config. If omitted - the collection configuration will be used
       
      optional .qdrant.QuantizationConfig quantization_config = 4;
    • getQuantizationConfigBuilder

      public Collections.QuantizationConfig.Builder getQuantizationConfigBuilder()
       Configuration of vector quantization config. If omitted - the collection configuration will be used
       
      optional .qdrant.QuantizationConfig quantization_config = 4;
    • getQuantizationConfigOrBuilder

      public Collections.QuantizationConfigOrBuilder getQuantizationConfigOrBuilder()
       Configuration of vector quantization config. If omitted - the collection configuration will be used
       
      optional .qdrant.QuantizationConfig quantization_config = 4;
      Specified by:
      getQuantizationConfigOrBuilder in interface Collections.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 interface Collections.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 interface Collections.VectorParamsOrBuilder
      Returns:
      The onDisk.
    • setOnDisk

      public Collections.VectorParams.Builder setOnDisk(boolean value)
       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

      public Collections.VectorParams.Builder 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 interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Collections.VectorParams.Builder>
    • mergeUnknownFields

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