Google Cloud Retail V2 Client - Class Tile (2.1.0)

Reference documentation and code samples for the Google Cloud Retail V2 Client class 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.

Generated from protobuf message google.cloud.retail.v2.Tile

Namespace

Google \ Cloud \ Retail \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ product_attribute_value Google\Cloud\Retail\V2\ProductAttributeValue

The product attribute key-value.

↳ product_attribute_interval Google\Cloud\Retail\V2\ProductAttributeInterval

The product attribute key-numeric interval.

↳ representative_product_id string

The representative product id for this tile.

getProductAttributeValue

The product attribute key-value.

Returns
Type Description
Google\Cloud\Retail\V2\ProductAttributeValue|null

hasProductAttributeValue

setProductAttributeValue

The product attribute key-value.

Parameter
Name Description
var Google\Cloud\Retail\V2\ProductAttributeValue
Returns
Type Description
$this

getProductAttributeInterval

The product attribute key-numeric interval.

Returns
Type Description
Google\Cloud\Retail\V2\ProductAttributeInterval|null

hasProductAttributeInterval

setProductAttributeInterval

The product attribute key-numeric interval.

Parameter
Name Description
var Google\Cloud\Retail\V2\ProductAttributeInterval
Returns
Type Description
$this

getRepresentativeProductId

The representative product id for this tile.

Returns
Type Description
string

setRepresentativeProductId

The representative product id for this tile.

Parameter
Name Description
var string
Returns
Type Description
$this

getProductAttribute

Returns
Type Description
string