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

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Points.QuantizationSearchParams 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<Points.QuantizationSearchParams.Builder>
    • setField

      public Points.QuantizationSearchParams.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<Points.QuantizationSearchParams.Builder>
    • clearField

      public Points.QuantizationSearchParams.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<Points.QuantizationSearchParams.Builder>
    • clearOneof

      public Points.QuantizationSearchParams.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<Points.QuantizationSearchParams.Builder>
    • setRepeatedField

      public Points.QuantizationSearchParams.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<Points.QuantizationSearchParams.Builder>
    • addRepeatedField

      public Points.QuantizationSearchParams.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<Points.QuantizationSearchParams.Builder>
    • mergeFrom

      public Points.QuantizationSearchParams.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<Points.QuantizationSearchParams.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<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 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<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 interface Points.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 interface Points.QuantizationSearchParamsOrBuilder
      Returns:
      The ignore.
    • setIgnore

      public Points.QuantizationSearchParams.Builder setIgnore(boolean value)
      
      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 interface Points.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 interface Points.QuantizationSearchParamsOrBuilder
      Returns:
      The rescore.
    • setRescore

      public Points.QuantizationSearchParams.Builder setRescore(boolean value)
      
      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 interface Points.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 interface Points.QuantizationSearchParamsOrBuilder
      Returns:
      The oversampling.
    • setOversampling

      public Points.QuantizationSearchParams.Builder setOversampling(double value)
      
      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

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

      public final Points.QuantizationSearchParams.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<Points.QuantizationSearchParams.Builder>