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\u003eThis page provides reference documentation for the \u003ccode\u003ePredictResponse\u003c/code\u003e class within the Google Cloud Retail v2 API, detailing its structure and functionality.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003ePredictResponse\u003c/code\u003e documentation is version 2.12.0, with a range of previous versions available from 1.0.0 up to that version, while the version that this page is specifically on is 2.7.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePredictResponse\u003c/code\u003e is a sealed class that implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, which supports handling responses from prediction requests in the Retail API.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties like \u003ccode\u003eAttributionToken\u003c/code\u003e for tracking model performance, \u003ccode\u003eMissingIds\u003c/code\u003e for identifying absent products, \u003ccode\u003eResults\u003c/code\u003e for the list of recommendations, and \u003ccode\u003eValidateOnly\u003c/code\u003e for confirming request validation status.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePredictResponse\u003c/code\u003e class can be constructed either through a default constructor or by using another instance of \u003ccode\u003ePredictResponse\u003c/code\u003e as a parameter.\u003c/p\u003e\n"]]],[],null,[]]