Google Cloud Datastream V1 Client - Class MongodbSourceConfig (2.7.0)

Reference documentation and code samples for the Google Cloud Datastream V1 Client class MongodbSourceConfig.

Configuration for syncing data from a MongoDB source.

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 MongodbCluster

The MongoDB collections to include in the stream.

↳ exclude_objects MongodbCluster

The 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

↳ json_mode int

Optional. MongoDB JSON mode to use for the stream.

getIncludeObjects

The MongoDB collections to include in the stream.

Returns
Type Description
MongodbCluster|null

hasIncludeObjects

clearIncludeObjects

setIncludeObjects

The MongoDB collections to include in the stream.

Parameter
Name Description
var MongodbCluster
Returns
Type Description
$this

getExcludeObjects

The MongoDB collections to exclude from the stream.

Returns
Type Description
MongodbCluster|null

hasExcludeObjects

clearExcludeObjects

setExcludeObjects

The MongoDB collections to exclude from the stream.

Parameter
Name Description
var 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

getJsonMode

Optional. MongoDB JSON mode to use for the stream.

Returns
Type Description
int Enum of type MongodbJsonMode.

setJsonMode

Optional. MongoDB JSON mode to use for the stream.

Parameter
Name Description
var int

Enum of type MongodbJsonMode.

Returns
Type Description
$this