# Datastream V1 API - Class Google::Cloud::Datastream::V1::SourceConfig (v1.7.0)

1.7.0 (latest) 1.6.0 1.5.1 1.4.0 1.3.0 1.2.1 1.1.1 1.0.0 0.13.0 0.12.0 0.11.0 0.10.1 0.9.2 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Datastream V1 API class Google::Cloud::Datastream::V1::SourceConfig.

The configuration of the stream source.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #mongodb_source_config

    def mongodb_source_config() -> ::Google::Cloud::Datastream::V1::MongodbSourceConfig

**Returns**

- ([::Google::Cloud::Datastream::V1::MongodbSourceConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-MongodbSourceConfig)) --- MongoDB data source configuration.


  Note: The following fields are mutually exclusive: `mongodb_source_config`, `oracle_source_config`, `mysql_source_config`, `postgresql_source_config`, `sql_server_source_config`, `salesforce_source_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #mongodb_source_config=

    def mongodb_source_config=(value) -> ::Google::Cloud::Datastream::V1::MongodbSourceConfig

**Parameter**

- **value** ([::Google::Cloud::Datastream::V1::MongodbSourceConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-MongodbSourceConfig)) --- MongoDB data source configuration.


  Note: The following fields are mutually exclusive: `mongodb_source_config`, `oracle_source_config`, `mysql_source_config`, `postgresql_source_config`, `sql_server_source_config`, `salesforce_source_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Datastream::V1::MongodbSourceConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-MongodbSourceConfig)) --- MongoDB data source configuration.


  Note: The following fields are mutually exclusive: `mongodb_source_config`, `oracle_source_config`, `mysql_source_config`, `postgresql_source_config`, `sql_server_source_config`, `salesforce_source_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #mysql_source_config

    def mysql_source_config() -> ::Google::Cloud::Datastream::V1::MysqlSourceConfig

**Returns**

- ([::Google::Cloud::Datastream::V1::MysqlSourceConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-MysqlSourceConfig)) --- MySQL data source configuration.


  Note: The following fields are mutually exclusive: `mysql_source_config`, `oracle_source_config`, `postgresql_source_config`, `sql_server_source_config`, `salesforce_source_config`, `mongodb_source_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #mysql_source_config=

    def mysql_source_config=(value) -> ::Google::Cloud::Datastream::V1::MysqlSourceConfig

**Parameter**

- **value** ([::Google::Cloud::Datastream::V1::MysqlSourceConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-MysqlSourceConfig)) --- MySQL data source configuration.


  Note: The following fields are mutually exclusive: `mysql_source_config`, `oracle_source_config`, `postgresql_source_config`, `sql_server_source_config`, `salesforce_source_config`, `mongodb_source_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Datastream::V1::MysqlSourceConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-MysqlSourceConfig)) --- MySQL data source configuration.


  Note: The following fields are mutually exclusive: `mysql_source_config`, `oracle_source_config`, `postgresql_source_config`, `sql_server_source_config`, `salesforce_source_config`, `mongodb_source_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #oracle_source_config

    def oracle_source_config() -> ::Google::Cloud::Datastream::V1::OracleSourceConfig

**Returns**

- ([::Google::Cloud::Datastream::V1::OracleSourceConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-OracleSourceConfig)) --- Oracle data source configuration.


  Note: The following fields are mutually exclusive: `oracle_source_config`, `mysql_source_config`, `postgresql_source_config`, `sql_server_source_config`, `salesforce_source_config`, `mongodb_source_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #oracle_source_config=

    def oracle_source_config=(value) -> ::Google::Cloud::Datastream::V1::OracleSourceConfig

**Parameter**

- **value** ([::Google::Cloud::Datastream::V1::OracleSourceConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-OracleSourceConfig)) --- Oracle data source configuration.


  Note: The following fields are mutually exclusive: `oracle_source_config`, `mysql_source_config`, `postgresql_source_config`, `sql_server_source_config`, `salesforce_source_config`, `mongodb_source_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Datastream::V1::OracleSourceConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-OracleSourceConfig)) --- Oracle data source configuration.


  Note: The following fields are mutually exclusive: `oracle_source_config`, `mysql_source_config`, `postgresql_source_config`, `sql_server_source_config`, `salesforce_source_config`, `mongodb_source_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #postgresql_source_config

    def postgresql_source_config() -> ::Google::Cloud::Datastream::V1::PostgresqlSourceConfig

**Returns**

- ([::Google::Cloud::Datastream::V1::PostgresqlSourceConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-PostgresqlSourceConfig)) --- PostgreSQL data source configuration.


  Note: The following fields are mutually exclusive: `postgresql_source_config`, `oracle_source_config`, `mysql_source_config`, `sql_server_source_config`, `salesforce_source_config`, `mongodb_source_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #postgresql_source_config=

    def postgresql_source_config=(value) -> ::Google::Cloud::Datastream::V1::PostgresqlSourceConfig

