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

Response message for `ListBillingAccounts`.

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

## Namespace

Google \\ Cloud \\ Billing \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ billing_accounts` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-billing/latest/V1.BillingAccount>` A list of billing accounts. |
| `↳ next_page_token` | `string` A token to retrieve the next page of results. To retrieve the next page, call `ListBillingAccounts` again with the `page_token` field set to this value. This field is empty if there are no more results to retrieve. |

### getBillingAccounts

A list of billing accounts.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-billing/latest/V1.BillingAccount>` |   |

### setBillingAccounts

A list of billing accounts.

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

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

### getNextPageToken

A token to retrieve the next page of results. To retrieve the next page,
call `ListBillingAccounts` again with the `page_token` field set to this
value. This field is empty if there are no more results to retrieve.

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

### setNextPageToken

A token to retrieve the next page of results. To retrieve the next page,
call `ListBillingAccounts` again with the `page_token` field set to this
value. This field is empty if there are no more results to retrieve.

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

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