Reference documentation and code samples for the Google Cloud Recommendation Engine V1beta1 Client class PredictResponse.
Response message for predict method.
Generated from protobuf message google.cloud.recommendationengine.v1beta1.PredictResponse
Namespace
Google \ Cloud \ RecommendationEngine \ V1beta1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ results
array< PredictResponse\PredictionResult
>
A list of recommended items. The order represents the ranking (from the most relevant item to the least).
↳ recommendation_token
string
A unique recommendation token. This should be included in the user event logs resulting from this recommendation, which enables accurate attribution of recommendation model performance.
↳ items_missing_in_catalog
array
IDs of items in the request that were missing from the catalog.
↳ dry_run
bool
True if the dryRun property was set in the request.
↳ metadata
↳ next_page_token
string
If empty, the list is complete. If nonempty, the token to pass to the next request's PredictRequest.page_token.
getResults
A list of recommended items. The order represents the ranking (from the most relevant item to the least).
setResults
A list of recommended items. The order represents the ranking (from the most relevant item to the least).
$this
getRecommendationToken
A unique recommendation token. This should be included in the user event logs resulting from this recommendation, which enables accurate attribution of recommendation model performance.
string
setRecommendationToken
A unique recommendation token. This should be included in the user event logs resulting from this recommendation, which enables accurate attribution of recommendation model performance.
var
string
$this
getItemsMissingInCatalog
IDs of items in the request that were missing from the catalog.
setItemsMissingInCatalog
IDs of items in the request that were missing from the catalog.
var
string[]
$this
getDryRun
True if the dryRun property was set in the request.
bool
setDryRun
True if the dryRun property was set in the request.
var
bool
$this
getMetadata
Additional domain specific prediction response metadata.
setMetadata
Additional domain specific prediction response metadata.
$this
getNextPageToken
If empty, the list is complete. If nonempty, the token to pass to the next request's PredictRequest.page_token.
string
setNextPageToken
If empty, the list is complete. If nonempty, the token to pass to the next request's PredictRequest.page_token.
var
string
$this