Package com.google.cloud.aiplatform.v1
Class NearestNeighborQuery.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<NearestNeighborQuery.Builder>
com.google.cloud.aiplatform.v1.NearestNeighborQuery.Builder
- All Implemented Interfaces:
NearestNeighborQueryOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- NearestNeighborQuery
public static final class NearestNeighborQuery.Builder
extends com.google.protobuf.GeneratedMessage.Builder<NearestNeighborQuery.Builder>
implements NearestNeighborQueryOrBuilder
A query to find a number of similar entities.Protobuf type
google.cloud.aiplatform.v1.NearestNeighborQuery-
Method Summary
Modifier and TypeMethodDescriptionaddAllNumericFilters(Iterable<? extends NearestNeighborQuery.NumericFilter> values) Optional.addAllStringFilters(Iterable<? extends NearestNeighborQuery.StringFilter> values) Optional.addNumericFilters(int index, NearestNeighborQuery.NumericFilter value) Optional.addNumericFilters(int index, NearestNeighborQuery.NumericFilter.Builder builderForValue) Optional.Optional.addNumericFilters(NearestNeighborQuery.NumericFilter.Builder builderForValue) Optional.Optional.addNumericFiltersBuilder(int index) Optional.addStringFilters(int index, NearestNeighborQuery.StringFilter value) Optional.addStringFilters(int index, NearestNeighborQuery.StringFilter.Builder builderForValue) Optional.Optional.addStringFilters(NearestNeighborQuery.StringFilter.Builder builderForValue) Optional.Optional.addStringFiltersBuilder(int index) Optional.build()clear()Optional.Optional.Optional.Optional.Optional.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.Optional.Optional.Optional.com.google.protobuf.ByteStringOptional.intOptional.getNumericFilters(int index) Optional.getNumericFiltersBuilder(int index) Optional.Optional.intOptional.Optional.getNumericFiltersOrBuilder(int index) Optional.List<? extends NearestNeighborQuery.NumericFilterOrBuilder>Optional.Optional.Optional.Optional.intOptional.getStringFilters(int index) Optional.getStringFiltersBuilder(int index) Optional.Optional.intOptional.Optional.getStringFiltersOrBuilder(int index) Optional.List<? extends NearestNeighborQuery.StringFilterOrBuilder>Optional.booleanOptional.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanOptional.mergeFrom(NearestNeighborQuery other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.removeNumericFilters(int index) Optional.removeStringFilters(int index) Optional.Optional.setEmbedding(NearestNeighborQuery.Embedding.Builder builderForValue) Optional.setEntityId(String value) Optional.setEntityIdBytes(com.google.protobuf.ByteString value) Optional.setNeighborCount(int value) Optional.setNumericFilters(int index, NearestNeighborQuery.NumericFilter value) Optional.setNumericFilters(int index, NearestNeighborQuery.NumericFilter.Builder builderForValue) Optional.Optional.setParameters(NearestNeighborQuery.Parameters.Builder builderForValue) Optional.setPerCrowdingAttributeNeighborCount(int value) Optional.setStringFilters(int index, NearestNeighborQuery.StringFilter value) Optional.setStringFilters(int index, NearestNeighborQuery.StringFilter.Builder builderForValue) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<NearestNeighborQuery.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<NearestNeighborQuery.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.GeneratedMessage.Builder<NearestNeighborQuery.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
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NearestNeighborQuery.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<NearestNeighborQuery.Builder>
-
mergeFrom
public NearestNeighborQuery.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<NearestNeighborQuery.Builder>- Throws:
IOException
-
getInstanceCase
- Specified by:
getInstanceCasein interfaceNearestNeighborQueryOrBuilder
-
clearInstance
-
hasEntityId
public boolean hasEntityId()Optional. The entity id whose similar entities should be searched for. If embedding is set, search will use embedding instead of entity_id.
string entity_id = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasEntityIdin interfaceNearestNeighborQueryOrBuilder- Returns:
- Whether the entityId field is set.
-
getEntityId
Optional. The entity id whose similar entities should be searched for. If embedding is set, search will use embedding instead of entity_id.
string entity_id = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEntityIdin interfaceNearestNeighborQueryOrBuilder- Returns:
- The entityId.
-
getEntityIdBytes
public com.google.protobuf.ByteString getEntityIdBytes()Optional. The entity id whose similar entities should be searched for. If embedding is set, search will use embedding instead of entity_id.
string entity_id = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEntityIdBytesin interfaceNearestNeighborQueryOrBuilder- Returns:
- The bytes for entityId.
-
setEntityId
Optional. The entity id whose similar entities should be searched for. If embedding is set, search will use embedding instead of entity_id.
string entity_id = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The entityId to set.- Returns:
- This builder for chaining.
-
clearEntityId
Optional. The entity id whose similar entities should be searched for. If embedding is set, search will use embedding instead of entity_id.
string entity_id = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setEntityIdBytes
Optional. The entity id whose similar entities should be searched for. If embedding is set, search will use embedding instead of entity_id.
string entity_id = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for entityId to set.- Returns:
- This builder for chaining.
-
hasEmbedding
public boolean hasEmbedding()Optional. The embedding vector that be used for similar search.
.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasEmbeddingin interfaceNearestNeighborQueryOrBuilder- Returns:
- Whether the embedding field is set.
-
getEmbedding
Optional. The embedding vector that be used for similar search.
.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEmbeddingin interfaceNearestNeighborQueryOrBuilder- Returns:
- The embedding.
-
setEmbedding
Optional. The embedding vector that be used for similar search.
.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; -
setEmbedding
public NearestNeighborQuery.Builder setEmbedding(NearestNeighborQuery.Embedding.Builder builderForValue) Optional. The embedding vector that be used for similar search.
.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; -
mergeEmbedding
Optional. The embedding vector that be used for similar search.
.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; -
clearEmbedding
Optional. The embedding vector that be used for similar search.
.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getEmbeddingBuilder
Optional. The embedding vector that be used for similar search.
.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getEmbeddingOrBuilder
Optional. The embedding vector that be used for similar search.
.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEmbeddingOrBuilderin interfaceNearestNeighborQueryOrBuilder
-
getNeighborCount
public int getNeighborCount()Optional. The number of similar entities to be retrieved from feature view for each query.
int32 neighbor_count = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNeighborCountin interfaceNearestNeighborQueryOrBuilder- Returns:
- The neighborCount.
-
setNeighborCount
Optional. The number of similar entities to be retrieved from feature view for each query.
int32 neighbor_count = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The neighborCount to set.- Returns:
- This builder for chaining.
-
clearNeighborCount
Optional. The number of similar entities to be retrieved from feature view for each query.
int32 neighbor_count = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getStringFiltersList
Optional. The list of string filters.
repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getStringFiltersListin interfaceNearestNeighborQueryOrBuilder
-
getStringFiltersCount
public int getStringFiltersCount()Optional. The list of string filters.
repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getStringFiltersCountin interfaceNearestNeighborQueryOrBuilder
-
getStringFilters
Optional. The list of string filters.
repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getStringFiltersin interfaceNearestNeighborQueryOrBuilder
-
setStringFilters
public NearestNeighborQuery.Builder setStringFilters(int index, NearestNeighborQuery.StringFilter value) Optional. The list of string filters.
repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; -
setStringFilters
public NearestNeighborQuery.Builder setStringFilters(int index, NearestNeighborQuery.StringFilter.Builder builderForValue) Optional. The list of string filters.
repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; -
addStringFilters
Optional. The list of string filters.
repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; -
addStringFilters
public NearestNeighborQuery.Builder addStringFilters(int index, NearestNeighborQuery.StringFilter value) Optional. The list of string filters.
repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; -
addStringFilters
public NearestNeighborQuery.Builder addStringFilters(NearestNeighborQuery.StringFilter.Builder builderForValue) Optional. The list of string filters.
repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; -
addStringFilters
public NearestNeighborQuery.Builder addStringFilters(int index, NearestNeighborQuery.StringFilter.Builder builderForValue) Optional. The list of string filters.
repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; -
addAllStringFilters
public NearestNeighborQuery.Builder addAllStringFilters(Iterable<? extends NearestNeighborQuery.StringFilter> values) Optional. The list of string filters.
repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; -
clearStringFilters
Optional. The list of string filters.
repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; -
removeStringFilters
Optional. The list of string filters.
repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getStringFiltersBuilder
Optional. The list of string filters.
repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getStringFiltersOrBuilder
Optional. The list of string filters.
repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getStringFiltersOrBuilderin interfaceNearestNeighborQueryOrBuilder
-
getStringFiltersOrBuilderList
Optional. The list of string filters.
repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getStringFiltersOrBuilderListin interfaceNearestNeighborQueryOrBuilder
-
addStringFiltersBuilder
Optional. The list of string filters.
repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; -
addStringFiltersBuilder
Optional. The list of string filters.
repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getStringFiltersBuilderList
Optional. The list of string filters.
repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getNumericFiltersList
Optional. The list of numeric filters.
repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNumericFiltersListin interfaceNearestNeighborQueryOrBuilder
-
getNumericFiltersCount
public int getNumericFiltersCount()Optional. The list of numeric filters.
repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNumericFiltersCountin interfaceNearestNeighborQueryOrBuilder
-
getNumericFilters
Optional. The list of numeric filters.
repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNumericFiltersin interfaceNearestNeighborQueryOrBuilder
-
setNumericFilters
public NearestNeighborQuery.Builder setNumericFilters(int index, NearestNeighborQuery.NumericFilter value) Optional. The list of numeric filters.
repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; -
setNumericFilters
public NearestNeighborQuery.Builder setNumericFilters(int index, NearestNeighborQuery.NumericFilter.Builder builderForValue) Optional. The list of numeric filters.
repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; -
addNumericFilters
Optional. The list of numeric filters.
repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; -
addNumericFilters
public NearestNeighborQuery.Builder addNumericFilters(int index, NearestNeighborQuery.NumericFilter value) Optional. The list of numeric filters.
repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; -
addNumericFilters
public NearestNeighborQuery.Builder addNumericFilters(NearestNeighborQuery.NumericFilter.Builder builderForValue) Optional. The list of numeric filters.
repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; -
addNumericFilters
public NearestNeighborQuery.Builder addNumericFilters(int index, NearestNeighborQuery.NumericFilter.Builder builderForValue) Optional. The list of numeric filters.
repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; -
addAllNumericFilters
public NearestNeighborQuery.Builder addAllNumericFilters(Iterable<? extends NearestNeighborQuery.NumericFilter> values) Optional. The list of numeric filters.
repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; -
clearNumericFilters
Optional. The list of numeric filters.
repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; -
removeNumericFilters
Optional. The list of numeric filters.
repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; -
getNumericFiltersBuilder
Optional. The list of numeric filters.
repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; -
getNumericFiltersOrBuilder
Optional. The list of numeric filters.
repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNumericFiltersOrBuilderin interfaceNearestNeighborQueryOrBuilder
-
getNumericFiltersOrBuilderList
Optional. The list of numeric filters.
repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNumericFiltersOrBuilderListin interfaceNearestNeighborQueryOrBuilder
-
addNumericFiltersBuilder
Optional. The list of numeric filters.
repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; -
addNumericFiltersBuilder
Optional. The list of numeric filters.
repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; -
getNumericFiltersBuilderList
Optional. The list of numeric filters.
repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; -
getPerCrowdingAttributeNeighborCount
public int getPerCrowdingAttributeNeighborCount()Optional. Crowding is a constraint on a neighbor list produced by nearest neighbor search requiring that no more than sper_crowding_attribute_neighbor_count of the k neighbors returned have the same value of crowding_attribute. It's used for improving result diversity.
int32 per_crowding_attribute_neighbor_count = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPerCrowdingAttributeNeighborCountin interfaceNearestNeighborQueryOrBuilder- Returns:
- The perCrowdingAttributeNeighborCount.
-
setPerCrowdingAttributeNeighborCount
Optional. Crowding is a constraint on a neighbor list produced by nearest neighbor search requiring that no more than sper_crowding_attribute_neighbor_count of the k neighbors returned have the same value of crowding_attribute. It's used for improving result diversity.
int32 per_crowding_attribute_neighbor_count = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The perCrowdingAttributeNeighborCount to set.- Returns:
- This builder for chaining.
-
clearPerCrowdingAttributeNeighborCount
Optional. Crowding is a constraint on a neighbor list produced by nearest neighbor search requiring that no more than sper_crowding_attribute_neighbor_count of the k neighbors returned have the same value of crowding_attribute. It's used for improving result diversity.
int32 per_crowding_attribute_neighbor_count = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
hasParameters
public boolean hasParameters()Optional. Parameters that can be set to tune query on the fly.
.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters parameters = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasParametersin interfaceNearestNeighborQueryOrBuilder- Returns:
- Whether the parameters field is set.
-
getParameters
Optional. Parameters that can be set to tune query on the fly.
.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters parameters = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getParametersin interfaceNearestNeighborQueryOrBuilder- Returns:
- The parameters.
-
setParameters
Optional. Parameters that can be set to tune query on the fly.
.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters parameters = 7 [(.google.api.field_behavior) = OPTIONAL]; -
setParameters
public NearestNeighborQuery.Builder setParameters(NearestNeighborQuery.Parameters.Builder builderForValue) Optional. Parameters that can be set to tune query on the fly.
.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters parameters = 7 [(.google.api.field_behavior) = OPTIONAL]; -
mergeParameters
Optional. Parameters that can be set to tune query on the fly.
.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters parameters = 7 [(.google.api.field_behavior) = OPTIONAL]; -
clearParameters
Optional. Parameters that can be set to tune query on the fly.
.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters parameters = 7 [(.google.api.field_behavior) = OPTIONAL]; -
getParametersBuilder
Optional. Parameters that can be set to tune query on the fly.
.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters parameters = 7 [(.google.api.field_behavior) = OPTIONAL]; -
getParametersOrBuilder
Optional. Parameters that can be set to tune query on the fly.
.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters parameters = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getParametersOrBuilderin interfaceNearestNeighborQueryOrBuilder
-