# Interface SourceConfigOrBuilder (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.datastream.v1.SourceConfigOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.datastream.v1.SourceConfigOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.datastream.v1.SourceConfigOrBuilder)

    public interface SourceConfigOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getMysqlSourceConfig()

    public abstract MysqlSourceConfig getMysqlSourceConfig()

MySQL data source configuration.

`.google.events.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.datastream.v1.MysqlSourceConfig` | The mysqlSourceConfig. |

### getMysqlSourceConfigOrBuilder()

    public abstract MysqlSourceConfigOrBuilder getMysqlSourceConfigOrBuilder()

MySQL data source configuration.

`.google.events.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.datastream.v1.MysqlSourceConfigOrBuilder` |   |

### getOracleSourceConfig()

    public abstract OracleSourceConfig getOracleSourceConfig()

Oracle data source configuration.

`.google.events.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.datastream.v1.OracleSourceConfig` | The oracleSourceConfig. |

### getOracleSourceConfigOrBuilder()

    public abstract OracleSourceConfigOrBuilder getOracleSourceConfigOrBuilder()

Oracle data source configuration.

`.google.events.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.datastream.v1.OracleSourceConfigOrBuilder` |   |

### getPostgresqlSourceConfig()

    public abstract PostgresqlSourceConfig getPostgresqlSourceConfig()

PostgreSQL data source configuration.

`.google.events.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.datastream.v1.PostgresqlSourceConfig` | The postgresqlSourceConfig. |

### getPostgresqlSourceConfigOrBuilder()

    public abstract PostgresqlSourceConfigOrBuilder getPostgresqlSourceConfigOrBuilder()

PostgreSQL data source configuration.

`.google.events.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder` |   |

### getSourceConnectionProfile()

    public abstract String getSourceConnectionProfile()

Required. Source connection profile resoource.
Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`

`string source_connection_profile = 1;`

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

### getSourceConnectionProfileBytes()

    public abstract ByteString getSourceConnectionProfileBytes()

Required. Source connection profile resoource.
Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`

`string source_connection_profile = 1;`

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

### getSourceStreamConfigCase()

    public abstract SourceConfig.SourceStreamConfigCase getSourceStreamConfigCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.datastream.v1.SourceConfig.SourceStreamConfigCase` |   |

### hasMysqlSourceConfig()

    public abstract boolean hasMysqlSourceConfig()

MySQL data source configuration.

`.google.events.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the mysqlSourceConfig field is set. |

### hasOracleSourceConfig()

    public abstract boolean hasOracleSourceConfig()

Oracle data source configuration.

`.google.events.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the oracleSourceConfig field is set. |

### hasPostgresqlSourceConfig()

    public abstract boolean hasPostgresqlSourceConfig()

PostgreSQL data source configuration.

`.google.events.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the postgresqlSourceConfig field is set. |