Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class RecommendResponse.
Response message for Recommend method.
Generated from protobuf message google.cloud.discoveryengine.v1.RecommendResponse
Namespace
Google \ Cloud \ DiscoveryEngine \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ results
array< Google\Cloud\DiscoveryEngine\V1\RecommendResponse\RecommendationResult
>
A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
↳ attribution_token
string
A unique attribution token. This should be included in the UserEvent logs resulting from this recommendation, which enables accurate attribution of recommendation model performance.
↳ missing_ids
array
IDs of documents in the request that were missing from the default Branch associated with the requested ServingConfig.
↳ validate_only
getResults
A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
setResults
A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
$this
getAttributionToken
A unique attribution token. This should be included in the UserEvent logs resulting from this recommendation, which enables accurate attribution of recommendation model performance.
string
setAttributionToken
A unique attribution token. This should be included in the UserEvent logs resulting from this recommendation, which enables accurate attribution of recommendation model performance.
var
string
$this
getMissingIds
IDs of documents in the request that were missing from the default Branch associated with the requested ServingConfig.
setMissingIds
IDs of documents in the request that were missing from the default Branch associated with the requested ServingConfig.
var
string[]
$this
getValidateOnly
True if RecommendRequest.validate_only was set.
bool
setValidateOnly
True if RecommendRequest.validate_only was set.
var
bool
$this