# Google Cloud Retail V2 Client - Class Tile (2.5.3)

2.5.3 (latest) 2.5.2 2.4.0 2.3.1 2.2.1 2.1.3 2.0.0 1.7.0 1.6.4 1.5.0 1.4.2 1.3.1 1.2.1 1.1.1 1.0.1 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` | `https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.ProductAttributeValue` The product attribute key-value. |
| `↳ product_attribute_interval` | `https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/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** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.ProductAttributeValue|null` |   |

### hasProductAttributeValue

### setProductAttributeValue

The product attribute key-value.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.ProductAttributeValue` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getProductAttributeInterval

The product attribute key-numeric interval.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.ProductAttributeInterval|null` |   |

### hasProductAttributeInterval

### setProductAttributeInterval

The product attribute key-numeric interval.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/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` |   |