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

MongoDB source configuration.

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

## 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.MongodbCluster` MongoDB collections to include in the stream. |
| `↳ exclude_objects` | `https://docs.cloud.google.com/php/docs/reference/cloud-datastream/latest/V1.MongodbCluster` MongoDB collections to exclude from the stream. |
| `↳ max_concurrent_backfill_tasks` | `int` Optional. Maximum number of concurrent backfill tasks. The number should be non-negative and less than or equal to 50. If not set (or set to 0), the system's default value is used |

### getIncludeObjects

MongoDB collections to include in the stream.

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

### hasIncludeObjects

### clearIncludeObjects

### setIncludeObjects

MongoDB collections to include in the stream.

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

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

### getExcludeObjects

MongoDB collections to exclude from the stream.

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

### hasExcludeObjects

### clearExcludeObjects

### setExcludeObjects

MongoDB collections to exclude from the stream.

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

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

### getMaxConcurrentBackfillTasks

Optional. Maximum number of concurrent backfill tasks. The number should be
non-negative and less than or equal to 50. If not set (or set to 0), the
system's default value is used

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setMaxConcurrentBackfillTasks

Optional. Maximum number of concurrent backfill tasks. The number should be
non-negative and less than or equal to 50. If not set (or set to 0), the
system's default value is used

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

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