Class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswerSelectedAnswer

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

This field specifies the selected answers during the conversational search.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswerSelectedAnswer

Returns a new instance of GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswerSelectedAnswer.



5146
5147
5148
# File 'lib/google/apis/retail_v2/classes.rb', line 5146

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

Instance Attribute Details

#product_attribute_valueGoogle::Apis::RetailV2::GoogleCloudRetailV2ProductAttributeValue

Product attribute which structured by an attribute name and value. This structure is used in conversational search filters and answers. For example, if we have name=color and value=red, this means that the color is red. Corresponds to the JSON property productAttributeValue



5139
5140
5141
# File 'lib/google/apis/retail_v2/classes.rb', line 5139

def product_attribute_value
  @product_attribute_value
end

#product_attribute_valuesArray<Google::Apis::RetailV2::GoogleCloudRetailV2ProductAttributeValue>

This field is deprecated and should not be set. Corresponds to the JSON property productAttributeValues



5144
5145
5146
# File 'lib/google/apis/retail_v2/classes.rb', line 5144

def product_attribute_values
  @product_attribute_values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5151
5152
5153
5154
# File 'lib/google/apis/retail_v2/classes.rb', line 5151

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