Class MongodbSourceConfig.Builder (1.102.0)

public static final class MongodbSourceConfig.Builder extends GeneratedMessage.Builder<MongodbSourceConfig.Builder> implements MongodbSourceConfigOrBuilder

Configuration for syncing data from a MongoDB source.

Protobuf type google.cloud.datastream.v1.MongodbSourceConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public MongodbSourceConfig build()
Returns
Type Description
MongodbSourceConfig

buildPartial()

public MongodbSourceConfig buildPartial()
Returns
Type Description
MongodbSourceConfig

clear()

public MongodbSourceConfig.Builder clear()
Returns
Type Description
MongodbSourceConfig.Builder
Overrides

clearExcludeObjects()

public MongodbSourceConfig.Builder clearExcludeObjects()

The MongoDB collections to exclude from the stream.

.google.cloud.datastream.v1.MongodbCluster exclude_objects = 2;

Returns
Type Description
MongodbSourceConfig.Builder

clearIncludeObjects()

public MongodbSourceConfig.Builder clearIncludeObjects()

The MongoDB collections to include in the stream.

.google.cloud.datastream.v1.MongodbCluster include_objects = 1;

Returns
Type Description
MongodbSourceConfig.Builder

clearJsonMode()

public MongodbSourceConfig.Builder clearJsonMode()

Optional. MongoDB JSON mode to use for the stream.

.google.cloud.datastream.v1.MongodbJsonMode json_mode = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MongodbSourceConfig.Builder

This builder for chaining.

clearMaxConcurrentBackfillTasks()

public MongodbSourceConfig.Builder clearMaxConcurrentBackfillTasks()

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

int32 max_concurrent_backfill_tasks = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MongodbSourceConfig.Builder

This builder for chaining.

getDefaultInstanceForType()

public MongodbSourceConfig getDefaultInstanceForType()
Returns
Type Description
MongodbSourceConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getExcludeObjects()

public MongodbCluster getExcludeObjects()

The MongoDB collections to exclude from the stream.

.google.cloud.datastream.v1.MongodbCluster exclude_objects = 2;

Returns
Type Description
MongodbCluster

The excludeObjects.

getExcludeObjectsBuilder()

public MongodbCluster.Builder getExcludeObjectsBuilder()

The MongoDB collections to exclude from the stream.

.google.cloud.datastream.v1.MongodbCluster exclude_objects = 2;

Returns
Type Description
MongodbCluster.Builder

getExcludeObjectsOrBuilder()

public MongodbClusterOrBuilder getExcludeObjectsOrBuilder()

The MongoDB collections to exclude from the stream.

.google.cloud.datastream.v1.MongodbCluster exclude_objects = 2;

Returns
Type Description
MongodbClusterOrBuilder

getIncludeObjects()

public MongodbCluster getIncludeObjects()

The MongoDB collections to include in the stream.

.google.cloud.datastream.v1.MongodbCluster include_objects = 1;

Returns
Type Description
MongodbCluster

The includeObjects.

getIncludeObjectsBuilder()

public MongodbCluster.Builder getIncludeObjectsBuilder()

The MongoDB collections to include in the stream.

.google.cloud.datastream.v1.MongodbCluster include_objects = 1;

Returns
Type Description
MongodbCluster.Builder

getIncludeObjectsOrBuilder()

public MongodbClusterOrBuilder getIncludeObjectsOrBuilder()

The MongoDB collections to include in the stream.

.google.cloud.datastream.v1.MongodbCluster include_objects = 1;

Returns
Type Description
MongodbClusterOrBuilder

getJsonMode()

public MongodbJsonMode getJsonMode()

Optional. MongoDB JSON mode to use for the stream.

.google.cloud.datastream.v1.MongodbJsonMode json_mode = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MongodbJsonMode

The jsonMode.

getJsonModeValue()

public int getJsonModeValue()

Optional. MongoDB JSON mode to use for the stream.

.google.cloud.datastream.v1.MongodbJsonMode json_mode = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for jsonMode.

getMaxConcurrentBackfillTasks()

public int 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

int32 max_concurrent_backfill_tasks = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The maxConcurrentBackfillTasks.

hasExcludeObjects()

public boolean hasExcludeObjects()

