Class: Google::Apis::CloudsearchV1::EnterpriseTopazSidekickAnswerSuggestedQueryCategory

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#categoryString

The query list category. Corresponds to the JSON property category

Returns:

  • (String)


1560
1561
1562
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1560

def category
  @category
end

#is_enabledBoolean Also known as: is_enabled?

Whether this category is enabled. Corresponds to the JSON property isEnabled

Returns:

  • (Boolean)


1565
1566
1567
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1565

def is_enabled
  @is_enabled
end

#queryArray<String>

List of suggested queries to show the user. Corresponds to the JSON property query

Returns:

  • (Array<String>)


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