public sealed class RecommendResponse.Types.RecommendationResult : IMessage<RecommendResponse.Types.RecommendationResult>, IEquatable<RecommendResponse.Types.RecommendationResult>, IDeepCloneable<RecommendResponse.Types.RecommendationResult>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1 API class RecommendResponse.Types.RecommendationResult.
RecommendationResult represents a generic recommendation result with
associated metadata.
score: Recommendation score in double value. Is set if
returnScore is set to true in
[RecommendRequest.params][google.cloud.discoveryengine.v1.RecommendRequest.params].
[[["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\u003eRecommendResponse.Types.RecommendationResult\u003c/code\u003e class represents a recommendation result within the Discovery Engine v1 API, containing associated metadata.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, indicating its capabilities for message handling, comparison, cloning, and buffering.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRecommendationResult\u003c/code\u003e class includes properties such as \u003ccode\u003eDocument\u003c/code\u003e, \u003ccode\u003eId\u003c/code\u003e, and \u003ccode\u003eMetadata\u003c/code\u003e, to store information about the recommended item, its resource ID, and additional metadata.\u003c/p\u003e\n"],["\u003cp\u003eThe metadata of a \u003ccode\u003eRecommendationResult\u003c/code\u003e can include a \u003ccode\u003escore\u003c/code\u003e if the returnScore is set to true in the request.\u003c/p\u003e\n"],["\u003cp\u003eMultiple versions of the API are provided for the \u003ccode\u003eRecommendResponse.Types.RecommendationResult\u003c/code\u003e, with the current latest version being 1.6.0.\u003c/p\u003e\n"]]],[],null,[]]