Package io.qdrant.client.grpc
Class Collections.CollectionInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Collections.CollectionInfo.Builder>
io.qdrant.client.grpc.Collections.CollectionInfo.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Collections.CollectionInfoOrBuilder
,Cloneable
- Enclosing class:
- Collections.CollectionInfo
public static final class Collections.CollectionInfo.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Collections.CollectionInfo.Builder>
implements Collections.CollectionInfoOrBuilder
Protobuf type
qdrant.CollectionInfo
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
ConfigurationclearField
(com.google.protobuf.Descriptors.FieldDescriptor field) number of indexed vectors in the collection.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) status of collection optimizersnumber of points in the collectionNumber of independent segmentsoperating condition of the collectionnumber of vectors in the collectionclone()
boolean
Collection data typesConfigurationConfigurationConfigurationstatic final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
long
number of indexed vectors in the collection.Deprecated.status of collection optimizersstatus of collection optimizersstatus of collection optimizersDeprecated.int
Collection data typesCollection data typesgetPayloadSchemaOrDefault
(String key, Collections.PayloadSchemaInfo defaultValue) Collection data typesCollection data typeslong
number of points in the collectionlong
Number of independent segmentsoperating condition of the collectionint
operating condition of the collectionlong
number of vectors in the collectionboolean
Configurationboolean
number of indexed vectors in the collection.boolean
status of collection optimizersprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
protected com.google.protobuf.MapField
internalGetMapField
(int number) protected com.google.protobuf.MapField
internalGetMutableMapField
(int number) final boolean
ConfigurationmergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) status of collection optimizersmergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Collection data typesputPayloadSchema
(String key, Collections.PayloadSchemaInfo value) Collection data typesCollection data typesConfigurationsetConfig
(Collections.CollectionConfig.Builder builderForValue) ConfigurationsetIndexedVectorsCount
(long value) number of indexed vectors in the collection.status of collection optimizerssetOptimizerStatus
(Collections.OptimizerStatus.Builder builderForValue) status of collection optimizerssetPointsCount
(long value) number of points in the collectionsetRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSegmentsCount
(long value) Number of independent segmentsoperating condition of the collectionsetStatusValue
(int value) operating condition of the collectionsetUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setVectorsCount
(long value) number of vectors in the collectionMethods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, 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() -
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number) - Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Collections.CollectionInfo.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number) - Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Collections.CollectionInfo.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Collections.CollectionInfo.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.CollectionInfo.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.CollectionInfo.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.CollectionInfo.Builder>
-
setField
public Collections.CollectionInfo.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.CollectionInfo.Builder>
-
clearField
public Collections.CollectionInfo.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.CollectionInfo.Builder>
-
clearOneof
public Collections.CollectionInfo.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.CollectionInfo.Builder>
-
setRepeatedField
public Collections.CollectionInfo.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.CollectionInfo.Builder>
-
addRepeatedField
public Collections.CollectionInfo.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.CollectionInfo.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Collections.CollectionInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Collections.CollectionInfo.Builder>
-
mergeFrom
public Collections.CollectionInfo.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.CollectionInfo.Builder>
- Throws:
IOException
-
getStatusValue
public int getStatusValue()operating condition of the collection
.qdrant.CollectionStatus status = 1;
- Specified by:
getStatusValue
in interfaceCollections.CollectionInfoOrBuilder
- Returns:
- The enum numeric value on the wire for status.
-
setStatusValue
operating condition of the collection
.qdrant.CollectionStatus status = 1;
- Parameters:
value
- The enum numeric value on the wire for status to set.- Returns:
- This builder for chaining.
-
getStatus
operating condition of the collection
.qdrant.CollectionStatus status = 1;
- Specified by:
getStatus
in interfaceCollections.CollectionInfoOrBuilder
- Returns:
- The status.
-
setStatus
operating condition of the collection
.qdrant.CollectionStatus status = 1;
- Parameters:
value
- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
operating condition of the collection
.qdrant.CollectionStatus status = 1;
- Returns:
- This builder for chaining.
-
hasOptimizerStatus
public boolean hasOptimizerStatus()status of collection optimizers
.qdrant.OptimizerStatus optimizer_status = 2;
- Specified by:
hasOptimizerStatus
in interfaceCollections.CollectionInfoOrBuilder
- Returns:
- Whether the optimizerStatus field is set.
-
getOptimizerStatus
status of collection optimizers
.qdrant.OptimizerStatus optimizer_status = 2;
- Specified by:
getOptimizerStatus
in interfaceCollections.CollectionInfoOrBuilder
- Returns:
- The optimizerStatus.
-
setOptimizerStatus
status of collection optimizers
.qdrant.OptimizerStatus optimizer_status = 2;
-
setOptimizerStatus
public Collections.CollectionInfo.Builder setOptimizerStatus(Collections.OptimizerStatus.Builder builderForValue) status of collection optimizers
.qdrant.OptimizerStatus optimizer_status = 2;
-
mergeOptimizerStatus
status of collection optimizers
.qdrant.OptimizerStatus optimizer_status = 2;
-
clearOptimizerStatus
status of collection optimizers
.qdrant.OptimizerStatus optimizer_status = 2;
-
getOptimizerStatusBuilder
status of collection optimizers
.qdrant.OptimizerStatus optimizer_status = 2;
-
getOptimizerStatusOrBuilder
status of collection optimizers
.qdrant.OptimizerStatus optimizer_status = 2;
- Specified by:
getOptimizerStatusOrBuilder
in interfaceCollections.CollectionInfoOrBuilder
-
getVectorsCount
public long getVectorsCount()number of vectors in the collection
uint64 vectors_count = 3;
- Specified by:
getVectorsCount
in interfaceCollections.CollectionInfoOrBuilder
- Returns:
- The vectorsCount.
-
setVectorsCount
number of vectors in the collection
uint64 vectors_count = 3;
- Parameters:
value
- The vectorsCount to set.- Returns:
- This builder for chaining.
-
clearVectorsCount
number of vectors in the collection
uint64 vectors_count = 3;
- Returns:
- This builder for chaining.
-
getSegmentsCount
public long getSegmentsCount()Number of independent segments
uint64 segments_count = 4;
- Specified by:
getSegmentsCount
in interfaceCollections.CollectionInfoOrBuilder
- Returns:
- The segmentsCount.
-
setSegmentsCount
Number of independent segments
uint64 segments_count = 4;
- Parameters:
value
- The segmentsCount to set.- Returns:
- This builder for chaining.
-
clearSegmentsCount
Number of independent segments
uint64 segments_count = 4;
- Returns:
- This builder for chaining.
-
hasConfig
public boolean hasConfig()Configuration
.qdrant.CollectionConfig config = 7;
- Specified by:
hasConfig
in interfaceCollections.CollectionInfoOrBuilder
- Returns:
- Whether the config field is set.
-
getConfig
Configuration
.qdrant.CollectionConfig config = 7;
- Specified by:
getConfig
in interfaceCollections.CollectionInfoOrBuilder
- Returns:
- The config.
-
setConfig
Configuration
.qdrant.CollectionConfig config = 7;
-
setConfig
public Collections.CollectionInfo.Builder setConfig(Collections.CollectionConfig.Builder builderForValue) Configuration
.qdrant.CollectionConfig config = 7;
-
mergeConfig
Configuration
.qdrant.CollectionConfig config = 7;
-
clearConfig
Configuration
.qdrant.CollectionConfig config = 7;
-
getConfigBuilder
Configuration
.qdrant.CollectionConfig config = 7;
-
getConfigOrBuilder
Configuration
.qdrant.CollectionConfig config = 7;
- Specified by:
getConfigOrBuilder
in interfaceCollections.CollectionInfoOrBuilder
-
getPayloadSchemaCount
public int getPayloadSchemaCount()Description copied from interface:Collections.CollectionInfoOrBuilder
Collection data types
map<string, .qdrant.PayloadSchemaInfo> payload_schema = 8;
- Specified by:
getPayloadSchemaCount
in interfaceCollections.CollectionInfoOrBuilder
-
containsPayloadSchema
Collection data types
map<string, .qdrant.PayloadSchemaInfo> payload_schema = 8;
- Specified by:
containsPayloadSchema
in interfaceCollections.CollectionInfoOrBuilder
-
getPayloadSchema
Deprecated.UsegetPayloadSchemaMap()
instead.- Specified by:
getPayloadSchema
in interfaceCollections.CollectionInfoOrBuilder
-
getPayloadSchemaMap
Collection data types
map<string, .qdrant.PayloadSchemaInfo> payload_schema = 8;
- Specified by:
getPayloadSchemaMap
in interfaceCollections.CollectionInfoOrBuilder
-
getPayloadSchemaOrDefault
public Collections.PayloadSchemaInfo getPayloadSchemaOrDefault(String key, Collections.PayloadSchemaInfo defaultValue) Collection data types
map<string, .qdrant.PayloadSchemaInfo> payload_schema = 8;
- Specified by:
getPayloadSchemaOrDefault
in interfaceCollections.CollectionInfoOrBuilder
-
getPayloadSchemaOrThrow
Collection data types
map<string, .qdrant.PayloadSchemaInfo> payload_schema = 8;
- Specified by:
getPayloadSchemaOrThrow
in interfaceCollections.CollectionInfoOrBuilder
-
clearPayloadSchema
-
removePayloadSchema
Collection data types
map<string, .qdrant.PayloadSchemaInfo> payload_schema = 8;
-
getMutablePayloadSchema
Deprecated.Use alternate mutation accessors instead. -
putPayloadSchema
public Collections.CollectionInfo.Builder putPayloadSchema(String key, Collections.PayloadSchemaInfo value) Collection data types
map<string, .qdrant.PayloadSchemaInfo> payload_schema = 8;
-
putAllPayloadSchema
public Collections.CollectionInfo.Builder putAllPayloadSchema(Map<String, Collections.PayloadSchemaInfo> values) Collection data types
map<string, .qdrant.PayloadSchemaInfo> payload_schema = 8;
-
getPointsCount
public long getPointsCount()number of points in the collection
uint64 points_count = 9;
- Specified by:
getPointsCount
in interfaceCollections.CollectionInfoOrBuilder
- Returns:
- The pointsCount.
-
setPointsCount
number of points in the collection
uint64 points_count = 9;
- Parameters:
value
- The pointsCount to set.- Returns:
- This builder for chaining.
-
clearPointsCount
number of points in the collection
uint64 points_count = 9;
- Returns:
- This builder for chaining.
-
hasIndexedVectorsCount
public boolean hasIndexedVectorsCount()number of indexed vectors in the collection.
optional uint64 indexed_vectors_count = 10;
- Specified by:
hasIndexedVectorsCount
in interfaceCollections.CollectionInfoOrBuilder
- Returns:
- Whether the indexedVectorsCount field is set.
-
getIndexedVectorsCount
public long getIndexedVectorsCount()number of indexed vectors in the collection.
optional uint64 indexed_vectors_count = 10;
- Specified by:
getIndexedVectorsCount
in interfaceCollections.CollectionInfoOrBuilder
- Returns:
- The indexedVectorsCount.
-
setIndexedVectorsCount
number of indexed vectors in the collection.
optional uint64 indexed_vectors_count = 10;
- Parameters:
value
- The indexedVectorsCount to set.- Returns:
- This builder for chaining.
-
clearIndexedVectorsCount
number of indexed vectors in the collection.
optional uint64 indexed_vectors_count = 10;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final Collections.CollectionInfo.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.CollectionInfo.Builder>
-
mergeUnknownFields
public final Collections.CollectionInfo.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.CollectionInfo.Builder>
-