GoogleApi.Retail.V2.Model.GoogleCloudRetailV2CompleteQueryResponse (google_api_retail v0.20.0)
View SourceResponse of the autocomplete query.
Attributes
-
attributeResults(type:%{optional(String.t) => GoogleApi.Retail.V2.Model.GoogleCloudRetailV2CompleteQueryResponseAttributeResult.t}, default:nil) - A map of matched attribute suggestions. This field is only available forcloud-retaildataset. Current supported keys:brandscategories -
attributionToken(type:String.t, default:nil) - A unique complete token. This should be included in the UserEvent.completion_detail for search events 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) - Deprecated. Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. If you want to enable it, contact Retail Search support. 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 case. They are UTF-8 safe. Recent searches are deduplicated. More recent searches will be reserved when duplication happens.
Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Types
@type t() :: %GoogleApi.Retail.V2.Model.GoogleCloudRetailV2CompleteQueryResponse{ attributeResults: %{ optional(String.t()) => GoogleApi.Retail.V2.Model.GoogleCloudRetailV2CompleteQueryResponseAttributeResult.t() } | nil, attributionToken: String.t() | nil, completionResults: [ GoogleApi.Retail.V2.Model.GoogleCloudRetailV2CompleteQueryResponseCompletionResult.t() ] | nil, recentSearchResults: [ GoogleApi.Retail.V2.Model.GoogleCloudRetailV2CompleteQueryResponseRecentSearchResult.t() ] | nil }