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

Request message for `UpdateProjectBillingInfo`.

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

## Namespace

Google \\ Cloud \\ Billing \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. The resource name of the project associated with the billing information that you want to update. For example, `projects/tokyo-rain-123`. |
| `↳ project_billing_info` | `https://docs.cloud.google.com/php/docs/reference/cloud-billing/latest/V1.ProjectBillingInfo` The new billing information for the project. Output-only fields are ignored; thus, you can leave empty all fields except `billing_account_name`. |

### getName

Required. The resource name of the project associated with the billing
information that you want to update. For example,
`projects/tokyo-rain-123`.

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

### setName

Required. The resource name of the project associated with the billing
information that you want to update. For example,
`projects/tokyo-rain-123`.

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

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

### getProjectBillingInfo

The new billing information for the project. Output-only fields are
ignored; thus, you can leave empty all fields except
`billing_account_name`.

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

### hasProjectBillingInfo

### clearProjectBillingInfo

### setProjectBillingInfo

The new billing information for the project. Output-only fields are
ignored; thus, you can leave empty all fields except
`billing_account_name`.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The resource name of the project associated with the billing information that you want to update. For example, `projects/tokyo-rain-123`. |
| `projectBillingInfo` | `https://docs.cloud.google.com/php/docs/reference/cloud-billing/latest/V1.ProjectBillingInfo` The new billing information for the project. Output-only fields are ignored; thus, you can leave empty all fields except `billing_account_name`. |

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