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.
1571 1572 1573 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1571 def initialize(**args) update!(**args) end |
Instance Attribute Details
#category ⇒ String
The query list category.
Corresponds to the JSON property category
1558 1559 1560 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1558 def category @category end |
#is_enabled ⇒ Boolean Also known as: is_enabled?
Whether this category is enabled.
Corresponds to the JSON property isEnabled
1563 1564 1565 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1563 def is_enabled @is_enabled end |
#query ⇒ Array<String>
List of suggested queries to show the user.
Corresponds to the JSON property query
1569 1570 1571 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1569 def query @query end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1576 1577 1578 1579 1580 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1576 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 |