Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestConversationalSearchSpecUserAnswerSelectedAnswer

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/retail_v2beta/classes.rb,
lib/google/apis/retail_v2beta/representations.rb,
lib/google/apis/retail_v2beta/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) ⇒ GoogleCloudRetailV2betaSearchRequestConversationalSearchSpecUserAnswerSelectedAnswer

Returns a new instance of GoogleCloudRetailV2betaSearchRequestConversationalSearchSpecUserAnswerSelectedAnswer.



7739
7740
7741
# File 'lib/google/apis/retail_v2beta/classes.rb', line 7739

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

Instance Attribute Details

#product_attribute_valueGoogle::Apis::RetailV2beta::GoogleCloudRetailV2betaProductAttributeValue

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



7732
7733
7734
# File 'lib/google/apis/retail_v2beta/classes.rb', line 7732

def product_attribute_value
  @product_attribute_value
end

#product_attribute_valuesArray<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaProductAttributeValue>

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



7737
7738
7739
# File 'lib/google/apis/retail_v2beta/classes.rb', line 7737

def product_attribute_values
  @product_attribute_values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7744
7745
7746
7747
# File 'lib/google/apis/retail_v2beta/classes.rb', line 7744

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