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.
1540 1541 1542 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1540 def initialize(**args) update!(**args) end |
Instance Attribute Details
#category ⇒ String
The query list category.
Corresponds to the JSON property category
1527 1528 1529 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1527 def category @category end |
#is_enabled ⇒ Boolean Also known as: is_enabled?
Whether this category is enabled.
Corresponds to the JSON property isEnabled
1532 1533 1534 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1532 def is_enabled @is_enabled end |
#query ⇒ Array<String>
List of suggested queries to show the user.
Corresponds to the JSON property query
1538 1539 1540 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1538 def query @query end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1545 1546 1547 1548 1549 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1545 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 |