Google Cloud Discovery Engine V1 Client - Class RankResponse (1.1.0)

Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class RankResponse.

Response message for RankService.Rank method.

Generated from protobuf message google.cloud.discoveryengine.v1.RankResponse

Namespace

Google \ Cloud \ DiscoveryEngine \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ records array<Google\Cloud\DiscoveryEngine\V1\RankingRecord>

A list of records sorted by descending score.

getRecords

A list of records sorted by descending score.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setRecords

A list of records sorted by descending score.

Parameter
Name Description
var array<Google\Cloud\DiscoveryEngine\V1\RankingRecord>
Returns
Type Description
$this