The MongoDB collections to exclude from the stream.

.google.cloud.datastream.v1.MongodbCluster exclude_objects = 2;

Returns
Type Description
boolean

Whether the excludeObjects field is set.

hasIncludeObjects()

public boolean hasIncludeObjects()

The MongoDB collections to include in the stream.

.google.cloud.datastream.v1.MongodbCluster include_objects = 1;

Returns
Type Description
boolean

Whether the includeObjects field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeExcludeObjects(MongodbCluster value)

public MongodbSourceConfig.Builder mergeExcludeObjects(MongodbCluster value)

The MongoDB collections to exclude from the stream.

.google.cloud.datastream.v1.MongodbCluster exclude_objects = 2;

Parameter
Name Description
value MongodbCluster
Returns
Type Description
MongodbSourceConfig.Builder

mergeFrom(MongodbSourceConfig other)

public MongodbSourceConfig.Builder mergeFrom(MongodbSourceConfig other)
Parameter
Name Description
other MongodbSourceConfig
Returns
Type Description
MongodbSourceConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MongodbSourceConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MongodbSourceConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public MongodbSourceConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
MongodbSourceConfig.Builder
Overrides

mergeIncludeObjects(MongodbCluster value)

public MongodbSourceConfig.Builder mergeIncludeObjects(MongodbCluster value)

The MongoDB collections to include in the stream.

.google.cloud.datastream.v1.MongodbCluster include_objects = 1;

Parameter
Name Description
value MongodbCluster
Returns
Type Description
MongodbSourceConfig.Builder

setExcludeObjects(MongodbCluster value)

public MongodbSourceConfig.Builder setExcludeObjects(MongodbCluster value)

The MongoDB collections to exclude from the stream.

.google.cloud.datastream.v1.MongodbCluster exclude_objects = 2;

Parameter
Name Description
value MongodbCluster
Returns
Type Description
MongodbSourceConfig.Builder

setExcludeObjects(MongodbCluster.Builder builderForValue)

public MongodbSourceConfig.Builder setExcludeObjects(MongodbCluster.Builder builderForValue)

The MongoDB collections to exclude from the stream.

.google.cloud.datastream.v1.MongodbCluster exclude_objects = 2;

Parameter
Name Description
builderForValue MongodbCluster.Builder
Returns
Type Description
MongodbSourceConfig.Builder

setIncludeObjects(MongodbCluster value)

public MongodbSourceConfig.Builder setIncludeObjects(MongodbCluster value)

The MongoDB collections to include in the stream.

.google.cloud.datastream.v1.MongodbCluster include_objects = 1;

Parameter
Name Description
value MongodbCluster
Returns
Type Description
MongodbSourceConfig.Builder

setIncludeObjects(MongodbCluster.Builder builderForValue)

public MongodbSourceConfig.Builder setIncludeObjects(MongodbCluster.Builder builderForValue)

The MongoDB collections to include in the stream.

.google.cloud.datastream.v1.MongodbCluster include_objects = 1;

Parameter
Name Description
builderForValue MongodbCluster.Builder
Returns
Type Description
MongodbSourceConfig.Builder

setJsonMode(MongodbJsonMode value)

public MongodbSourceConfig.Builder setJsonMode(MongodbJsonMode value)

Optional. MongoDB JSON mode to use for the stream.

.google.cloud.datastream.v1.MongodbJsonMode json_mode = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value MongodbJsonMode

The jsonMode to set.

Returns
Type Description
MongodbSourceConfig.Builder

This builder for chaining.

setJsonModeValue(int value)

public MongodbSourceConfig.Builder setJsonModeValue(int value)

Optional. MongoDB JSON mode to use for the stream.

.google.cloud.datastream.v1.MongodbJsonMode json_mode = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for jsonMode to set.

Returns
Type Description
MongodbSourceConfig.Builder

This builder for chaining.

setMaxConcurrentBackfillTasks(int value)

public MongodbSourceConfig.Builder setMaxConcurrentBackfillTasks(int value)

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

int32 max_concurrent_backfill_tasks = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The maxConcurrentBackfillTasks to set.

Returns
Type Description
MongodbSourceConfig.Builder

This builder for chaining.