Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchResponseQueryExpansionInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/retail_v2alpha/classes.rb,
lib/google/apis/retail_v2alpha/representations.rb,
lib/google/apis/retail_v2alpha/representations.rb

Overview

Information describing query expansion including whether expansion has occurred.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2alphaSearchResponseQueryExpansionInfo

Returns a new instance of GoogleCloudRetailV2alphaSearchResponseQueryExpansionInfo.



3427
3428
3429
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3427

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

Instance Attribute Details

#expanded_queryBoolean Also known as: expanded_query?

Bool describing whether query expansion has occurred. Corresponds to the JSON property expandedQuery

Returns:

  • (Boolean)


3424
3425
3426
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3424

def expanded_query
  @expanded_query
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3432
3433
3434
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3432

def update!(**args)
  @expanded_query = args[:expanded_query] if args.key?(:expanded_query)
end