Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCompleteQueryResponseAttributeResult

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

Resource that represents attribute results.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2alphaCompleteQueryResponseAttributeResult

Returns a new instance of GoogleCloudRetailV2alphaCompleteQueryResponseAttributeResult.



2326
2327
2328
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 2326

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

Instance Attribute Details

#suggestionsArray<String>

The list of suggestions for the attribute. Corresponds to the JSON property suggestions

Returns:

  • (Array<String>)


2324
2325
2326
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 2324

def suggestions
  @suggestions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2331
2332
2333
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 2331

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