public sealed class PredictResponse : IMessage<PredictResponse>, IEquatable<PredictResponse>, IDeepCloneable<PredictResponse>, IBufferMessage, IMessage
Reference documentation and code samples for the Retail v2 API class PredictResponse.
A unique attribution token. This should be included in the
[UserEvent][google.cloud.retail.v2.UserEvent] logs resulting from this
recommendation, which enables accurate attribution of recommendation model
performance.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003ePredictResponse\u003c/code\u003e class is part of the Google Cloud Retail v2 API and is used as a response message for the predict method, which is available from version 1.0.0 to the latest version, 2.12.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePredictResponse\u003c/code\u003e implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, allowing for operations like message handling, equality checks, deep cloning, and buffer message usage.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides properties like \u003ccode\u003eAttributionToken\u003c/code\u003e, a string for tracking model performance, \u003ccode\u003eMissingIds\u003c/code\u003e, a list of missing product IDs, \u003ccode\u003eResults\u003c/code\u003e, a list of recommended products, and \u003ccode\u003eValidateOnly\u003c/code\u003e, a boolean to confirm the \u003ccode\u003evalidateOnly\u003c/code\u003e request property.\u003c/p\u003e\n"],["\u003cp\u003eConstructors for the \u003ccode\u003ePredictResponse\u003c/code\u003e class include a default constructor and one that accepts another \u003ccode\u003ePredictResponse\u003c/code\u003e object for copying.\u003c/p\u003e\n"]]],[],null,[]]