public static final class FindNeighborsRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<FindNeighborsRequest.Builder> implements FindNeighborsRequestOrBuilder
The request message for [MatchService.FindNeighbors][google.cloud.aiplatform.v1.MatchService.FindNeighbors].Protobuf type
google.cloud.aiplatform.v1.FindNeighborsRequest| Modifier and Type | Method and Description |
|---|---|
FindNeighborsRequest.Builder |
addAllQueries(Iterable<? extends FindNeighborsRequest.Query> values)
The list of queries.
|
FindNeighborsRequest.Builder |
addQueries(FindNeighborsRequest.Query.Builder builderForValue)
The list of queries.
|
FindNeighborsRequest.Builder |
addQueries(FindNeighborsRequest.Query value)
The list of queries.
|
FindNeighborsRequest.Builder |
addQueries(int index,
FindNeighborsRequest.Query.Builder builderForValue)
The list of queries.
|
FindNeighborsRequest.Builder |
addQueries(int index,
FindNeighborsRequest.Query value)
The list of queries.
|
FindNeighborsRequest.Query.Builder |
addQueriesBuilder()
The list of queries.
|
FindNeighborsRequest.Query.Builder |
addQueriesBuilder(int index)
The list of queries.
|
FindNeighborsRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
FindNeighborsRequest |
build() |
FindNeighborsRequest |
buildPartial() |
FindNeighborsRequest.Builder |
clear() |
FindNeighborsRequest.Builder |
clearDeployedIndexId()
The ID of the DeployedIndex that will serve the request.
|
FindNeighborsRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
FindNeighborsRequest.Builder |
clearIndexEndpoint()
Required.
|
FindNeighborsRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
FindNeighborsRequest.Builder |
clearQueries()
The list of queries.
|
FindNeighborsRequest.Builder |
clearReturnFullDatapoint()
If set to true, the full datapoints (including all vector values and
restricts) of the nearest neighbors are returned.
|
FindNeighborsRequest.Builder |
clone() |
FindNeighborsRequest |
getDefaultInstanceForType() |
String |
getDeployedIndexId()
The ID of the DeployedIndex that will serve the request.
|
com.google.protobuf.ByteString |
getDeployedIndexIdBytes()
The ID of the DeployedIndex that will serve the request.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getIndexEndpoint()
Required.
|
com.google.protobuf.ByteString |
getIndexEndpointBytes()
Required.
|
FindNeighborsRequest.Query |
getQueries(int index)
The list of queries.
|
FindNeighborsRequest.Query.Builder |
getQueriesBuilder(int index)
The list of queries.
|
List<FindNeighborsRequest.Query.Builder> |
getQueriesBuilderList()
The list of queries.
|
int |
getQueriesCount()
The list of queries.
|
List<FindNeighborsRequest.Query> |
getQueriesList()
The list of queries.
|
FindNeighborsRequest.QueryOrBuilder |
getQueriesOrBuilder(int index)
The list of queries.
|
List<? extends FindNeighborsRequest.QueryOrBuilder> |
getQueriesOrBuilderList()
The list of queries.
|
boolean |
getReturnFullDatapoint()
If set to true, the full datapoints (including all vector values and
restricts) of the nearest neighbors are returned.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
FindNeighborsRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
FindNeighborsRequest.Builder |
mergeFrom(FindNeighborsRequest other) |
FindNeighborsRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
FindNeighborsRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
FindNeighborsRequest.Builder |
removeQueries(int index)
The list of queries.
|
FindNeighborsRequest.Builder |
setDeployedIndexId(String value)
The ID of the DeployedIndex that will serve the request.
|
FindNeighborsRequest.Builder |
setDeployedIndexIdBytes(com.google.protobuf.ByteString value)
The ID of the DeployedIndex that will serve the request.
|
FindNeighborsRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
FindNeighborsRequest.Builder |
setIndexEndpoint(String value)
Required.
|
FindNeighborsRequest.Builder |
setIndexEndpointBytes(com.google.protobuf.ByteString value)
Required.
|
FindNeighborsRequest.Builder |
setQueries(int index,
FindNeighborsRequest.Query.Builder builderForValue)
The list of queries.
|
FindNeighborsRequest.Builder |
setQueries(int index,
FindNeighborsRequest.Query value)
The list of queries.
|
FindNeighborsRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
FindNeighborsRequest.Builder |
setReturnFullDatapoint(boolean value)
If set to true, the full datapoints (including all vector values and
restricts) of the nearest neighbors are returned.
|
FindNeighborsRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<FindNeighborsRequest.Builder>public FindNeighborsRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<FindNeighborsRequest.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<FindNeighborsRequest.Builder>public FindNeighborsRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic FindNeighborsRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic FindNeighborsRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic FindNeighborsRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<FindNeighborsRequest.Builder>public FindNeighborsRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<FindNeighborsRequest.Builder>public FindNeighborsRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<FindNeighborsRequest.Builder>public FindNeighborsRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<FindNeighborsRequest.Builder>public FindNeighborsRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<FindNeighborsRequest.Builder>public FindNeighborsRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<FindNeighborsRequest.Builder>public FindNeighborsRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<FindNeighborsRequest.Builder>public FindNeighborsRequest.Builder mergeFrom(FindNeighborsRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<FindNeighborsRequest.Builder>public FindNeighborsRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<FindNeighborsRequest.Builder>IOExceptionpublic String getIndexEndpoint()
Required. The name of the index endpoint.
Format:
`projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getIndexEndpoint in interface FindNeighborsRequestOrBuilderpublic com.google.protobuf.ByteString getIndexEndpointBytes()
Required. The name of the index endpoint.
Format:
`projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getIndexEndpointBytes in interface FindNeighborsRequestOrBuilderpublic FindNeighborsRequest.Builder setIndexEndpoint(String value)
Required. The name of the index endpoint.
Format:
`projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value - The indexEndpoint to set.public FindNeighborsRequest.Builder clearIndexEndpoint()
Required. The name of the index endpoint.
Format:
`projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
public FindNeighborsRequest.Builder setIndexEndpointBytes(com.google.protobuf.ByteString value)
Required. The name of the index endpoint.
Format:
`projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value - The bytes for indexEndpoint to set.public String getDeployedIndexId()
The ID of the DeployedIndex that will serve the request. This request is sent to a specific IndexEndpoint, as per the IndexEndpoint.network. That IndexEndpoint also has IndexEndpoint.deployed_indexes, and each such index has a DeployedIndex.id field. The value of the field below must equal one of the DeployedIndex.id fields of the IndexEndpoint that is being called for this request.
string deployed_index_id = 2;getDeployedIndexId in interface FindNeighborsRequestOrBuilderpublic com.google.protobuf.ByteString getDeployedIndexIdBytes()
The ID of the DeployedIndex that will serve the request. This request is sent to a specific IndexEndpoint, as per the IndexEndpoint.network. That IndexEndpoint also has IndexEndpoint.deployed_indexes, and each such index has a DeployedIndex.id field. The value of the field below must equal one of the DeployedIndex.id fields of the IndexEndpoint that is being called for this request.
string deployed_index_id = 2;getDeployedIndexIdBytes in interface FindNeighborsRequestOrBuilderpublic FindNeighborsRequest.Builder setDeployedIndexId(String value)
The ID of the DeployedIndex that will serve the request. This request is sent to a specific IndexEndpoint, as per the IndexEndpoint.network. That IndexEndpoint also has IndexEndpoint.deployed_indexes, and each such index has a DeployedIndex.id field. The value of the field below must equal one of the DeployedIndex.id fields of the IndexEndpoint that is being called for this request.
string deployed_index_id = 2;value - The deployedIndexId to set.public FindNeighborsRequest.Builder clearDeployedIndexId()
The ID of the DeployedIndex that will serve the request. This request is sent to a specific IndexEndpoint, as per the IndexEndpoint.network. That IndexEndpoint also has IndexEndpoint.deployed_indexes, and each such index has a DeployedIndex.id field. The value of the field below must equal one of the DeployedIndex.id fields of the IndexEndpoint that is being called for this request.
string deployed_index_id = 2;public FindNeighborsRequest.Builder setDeployedIndexIdBytes(com.google.protobuf.ByteString value)
The ID of the DeployedIndex that will serve the request. This request is sent to a specific IndexEndpoint, as per the IndexEndpoint.network. That IndexEndpoint also has IndexEndpoint.deployed_indexes, and each such index has a DeployedIndex.id field. The value of the field below must equal one of the DeployedIndex.id fields of the IndexEndpoint that is being called for this request.
string deployed_index_id = 2;value - The bytes for deployedIndexId to set.public List<FindNeighborsRequest.Query> getQueriesList()
The list of queries.
repeated .google.cloud.aiplatform.v1.FindNeighborsRequest.Query queries = 3;getQueriesList in interface FindNeighborsRequestOrBuilderpublic int getQueriesCount()
The list of queries.
repeated .google.cloud.aiplatform.v1.FindNeighborsRequest.Query queries = 3;getQueriesCount in interface FindNeighborsRequestOrBuilderpublic FindNeighborsRequest.Query getQueries(int index)
The list of queries.
repeated .google.cloud.aiplatform.v1.FindNeighborsRequest.Query queries = 3;getQueries in interface FindNeighborsRequestOrBuilderpublic FindNeighborsRequest.Builder setQueries(int index, FindNeighborsRequest.Query value)
The list of queries.
repeated .google.cloud.aiplatform.v1.FindNeighborsRequest.Query queries = 3;public FindNeighborsRequest.Builder setQueries(int index, FindNeighborsRequest.Query.Builder builderForValue)
The list of queries.
repeated .google.cloud.aiplatform.v1.FindNeighborsRequest.Query queries = 3;public FindNeighborsRequest.Builder addQueries(FindNeighborsRequest.Query value)
The list of queries.
repeated .google.cloud.aiplatform.v1.FindNeighborsRequest.Query queries = 3;public FindNeighborsRequest.Builder addQueries(int index, FindNeighborsRequest.Query value)
The list of queries.
repeated .google.cloud.aiplatform.v1.FindNeighborsRequest.Query queries = 3;public FindNeighborsRequest.Builder addQueries(FindNeighborsRequest.Query.Builder builderForValue)
The list of queries.
repeated .google.cloud.aiplatform.v1.FindNeighborsRequest.Query queries = 3;public FindNeighborsRequest.Builder addQueries(int index, FindNeighborsRequest.Query.Builder builderForValue)
The list of queries.
repeated .google.cloud.aiplatform.v1.FindNeighborsRequest.Query queries = 3;public FindNeighborsRequest.Builder addAllQueries(Iterable<? extends FindNeighborsRequest.Query> values)
The list of queries.
repeated .google.cloud.aiplatform.v1.FindNeighborsRequest.Query queries = 3;public FindNeighborsRequest.Builder clearQueries()
The list of queries.
repeated .google.cloud.aiplatform.v1.FindNeighborsRequest.Query queries = 3;public FindNeighborsRequest.Builder removeQueries(int index)
The list of queries.
repeated .google.cloud.aiplatform.v1.FindNeighborsRequest.Query queries = 3;public FindNeighborsRequest.Query.Builder getQueriesBuilder(int index)
The list of queries.
repeated .google.cloud.aiplatform.v1.FindNeighborsRequest.Query queries = 3;public FindNeighborsRequest.QueryOrBuilder getQueriesOrBuilder(int index)
The list of queries.
repeated .google.cloud.aiplatform.v1.FindNeighborsRequest.Query queries = 3;getQueriesOrBuilder in interface FindNeighborsRequestOrBuilderpublic List<? extends FindNeighborsRequest.QueryOrBuilder> getQueriesOrBuilderList()
The list of queries.
repeated .google.cloud.aiplatform.v1.FindNeighborsRequest.Query queries = 3;getQueriesOrBuilderList in interface FindNeighborsRequestOrBuilderpublic FindNeighborsRequest.Query.Builder addQueriesBuilder()
The list of queries.
repeated .google.cloud.aiplatform.v1.FindNeighborsRequest.Query queries = 3;public FindNeighborsRequest.Query.Builder addQueriesBuilder(int index)
The list of queries.
repeated .google.cloud.aiplatform.v1.FindNeighborsRequest.Query queries = 3;public List<FindNeighborsRequest.Query.Builder> getQueriesBuilderList()
The list of queries.
repeated .google.cloud.aiplatform.v1.FindNeighborsRequest.Query queries = 3;public boolean getReturnFullDatapoint()
If set to true, the full datapoints (including all vector values and restricts) of the nearest neighbors are returned. Note that returning full datapoint will significantly increase the latency and cost of the query.
bool return_full_datapoint = 4;getReturnFullDatapoint in interface FindNeighborsRequestOrBuilderpublic FindNeighborsRequest.Builder setReturnFullDatapoint(boolean value)
If set to true, the full datapoints (including all vector values and restricts) of the nearest neighbors are returned. Note that returning full datapoint will significantly increase the latency and cost of the query.
bool return_full_datapoint = 4;value - The returnFullDatapoint to set.public FindNeighborsRequest.Builder clearReturnFullDatapoint()
If set to true, the full datapoints (including all vector values and restricts) of the nearest neighbors are returned. Note that returning full datapoint will significantly increase the latency and cost of the query.
bool return_full_datapoint = 4;public final FindNeighborsRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FindNeighborsRequest.Builder>public final FindNeighborsRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FindNeighborsRequest.Builder>Copyright © 2025 Google LLC. All rights reserved.