Discovery Engine v1beta API - Class RecommendResponse.Types.RecommendationResult (1.0.0-beta15)

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 v1beta API class RecommendResponse.Types.RecommendationResult.

RecommendationResult represents a generic recommendation result with associated metadata.

Inheritance

object > RecommendResponse.Types.RecommendationResult

Namespace

Google.Cloud.DiscoveryEngine.V1Beta

Assembly

Google.Cloud.DiscoveryEngine.V1Beta.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.v1beta.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 or annotations.

Possible values:

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