Class Collections.CollectionParams.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Collections.CollectionParams.Builder>
io.qdrant.client.grpc.Collections.CollectionParams.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Collections.CollectionParamsOrBuilder, Cloneable
Enclosing class:
Collections.CollectionParams

public static final class Collections.CollectionParams.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Collections.CollectionParams.Builder> implements Collections.CollectionParamsOrBuilder
Protobuf type qdrant.CollectionParams
  • 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.CollectionParams.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.CollectionParams.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.CollectionParams.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

      public int getShardNumber()
       Number of shards in collection
       
      uint32 shard_number = 3;
      Specified by:
      getShardNumber in interface Collections.CollectionParamsOrBuilder
      Returns:
      The shardNumber.
    • setShardNumber

      public Collections.CollectionParams.Builder setShardNumber(int value)
       Number of shards in collection
       
      uint32 shard_number = 3;
      Parameters:
      value - The shardNumber to set.
      Returns:
      This builder for chaining.
    • clearShardNumber

      public Collections.CollectionParams.Builder clearShardNumber()
       Number of shards in collection
       
      uint32 shard_number = 3;
      Returns:
      This builder for chaining.
    • getOnDiskPayload

      public boolean getOnDiskPayload()
       If true - point's payload will not be stored in memory
       
      bool on_disk_payload = 4;
      Specified by:
      getOnDiskPayload in interface Collections.CollectionParamsOrBuilder
      Returns:
      The onDiskPayload.
    • setOnDiskPayload

      public Collections.CollectionParams.Builder setOnDiskPayload(boolean value)
       If true - point's payload will not be stored in memory
       
      bool on_disk_payload = 4;
      Parameters:
      value - The onDiskPayload to set.
      Returns:
      This builder for chaining.
    • clearOnDiskPayload

      public Collections.CollectionParams.Builder clearOnDiskPayload()
       If true - point's payload will not be stored in memory
       
      bool on_disk_payload = 4;
      Returns:
      This builder for chaining.
    • hasVectorsConfig

      public boolean hasVectorsConfig()
       Configuration for vectors
       
      optional .qdrant.VectorsConfig vectors_config = 5;
      Specified by:
      hasVectorsConfig in interface Collections.CollectionParamsOrBuilder
      Returns:
      Whether the vectorsConfig field is set.
    • getVectorsConfig

      public Collections.VectorsConfig getVectorsConfig()
       Configuration for vectors
       
      optional .qdrant.VectorsConfig vectors_config = 5;
      Specified by:
      getVectorsConfig in interface Collections.CollectionParamsOrBuilder
      Returns:
      The vectorsConfig.
    • setVectorsConfig

       Configuration for vectors
       
      optional .qdrant.VectorsConfig vectors_config = 5;
    • setVectorsConfig

       Configuration for vectors
       
      optional .qdrant.VectorsConfig vectors_config = 5;
    • mergeVectorsConfig

       Configuration for vectors
       
      optional .qdrant.VectorsConfig vectors_config = 5;
    • clearVectorsConfig

      public Collections.CollectionParams.Builder clearVectorsConfig()
       Configuration for vectors
       
      optional .qdrant.VectorsConfig vectors_config = 5;
    • getVectorsConfigBuilder

      public Collections.VectorsConfig.Builder getVectorsConfigBuilder()
       Configuration for vectors
       
      optional .qdrant.VectorsConfig vectors_config = 5;
    • getVectorsConfigOrBuilder

      public Collections.VectorsConfigOrBuilder getVectorsConfigOrBuilder()
       Configuration for vectors
       
      optional .qdrant.VectorsConfig vectors_config = 5;
      Specified by:
      getVectorsConfigOrBuilder in interface Collections.CollectionParamsOrBuilder
    • hasReplicationFactor

      public boolean hasReplicationFactor()
       Number of replicas of each shard that network tries to maintain
       
      optional uint32 replication_factor = 6;
      Specified by:
      hasReplicationFactor in interface Collections.CollectionParamsOrBuilder
      Returns:
      Whether the replicationFactor field is set.
    • getReplicationFactor

      public int getReplicationFactor()
       Number of replicas of each shard that network tries to maintain
       
      optional uint32 replication_factor = 6;
      Specified by:
      getReplicationFactor in interface Collections.CollectionParamsOrBuilder
      Returns:
      The replicationFactor.
    • setReplicationFactor

      public Collections.CollectionParams.Builder setReplicationFactor(int value)
       Number of replicas of each shard that network tries to maintain
       
      optional uint32 replication_factor = 6;
      Parameters:
      value - The replicationFactor to set.
      Returns:
      This builder for chaining.
    • clearReplicationFactor

      public Collections.CollectionParams.Builder clearReplicationFactor()
       Number of replicas of each shard that network tries to maintain
       
      optional uint32 replication_factor = 6;
      Returns:
      This builder for chaining.
    • hasWriteConsistencyFactor

      public boolean hasWriteConsistencyFactor()
       How many replicas should apply the operation for us to consider it successful
       
      optional uint32 write_consistency_factor = 7;
      Specified by:
      hasWriteConsistencyFactor in interface Collections.CollectionParamsOrBuilder
      Returns:
      Whether the writeConsistencyFactor field is set.
    • getWriteConsistencyFactor

      public int getWriteConsistencyFactor()
       How many replicas should apply the operation for us to consider it successful
       
      optional uint32 write_consistency_factor = 7;
      Specified by:
      getWriteConsistencyFactor in interface Collections.CollectionParamsOrBuilder
      Returns:
      The writeConsistencyFactor.
    • setWriteConsistencyFactor

      public Collections.CollectionParams.Builder setWriteConsistencyFactor(int value)
       How many replicas should apply the operation for us to consider it successful
       
      optional uint32 write_consistency_factor = 7;
      Parameters:
      value - The writeConsistencyFactor to set.
      Returns:
      This builder for chaining.
    • clearWriteConsistencyFactor

      public Collections.CollectionParams.Builder clearWriteConsistencyFactor()
       How many replicas should apply the operation for us to consider it successful
       
      optional uint32 write_consistency_factor = 7;
      Returns:
      This builder for chaining.
    • hasReadFanOutFactor

      public boolean hasReadFanOutFactor()
       Fan-out every read request to these many additional remote nodes (and return first available response)
       
      optional uint32 read_fan_out_factor = 8;
      Specified by:
      hasReadFanOutFactor in interface Collections.CollectionParamsOrBuilder
      Returns:
      Whether the readFanOutFactor field is set.
    • getReadFanOutFactor

      public int getReadFanOutFactor()
       Fan-out every read request to these many additional remote nodes (and return first available response)
       
      optional uint32 read_fan_out_factor = 8;
      Specified by:
      getReadFanOutFactor in interface Collections.CollectionParamsOrBuilder
      Returns:
      The readFanOutFactor.
    • setReadFanOutFactor

      public Collections.CollectionParams.Builder setReadFanOutFactor(int value)
       Fan-out every read request to these many additional remote nodes (and return first available response)
       
      optional uint32 read_fan_out_factor = 8;
      Parameters:
      value - The readFanOutFactor to set.
      Returns:
      This builder for chaining.
    • clearReadFanOutFactor

      public Collections.CollectionParams.Builder clearReadFanOutFactor()
       Fan-out every read request to these many additional remote nodes (and return first available response)
       
      optional uint32 read_fan_out_factor = 8;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final Collections.CollectionParams.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.CollectionParams.Builder>
    • mergeUnknownFields

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