Discovery Engine v1 API - Class RecommendResponse.Types.RecommendationResult (1.0.0-beta06)

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.

Inheritance

object > RecommendResponse.Types.RecommendationResult

Namespace

Google.Cloud.DiscoveryEngine.V1

Assembly

Google.Cloud.DiscoveryEngine.V1.dll

Constructors

RecommendationResult()

public RecommendationResult()

RecommendationResult(RecommendationResult)

public RecommendationResult(RecommendResponse.Types.RecommendationResult other)
Parameter
Name Description
other RecommendResponseTypesRecommendationResult

Properties

Document

public Document Document { get; set; }

Set if returnDocument is set to true in [RecommendRequest.params][google.cloud.discoveryengine.v1.RecommendRequest.params].

Property Value
Type Description
Document

Id

public string Id { get; set; }

Resource ID of the recommended Document.

Property Value
Type Description
string

Metadata

public MapField<string, Value> Metadata { get; }

Additional Document metadata / annotations.

Possible values:

  • score: Recommendation score in double value. Is set if returnScore is set to true in [RecommendRequest.params][google.cloud.discoveryengine.v1.RecommendRequest.params].
Property Value
Type Description
MapFieldstringValue