Discovery Engine v1 API - Class RecommendResponse (1.0.0-beta06)

public sealed class RecommendResponse : IMessage<RecommendResponse>, IEquatable<RecommendResponse>, IDeepCloneable<RecommendResponse>, IBufferMessage, IMessage

Reference documentation and code samples for the Discovery Engine v1 API class RecommendResponse.

Response message for Recommend method.

Inheritance

object > RecommendResponse

Namespace

Google.Cloud.DiscoveryEngine.V1

Assembly

Google.Cloud.DiscoveryEngine.V1.dll

Constructors

RecommendResponse()

public RecommendResponse()

RecommendResponse(RecommendResponse)

public RecommendResponse(RecommendResponse other)
Parameter
Name Description
other RecommendResponse

Properties

AttributionToken

public string AttributionToken { get; set; }

A unique attribution token. This should be included in the [UserEvent][google.cloud.discoveryengine.v1.UserEvent] logs resulting from this recommendation, which enables accurate attribution of recommendation model performance.

Property Value
Type Description
string

MissingIds

public RepeatedField<string> MissingIds { get; }

IDs of documents in the request that were missing from the default Branch associated with the requested ServingConfig.

Property Value
Type Description
RepeatedFieldstring

Results

public RepeatedField<RecommendResponse.Types.RecommendationResult> Results { get; }

A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).

Property Value
Type Description
RepeatedFieldRecommendResponseTypesRecommendationResult

ValidateOnly

public bool ValidateOnly { get; set; }

True if [RecommendRequest.validate_only][google.cloud.discoveryengine.v1.RecommendRequest.validate_only] was set.

Property Value
Type Description
bool