View Source GoogleApi.Retail.V2.Model.GoogleCloudRetailV2PredictResponsePredictionResult (google_api_retail v0.10.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. Is set if returnProduct is set to true in PredictRequest.params. score: Prediction score in double value. Is set if returnScore is set to true in PredictRequest.params.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

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

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.