class Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompleteQueryResponse
Response of the auto-complete query.
Attributes
A unique complete token. This should be included in the SearchRequest resulting from this completion, which enables accurate attribution of complete model performance. Corresponds to the JSON property `attributionToken` @return [String]
Results of the matching suggestions. The result list is ordered and the first result is top suggestion. Corresponds to the JSON property `completionResults` @return [Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompleteQueryResponseCompletionResult>]
Matched recent searches of this user. The maximum number of recent searches is
-
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. Corresponds to the JSON property `recentSearchResults` @return [Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompleteQueryResponseRecentSearchResult>]
Public Class Methods
# File lib/google/apis/retail_v2beta/classes.rb, line 1357 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/retail_v2beta/classes.rb, line 1362 def update!(**args) @attribution_token = args[:attribution_token] if args.key?(:attribution_token) @completion_results = args[:completion_results] if args.key?(:completion_results) @recent_search_results = args[:recent_search_results] if args.key?(:recent_search_results) end