# Google Cloud Retail V2 Client - Class ProductAttributeValue (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 ProductAttributeValue.

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`.

Generated from protobuf message `google.cloud.retail.v2.ProductAttributeValue`

## Namespace

Google \\ Cloud \\ Retail \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` The attribute name. |
| `↳ value` | `string` The attribute value. |

### getName

The attribute name.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

The attribute name.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getValue

The attribute value.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setValue

The attribute value.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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