Google Cloud Ai Platform V1 Client - Class FindNeighborsRequest (0.25.0)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class FindNeighborsRequest.

The request message for MatchService.FindNeighbors.

Generated from protobuf message google.cloud.aiplatform.v1.FindNeighborsRequest

Namespace

Google \ Cloud \ AIPlatform \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ index_endpoint string

Required. The name of the index endpoint. Format: projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}

↳ deployed_index_id string

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.

↳ queries array<Google\Cloud\AIPlatform\V1\FindNeighborsRequest\Query>

The list of queries.

↳ return_full_datapoint bool

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.

getIndexEndpoint

Required. The name of the index endpoint.

Format: projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}

Returns
TypeDescription
string

setIndexEndpoint

Required. The name of the index endpoint.

Format: projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

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.

Returns
TypeDescription
string

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.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getQueries

The list of queries.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setQueries

The list of queries.

Parameter
NameDescription
var array<Google\Cloud\AIPlatform\V1\FindNeighborsRequest\Query>
Returns
TypeDescription
$this

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.

Returns
TypeDescription
bool

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.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this