# Google Cloud Billing Budgets V1 Client - Class UpdateBudgetRequest (2.1.2)

2.1.2 (latest) 2.1.1 2.0.5 1.4.5 1.3.1 1.2.2 1.1.0 1.0.5 Reference documentation and code samples for the Google Cloud Billing Budgets V1 Client class UpdateBudgetRequest.

Request for UpdateBudget

Generated from protobuf message `google.cloud.billing.budgets.v1.UpdateBudgetRequest`

## Namespace

Google \\ Cloud \\ Billing \\ Budgets \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ budget` | `https://docs.cloud.google.com/php/docs/reference/cloud-billing-budgets/latest/V1.Budget` Required. The updated budget object. The budget to update is specified by the budget name in the budget. |
| `↳ update_mask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Optional. Indicates which fields in the provided budget to update. Read-only fields (such as `name`) cannot be changed. If this is not provided, then only fields with non-default values from the request are updated. See <https://developers.google.com/protocol-buffers/docs/proto3#default> for more details about default values. |

### getBudget

Required. The updated budget object.

The budget to update is specified by the budget name in the budget.

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

### hasBudget

### clearBudget

### setBudget

Required. The updated budget object.

The budget to update is specified by the budget name in the budget.

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

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

### getUpdateMask

Optional. Indicates which fields in the provided budget to update.

Read-only fields (such as `name`) cannot be changed. If this is not
provided, then only fields with non-default values from the request are
updated. See
<https://developers.google.com/protocol-buffers/docs/proto3#default> for more
details about default values.

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

### hasUpdateMask

### clearUpdateMask

### setUpdateMask

Optional. Indicates which fields in the provided budget to update.

Read-only fields (such as `name`) cannot be changed. If this is not
provided, then only fields with non-default values from the request are
updated. See
<https://developers.google.com/protocol-buffers/docs/proto3#default> for more
details about default values.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `budget` | `https://docs.cloud.google.com/php/docs/reference/cloud-billing-budgets/latest/V1.Budget` Required. The updated budget object. The budget to update is specified by the budget name in the budget. |
| `updateMask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Optional. Indicates which fields in the provided budget to update. Read-only fields (such as `name`) cannot be changed. If this is not provided, then only fields with non-default values from the request are updated. See <https://developers.google.com/protocol-buffers/docs/proto3#default> for more details about default values. |

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