# Google Shopping Css V1 Client - Class AccountLabel (0.8.1)

0.8.1 (latest) 0.8.0 0.7.3 0.6.2 0.5.1 0.4.1 0.3.3 0.2.9 0.1.0 Reference documentation and code samples for the Google Shopping Css V1 Client class AccountLabel.

Label assigned by CSS domain or CSS group to one of its sub-accounts.

Generated from protobuf message `google.shopping.css.v1.AccountLabel`

## Namespace

Google \\ Shopping \\ Css \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. The resource name of the label. Format: accounts/{account}/labels/{label} |
| `↳ label_id` | `int|string` Output only. The ID of the label. |
| `↳ account_id` | `int|string` Output only. The ID of account this label belongs to. |
| `↳ display_name` | `string` The display name of this label. |
| `↳ description` | `string` The description of this label. |
| `↳ label_type` | `int` Output only. The type of this label. |

### getName

Identifier. The resource name of the label.

Format: accounts/{account}/labels/{label}

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

### setName

Identifier. The resource name of the label.

Format: accounts/{account}/labels/{label}

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

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

### getLabelId

Output only. The ID of the label.

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

### setLabelId

Output only. The ID of the label.

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

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

### getAccountId

Output only. The ID of account this label belongs to.

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

### setAccountId

Output only. The ID of account this label belongs to.

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

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

### getDisplayName

The display name of this label.

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

### hasDisplayName

### clearDisplayName

### setDisplayName

The display name of this label.

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

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

### getDescription

The description of this label.

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

### hasDescription

### clearDescription

### setDescription

The description of this label.

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

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

### getLabelType

Output only. The type of this label.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [LabelType](https://docs.cloud.google.com/php/docs/reference/shopping-css/latest/V1.AccountLabel.LabelType). |

### setLabelType

Output only. The type of this label.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [LabelType](https://docs.cloud.google.com/php/docs/reference/shopping-css/latest/V1.AccountLabel.LabelType). |

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