Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponseConversationalSearchResultSuggestedAnswer

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

Suggested answers to the follow-up question.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2betaSearchResponseConversationalSearchResultSuggestedAnswer

Returns a new instance of GoogleCloudRetailV2betaSearchResponseConversationalSearchResultSuggestedAnswer.



8262
8263
8264
# File 'lib/google/apis/retail_v2beta/classes.rb', line 8262

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



8260
8261
8262
# File 'lib/google/apis/retail_v2beta/classes.rb', line 8260

def product_attribute_value
  @product_attribute_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8267
8268
8269
# File 'lib/google/apis/retail_v2beta/classes.rb', line 8267

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