# Datastream V1 API - Class Google::Cloud::Datastream::V1::MysqlSourceConfig (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::MysqlSourceConfig.

MySQL source configuration

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #binary_log_position

    def binary_log_position() -> ::Google::Cloud::Datastream::V1::MysqlSourceConfig::BinaryLogPosition

**Returns**

- ([::Google::Cloud::Datastream::V1::MysqlSourceConfig::BinaryLogPosition](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-MysqlSourceConfig-BinaryLogPosition)) --- Use Binary log position based replication.


  Note: The following fields are mutually exclusive: `binary_log_position`, `gtid`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #binary_log_position=

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

**Parameter**

- **value** ([::Google::Cloud::Datastream::V1::MysqlSourceConfig::BinaryLogPosition](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-MysqlSourceConfig-BinaryLogPosition)) --- Use Binary log position based replication.


  Note: The following fields are mutually exclusive: `binary_log_position`, `gtid`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Datastream::V1::MysqlSourceConfig::BinaryLogPosition](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-MysqlSourceConfig-BinaryLogPosition)) --- Use Binary log position based replication.


  Note: The following fields are mutually exclusive: `binary_log_position`, `gtid`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #exclude_objects

    def exclude_objects() -> ::Google::Cloud::Datastream::V1::MysqlRdbms

**Returns**

- ([::Google::Cloud::Datastream::V1::MysqlRdbms](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-MysqlRdbms)) --- MySQL objects to exclude from the stream.

### #exclude_objects=

    def exclude_objects=(value) -> ::Google::Cloud::Datastream::V1::MysqlRdbms

**Parameter**

- **value** ([::Google::Cloud::Datastream::V1::MysqlRdbms](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-MysqlRdbms)) --- MySQL objects to exclude from the stream.
**Returns**

- ([::Google::Cloud::Datastream::V1::MysqlRdbms](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-MysqlRdbms)) --- MySQL objects to exclude from the stream.

### #gtid

    def gtid() -> ::Google::Cloud::Datastream::V1::MysqlSourceConfig::Gtid

**Returns**

- ([::Google::Cloud::Datastream::V1::MysqlSourceConfig::Gtid](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-MysqlSourceConfig-Gtid)) --- Use GTID based replication.


  Note: The following fields are mutually exclusive: `gtid`, `binary_log_position`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #gtid=

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

**Parameter**

- **value** ([::Google::Cloud::Datastream::V1::MysqlSourceConfig::Gtid](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-MysqlSourceConfig-Gtid)) --- Use GTID based replication.


  Note: The following fields are mutually exclusive: `gtid`, `binary_log_position`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Datastream::V1::MysqlSourceConfig::Gtid](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-MysqlSourceConfig-Gtid)) --- Use GTID based replication.


  Note: The following fields are mutually exclusive: `gtid`, `binary_log_position`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #include_objects

    def include_objects() -> ::Google::Cloud::Datastream::V1::MysqlRdbms

**Returns**

- ([::Google::Cloud::Datastream::V1::MysqlRdbms](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-MysqlRdbms)) --- MySQL objects to retrieve from the source.

### #include_objects=

    def include_objects=(value) -> ::Google::Cloud::Datastream::V1::MysqlRdbms

**Parameter**

- **value** ([::Google::Cloud::Datastream::V1::MysqlRdbms](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-MysqlRdbms)) --- MySQL objects to retrieve from the source.
**Returns**

- ([::Google::Cloud::Datastream::V1::MysqlRdbms](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-MysqlRdbms)) --- MySQL objects to retrieve from the source.

### #max_concurrent_backfill_tasks

    def max_concurrent_backfill_tasks() -> ::Integer

**Returns**

- (::Integer) --- Maximum number of concurrent backfill tasks. The number should be non negative. If not set (or set to 0), the system's default value will be used.

### #max_concurrent_backfill_tasks=

    def max_concurrent_backfill_tasks=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Maximum number of concurrent backfill tasks. The number should be non negative. If not set (or set to 0), the system's default value will be used.
**Returns**

- (::Integer) --- Maximum number of concurrent backfill tasks. The number should be non negative. If not set (or set to 0), the system's default value will be used.

### #max_concurrent_cdc_tasks

    def max_concurrent_cdc_tasks() -> ::Integer

**Returns**

- (::Integer) --- Maximum number of concurrent CDC tasks. The number should be non negative. If not set (or set to 0), the system's default value will be used.

### #max_concurrent_cdc_tasks=

    def max_concurrent_cdc_tasks=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Maximum number of concurrent CDC tasks. The number should be non negative. If not set (or set to 0), the system's default value will be used.
**Returns**

- (::Integer) --- Maximum number of concurrent CDC tasks. The number should be non negative. If not set (or set to 0), the system's default value will be used.