1.7.1 (latest) 1.7.0 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 MigrationSource.

Subset of the source instance configuration that is available when reading
the cluster resource.

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

## Namespace

Google \\ Cloud \\ AlloyDb \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ host_port` | `string` Output only. The host and port of the on-premises instance in host:port format |
| `↳ reference_id` | `string` Output only. Place holder for the external source identifier(e.g DMS job name) that created the cluster. |
| `↳ source_type` | `int` Output only. Type of migration source. |

### getHostPort

Output only. The host and port of the on-premises instance in host:port
format

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

### setHostPort

Output only. The host and port of the on-premises instance in host:port
format

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

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

### getReferenceId

Output only. Place holder for the external source identifier(e.g DMS job
name) that created the cluster.

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

### setReferenceId

Output only. Place holder for the external source identifier(e.g DMS job
name) that created the cluster.

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

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

### getSourceType

Output only. Type of migration source.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [MigrationSourceType](https://docs.cloud.google.com/php/docs/reference/cloud-alloydb/latest/V1.MigrationSource.MigrationSourceType). |

### setSourceType

Output only. Type of migration source.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [MigrationSourceType](https://docs.cloud.google.com/php/docs/reference/cloud-alloydb/latest/V1.MigrationSource.MigrationSourceType). |

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