Class Points.SearchPoints.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Points.SearchPoints.Builder>
io.metaloom.qdrant.client.grpc.proto.Points.SearchPoints.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Points.SearchPointsOrBuilder,Cloneable
- Enclosing class:
- Points.SearchPoints
public static final class Points.SearchPoints.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Points.SearchPoints.Builder>
implements Points.SearchPointsOrBuilder
Protobuf type
qdrant.SearchPoints-
Method Summary
Modifier and TypeMethodDescriptionaddAllVector(Iterable<? extends Float> values) vectoraddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addVector(float value) vectorbuild()clear()name of the collectionclearField(com.google.protobuf.Descriptors.FieldDescriptor field) Filter conditions - return only those points that satisfy the specified conditionsMax number of resultOffset of the resultclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Search configIf provided - cut off results with worse scoresvectorWhich vector to use for search, if not specified - use default vectorOptions for specifying which payload to include or notOptions for specifying which vectors to include into responseclone()name of the collectioncom.google.protobuf.ByteStringname of the collectionstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorFilter conditions - return only those points that satisfy the specified conditionsFilter conditions - return only those points that satisfy the specified conditionsFilter conditions - return only those points that satisfy the specified conditionslonggetLimit()Max number of resultlongOffset of the resultSearch configSearch configSearch configfloatIf provided - cut off results with worse scoresfloatgetVector(int index) vectorintvectorvectorWhich vector to use for search, if not specified - use default vectorcom.google.protobuf.ByteStringWhich vector to use for search, if not specified - use default vectorOptions for specifying which payload to include or notOptions for specifying which payload to include or notOptions for specifying which payload to include or notOptions for specifying which vectors to include into responseOptions for specifying which vectors to include into responseOptions for specifying which vectors to include into responsebooleanFilter conditions - return only those points that satisfy the specified conditionsbooleanOffset of the resultbooleanSearch configbooleanIf provided - cut off results with worse scoresbooleanWhich vector to use for search, if not specified - use default vectorbooleanOptions for specifying which payload to include or notbooleanOptions for specifying which vectors to include into responseprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFilter(Points.Filter value) Filter conditions - return only those points that satisfy the specified conditionsmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Points.SearchPoints other) mergeParams(Points.SearchParams value) Search configmergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Options for specifying which payload to include or notOptions for specifying which vectors to include into responsesetCollectionName(String value) name of the collectionsetCollectionNameBytes(com.google.protobuf.ByteString value) name of the collectionsetFilter(Points.Filter value) Filter conditions - return only those points that satisfy the specified conditionssetFilter(Points.Filter.Builder builderForValue) Filter conditions - return only those points that satisfy the specified conditionssetLimit(long value) Max number of resultsetOffset(long value) Offset of the resultsetParams(Points.SearchParams value) Search configsetParams(Points.SearchParams.Builder builderForValue) Search configsetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setScoreThreshold(float value) If provided - cut off results with worse scoressetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setVector(int index, float value) vectorsetVectorName(String value) Which vector to use for search, if not specified - use default vectorsetVectorNameBytes(com.google.protobuf.ByteString value) Which vector to use for search, if not specified - use default vectorOptions for specifying which payload to include or notsetWithPayload(Points.WithPayloadSelector.Builder builderForValue) Options for specifying which payload to include or notOptions for specifying which vectors to include into responsesetWithVectors(Points.WithVectorsSelector.Builder builderForValue) Options for specifying which vectors to include into responseMethods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Points.SearchPoints.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Points.SearchPoints.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Points.SearchPoints.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Points.SearchPoints.Builder>
-
setField
public Points.SearchPoints.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Points.SearchPoints.Builder>
-
clearField
public Points.SearchPoints.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Points.SearchPoints.Builder>
-
clearOneof
public Points.SearchPoints.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Points.SearchPoints.Builder>
-
setRepeatedField
public Points.SearchPoints.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Points.SearchPoints.Builder>
-
addRepeatedField
public Points.SearchPoints.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Points.SearchPoints.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Points.SearchPoints.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Points.SearchPoints.Builder>
-
mergeFrom
public Points.SearchPoints.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Points.SearchPoints.Builder>- Throws:
IOException
-
getCollectionName
name of the collection
string collection_name = 1;- Specified by:
getCollectionNamein interfacePoints.SearchPointsOrBuilder- Returns:
- The collectionName.
-
getCollectionNameBytes
public com.google.protobuf.ByteString getCollectionNameBytes()name of the collection
string collection_name = 1;- Specified by:
getCollectionNameBytesin interfacePoints.SearchPointsOrBuilder- Returns:
- The bytes for collectionName.
-
setCollectionName
name of the collection
string collection_name = 1;- Parameters:
value- The collectionName to set.- Returns:
- This builder for chaining.
-
clearCollectionName
name of the collection
string collection_name = 1;- Returns:
- This builder for chaining.
-
setCollectionNameBytes
name of the collection
string collection_name = 1;- Parameters:
value- The bytes for collectionName to set.- Returns:
- This builder for chaining.
-
getVectorList
vector
repeated float vector = 2;- Specified by:
getVectorListin interfacePoints.SearchPointsOrBuilder- Returns:
- A list containing the vector.
-
getVectorCount
public int getVectorCount()vector
repeated float vector = 2;- Specified by:
getVectorCountin interfacePoints.SearchPointsOrBuilder- Returns:
- The count of vector.
-
getVector
public float getVector(int index) vector
repeated float vector = 2;- Specified by:
getVectorin interfacePoints.SearchPointsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The vector at the given index.
-
setVector
vector
repeated float vector = 2;- Parameters:
index- The index to set the value at.value- The vector to set.- Returns:
- This builder for chaining.
-
addVector
vector
repeated float vector = 2;- Parameters:
value- The vector to add.- Returns:
- This builder for chaining.
-
addAllVector
vector
repeated float vector = 2;- Parameters:
values- The vector to add.- Returns:
- This builder for chaining.
-
clearVector
vector
repeated float vector = 2;- Returns:
- This builder for chaining.
-
hasFilter
public boolean hasFilter()Filter conditions - return only those points that satisfy the specified conditions
.qdrant.Filter filter = 3;- Specified by:
hasFilterin interfacePoints.SearchPointsOrBuilder- Returns:
- Whether the filter field is set.
-
getFilter
Filter conditions - return only those points that satisfy the specified conditions
.qdrant.Filter filter = 3;- Specified by:
getFilterin interfacePoints.SearchPointsOrBuilder- Returns:
- The filter.
-
setFilter
Filter conditions - return only those points that satisfy the specified conditions
.qdrant.Filter filter = 3; -
setFilter
Filter conditions - return only those points that satisfy the specified conditions
.qdrant.Filter filter = 3; -
mergeFilter
Filter conditions - return only those points that satisfy the specified conditions
.qdrant.Filter filter = 3; -
clearFilter
Filter conditions - return only those points that satisfy the specified conditions
.qdrant.Filter filter = 3; -
getFilterBuilder
Filter conditions - return only those points that satisfy the specified conditions
.qdrant.Filter filter = 3; -
getFilterOrBuilder
Filter conditions - return only those points that satisfy the specified conditions
.qdrant.Filter filter = 3;- Specified by:
getFilterOrBuilderin interfacePoints.SearchPointsOrBuilder
-
getLimit
public long getLimit()Max number of result
uint64 limit = 4;- Specified by:
getLimitin interfacePoints.SearchPointsOrBuilder- Returns:
- The limit.
-
setLimit
Max number of result
uint64 limit = 4;- Parameters:
value- The limit to set.- Returns:
- This builder for chaining.
-
clearLimit
Max number of result
uint64 limit = 4;- Returns:
- This builder for chaining.
-
hasWithPayload
public boolean hasWithPayload()Options for specifying which payload to include or not
.qdrant.WithPayloadSelector with_payload = 6;- Specified by:
hasWithPayloadin interfacePoints.SearchPointsOrBuilder- Returns:
- Whether the withPayload field is set.
-
getWithPayload
Options for specifying which payload to include or not
.qdrant.WithPayloadSelector with_payload = 6;- Specified by:
getWithPayloadin interfacePoints.SearchPointsOrBuilder- Returns:
- The withPayload.
-
setWithPayload
Options for specifying which payload to include or not
.qdrant.WithPayloadSelector with_payload = 6; -
setWithPayload
public Points.SearchPoints.Builder setWithPayload(Points.WithPayloadSelector.Builder builderForValue) Options for specifying which payload to include or not
.qdrant.WithPayloadSelector with_payload = 6; -
mergeWithPayload
Options for specifying which payload to include or not
.qdrant.WithPayloadSelector with_payload = 6; -
clearWithPayload
Options for specifying which payload to include or not
.qdrant.WithPayloadSelector with_payload = 6; -
getWithPayloadBuilder
Options for specifying which payload to include or not
.qdrant.WithPayloadSelector with_payload = 6; -
getWithPayloadOrBuilder
Options for specifying which payload to include or not
.qdrant.WithPayloadSelector with_payload = 6;- Specified by:
getWithPayloadOrBuilderin interfacePoints.SearchPointsOrBuilder
-
hasParams
public boolean hasParams()Search config
.qdrant.SearchParams params = 7;- Specified by:
hasParamsin interfacePoints.SearchPointsOrBuilder- Returns:
- Whether the params field is set.
-
getParams
Search config
.qdrant.SearchParams params = 7;- Specified by:
getParamsin interfacePoints.SearchPointsOrBuilder- Returns:
- The params.
-
setParams
Search config
.qdrant.SearchParams params = 7; -
setParams
Search config
.qdrant.SearchParams params = 7; -
mergeParams
Search config
.qdrant.SearchParams params = 7; -
clearParams
Search config
.qdrant.SearchParams params = 7; -
getParamsBuilder
Search config
.qdrant.SearchParams params = 7; -
getParamsOrBuilder
Search config
.qdrant.SearchParams params = 7;- Specified by:
getParamsOrBuilderin interfacePoints.SearchPointsOrBuilder
-
hasScoreThreshold
public boolean hasScoreThreshold()If provided - cut off results with worse scores
optional float score_threshold = 8;- Specified by:
hasScoreThresholdin interfacePoints.SearchPointsOrBuilder- Returns:
- Whether the scoreThreshold field is set.
-
getScoreThreshold
public float getScoreThreshold()If provided - cut off results with worse scores
optional float score_threshold = 8;- Specified by:
getScoreThresholdin interfacePoints.SearchPointsOrBuilder- Returns:
- The scoreThreshold.
-
setScoreThreshold
If provided - cut off results with worse scores
optional float score_threshold = 8;- Parameters:
value- The scoreThreshold to set.- Returns:
- This builder for chaining.
-
clearScoreThreshold
If provided - cut off results with worse scores
optional float score_threshold = 8;- Returns:
- This builder for chaining.
-
hasOffset
public boolean hasOffset()Offset of the result
optional uint64 offset = 9;- Specified by:
hasOffsetin interfacePoints.SearchPointsOrBuilder- Returns:
- Whether the offset field is set.
-
getOffset
public long getOffset()Offset of the result
optional uint64 offset = 9;- Specified by:
getOffsetin interfacePoints.SearchPointsOrBuilder- Returns:
- The offset.
-
setOffset
Offset of the result
optional uint64 offset = 9;- Parameters:
value- The offset to set.- Returns:
- This builder for chaining.
-
clearOffset
Offset of the result
optional uint64 offset = 9;- Returns:
- This builder for chaining.
-
hasVectorName
public boolean hasVectorName()Which vector to use for search, if not specified - use default vector
optional string vector_name = 10;- Specified by:
hasVectorNamein interfacePoints.SearchPointsOrBuilder- Returns:
- Whether the vectorName field is set.
-
getVectorName
Which vector to use for search, if not specified - use default vector
optional string vector_name = 10;- Specified by:
getVectorNamein interfacePoints.SearchPointsOrBuilder- Returns:
- The vectorName.
-
getVectorNameBytes
public com.google.protobuf.ByteString getVectorNameBytes()Which vector to use for search, if not specified - use default vector
optional string vector_name = 10;- Specified by:
getVectorNameBytesin interfacePoints.SearchPointsOrBuilder- Returns:
- The bytes for vectorName.
-
setVectorName
Which vector to use for search, if not specified - use default vector
optional string vector_name = 10;- Parameters:
value- The vectorName to set.- Returns:
- This builder for chaining.
-
clearVectorName
Which vector to use for search, if not specified - use default vector
optional string vector_name = 10;- Returns:
- This builder for chaining.
-
setVectorNameBytes
Which vector to use for search, if not specified - use default vector
optional string vector_name = 10;- Parameters:
value- The bytes for vectorName to set.- Returns:
- This builder for chaining.
-
hasWithVectors
public boolean hasWithVectors()Options for specifying which vectors to include into response
optional .qdrant.WithVectorsSelector with_vectors = 11;- Specified by:
hasWithVectorsin interfacePoints.SearchPointsOrBuilder- Returns:
- Whether the withVectors field is set.
-
getWithVectors
Options for specifying which vectors to include into response
optional .qdrant.WithVectorsSelector with_vectors = 11;- Specified by:
getWithVectorsin interfacePoints.SearchPointsOrBuilder- Returns:
- The withVectors.
-
setWithVectors
Options for specifying which vectors to include into response
optional .qdrant.WithVectorsSelector with_vectors = 11; -
setWithVectors
public Points.SearchPoints.Builder setWithVectors(Points.WithVectorsSelector.Builder builderForValue) Options for specifying which vectors to include into response
optional .qdrant.WithVectorsSelector with_vectors = 11; -
mergeWithVectors
Options for specifying which vectors to include into response
optional .qdrant.WithVectorsSelector with_vectors = 11; -
clearWithVectors
Options for specifying which vectors to include into response
optional .qdrant.WithVectorsSelector with_vectors = 11; -
getWithVectorsBuilder
Options for specifying which vectors to include into response
optional .qdrant.WithVectorsSelector with_vectors = 11; -
getWithVectorsOrBuilder
Options for specifying which vectors to include into response
optional .qdrant.WithVectorsSelector with_vectors = 11;- Specified by:
getWithVectorsOrBuilderin interfacePoints.SearchPointsOrBuilder
-
setUnknownFields
public final Points.SearchPoints.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Points.SearchPoints.Builder>
-
mergeUnknownFields
public final Points.SearchPoints.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Points.SearchPoints.Builder>
-