Class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchResponseConversationalSearchResultAdditionalFilter

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

Additional filter that client side need to apply.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2SearchResponseConversationalSearchResultAdditionalFilter

Returns a new instance of GoogleCloudRetailV2SearchResponseConversationalSearchResultAdditionalFilter.



5648
5649
5650
# File 'lib/google/apis/retail_v2/classes.rb', line 5648

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



5646
5647
5648
# File 'lib/google/apis/retail_v2/classes.rb', line 5646

def product_attribute_value
  @product_attribute_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5653
5654
5655
# File 'lib/google/apis/retail_v2/classes.rb', line 5653

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