# Google Cloud Datastream V1 Client - Class SourceConfig (2.5.3)

2.5.3 (latest) 2.5.2 2.4.0 2.3.1 2.2.0 2.1.1 2.0.1 1.5.5 1.4.2 1.3.0 1.2.1 1.1.0 1.0.5 Reference documentation and code samples for the Google Cloud Datastream V1 Client class SourceConfig.

The configuration of the stream source.

Generated from protobuf message `google.cloud.datastream.v1.SourceConfig`

## Namespace

Google \\ Cloud \\ Datastream \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ source_connection_profile` | `string` Required. Source connection profile resource. Format: `projects/{project}/locations/{location}/connectionProfiles/{name}` |
| `↳ oracle_source_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-datastream/latest/V1.OracleSourceConfig` Oracle data source configuration. |
| `↳ mysql_source_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-datastream/latest/V1.MysqlSourceConfig` MySQL data source configuration. |
| `↳ postgresql_source_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-datastream/latest/V1.PostgresqlSourceConfig` PostgreSQL data source configuration. |
| `↳ sql_server_source_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-datastream/latest/V1.SqlServerSourceConfig` SQLServer data source configuration. |
| `↳ salesforce_source_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-datastream/latest/V1.SalesforceSourceConfig` Salesforce data source configuration. |
| `↳ mongodb_source_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-datastream/latest/V1.MongodbSourceConfig` MongoDB data source configuration. |

### getSourceConnectionProfile

Required. Source connection profile resource.

Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`

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

### setSourceConnectionProfile

Required. Source connection profile resource.

Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`

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

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

### getOracleSourceConfig

Oracle data source configuration.

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

### hasOracleSourceConfig

### setOracleSourceConfig

Oracle data source configuration.

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

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

### getMysqlSourceConfig

MySQL data source configuration.

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

### hasMysqlSourceConfig

### setMysqlSourceConfig

MySQL data source configuration.

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

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

### getPostgresqlSourceConfig

PostgreSQL data source configuration.

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

### hasPostgresqlSourceConfig

### setPostgresqlSourceConfig

PostgreSQL data source configuration.

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

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

### getSqlServerSourceConfig

SQLServer data source configuration.

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

### hasSqlServerSourceConfig

### setSqlServerSourceConfig

SQLServer data source configuration.

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

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

### getSalesforceSourceConfig

Salesforce data source configuration.

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

### hasSalesforceSourceConfig

### setSalesforceSourceConfig

Salesforce data source configuration.

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

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

### getMongodbSourceConfig

MongoDB data source configuration.

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

### hasMongodbSourceConfig

### setMongodbSourceConfig

MongoDB data source configuration.

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

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

### getSourceStreamConfig

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