GoogleApi.RecommendationEngine.V1beta1.Model.GoogleCloudRecommendationengineV1beta1PredictResponsePredictionResult (google_api_recommendation_engine v0.3.1) View Source

PredictionResult represents the recommendation prediction results.

Attributes

  • id (type: String.t, default: nil) - ID of the recommended catalog item
  • itemMetadata (type: map(), default: nil) - Additional item metadata / annotations. Possible values: catalogItem: JSON representation of the catalogItem. Will be set if returnCatalogItem is set to true in PredictRequest.params. score: Prediction score in double value. Will be set if returnItemScore 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.RecommendationEngine.V1beta1.Model.GoogleCloudRecommendationengineV1beta1PredictResponsePredictionResult{
    id: String.t(),
    itemMetadata: map()
  }

Link to this section Functions

Specs

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

Unwrap a decoded JSON object into its complex fields.