Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryResponseRecentSearchSuggestion
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryResponseRecentSearchSuggestion
- 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
-
#recent_search_time ⇒ String
The time when this recent rearch happened.
-
#score ⇒ Float
The score of each suggestion.
-
#suggestion ⇒ String
The suggestion for the query.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryResponseRecentSearchSuggestion
constructor
A new instance of GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryResponseRecentSearchSuggestion.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryResponseRecentSearchSuggestion
Returns a new instance of GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryResponseRecentSearchSuggestion.
18002 18003 18004 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 18002 def initialize(**args) update!(**args) end |
Instance Attribute Details
#recent_search_time ⇒ String
The time when this recent rearch happened.
Corresponds to the JSON property recentSearchTime
17990 17991 17992 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 17990 def recent_search_time @recent_search_time end |
#score ⇒ Float
The score of each suggestion. The score is in the range of [0, 1].
Corresponds to the JSON property score
17995 17996 17997 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 17995 def score @score end |
#suggestion ⇒ String
The suggestion for the query.
Corresponds to the JSON property suggestion
18000 18001 18002 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 18000 def suggestion @suggestion end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
18007 18008 18009 18010 18011 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 18007 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 |