Package com.google.cloud.aiplatform.v1
Class FindNeighborsRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FindNeighborsRequest.Builder>
com.google.cloud.aiplatform.v1.FindNeighborsRequest.Builder
- All Implemented Interfaces:
FindNeighborsRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- FindNeighborsRequest
public static final class FindNeighborsRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<FindNeighborsRequest.Builder>
implements FindNeighborsRequestOrBuilder
The request message for [MatchService.FindNeighbors][google.cloud.aiplatform.v1.MatchService.FindNeighbors].Protobuf type
google.cloud.aiplatform.v1.FindNeighborsRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllQueries(Iterable<? extends FindNeighborsRequest.Query> values) The list of queries.addQueries(int index, FindNeighborsRequest.Query value) The list of queries.addQueries(int index, FindNeighborsRequest.Query.Builder builderForValue) The list of queries.The list of queries.addQueries(FindNeighborsRequest.Query.Builder builderForValue) The list of queries.The list of queries.addQueriesBuilder(int index) The list of queries.build()clear()The ID of the DeployedIndex that will serve the request.Required.The list of queries.If set to true, the full datapoints (including all vector values and restricts) of the nearest neighbors are returned.The ID of the DeployedIndex that will serve the request.com.google.protobuf.ByteStringThe ID of the DeployedIndex that will serve the request.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.getQueries(int index) The list of queries.getQueriesBuilder(int index) The list of queries.The list of queries.intThe list of queries.The list of queries.getQueriesOrBuilder(int index) The list of queries.List<? extends FindNeighborsRequest.QueryOrBuilder>The list of queries.booleanIf set to true, the full datapoints (including all vector values and restricts) of the nearest neighbors are returned.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(FindNeighborsRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeQueries(int index) The list of queries.setDeployedIndexId(String value) The ID of the DeployedIndex that will serve the request.setDeployedIndexIdBytes(com.google.protobuf.ByteString value) The ID of the DeployedIndex that will serve the request.setIndexEndpoint(String value) Required.setIndexEndpointBytes(com.google.protobuf.ByteString value) Required.setQueries(int index, FindNeighborsRequest.Query value) The list of queries.setQueries(int index, FindNeighborsRequest.Query.Builder builderForValue) The list of queries.setReturnFullDatapoint(boolean value) If set to true, the full datapoints (including all vector values and restricts) of the nearest neighbors are returned.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<FindNeighborsRequest.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<FindNeighborsRequest.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<FindNeighborsRequest.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<FindNeighborsRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<FindNeighborsRequest.Builder>
-
mergeFrom
public FindNeighborsRequest.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<FindNeighborsRequest.Builder>- Throws:
IOException
-
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) = { ... }- Specified by:
getIndexEndpointin interfaceFindNeighborsRequestOrBuilder- Returns:
- The indexEndpoint.
-
getIndexEndpointBytes
public 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) = { ... }- Specified by:
getIndexEndpointBytesin interfaceFindNeighborsRequestOrBuilder- Returns:
- The bytes for indexEndpoint.
-
setIndexEndpoint
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) = { ... }- Parameters:
value- The indexEndpoint to set.- Returns:
- This builder for chaining.
-
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) = { ... }- Returns:
- This builder for chaining.
-
setIndexEndpointBytes
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) = { ... }- Parameters:
value- The bytes for indexEndpoint to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getDeployedIndexIdin interfaceFindNeighborsRequestOrBuilder- Returns:
- The deployedIndexId.
-
getDeployedIndexIdBytes
public 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;- Specified by:
getDeployedIndexIdBytesin interfaceFindNeighborsRequestOrBuilder- Returns:
- The bytes for deployedIndexId.
-
setDeployedIndexId
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;- Parameters:
value- The deployedIndexId to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setDeployedIndexIdBytes
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;- Parameters:
value- The bytes for deployedIndexId to set.- Returns:
- This builder for chaining.
-
getQueriesList
The list of queries.
repeated .google.cloud.aiplatform.v1.FindNeighborsRequest.Query queries = 3;- Specified by:
getQueriesListin interfaceFindNeighborsRequestOrBuilder
-
getQueriesCount
public int getQueriesCount()The list of queries.
repeated .google.cloud.aiplatform.v1.FindNeighborsRequest.Query queries = 3;- Specified by:
getQueriesCountin interfaceFindNeighborsRequestOrBuilder
-
getQueries
The list of queries.
repeated .google.cloud.aiplatform.v1.FindNeighborsRequest.Query queries = 3;- Specified by:
getQueriesin interfaceFindNeighborsRequestOrBuilder
-
setQueries
The list of queries.
repeated .google.cloud.aiplatform.v1.FindNeighborsRequest.Query queries = 3; -
setQueries
public FindNeighborsRequest.Builder setQueries(int index, FindNeighborsRequest.Query.Builder builderForValue) The list of queries.
repeated .google.cloud.aiplatform.v1.FindNeighborsRequest.Query queries = 3; -
addQueries
The list of queries.
repeated .google.cloud.aiplatform.v1.FindNeighborsRequest.Query queries = 3; -
addQueries
The list of queries.
repeated .google.cloud.aiplatform.v1.FindNeighborsRequest.Query queries = 3; -
addQueries
The list of queries.
repeated .google.cloud.aiplatform.v1.FindNeighborsRequest.Query queries = 3; -
addQueries
public FindNeighborsRequest.Builder addQueries(int index, FindNeighborsRequest.Query.Builder builderForValue) The list of queries.
repeated .google.cloud.aiplatform.v1.FindNeighborsRequest.Query queries = 3; -
addAllQueries
public FindNeighborsRequest.Builder addAllQueries(Iterable<? extends FindNeighborsRequest.Query> values) The list of queries.
repeated .google.cloud.aiplatform.v1.FindNeighborsRequest.Query queries = 3; -
clearQueries
The list of queries.
repeated .google.cloud.aiplatform.v1.FindNeighborsRequest.Query queries = 3; -
removeQueries
The list of queries.
repeated .google.cloud.aiplatform.v1.FindNeighborsRequest.Query queries = 3; -
getQueriesBuilder
The list of queries.
repeated .google.cloud.aiplatform.v1.FindNeighborsRequest.Query queries = 3; -
getQueriesOrBuilder
The list of queries.
repeated .google.cloud.aiplatform.v1.FindNeighborsRequest.Query queries = 3;- Specified by:
getQueriesOrBuilderin interfaceFindNeighborsRequestOrBuilder
-
getQueriesOrBuilderList
The list of queries.
repeated .google.cloud.aiplatform.v1.FindNeighborsRequest.Query queries = 3;- Specified by:
getQueriesOrBuilderListin interfaceFindNeighborsRequestOrBuilder
-
addQueriesBuilder
The list of queries.
repeated .google.cloud.aiplatform.v1.FindNeighborsRequest.Query queries = 3; -
addQueriesBuilder
The list of queries.
repeated .google.cloud.aiplatform.v1.FindNeighborsRequest.Query queries = 3; -
getQueriesBuilderList
The list of queries.
repeated .google.cloud.aiplatform.v1.FindNeighborsRequest.Query queries = 3; -
getReturnFullDatapoint
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;- Specified by:
getReturnFullDatapointin interfaceFindNeighborsRequestOrBuilder- Returns:
- The returnFullDatapoint.
-
setReturnFullDatapoint
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;- Parameters:
value- The returnFullDatapoint to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-