Class: Google::Apis::CloudsearchV1::EnterpriseTopazSidekickAnswerSuggestedQueryCategory
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::EnterpriseTopazSidekickAnswerSuggestedQueryCategory
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Overview
Contains a list of suggested queries for a single category.
Instance Attribute Summary collapse
-
#category ⇒ String
The query list category.
-
#is_enabled ⇒ Boolean
(also: #is_enabled?)
Whether this category is enabled.
-
#query ⇒ Array<String>
List of suggested queries to show the user.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EnterpriseTopazSidekickAnswerSuggestedQueryCategory
constructor
A new instance of EnterpriseTopazSidekickAnswerSuggestedQueryCategory.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EnterpriseTopazSidekickAnswerSuggestedQueryCategory
Returns a new instance of EnterpriseTopazSidekickAnswerSuggestedQueryCategory.
1573 1574 1575 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1573 def initialize(**args) update!(**args) end |
Instance Attribute Details
#category ⇒ String
The query list category.
Corresponds to the JSON property category
1560 1561 1562 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1560 def category @category end |
#is_enabled ⇒ Boolean Also known as: is_enabled?
Whether this category is enabled.
Corresponds to the JSON property isEnabled
1565 1566 1567 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1565 def is_enabled @is_enabled end |
#query ⇒ Array<String>
List of suggested queries to show the user.
Corresponds to the JSON property query
1571 1572 1573 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1571 def query @query end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1578 1579 1580 1581 1582 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1578 def update!(**args) @category = args[:category] if args.key?(:category) @is_enabled = args[:is_enabled] if args.key?(:is_enabled) @query = args[:query] if args.key?(:query) end |