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

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<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<RankingRecord>
Returns
Type Description
$this