Class: Google::Apis::RetailV2::GoogleCloudRetailV2CompleteQueryResponseAttributeResult

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

Overview

Resource that represents attribute results. The list of suggestions for the attribute.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2CompleteQueryResponseAttributeResult

Returns a new instance of GoogleCloudRetailV2CompleteQueryResponseAttributeResult.



1098
1099
1100
# File 'lib/google/apis/retail_v2/classes.rb', line 1098

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

Instance Attribute Details

#suggestionsArray<String>

Corresponds to the JSON property suggestions

Returns:

  • (Array<String>)


1096
1097
1098
# File 'lib/google/apis/retail_v2/classes.rb', line 1096

def suggestions
  @suggestions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1103
1104
1105
# File 'lib/google/apis/retail_v2/classes.rb', line 1103

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