public sealed class PredictResponse.Types.PredictionResult : IMessage<PredictResponse.Types.PredictionResult>, IEquatable<PredictResponse.Types.PredictionResult>, IDeepCloneable<PredictResponse.Types.PredictionResult>, IBufferMessage, IMessageReference documentation and code samples for the Retail v2 API class PredictResponse.Types.PredictionResult.
PredictionResult represents the recommendation prediction results.
Implements
IMessagePredictResponseTypesPredictionResult, IEquatablePredictResponseTypesPredictionResult, IDeepCloneablePredictResponseTypesPredictionResult, IBufferMessage, IMessageNamespace
Google.Cloud.Retail.V2Assembly
Google.Cloud.Retail.V2.dll
Constructors
PredictionResult()
public PredictionResult()PredictionResult(PredictionResult)
public PredictionResult(PredictResponse.Types.PredictionResult other)| Parameter | |
|---|---|
| Name | Description | 
| other | PredictResponseTypesPredictionResult | 
Properties
Id
public string Id { get; set; }ID of the recommended product
| Property Value | |
|---|---|
| Type | Description | 
| string | |
Metadata
public MapField<string, Value> Metadata { get; }Additional product metadata / annotations.
Possible values:
- product: JSON representation of the product. Is set if- returnProductis set to true in- PredictRequest.params.
- score: Prediction score in double value. Is set if- returnScoreis set to true in- PredictRequest.params.
| Property Value | |
|---|---|
| Type | Description | 
| MapFieldstringValue | |