public sealed class PredictionResult : IMessage<PredictResponse.Types.PredictionResult>, IEquatable<PredictResponse.Types.PredictionResult>, IDeepCloneable<PredictResponse.Types.PredictionResult>, IBufferMessage, IMessage
PredictionResult represents the recommendation prediction results.
Inheritance
System.Object > PredictResponse.Types.PredictionResultImplements
Google.Protobuf.IMessage<PredictResponse.Types.PredictionResult>, System.IEquatable<PredictResponse.Types.PredictionResult>, Google.Protobuf.IDeepCloneable<PredictResponse.Types.PredictionResult>, Google.Protobuf.IBufferMessage, Google.Protobuf.IMessageNamespace
Google.Cloud.Retail.V2Assembly
Google.Cloud.Retail.V2.dll
Constructors
PredictionResult()
public PredictionResult()
PredictionResult(PredictResponse.Types.PredictionResult)
public PredictionResult(PredictResponse.Types.PredictionResult other)
Parameter | |
---|---|
Name | Description |
other | PredictResponse.Types.PredictionResult |
Properties
Id
public string Id { get; set; }
ID of the recommended product
Property Value | |
---|---|
Type | Description |
System.String |
Metadata
public MapField<string, Value> Metadata { get; }
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
.
Property Value | |
---|---|
Type | Description |
Google.Protobuf.Collections.MapField<System.String, Google.Protobuf.WellKnownTypes.Value> |