**Parameter**

- **value** ([::Google::Cloud::Datastream::V1::PostgresqlSourceConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-PostgresqlSourceConfig)) --- PostgreSQL data source configuration.


  Note: The following fields are mutually exclusive: `postgresql_source_config`, `oracle_source_config`, `mysql_source_config`, `sql_server_source_config`, `salesforce_source_config`, `mongodb_source_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Datastream::V1::PostgresqlSourceConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-PostgresqlSourceConfig)) --- PostgreSQL data source configuration.


  Note: The following fields are mutually exclusive: `postgresql_source_config`, `oracle_source_config`, `mysql_source_config`, `sql_server_source_config`, `salesforce_source_config`, `mongodb_source_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #salesforce_source_config

    def salesforce_source_config() -> ::Google::Cloud::Datastream::V1::SalesforceSourceConfig

**Returns**

- ([::Google::Cloud::Datastream::V1::SalesforceSourceConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-SalesforceSourceConfig)) --- Salesforce data source configuration.


  Note: The following fields are mutually exclusive: `salesforce_source_config`, `oracle_source_config`, `mysql_source_config`, `postgresql_source_config`, `sql_server_source_config`, `mongodb_source_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #salesforce_source_config=

    def salesforce_source_config=(value) -> ::Google::Cloud::Datastream::V1::SalesforceSourceConfig

**Parameter**

- **value** ([::Google::Cloud::Datastream::V1::SalesforceSourceConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-SalesforceSourceConfig)) --- Salesforce data source configuration.


  Note: The following fields are mutually exclusive: `salesforce_source_config`, `oracle_source_config`, `mysql_source_config`, `postgresql_source_config`, `sql_server_source_config`, `mongodb_source_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Datastream::V1::SalesforceSourceConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-SalesforceSourceConfig)) --- Salesforce data source configuration.


  Note: The following fields are mutually exclusive: `salesforce_source_config`, `oracle_source_config`, `mysql_source_config`, `postgresql_source_config`, `sql_server_source_config`, `mongodb_source_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #source_connection_profile

    def source_connection_profile() -> ::String

**Returns**

- (::String) --- Required. Source connection profile resource. Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`

### #source_connection_profile=

    def source_connection_profile=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Source connection profile resource. Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`
**Returns**

- (::String) --- Required. Source connection profile resource. Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`

### #sql_server_source_config

    def sql_server_source_config() -> ::Google::Cloud::Datastream::V1::SqlServerSourceConfig

**Returns**

- ([::Google::Cloud::Datastream::V1::SqlServerSourceConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-SqlServerSourceConfig)) --- SQLServer data source configuration.


  Note: The following fields are mutually exclusive: `sql_server_source_config`, `oracle_source_config`, `mysql_source_config`, `postgresql_source_config`, `salesforce_source_config`, `mongodb_source_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #sql_server_source_config=

    def sql_server_source_config=(value) -> ::Google::Cloud::Datastream::V1::SqlServerSourceConfig

**Parameter**

- **value** ([::Google::Cloud::Datastream::V1::SqlServerSourceConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-SqlServerSourceConfig)) --- SQLServer data source configuration.


  Note: The following fields are mutually exclusive: `sql_server_source_config`, `oracle_source_config`, `mysql_source_config`, `postgresql_source_config`, `salesforce_source_config`, `mongodb_source_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Datastream::V1::SqlServerSourceConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-SqlServerSourceConfig)) --- SQLServer data source configuration.


  Note: The following fields are mutually exclusive: `sql_server_source_config`, `oracle_source_config`, `mysql_source_config`, `postgresql_source_config`, `salesforce_source_config`, `mongodb_source_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.