View Source GoogleApi.Retail.V2.Model.GoogleCloudRetailV2CompleteQueryResponseCompletionResult (google_api_retail v0.10.0)

Resource that represents completion results.

Attributes

  • attributes (type: %{optional(String.t) => GoogleApi.Retail.V2.Model.GoogleCloudRetailV2CustomAttribute.t}, default: nil) - Custom attributes for the suggestion term. For "user-data", the attributes are additional custom attributes ingested through BigQuery. For "cloud-retail", the attributes are product attributes generated by Cloud Retail. It requires UserEvent.product_details is imported properly.
  • suggestion (type: String.t, default: nil) - The suggestion for the query.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.Retail.V2.Model.GoogleCloudRetailV2CompleteQueryResponseCompletionResult{
    attributes:
      %{
        optional(String.t()) =>
          GoogleApi.Retail.V2.Model.GoogleCloudRetailV2CustomAttribute.t()
      }
      | nil,
    suggestion: String.t() | nil
  }

Functions

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

Unwrap a decoded JSON object into its complex fields.