# Google Cloud Billing V1 Client - Class UpdateBillingAccountRequest (2.2.2)

2.2.2 (latest) 2.2.1 2.1.3 2.0.1 1.9.8 1.8.0 1.7.5 1.6.0 1.5.6 Reference documentation and code samples for the Google Cloud Billing V1 Client class UpdateBillingAccountRequest.

Request message for `UpdateBillingAccount`.

Generated from protobuf message `google.cloud.billing.v1.UpdateBillingAccountRequest`

## Namespace

Google \\ Cloud \\ Billing \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. The name of the billing account resource to be updated. |
| `↳ account` | `https://docs.cloud.google.com/php/docs/reference/cloud-billing/latest/V1.BillingAccount` Required. The billing account resource to replace the resource on the server. |
| `↳ update_mask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` The update mask applied to the resource. Only "display_name" is currently supported. |

### getName

Required. The name of the billing account resource to be updated.

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

### setName

Required. The name of the billing account resource to be updated.

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

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

### getAccount

Required. The billing account resource to replace the resource on the
server.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-billing/latest/V1.BillingAccount|null` |   |

### hasAccount

### clearAccount

### setAccount

Required. The billing account resource to replace the resource on the
server.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-billing/latest/V1.BillingAccount` |

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

### getUpdateMask

The update mask applied to the resource.

Only "display_name" is currently supported.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask|null` |   |

### hasUpdateMask

### clearUpdateMask

### setUpdateMask

The update mask applied to the resource.

Only "display_name" is currently supported.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` |

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the billing account resource to be updated. Please see CloudBillingClient::billingAccountName() for help formatting this field. |
| `account` | `https://docs.cloud.google.com/php/docs/reference/cloud-billing/latest/V1.BillingAccount` Required. The billing account resource to replace the resource on the server. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-billing/latest/V1.UpdateBillingAccountRequest` |   |