Class PredictResponse.Types.PredictionResult (1.1.0)

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

Object > PredictResponse.Types.PredictionResult

Namespace

Google.Cloud.Retail.V2

Assembly

Google.Cloud.Retail.V2.dll

Constructors

PredictionResult()

public PredictionResult()

PredictionResult(PredictResponse.Types.PredictionResult)

public PredictionResult(PredictResponse.Types.PredictionResult other)
Parameter
NameDescription
otherPredictResponse.Types.PredictionResult

Properties

Id

public string Id { get; set; }

ID of the recommended product

Property Value
TypeDescription
String

Metadata

public MapField<string, Value> Metadata { get; }

Additional product metadata / annotations.

Possible values:

  • product: JSON representation of the product. Will be set if returnProduct is set to true in PredictRequest.params.
  • score: Prediction score in double value. Will be set if returnScore is set to true in PredictRequest.params.
Property Value
TypeDescription
MapField<String, Value>