Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestConversationalSearchSpecUserAnswerSelectedAnswer
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestConversationalSearchSpecUserAnswerSelectedAnswer
- 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
This field specifies the selected answers during the conversational search.
Instance Attribute Summary collapse
-
#product_attribute_value ⇒ Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProductAttributeValue
Product attribute which structured by an attribute name and value.
-
#product_attribute_values ⇒ Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProductAttributeValue>
This field is deprecated and should not be set.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2alphaSearchRequestConversationalSearchSpecUserAnswerSelectedAnswer
constructor
A new instance of GoogleCloudRetailV2alphaSearchRequestConversationalSearchSpecUserAnswerSelectedAnswer.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2alphaSearchRequestConversationalSearchSpecUserAnswerSelectedAnswer
Returns a new instance of GoogleCloudRetailV2alphaSearchRequestConversationalSearchSpecUserAnswerSelectedAnswer.
7179 7180 7181 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 7179 def initialize(**args) update!(**args) end |
Instance Attribute Details
#product_attribute_value ⇒ Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProductAttributeValue
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
7172 7173 7174 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 7172 def product_attribute_value @product_attribute_value end |
#product_attribute_values ⇒ Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProductAttributeValue>
This field is deprecated and should not be set.
Corresponds to the JSON property productAttributeValues
7177 7178 7179 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 7177 def product_attribute_values @product_attribute_values end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7184 7185 7186 7187 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 7184 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 |