View Source GoogleApi.Retail.V2.Model.GoogleCloudRetailV2PredictResponsePredictionResult (google_api_retail v0.3.0)

PredictionResult represents the recommendation prediction results.

Attributes

  • id (type: String.t, default: nil) - ID of the recommended product
  • metadata (type: map(), default: nil) - 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.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() ::
  %GoogleApi.Retail.V2.Model.GoogleCloudRetailV2PredictResponsePredictionResult{
    id: String.t() | nil,
    metadata: map() | nil
  }

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.