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

Response message for predict method.

Attributes

  • attributionToken (type: String.t, default: nil) - A unique attribution token. This should be included in the UserEvent logs resulting from this recommendation, which enables accurate attribution of recommendation model performance.
  • missingIds (type: list(String.t), default: nil) - IDs of products in the request that were missing from the inventory.
  • results (type: list(GoogleApi.Retail.V2.Model.GoogleCloudRetailV2PredictResponsePredictionResult.t), default: nil) - A list of recommended products. The order represents the ranking (from the most relevant product to the least).
  • validateOnly (type: boolean(), default: nil) - True if the validateOnly property was set in the request.

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.GoogleCloudRetailV2PredictResponse{
  attributionToken: String.t() | nil,
  missingIds: [String.t()] | nil,
  results:
    [
      GoogleApi.Retail.V2.Model.GoogleCloudRetailV2PredictResponsePredictionResult.t()
    ]
    | nil,
  validateOnly: boolean() | nil
}

Link to this section Functions

Specs

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

Unwrap a decoded JSON object into its complex fields.