Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompleteQueryResponse
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompleteQueryResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/retail_v2beta/classes.rb,
lib/google/apis/retail_v2beta/representations.rb,
lib/google/apis/retail_v2beta/representations.rb
Overview
Response of the autocomplete query.
Instance Attribute Summary collapse
-
#attribute_results ⇒ Hash<String,Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompleteQueryResponseAttributeResult>
A map of matched attribute suggestions.
-
#attribution_token ⇒ String
A unique complete token.
-
#completion_results ⇒ Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompleteQueryResponseCompletionResult>
Results of the matching suggestions.
-
#recent_search_results ⇒ Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompleteQueryResponseRecentSearchResult>
Deprecated.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2betaCompleteQueryResponse
constructor
A new instance of GoogleCloudRetailV2betaCompleteQueryResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2betaCompleteQueryResponse
Returns a new instance of GoogleCloudRetailV2betaCompleteQueryResponse.
3459 3460 3461 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3459 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attribute_results ⇒ Hash<String,Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompleteQueryResponseAttributeResult>
A map of matched attribute suggestions. This field is only available for "
cloud-retail" dataset. Current supported keys: * brands * categories
Corresponds to the JSON property attributeResults
3431 3432 3433 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3431 def attribute_results @attribute_results end |
#attribution_token ⇒ String
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.
Corresponds to the JSON property attributionToken
3438 3439 3440 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3438 def attribution_token @attribution_token end |
#completion_results ⇒ Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompleteQueryResponseCompletionResult>
Results of the matching suggestions. The result list is ordered and the first
result is top suggestion.
Corresponds to the JSON property completionResults
3444 3445 3446 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3444 def completion_results @completion_results end |
#recent_search_results ⇒ Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompleteQueryResponseRecentSearchResult>
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.
Corresponds to the JSON property
recentSearchResults
3457 3458 3459 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3457 def recent_search_results @recent_search_results end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3464 3465 3466 3467 3468 3469 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3464 def update!(**args) @attribute_results = args[:attribute_results] if args.key?(:attribute_results) @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 |