1.8.4 (latest) 1.7.1 1.6.3 1.5.0 1.4.1 1.3.0 1.2.0 1.1.3 1.0.0 0.10.3 0.9.0 0.8.0 0.7.1 0.6.0 0.5.0 0.4.0 0.3.0 0.2.1 0.1.3 Reference documentation and code samples for the Google Cloud AlloyDB for PostgreSQL V1 Client class RestoreFromCloudSQLRequest.

Message for registering Restoring from CloudSQL resource.

Generated from protobuf message `google.cloud.alloydb.v1.RestoreFromCloudSQLRequest`

## Namespace

Google \\ Cloud \\ AlloyDb \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ cloudsql_backup_run_source` | `https://docs.cloud.google.com/php/docs/reference/cloud-alloydb/latest/V1.CloudSQLBackupRunSource` Cluster created from CloudSQL backup run. |
| `↳ parent` | `string` Required. The location of the new cluster. For the required format, see the comment on Cluster.name field. |
| `↳ cluster_id` | `string` Required. ID of the requesting object. |
| `↳ cluster` | `https://docs.cloud.google.com/php/docs/reference/cloud-alloydb/latest/V1.Cluster` Required. The resource being created |

### getCloudsqlBackupRunSource

Cluster created from CloudSQL backup run.

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

### hasCloudsqlBackupRunSource

### setCloudsqlBackupRunSource

Cluster created from CloudSQL backup run.

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

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

### getParent

Required. The location of the new cluster. For the required format, see the
comment on Cluster.name field.

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

### setParent

Required. The location of the new cluster. For the required format, see the
comment on Cluster.name field.

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

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

### getClusterId

Required. ID of the requesting object.

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

### setClusterId

Required. ID of the requesting object.

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

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

### getCluster

Required. The resource being created

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

### hasCluster

### clearCluster

### setCluster

Required. The resource being created

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

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

### getSource

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The location of the new cluster. For the required format, see the comment on Cluster.name field. Please see AlloyDBCSQLAdminClient::locationName() for help formatting this field. |
| `clusterId` | `string` Required. ID of the requesting object. |

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