Google Cloud Ai Platform V1 Client - Class NearestNeighbors (1.2.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
Name Description
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
Type Description
string

setId

The ID of the query datapoint.

Parameter
Name Description
var string
Returns
Type Description
$this

getNeighbors

All its neighbors.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setNeighbors

All its neighbors.

Parameter
Name Description
var array<Google\Cloud\AIPlatform\V1\FindNeighborsResponse\Neighbor>
Returns
Type Description
$this