Google Cloud Ai Platform V1 Client - Class NearestNeighbors (0.29.0)

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

Nearest neighbors for one query.

Generated from protobuf message google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors

Namespace

Google \ Cloud \ AIPlatform \ V1 \ FindNeighborsResponse

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ id string

The ID of the query datapoint.

↳ neighbors array<Google\Cloud\AIPlatform\V1\FindNeighborsResponse\Neighbor>

All its neighbors.

getId

The ID of the query datapoint.

Returns
TypeDescription
string

setId

The ID of the query datapoint.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getNeighbors

All its neighbors.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setNeighbors

All its neighbors.

Parameter
NameDescription
var array<Google\Cloud\AIPlatform\V1\FindNeighborsResponse\Neighbor>
Returns
TypeDescription
$this