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.



1540
1541
1542
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1540

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

Instance Attribute Details

#categoryString

The query list category. Corresponds to the JSON property category

Returns:

  • (String)


1527
1528
1529
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1527

def category
  @category
end

#is_enabledBoolean Also known as: is_enabled?

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

Returns:

  • (Boolean)


1532
1533
1534
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1532

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>)


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