Class Collections.CreateCollection

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.metaloom.qdrant.client.grpc.proto.Collections.CreateCollection
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Collections.CreateCollectionOrBuilder, Serializable
Enclosing class:
Collections

public static final class Collections.CreateCollection extends com.google.protobuf.GeneratedMessageV3 implements Collections.CreateCollectionOrBuilder
Protobuf type qdrant.CreateCollection
See Also:
  • Field Details

    • COLLECTION_NAME_FIELD_NUMBER

      public static final int COLLECTION_NAME_FIELD_NUMBER
      See Also:
    • HNSW_CONFIG_FIELD_NUMBER

      public static final int HNSW_CONFIG_FIELD_NUMBER
      See Also:
    • WAL_CONFIG_FIELD_NUMBER

      public static final int WAL_CONFIG_FIELD_NUMBER
      See Also:
    • OPTIMIZERS_CONFIG_FIELD_NUMBER

      public static final int OPTIMIZERS_CONFIG_FIELD_NUMBER
      See Also:
    • SHARD_NUMBER_FIELD_NUMBER

      public static final int SHARD_NUMBER_FIELD_NUMBER
      See Also:
    • ON_DISK_PAYLOAD_FIELD_NUMBER

      public static final int ON_DISK_PAYLOAD_FIELD_NUMBER
      See Also:
    • TIMEOUT_FIELD_NUMBER

      public static final int TIMEOUT_FIELD_NUMBER
      See Also:
    • VECTORS_CONFIG_FIELD_NUMBER

      public static final int VECTORS_CONFIG_FIELD_NUMBER
      See Also:
    • REPLICATION_FACTOR_FIELD_NUMBER

      public static final int REPLICATION_FACTOR_FIELD_NUMBER
      See Also:
    • WRITE_CONSISTENCY_FACTOR_FIELD_NUMBER

      public static final int WRITE_CONSISTENCY_FACTOR_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getUnknownFields

      public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      Specified by:
      getUnknownFields in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getUnknownFields in class com.google.protobuf.GeneratedMessageV3
    • 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
    • getCollectionName

      public String getCollectionName()
       Name of the collection
       
      string collection_name = 1;
      Specified by:
      getCollectionName in interface Collections.CreateCollectionOrBuilder
      Returns:
      The collectionName.
    • getCollectionNameBytes

      public com.google.protobuf.ByteString getCollectionNameBytes()
       Name of the collection
       
      string collection_name = 1;
      Specified by:
      getCollectionNameBytes in interface Collections.CreateCollectionOrBuilder
      Returns:
      The bytes for collectionName.
    • hasHnswConfig

      public boolean hasHnswConfig()
       Configuration of vector index
       
      optional .qdrant.HnswConfigDiff hnsw_config = 4;
      Specified by:
      hasHnswConfig in interface Collections.CreateCollectionOrBuilder
      Returns:
      Whether the hnswConfig field is set.
    • getHnswConfig

      public Collections.HnswConfigDiff getHnswConfig()
       Configuration of vector index
       
      optional .qdrant.HnswConfigDiff hnsw_config = 4;
      Specified by:
      getHnswConfig in interface Collections.CreateCollectionOrBuilder
      Returns:
      The hnswConfig.
    • getHnswConfigOrBuilder

      public Collections.HnswConfigDiffOrBuilder getHnswConfigOrBuilder()
       Configuration of vector index
       
      optional .qdrant.HnswConfigDiff hnsw_config = 4;
      Specified by:
      getHnswConfigOrBuilder in interface Collections.CreateCollectionOrBuilder
    • hasWalConfig

      public boolean hasWalConfig()
       Configuration of the Write-Ahead-Log
       
      optional .qdrant.WalConfigDiff wal_config = 5;
      Specified by:
      hasWalConfig in interface Collections.CreateCollectionOrBuilder
      Returns:
      Whether the walConfig field is set.
    • getWalConfig

      public Collections.WalConfigDiff getWalConfig()
       Configuration of the Write-Ahead-Log
       
      optional .qdrant.WalConfigDiff wal_config = 5;
      Specified by:
      getWalConfig in interface Collections.CreateCollectionOrBuilder
      Returns:
      The walConfig.
    • getWalConfigOrBuilder

      public Collections.WalConfigDiffOrBuilder getWalConfigOrBuilder()
       Configuration of the Write-Ahead-Log
       
      optional .qdrant.WalConfigDiff wal_config = 5;
      Specified by:
      getWalConfigOrBuilder in interface Collections.CreateCollectionOrBuilder
    • hasOptimizersConfig

      public boolean hasOptimizersConfig()
       Configuration of the optimizers
       
      optional .qdrant.OptimizersConfigDiff optimizers_config = 6;
      Specified by:
      hasOptimizersConfig in interface Collections.CreateCollectionOrBuilder
      Returns:
      Whether the optimizersConfig field is set.
    • getOptimizersConfig

      public Collections.OptimizersConfigDiff getOptimizersConfig()
       Configuration of the optimizers
       
      optional .qdrant.OptimizersConfigDiff optimizers_config = 6;
      Specified by:
      getOptimizersConfig in interface Collections.CreateCollectionOrBuilder
      Returns:
      The optimizersConfig.
    • getOptimizersConfigOrBuilder

      public Collections.OptimizersConfigDiffOrBuilder getOptimizersConfigOrBuilder()
       Configuration of the optimizers
       
      optional .qdrant.OptimizersConfigDiff optimizers_config = 6;
      Specified by:
      getOptimizersConfigOrBuilder in interface Collections.CreateCollectionOrBuilder
    • hasShardNumber

      public boolean hasShardNumber()
       Number of shards in the collection, default = 1
       
      optional uint32 shard_number = 7;
      Specified by:
      hasShardNumber in interface Collections.CreateCollectionOrBuilder
      Returns:
      Whether the shardNumber field is set.
    • getShardNumber

      public int getShardNumber()
       Number of shards in the collection, default = 1
       
      optional uint32 shard_number = 7;
      Specified by:
      getShardNumber in interface Collections.CreateCollectionOrBuilder
      Returns:
      The shardNumber.
    • hasOnDiskPayload

      public boolean hasOnDiskPayload()
       If true - point's payload will not be stored in memory
       
      optional bool on_disk_payload = 8;
      Specified by:
      hasOnDiskPayload in interface Collections.CreateCollectionOrBuilder
      Returns:
      Whether the onDiskPayload field is set.
    • getOnDiskPayload

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

      public boolean hasTimeout()
       Wait timeout for operation commit in seconds, if not specified - default value will be supplied
       
      optional uint64 timeout = 9;
      Specified by:
      hasTimeout in interface Collections.CreateCollectionOrBuilder
      Returns:
      Whether the timeout field is set.
    • getTimeout

      public long getTimeout()
       Wait timeout for operation commit in seconds, if not specified - default value will be supplied
       
      optional uint64 timeout = 9;
      Specified by:
      getTimeout in interface Collections.CreateCollectionOrBuilder
      Returns:
      The timeout.
    • hasVectorsConfig

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

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

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

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

      public int getReplicationFactor()
       Number of replicas of each shard that network tries to maintain, default = 1
       
      optional uint32 replication_factor = 11;
      Specified by:
      getReplicationFactor in interface Collections.CreateCollectionOrBuilder
      Returns:
      The replicationFactor.
    • hasWriteConsistencyFactor

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

      public int getWriteConsistencyFactor()
       How many replicas should apply the operation for us to consider it successful, default = 1
       
      optional uint32 write_consistency_factor = 12;
      Specified by:
      getWriteConsistencyFactor in interface Collections.CreateCollectionOrBuilder
      Returns:
      The writeConsistencyFactor.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Collections.CreateCollection parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Collections.CreateCollection parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Collections.CreateCollection parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Collections.CreateCollection parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Collections.CreateCollection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Collections.CreateCollection parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Collections.CreateCollection parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Collections.CreateCollection parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Collections.CreateCollection parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Collections.CreateCollection parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Collections.CreateCollection parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Collections.CreateCollection parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Collections.CreateCollection.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Collections.CreateCollection.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Collections.CreateCollection.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static Collections.CreateCollection getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Collections.CreateCollection> parser()
    • getParserForType

      public com.google.protobuf.Parser<Collections.CreateCollection> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

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