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

Response of the auto-complete query.


  • attributionToken (type: String.t, default: nil) - A unique complete token. This should be included in the SearchRequest resulting from this completion, which enables accurate attribution of complete model performance.
  • completionResults (type: list(GoogleApi.Retail.V2.Model.GoogleCloudRetailV2CompleteQueryResponseCompletionResult.t), default: nil) - Results of the matching suggestions. The result list is ordered and the first result is top suggestion.
  • recentSearchResults (type: list(GoogleApi.Retail.V2.Model.GoogleCloudRetailV2CompleteQueryResponseRecentSearchResult.t), default: nil) - Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. Contact Retail Search support team if you are interested in enabling it. This feature is only available when CompleteQueryRequest.visitor_id field is set and UserEvent is imported. The recent searches satisfy the follow rules: They are ordered from latest to oldest. They are matched with CompleteQueryRequest.query case insensitively. They are transformed to lower cases. They are UTF-8 safe. Recent searches are deduplicated. More recent searches will be reserved when duplication happens.

Link to this section Summary


Unwrap a decoded JSON object into its complex fields.

Link to this section Types


t() :: %GoogleApi.Retail.V2.Model.GoogleCloudRetailV2CompleteQueryResponse{
  attributionToken: String.t() | nil,
    | nil,
    | nil

Link to this section Functions


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

Unwrap a decoded JSON object into its complex fields.