Class PredictResponse
Response message for predict method.
Inheritance
System.Object
PredictResponse
Inherited Members
System.Object.ToString()
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Cloud.Retail.V2
Assembly: Google.Cloud.Retail.V2.dll
Syntax
public sealed class PredictResponse : IMessage<PredictResponse>, IEquatable<PredictResponse>, IDeepCloneable<PredictResponse>, IBufferMessage, IMessage
Constructors
PredictResponse()
Declaration
public PredictResponse()
PredictResponse(PredictResponse)
Declaration
public PredictResponse(PredictResponse other)
Parameters
Type | Name | Description |
---|---|---|
PredictResponse | other |
Properties
AttributionToken
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.
Declaration
public string AttributionToken { get; set; }
Property Value
Type | Description |
---|---|
System.String |
MissingIds
IDs of products in the request that were missing from the inventory.
Declaration
public RepeatedField<string> MissingIds { get; }
Property Value
Type | Description |
---|---|
RepeatedField<System.String> |
Results
A list of recommended products. The order represents the ranking (from the most relevant product to the least).
Declaration
public RepeatedField<PredictResponse.Types.PredictionResult> Results { get; }
Property Value
Type | Description |
---|---|
RepeatedField<PredictResponse.Types.PredictionResult> |
ValidateOnly
True if the validateOnly property was set in the request.
Declaration
public bool ValidateOnly { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |