- 3.54.0 (latest)
- 3.53.0
- 3.52.0
- 3.50.0
- 3.49.0
- 3.48.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.42.0
- 3.41.0
- 3.40.0
- 3.38.0
- 3.37.0
- 3.36.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.30.0
- 3.29.0
- 3.28.0
- 3.25.0
- 3.24.0
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.2
- 3.3.0
- 3.2.0
- 3.0.0
- 2.9.8
- 2.8.9
- 2.7.4
- 2.5.3
- 2.4.0
public static final class NearestNeighborQuery.Builder extends GeneratedMessageV3.Builder<NearestNeighborQuery.Builder> implements NearestNeighborQueryOrBuilder
A query to find a number of similar entities.
Protobuf type google.cloud.aiplatform.v1beta1.NearestNeighborQuery
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > NearestNeighborQuery.BuilderImplements
NearestNeighborQueryOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllStringFilters(Iterable<? extends NearestNeighborQuery.StringFilter> values)
public NearestNeighborQuery.Builder addAllStringFilters(Iterable<? extends NearestNeighborQuery.StringFilter> values)
Optional. The list of string filters.
repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter> |
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public NearestNeighborQuery.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.Builder |
addStringFilters(NearestNeighborQuery.StringFilter value)
public NearestNeighborQuery.Builder addStringFilters(NearestNeighborQuery.StringFilter value)
Optional. The list of string filters.
repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
NearestNeighborQuery.StringFilter |
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.Builder |
addStringFilters(NearestNeighborQuery.StringFilter.Builder builderForValue)
public NearestNeighborQuery.Builder addStringFilters(NearestNeighborQuery.StringFilter.Builder builderForValue)
Optional. The list of string filters.
repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
builderForValue |
NearestNeighborQuery.StringFilter.Builder |
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.Builder |
addStringFilters(int index, NearestNeighborQuery.StringFilter value)
public NearestNeighborQuery.Builder addStringFilters(int index, NearestNeighborQuery.StringFilter value)
Optional. The list of string filters.
repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
NearestNeighborQuery.StringFilter |
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.Builder |
addStringFilters(int index, NearestNeighborQuery.StringFilter.Builder builderForValue)
public NearestNeighborQuery.Builder addStringFilters(int index, NearestNeighborQuery.StringFilter.Builder builderForValue)
Optional. The list of string filters.
repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
NearestNeighborQuery.StringFilter.Builder |
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.Builder |
addStringFiltersBuilder()
public NearestNeighborQuery.StringFilter.Builder addStringFiltersBuilder()
Optional. The list of string filters.
repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.StringFilter.Builder |
addStringFiltersBuilder(int index)
public NearestNeighborQuery.StringFilter.Builder addStringFiltersBuilder(int index)
Optional. The list of string filters.
repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.StringFilter.Builder |
build()
public NearestNeighborQuery build()
Returns | |
---|---|
Type | Description |
NearestNeighborQuery |
buildPartial()
public NearestNeighborQuery buildPartial()
Returns | |
---|---|
Type | Description |
NearestNeighborQuery |
clear()
public NearestNeighborQuery.Builder clear()
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.Builder |
clearEmbedding()
public NearestNeighborQuery.Builder clearEmbedding()
Optional. The embedding vector that be used for similar search.
.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.Builder |
clearEntityId()
public NearestNeighborQuery.Builder 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 | |
---|---|
Type | Description |
NearestNeighborQuery.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public NearestNeighborQuery.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.Builder |
clearInstance()
public NearestNeighborQuery.Builder clearInstance()
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.Builder |
clearNeighborCount()
public NearestNeighborQuery.Builder 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 | |
---|---|
Type | Description |
NearestNeighborQuery.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public NearestNeighborQuery.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.Builder |
clearParameters()
public NearestNeighborQuery.Builder clearParameters()
Optional. Parameters that can be set to tune query on the fly.
.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters parameters = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.Builder |
clearPerCrowdingAttributeNeighborCount()
public NearestNeighborQuery.Builder 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 | |
---|---|
Type | Description |
NearestNeighborQuery.Builder |
This builder for chaining. |
clearStringFilters()
public NearestNeighborQuery.Builder clearStringFilters()
Optional. The list of string filters.
repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.Builder |
clone()
public NearestNeighborQuery.Builder clone()
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.Builder |
getDefaultInstanceForType()
public NearestNeighborQuery getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
NearestNeighborQuery |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getEmbedding()
public NearestNeighborQuery.Embedding getEmbedding()
Optional. The embedding vector that be used for similar search.
.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.Embedding |
The embedding. |
getEmbeddingBuilder()
public NearestNeighborQuery.Embedding.Builder getEmbeddingBuilder()
Optional. The embedding vector that be used for similar search.
.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.Embedding.Builder |
getEmbeddingOrBuilder()
public NearestNeighborQuery.EmbeddingOrBuilder getEmbeddingOrBuilder()
Optional. The embedding vector that be used for similar search.
.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.EmbeddingOrBuilder |
getEntityId()
public String 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];
Returns | |
---|---|
Type | Description |
String |
The entityId. |
getEntityIdBytes()
public 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];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for entityId. |
getInstanceCase()
public NearestNeighborQuery.InstanceCase getInstanceCase()
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.InstanceCase |
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];
Returns | |
---|---|
Type | Description |
int |
The neighborCount. |
getParameters()
public NearestNeighborQuery.Parameters getParameters()
Optional. Parameters that can be set to tune query on the fly.
.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters parameters = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.Parameters |
The parameters. |
getParametersBuilder()
public NearestNeighborQuery.Parameters.Builder getParametersBuilder()
Optional. Parameters that can be set to tune query on the fly.
.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters parameters = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.Parameters.Builder |
getParametersOrBuilder()
public NearestNeighborQuery.ParametersOrBuilder getParametersOrBuilder()
Optional. Parameters that can be set to tune query on the fly.
.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters parameters = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.ParametersOrBuilder |
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];
Returns | |
---|---|
Type | Description |
int |
The perCrowdingAttributeNeighborCount. |
getStringFilters(int index)
public NearestNeighborQuery.StringFilter getStringFilters(int index)
Optional. The list of string filters.
repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.StringFilter |
getStringFiltersBuilder(int index)
public NearestNeighborQuery.StringFilter.Builder getStringFiltersBuilder(int index)
Optional. The list of string filters.
repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.StringFilter.Builder |
getStringFiltersBuilderList()
public List<NearestNeighborQuery.StringFilter.Builder> getStringFiltersBuilderList()
Optional. The list of string filters.
repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<Builder> |
getStringFiltersCount()
public int getStringFiltersCount()
Optional. The list of string filters.
repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
int |
getStringFiltersList()
public List<NearestNeighborQuery.StringFilter> getStringFiltersList()
Optional. The list of string filters.
repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<StringFilter> |
getStringFiltersOrBuilder(int index)
public NearestNeighborQuery.StringFilterOrBuilder getStringFiltersOrBuilder(int index)
Optional. The list of string filters.
repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.StringFilterOrBuilder |
getStringFiltersOrBuilderList()
public List<? extends NearestNeighborQuery.StringFilterOrBuilder> getStringFiltersOrBuilderList()
Optional. The list of string filters.
repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilterOrBuilder> |
hasEmbedding()
public boolean hasEmbedding()
Optional. The embedding vector that be used for similar search.
.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the embedding field is set. |
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];
Returns | |
---|---|
Type | Description |
boolean |
Whether the entityId field is set. |
hasParameters()
public boolean hasParameters()
Optional. Parameters that can be set to tune query on the fly.
.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters parameters = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the parameters field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeEmbedding(NearestNeighborQuery.Embedding value)
public NearestNeighborQuery.Builder mergeEmbedding(NearestNeighborQuery.Embedding value)
Optional. The embedding vector that be used for similar search.
.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
NearestNeighborQuery.Embedding |
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.Builder |
mergeFrom(NearestNeighborQuery other)
public NearestNeighborQuery.Builder mergeFrom(NearestNeighborQuery other)
Parameter | |
---|---|
Name | Description |
other |
NearestNeighborQuery |
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public NearestNeighborQuery.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public NearestNeighborQuery.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.Builder |
mergeParameters(NearestNeighborQuery.Parameters value)
public NearestNeighborQuery.Builder mergeParameters(NearestNeighborQuery.Parameters value)
Optional. Parameters that can be set to tune query on the fly.
.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters parameters = 7 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
NearestNeighborQuery.Parameters |
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final NearestNeighborQuery.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.Builder |
removeStringFilters(int index)
public NearestNeighborQuery.Builder removeStringFilters(int index)
Optional. The list of string filters.
repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.Builder |
setEmbedding(NearestNeighborQuery.Embedding value)
public NearestNeighborQuery.Builder setEmbedding(NearestNeighborQuery.Embedding value)
Optional. The embedding vector that be used for similar search.
.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
NearestNeighborQuery.Embedding |
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.Builder |
setEmbedding(NearestNeighborQuery.Embedding.Builder builderForValue)
public NearestNeighborQuery.Builder setEmbedding(NearestNeighborQuery.Embedding.Builder builderForValue)
Optional. The embedding vector that be used for similar search.
.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
builderForValue |
NearestNeighborQuery.Embedding.Builder |
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.Builder |
setEntityId(String value)
public NearestNeighborQuery.Builder setEntityId(String value)
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];
Parameter | |
---|---|
Name | Description |
value |
String The entityId to set. |
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.Builder |
This builder for chaining. |
setEntityIdBytes(ByteString value)
public NearestNeighborQuery.Builder setEntityIdBytes(ByteString value)
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];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for entityId to set. |
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public NearestNeighborQuery.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.Builder |
setNeighborCount(int value)
public NearestNeighborQuery.Builder setNeighborCount(int value)
Optional. The number of similar entities to be retrieved from feature view for each query.
int32 neighbor_count = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
int The neighborCount to set. |
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.Builder |
This builder for chaining. |
setParameters(NearestNeighborQuery.Parameters value)
public NearestNeighborQuery.Builder setParameters(NearestNeighborQuery.Parameters value)
Optional. Parameters that can be set to tune query on the fly.
.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters parameters = 7 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
NearestNeighborQuery.Parameters |
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.Builder |
setParameters(NearestNeighborQuery.Parameters.Builder builderForValue)
public NearestNeighborQuery.Builder setParameters(NearestNeighborQuery.Parameters.Builder builderForValue)
Optional. Parameters that can be set to tune query on the fly.
.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters parameters = 7 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
builderForValue |
NearestNeighborQuery.Parameters.Builder |
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.Builder |
setPerCrowdingAttributeNeighborCount(int value)
public NearestNeighborQuery.Builder setPerCrowdingAttributeNeighborCount(int value)
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];
Parameter | |
---|---|
Name | Description |
value |
int The perCrowdingAttributeNeighborCount to set. |
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public NearestNeighborQuery.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.Builder |
setStringFilters(int index, NearestNeighborQuery.StringFilter value)
public NearestNeighborQuery.Builder setStringFilters(int index, NearestNeighborQuery.StringFilter value)
Optional. The list of string filters.
repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
NearestNeighborQuery.StringFilter |
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.Builder |
setStringFilters(int index, NearestNeighborQuery.StringFilter.Builder builderForValue)
public NearestNeighborQuery.Builder setStringFilters(int index, NearestNeighborQuery.StringFilter.Builder builderForValue)
Optional. The list of string filters.
repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
NearestNeighborQuery.StringFilter.Builder |
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final NearestNeighborQuery.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
NearestNeighborQuery.Builder |