# Google Cloud Billing Budgets V1 Client - Class CreateBudgetRequest (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 CreateBudgetRequest.

Request for CreateBudget

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The name of the billing account to create the budget in. Values are of the form `billingAccounts/{billingAccountId}`. |
| `↳ budget` | `https://docs.cloud.google.com/php/docs/reference/cloud-billing-budgets/latest/V1.Budget` Required. Budget to create. |

### getParent

Required. The name of the billing account to create the budget in. Values
are of the form `billingAccounts/{billingAccountId}`.

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

### setParent

Required. The name of the billing account to create the budget in. Values
are of the form `billingAccounts/{billingAccountId}`.

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

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

### getBudget

Required. Budget to create.

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

### hasBudget

### clearBudget

### setBudget

Required. Budget to create.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The name of the billing account to create the budget in. Values are of the form `billingAccounts/{billingAccountId}`. Please see BudgetServiceClient::billingAccountName() for help formatting this field. |
| `budget` | `https://docs.cloud.google.com/php/docs/reference/cloud-billing-budgets/latest/V1.Budget` Required. Budget to create. |

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