Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class RankingRecord.
Record message for RankService.Rank method.
Generated from protobuf message google.cloud.discoveryengine.v1.RankingRecord
Namespace
Google \ Cloud \ DiscoveryEngine \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ id
string
The unique ID to represent the record.
↳ title
↳ content
↳ score
float
The score of this record based on the given query and selected model.
getId
The unique ID to represent the record.
string
setId
The unique ID to represent the record.
var
string
$this
getTitle
The title of the record. Empty by default.
At least one of title or content should be set otherwise an INVALID_ARGUMENT error is thrown.
string
setTitle
The title of the record. Empty by default.
At least one of title or content should be set otherwise an INVALID_ARGUMENT error is thrown.
var
string
$this
getContent
The content of the record. Empty by default.
At least one of title or content should be set otherwise an INVALID_ARGUMENT error is thrown.
string
setContent
The content of the record. Empty by default.
At least one of title or content should be set otherwise an INVALID_ARGUMENT error is thrown.
var
string
$this
getScore
The score of this record based on the given query and selected model.
float
setScore
The score of this record based on the given query and selected model.
var
float
$this