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

MySQL source configuration

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

## Namespace

Google \\ Cloud \\ Datastream \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ include_objects` | `https://docs.cloud.google.com/php/docs/reference/cloud-datastream/latest/V1.MysqlRdbms` MySQL objects to retrieve from the source. |
| `↳ exclude_objects` | `https://docs.cloud.google.com/php/docs/reference/cloud-datastream/latest/V1.MysqlRdbms` MySQL objects to exclude from the stream. |
| `↳ max_concurrent_cdc_tasks` | `int` 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_backfill_tasks` | `int` 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. |
| `↳ binary_log_position` | `https://docs.cloud.google.com/php/docs/reference/cloud-datastream/latest/V1.MysqlSourceConfig.BinaryLogPosition` Use Binary log position based replication. |
| `↳ gtid` | `https://docs.cloud.google.com/php/docs/reference/cloud-datastream/latest/V1.MysqlSourceConfig.Gtid` Use GTID based replication. |

### getIncludeObjects

MySQL objects to retrieve from the source.

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

### hasIncludeObjects

### clearIncludeObjects

### setIncludeObjects

MySQL objects to retrieve from the source.

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

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

### getExcludeObjects

MySQL objects to exclude from the stream.

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

### hasExcludeObjects

### clearExcludeObjects

### setExcludeObjects

MySQL objects to exclude from the stream.

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

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

### getMaxConcurrentCdcTasks

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** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setMaxConcurrentCdcTasks

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.

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

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

### getMaxConcurrentBackfillTasks

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** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setMaxConcurrentBackfillTasks

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.

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

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

### getBinaryLogPosition

Use Binary log position based replication.

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

### hasBinaryLogPosition

### setBinaryLogPosition

Use Binary log position based replication.

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

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

### getGtid

Use GTID based replication.

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

### hasGtid

### setGtid

Use GTID based replication.

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

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

### getCdcMethod

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