Class PredictResponse (1.0.0)

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

Response message for predict method.

Inheritance

System.Object > PredictResponse

Implements

Google.Protobuf.IMessage<PredictResponse>, System.IEquatable<PredictResponse>, Google.Protobuf.IDeepCloneable<PredictResponse>, Google.Protobuf.IBufferMessage, Google.Protobuf.IMessage

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
System.String

MissingIds

public RepeatedField<string> MissingIds { get; }

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

Property Value
TypeDescription
Google.Protobuf.Collections.RepeatedField<System.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
Google.Protobuf.Collections.RepeatedField<PredictResponse.Types.PredictionResult>

ValidateOnly

public bool ValidateOnly { get; set; }

True if the validateOnly property was set in the request.

Property Value
TypeDescription
System.Boolean