Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCompleteQueryResponse
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCompleteQueryResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/retail_v2alpha/classes.rb,
lib/google/apis/retail_v2alpha/representations.rb,
lib/google/apis/retail_v2alpha/representations.rb
Overview
Response of the auto-complete query.
Instance Attribute Summary collapse
-
#attribution_token ⇒ String
A unique complete token.
-
#completion_results ⇒ Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCompleteQueryResponseCompletionResult>
Results of the matching suggestions.
-
#recent_search_results ⇒ Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCompleteQueryResponseRecentSearchResult>
Matched recent searches of this user.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2alphaCompleteQueryResponse
constructor
A new instance of GoogleCloudRetailV2alphaCompleteQueryResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2alphaCompleteQueryResponse
Returns a new instance of GoogleCloudRetailV2alphaCompleteQueryResponse.
1152 1153 1154 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1152 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attribution_token ⇒ String
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
1131 1132 1133 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1131 def attribution_token @attribution_token end |
#completion_results ⇒ Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCompleteQueryResponseCompletionResult>
Results of the matching suggestions. The result list is ordered and the first
result is top suggestion.
Corresponds to the JSON property completionResults
1137 1138 1139 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1137 def completion_results @completion_results end |
#recent_search_results ⇒ Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCompleteQueryResponseRecentSearchResult>
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
1150 1151 1152 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1150 def recent_search_results @recent_search_results end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1157 1158 1159 1160 1161 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1157 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 |