Retail v2 API - Class PredictResponse (2.9.0)

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

Reference documentation and code samples for the Retail v2 API class PredictResponse.

Response message for predict method.

Inheritance

object > PredictResponse

Namespace

Google.Cloud.Retail.V2

Assembly

Google.Cloud.Retail.V2.dll

Constructors

PredictResponse()

public PredictResponse()

PredictResponse(PredictResponse)

public PredictResponse(PredictResponse other)
Parameter
Name Description
other PredictResponse

Properties

AttributionToken

public string AttributionToken { get; set; }

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.

Property Value
Type Description
string

MissingIds

public RepeatedField<string> MissingIds { get; }

IDs of products in the request that were missing from the inventory.

Property Value
Type Description
RepeatedFieldstring

Results

public RepeatedField<PredictResponse.Types.PredictionResult> Results { get; }

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

Property Value
Type Description
RepeatedFieldPredictResponseTypesPredictionResult

ValidateOnly

public bool ValidateOnly { get; set; }

True if the validateOnly property was set in the request.

Property Value
Type Description
bool