Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryResponseRecentSearchSuggestion

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1beta/classes.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb

Overview

Suggestions from recent search history.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryResponseRecentSearchSuggestion

Returns a new instance of GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryResponseRecentSearchSuggestion.



18906
18907
18908
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 18906

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

Instance Attribute Details

#recent_search_timeString

The time when this recent rearch happened. Corresponds to the JSON property recentSearchTime

Returns:

  • (String)


18894
18895
18896
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 18894

def recent_search_time
  @recent_search_time
end

#scoreFloat

The score of each suggestion. The score is in the range of [0, 1]. Corresponds to the JSON property score

Returns:

  • (Float)


18899
18900
18901
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 18899

def score
  @score
end

#suggestionString

The suggestion for the query. Corresponds to the JSON property suggestion

Returns:

  • (String)


18904
18905
18906
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 18904

def suggestion
  @suggestion
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18911
18912
18913
18914
18915
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 18911

def update!(**args)
  @recent_search_time = args[:recent_search_time] if args.key?(:recent_search_time)
  @score = args[:score] if args.key?(:score)
  @suggestion = args[:suggestion] if args.key?(:suggestion)
end