Class PredictResponse.Types.PredictionResult
PredictionResult represents the recommendation prediction results.
Inheritance
System.Object
PredictResponse.Types.PredictionResult
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 PredictionResult : IMessage<PredictResponse.Types.PredictionResult>, IEquatable<PredictResponse.Types.PredictionResult>, IDeepCloneable<PredictResponse.Types.PredictionResult>, IBufferMessage, IMessage
Constructors
PredictionResult()
Declaration
public PredictionResult()
PredictionResult(PredictResponse.Types.PredictionResult)
Declaration
public PredictionResult(PredictResponse.Types.PredictionResult other)
Parameters
Type | Name | Description |
---|---|---|
PredictResponse.Types.PredictionResult | other |
Properties
Id
ID of the recommended product
Declaration
public string Id { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Metadata
Additional product metadata / annotations.
Possible values:
product
: JSON representation of the product. Will be set ifreturnProduct
is set to true inPredictRequest.params
.score
: Prediction score in double value. Will be set ifreturnScore
is set to true inPredictRequest.params
.
Declaration
public MapField<string, Value> Metadata { get; }
Property Value
Type | Description |
---|---|
MapField<System.String, Value> |