Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompletionDetail
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompletionDetail
- 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
Detailed completion information including completion attribution token and clicked completion info.
Instance Attribute Summary collapse
-
#completion_attribution_token ⇒ String
Completion attribution token in CompleteQueryResponse.attribution_token.
-
#selected_position ⇒ Fixnum
End user selected CompleteQueryResponse.CompletionResult.suggestion position, starting from 0.
-
#selected_suggestion ⇒ String
End user selected CompleteQueryResponse.CompletionResult.suggestion.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2betaCompletionDetail
constructor
A new instance of GoogleCloudRetailV2betaCompletionDetail.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2betaCompletionDetail
Returns a new instance of GoogleCloudRetailV2betaCompletionDetail.
3488 3489 3490 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3488 def initialize(**args) update!(**args) end |
Instance Attribute Details
#completion_attribution_token ⇒ String
Completion attribution token in CompleteQueryResponse.attribution_token.
Corresponds to the JSON property completionAttributionToken
3475 3476 3477 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3475 def completion_attribution_token @completion_attribution_token end |
#selected_position ⇒ Fixnum
End user selected CompleteQueryResponse.CompletionResult.suggestion position,
starting from 0.
Corresponds to the JSON property selectedPosition
3481 3482 3483 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3481 def selected_position @selected_position end |
#selected_suggestion ⇒ String
End user selected CompleteQueryResponse.CompletionResult.suggestion.
Corresponds to the JSON property selectedSuggestion
3486 3487 3488 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3486 def selected_suggestion @selected_suggestion end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3493 3494 3495 3496 3497 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3493 def update!(**args) @completion_attribution_token = args[:completion_attribution_token] if args.key?(:completion_attribution_token) @selected_position = args[:selected_position] if args.key?(:selected_position) @selected_suggestion = args[:selected_suggestion] if args.key?(:selected_suggestion) end |