Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCompletionDetail

Inherits:
Object
  • Object
show all
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

Detailed completion information including completion attribution token and clicked completion info.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2alphaCompletionDetail

Returns a new instance of GoogleCloudRetailV2alphaCompletionDetail.



2508
2509
2510
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 2508

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#completion_attribution_tokenString

Completion attribution token in CompleteQueryResponse.attribution_token. Corresponds to the JSON property completionAttributionToken

Returns:

  • (String)


2495
2496
2497
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 2495

def completion_attribution_token
  @completion_attribution_token
end

#selected_positionFixnum

End user selected CompleteQueryResponse.CompletionResult.suggestion position, starting from 0. Corresponds to the JSON property selectedPosition

Returns:

  • (Fixnum)


2501
2502
2503
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 2501

def selected_position
  @selected_position
end

#selected_suggestionString

End user selected CompleteQueryResponse.CompletionResult.suggestion. Corresponds to the JSON property selectedSuggestion

Returns:

  • (String)


2506
2507
2508
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 2506

def selected_suggestion
  @selected_suggestion
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2513
2514
2515
2516
2517
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 2513

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