# Interface MigrationSourceOrBuilder (0.16.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.16.0 (latest)](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.alloydb.v1.MigrationSourceOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.alloydb.v1.MigrationSourceOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.alloydb.v1.MigrationSourceOrBuilder)

    public interface MigrationSourceOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getHostPort()

    public abstract String getHostPort()

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

`string host_port = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The hostPort. |

### getHostPortBytes()

    public abstract ByteString getHostPortBytes()

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

`string host_port = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for hostPort. |

### getReferenceId()

    public abstract String getReferenceId()

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

`string reference_id = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The referenceId. |

### getReferenceIdBytes()

    public abstract ByteString getReferenceIdBytes()

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

`string reference_id = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for referenceId. |

### getSourceType()

    public abstract MigrationSource.MigrationSourceType getSourceType()

Output only. Type of migration source.

`.google.events.cloud.alloydb.v1.MigrationSource.MigrationSourceType source_type = 3;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.alloydb.v1.MigrationSource.MigrationSourceType` | The sourceType. |

### getSourceTypeValue()

    public abstract int getSourceTypeValue()

Output only. Type of migration source.

`.google.events.cloud.alloydb.v1.MigrationSource.MigrationSourceType source_type = 3;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for sourceType. |