# Google Shopping Css V1 Client - Class UpdateAccountLabelsRequest (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 UpdateAccountLabelsRequest.

The request message for the `UpdateLabels` method.

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

## Namespace

Google \\ Shopping \\ Css \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. The label resource name. Format: accounts/{account} |
| `↳ label_ids` | `int[]|string[]` The list of label IDs to overwrite the existing account label IDs. If the list is empty, all currently assigned label IDs will be deleted. |
| `↳ parent` | `string` Optional. Only required when updating MC account labels. The CSS domain that is the parent resource of the MC account. Format: accounts/{account} |

### getName

Required. The label resource name.

Format: accounts/{account}

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

### setName

Required. The label resource name.

Format: accounts/{account}

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

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

### getLabelIds

The list of label IDs to overwrite the existing account label IDs.

If the list is empty, all currently assigned label IDs will be deleted.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<int>|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setLabelIds

The list of label IDs to overwrite the existing account label IDs.

If the list is empty, all currently assigned label IDs will be deleted.

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

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

### getParent

Optional. Only required when updating MC account labels.

The CSS domain that is the parent resource of the MC account.
Format: accounts/{account}

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

### hasParent

### clearParent

### setParent

Optional. Only required when updating MC account labels.

The CSS domain that is the parent resource of the MC account.
Format: accounts/{account}

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The label resource name. Format: accounts/{account} Please see AccountsServiceClient::accountName() for help formatting this field. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/shopping-css/latest/V1.UpdateAccountLabelsRequest` |   |