Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaTile

Inherits:
Object
  • Object
show all
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 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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2alphaTile

Returns a new instance of GoogleCloudRetailV2alphaTile.



8240
8241
8242
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 8240

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

Instance Attribute Details

#product_attribute_intervalGoogle::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProductAttributeInterval

Product attribute name and numeric interval. Corresponds to the JSON property productAttributeInterval



8226
8227
8228
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 8226

def product_attribute_interval
  @product_attribute_interval
end

#product_attribute_valueGoogle::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



8233
8234
8235
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 8233

def product_attribute_value
  @product_attribute_value
end

#representative_product_idString

The representative product id for this tile. Corresponds to the JSON property representativeProductId

Returns:

  • (String)


8238
8239
8240
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 8238

def representative_product_id
  @representative_product_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8245
8246
8247
8248
8249
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 8245

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