Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryResponseRecentSearchSuggestion

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

Overview

Suggestions from recent search history.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryResponseRecentSearchSuggestion

Returns a new instance of GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryResponseRecentSearchSuggestion.



4101
4102
4103
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4101

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)


4094
4095
4096
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4094

def recent_search_time
  @recent_search_time
end

#suggestionString

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

Returns:

  • (String)


4099
4100
4101
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4099

def suggestion
  @suggestion
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4106
4107
4108
4109
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4106

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