Class PredictResponse (2.0.0)

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

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
NameDescription
otherPredictResponse

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
TypeDescription
String

MissingIds

public RepeatedField<string> MissingIds { get; }

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

Property Value
TypeDescription
RepeatedField<String>

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
TypeDescription
RepeatedField<PredictResponse.Types.PredictionResult>

ValidateOnly

public bool ValidateOnly { get; set; }

True if the validateOnly property was set in the request.

Property Value
TypeDescription
Boolean