Retail V2 API - Class Google::Cloud::Retail::V2::Tile (v1.3.0)

Reference documentation and code samples for the Retail V2 API class Google::Cloud::Retail::V2::Tile.

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.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#product_attribute_interval

def product_attribute_interval() -> ::Google::Cloud::Retail::V2::ProductAttributeInterval
Returns
  • (::Google::Cloud::Retail::V2::ProductAttributeInterval) — The product attribute key-numeric interval.

    Note: The following fields are mutually exclusive: product_attribute_interval, product_attribute_value. If a field in that set is populated, all other fields in the set will automatically be cleared.

#product_attribute_interval=

def product_attribute_interval=(value) -> ::Google::Cloud::Retail::V2::ProductAttributeInterval
Parameter
  • value (::Google::Cloud::Retail::V2::ProductAttributeInterval) — The product attribute key-numeric interval.

    Note: The following fields are mutually exclusive: product_attribute_interval, product_attribute_value. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::Retail::V2::ProductAttributeInterval) — The product attribute key-numeric interval.

    Note: The following fields are mutually exclusive: product_attribute_interval, product_attribute_value. If a field in that set is populated, all other fields in the set will automatically be cleared.

#product_attribute_value

def product_attribute_value() -> ::Google::Cloud::Retail::V2::ProductAttributeValue
Returns
  • (::Google::Cloud::Retail::V2::ProductAttributeValue) — The product attribute key-value.

    Note: The following fields are mutually exclusive: product_attribute_value, product_attribute_interval. If a field in that set is populated, all other fields in the set will automatically be cleared.

#product_attribute_value=

def product_attribute_value=(value) -> ::Google::Cloud::Retail::V2::ProductAttributeValue
Parameter
  • value (::Google::Cloud::Retail::V2::ProductAttributeValue) — The product attribute key-value.

    Note: The following fields are mutually exclusive: product_attribute_value, product_attribute_interval. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::Retail::V2::ProductAttributeValue) — The product attribute key-value.

    Note: The following fields are mutually exclusive: product_attribute_value, product_attribute_interval. If a field in that set is populated, all other fields in the set will automatically be cleared.

#representative_product_id

def representative_product_id() -> ::String
Returns
  • (::String) — The representative product id for this tile.

#representative_product_id=

def representative_product_id=(value) -> ::String
Parameter
  • value (::String) — The representative product id for this tile.
Returns
  • (::String) — The representative product id for this tile.