# Google Cloud Backup Dr V1 Client - Class ListBackupPlansResponse (0.13.0)

0.13.0 (latest) 0.12.1 0.11.1 0.10.0 0.9.0 0.8.1 0.7.0 0.6.2 0.5.1 0.4.2 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Backup Dr V1 Client class ListBackupPlansResponse.

The response message for getting a list of `BackupPlan`.

Generated from protobuf message `google.cloud.backupdr.v1.ListBackupPlansResponse`

## Namespace

Google \\ Cloud \\ BackupDR \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ backup_plans` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.BackupPlan>` The list of `BackupPlans` in the project for the specified location. If the `{location}` value in the request is "-", the response contains a list of resources from all locations. In case any location is unreachable, the response will only return backup plans in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations. BackupPlan |
| `↳ next_page_token` | `string` A token which may be sent as [page_token](https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.ListBackupPlansRequest#_Google_Cloud_BackupDR_V1_ListBackupPlansRequest__getPageToken__) in a subsequent `ListBackupPlans` call to retrieve the next page of results. If this field is omitted or empty, then there are no more results to return. |
| `↳ unreachable` | `string[]` Locations that could not be reached. |

### getBackupPlans

The list of `BackupPlans` in the project for the specified
location.

If the `{location}` value in the request is "-", the response contains a
list of resources from all locations. In case any location is unreachable,
the response will only return backup plans in reachable locations and
the 'unreachable' field will be populated with a list of unreachable
locations.
BackupPlan

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

### setBackupPlans

The list of `BackupPlans` in the project for the specified
location.

If the `{location}` value in the request is "-", the response contains a
list of resources from all locations. In case any location is unreachable,
the response will only return backup plans in reachable locations and
the 'unreachable' field will be populated with a list of unreachable
locations.
BackupPlan

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

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

### getNextPageToken

A token which may be sent as
[page_token](https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.ListBackupPlansRequest#_Google_Cloud_BackupDR_V1_ListBackupPlansRequest__getPageToken__) in
a subsequent `ListBackupPlans` call to retrieve the next page of results.

If this field is omitted or empty, then there are no more results to
return.

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

### setNextPageToken

A token which may be sent as
[page_token](https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.ListBackupPlansRequest#_Google_Cloud_BackupDR_V1_ListBackupPlansRequest__getPageToken__) in
a subsequent `ListBackupPlans` call to retrieve the next page of results.

If this field is omitted or empty, then there are no more results to
return.

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

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

### getUnreachable

Locations that could not be reached.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setUnreachable

Locations that could not be reached.

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

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