public sealed class PredictResponse : IMessage<PredictResponse>, IEquatable<PredictResponse>, IDeepCloneable<PredictResponse>, IBufferMessage, IMessage
Response message for predict method.
Inheritance
System.Object > PredictResponseImplements
Google.Protobuf.IMessage<PredictResponse>, System.IEquatable<PredictResponse>, Google.Protobuf.IDeepCloneable<PredictResponse>, Google.Protobuf.IBufferMessage, Google.Protobuf.IMessageNamespace
Google.Cloud.Retail.V2Assembly
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 |
System.String |
MissingIds
public RepeatedField<string> MissingIds { get; }
IDs of products in the request that were missing from the inventory.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
System.Boolean |