Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaTile
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2beta::GoogleCloudRetailV2betaTile
- 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 tile information including an attribute key, attribute value. More fields will be added in the future, eg: product id or product counts, etc.
Instance Attribute Summary collapse
-
#product_attribute_interval ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaProductAttributeInterval
Product attribute name and numeric interval.
-
#product_attribute_value ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaProductAttributeValue
Product attribute which structured by an attribute name and value.
-
#representative_product_id ⇒ String
The representative product id for this tile.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2betaTile
constructor
A new instance of GoogleCloudRetailV2betaTile.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2betaTile
Returns a new instance of GoogleCloudRetailV2betaTile.
8908 8909 8910 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 8908 def initialize(**args) update!(**args) end |
Instance Attribute Details
#product_attribute_interval ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaProductAttributeInterval
Product attribute name and numeric interval.
Corresponds to the JSON property productAttributeInterval
8894 8895 8896 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 8894 def product_attribute_interval @product_attribute_interval end |
#product_attribute_value ⇒ Google::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
8901 8902 8903 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 8901 def product_attribute_value @product_attribute_value end |
#representative_product_id ⇒ String
The representative product id for this tile.
Corresponds to the JSON property representativeProductId
8906 8907 8908 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 8906 def representative_product_id @representative_product_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8913 8914 8915 8916 8917 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 8913 def update!(**args) @product_attribute_interval = args[:product_attribute_interval] if args.key?(:product_attribute_interval) @product_attribute_value = args[:product_attribute_value] if args.key?(:product_attribute_value) @representative_product_id = args[:representative_product_id] if args.key?(:representative_product_id) end |