Class PredictResponse

Response message for predict method.

Attributes
NameDescription
Sequence[google.cloud.retail_v2.types.PredictResponse.PredictionResult]results
A list of recommended products. The order represents the ranking (from the most relevant product to the least).
strattribution_token
A unique attribution token. This should be included in the UserEvent logs resulting from this recommendation, which enables accurate attribution of recommendation model performance.
Sequence[str]missing_ids
IDs of products in the request that were missing from the inventory.
boolvalidate_only
True if the validateOnly property was set in the request.

Inheritance

builtins.object > proto.message.Message > PredictResponse

Classes

PredictionResult

PredictionResult(mapping=None, *, ignore_unknown_fields=False, **kwargs)

PredictionResult represents the recommendation prediction results.