Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaWidgetCompleteQueryResponseWidgetQuerySuggestion

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 as search queries.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaWidgetCompleteQueryResponseWidgetQuerySuggestion

Returns a new instance of GoogleCloudDiscoveryengineV1alphaWidgetCompleteQueryResponseWidgetQuerySuggestion.



7250
7251
7252
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 7250

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

Instance Attribute Details

#suggestionString

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

Returns:

  • (String)


7248
7249
7250
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 7248

def suggestion
  @suggestion
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7255
7256
7257
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 7255

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