Class PostgresqlSourceConfig.Builder (1.40.0)

public static final class PostgresqlSourceConfig.Builder extends GeneratedMessageV3.Builder<PostgresqlSourceConfig.Builder> implements PostgresqlSourceConfigOrBuilder

PostgreSQL data source configuration

Protobuf type google.cloud.datastream.v1.PostgresqlSourceConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PostgresqlSourceConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PostgresqlSourceConfig.Builder
Overrides

build()

public PostgresqlSourceConfig build()
Returns
TypeDescription
PostgresqlSourceConfig

buildPartial()

public PostgresqlSourceConfig buildPartial()
Returns
TypeDescription
PostgresqlSourceConfig

clear()

public PostgresqlSourceConfig.Builder clear()
Returns
TypeDescription
PostgresqlSourceConfig.Builder
Overrides

clearExcludeObjects()

public PostgresqlSourceConfig.Builder clearExcludeObjects()

PostgreSQL objects to exclude from the stream.

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

Returns
TypeDescription
PostgresqlSourceConfig.Builder

clearField(Descriptors.FieldDescriptor field)

public PostgresqlSourceConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
PostgresqlSourceConfig.Builder
Overrides

clearIncludeObjects()

public PostgresqlSourceConfig.Builder clearIncludeObjects()

PostgreSQL objects to include in the stream.

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

Returns
TypeDescription
PostgresqlSourceConfig.Builder

clearMaxConcurrentBackfillTasks()

public PostgresqlSourceConfig.Builder clearMaxConcurrentBackfillTasks()

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.

int32 max_concurrent_backfill_tasks = 5;

Returns
TypeDescription
PostgresqlSourceConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public PostgresqlSourceConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
PostgresqlSourceConfig.Builder
Overrides

clearPublication()

public PostgresqlSourceConfig.Builder clearPublication()

Required. The name of the publication that includes the set of all tables that are defined in the stream's include_objects.

string publication = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PostgresqlSourceConfig.Builder

This builder for chaining.

clearReplicationSlot()

public PostgresqlSourceConfig.Builder clearReplicationSlot()

Required. Immutable. The name of the logical replication slot that's configured with the pgoutput plugin.

string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
PostgresqlSourceConfig.Builder

This builder for chaining.

clone()

public PostgresqlSourceConfig.Builder clone()
Returns
TypeDescription
PostgresqlSourceConfig.Builder
Overrides

getDefaultInstanceForType()

public PostgresqlSourceConfig getDefaultInstanceForType()
Returns
TypeDescription
PostgresqlSourceConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExcludeObjects()

public PostgresqlRdbms getExcludeObjects()

PostgreSQL objects to exclude from the stream.

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

Returns
TypeDescription
PostgresqlRdbms

The excludeObjects.

getExcludeObjectsBuilder()

public PostgresqlRdbms.Builder getExcludeObjectsBuilder()

PostgreSQL objects to exclude from the stream.

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

Returns
TypeDescription
PostgresqlRdbms.Builder

getExcludeObjectsOrBuilder()

public PostgresqlRdbmsOrBuilder getExcludeObjectsOrBuilder()

PostgreSQL objects to exclude from the stream.

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

Returns
TypeDescription
PostgresqlRdbmsOrBuilder

getIncludeObjects()

public PostgresqlRdbms getIncludeObjects()

PostgreSQL objects to include in the stream.

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

Returns
TypeDescription
PostgresqlRdbms

The includeObjects.

getIncludeObjectsBuilder()

public PostgresqlRdbms.Builder getIncludeObjectsBuilder()

PostgreSQL objects to include in the stream.

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

Returns
TypeDescription
PostgresqlRdbms.Builder

getIncludeObjectsOrBuilder()

public PostgresqlRdbmsOrBuilder getIncludeObjectsOrBuilder()

PostgreSQL objects to include in the stream.

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

Returns
TypeDescription
PostgresqlRdbmsOrBuilder

getMaxConcurrentBackfillTasks()

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

int32 max_concurrent_backfill_tasks = 5;

Returns
TypeDescription
int

The maxConcurrentBackfillTasks.

getPublication()

public String getPublication()

Required. The name of the publication that includes the set of all tables that are defined in the stream's include_objects.

string publication = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The publication.

getPublicationBytes()

public ByteString getPublicationBytes()

Required. The name of the publication that includes the set of all tables that are defined in the stream's include_objects.

string publication = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for publication.

getReplicationSlot()

public String getReplicationSlot()

Required. Immutable. The name of the logical replication slot that's configured with the pgoutput plugin.

string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
String

The replicationSlot.

getReplicationSlotBytes()

public ByteString getReplicationSlotBytes()

Required. Immutable. The name of the logical replication slot that's configured with the pgoutput plugin.

string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
ByteString

The bytes for replicationSlot.

hasExcludeObjects()

public boolean hasExcludeObjects()

PostgreSQL objects to exclude from the stream.

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

Returns
TypeDescription
boolean

Whether the excludeObjects field is set.

hasIncludeObjects()

public boolean hasIncludeObjects()

PostgreSQL objects to include in the stream.

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

Returns
TypeDescription
boolean

Whether the includeObjects field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeExcludeObjects(PostgresqlRdbms value)

public PostgresqlSourceConfig.Builder mergeExcludeObjects(PostgresqlRdbms value)

PostgreSQL objects to exclude from the stream.

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

Parameter
NameDescription
valuePostgresqlRdbms
Returns
TypeDescription
PostgresqlSourceConfig.Builder

mergeFrom(PostgresqlSourceConfig other)

public PostgresqlSourceConfig.Builder mergeFrom(PostgresqlSourceConfig other)
Parameter
NameDescription
otherPostgresqlSourceConfig
Returns
TypeDescription
PostgresqlSourceConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PostgresqlSourceConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PostgresqlSourceConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public PostgresqlSourceConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
PostgresqlSourceConfig.Builder
Overrides

mergeIncludeObjects(PostgresqlRdbms value)

public PostgresqlSourceConfig.Builder mergeIncludeObjects(PostgresqlRdbms value)

PostgreSQL objects to include in the stream.

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

Parameter
NameDescription
valuePostgresqlRdbms
Returns
TypeDescription
PostgresqlSourceConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PostgresqlSourceConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PostgresqlSourceConfig.Builder
Overrides

setExcludeObjects(PostgresqlRdbms value)

public PostgresqlSourceConfig.Builder setExcludeObjects(PostgresqlRdbms value)

PostgreSQL objects to exclude from the stream.

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

Parameter
NameDescription
valuePostgresqlRdbms
Returns
TypeDescription
PostgresqlSourceConfig.Builder

setExcludeObjects(PostgresqlRdbms.Builder builderForValue)

public PostgresqlSourceConfig.Builder setExcludeObjects(PostgresqlRdbms.Builder builderForValue)

PostgreSQL objects to exclude from the stream.

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

Parameter
NameDescription
builderForValuePostgresqlRdbms.Builder
Returns
TypeDescription
PostgresqlSourceConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public PostgresqlSourceConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PostgresqlSourceConfig.Builder
Overrides

setIncludeObjects(PostgresqlRdbms value)

public PostgresqlSourceConfig.Builder setIncludeObjects(PostgresqlRdbms value)

PostgreSQL objects to include in the stream.

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

Parameter
NameDescription
valuePostgresqlRdbms
Returns
TypeDescription
PostgresqlSourceConfig.Builder

setIncludeObjects(PostgresqlRdbms.Builder builderForValue)

public PostgresqlSourceConfig.Builder setIncludeObjects(PostgresqlRdbms.Builder builderForValue)

PostgreSQL objects to include in the stream.

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

Parameter
NameDescription
builderForValuePostgresqlRdbms.Builder
Returns
TypeDescription
PostgresqlSourceConfig.Builder

setMaxConcurrentBackfillTasks(int value)

public PostgresqlSourceConfig.Builder setMaxConcurrentBackfillTasks(int value)

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.

int32 max_concurrent_backfill_tasks = 5;

Parameter
NameDescription
valueint

The maxConcurrentBackfillTasks to set.

Returns
TypeDescription
PostgresqlSourceConfig.Builder

This builder for chaining.

setPublication(String value)

public PostgresqlSourceConfig.Builder setPublication(String value)

Required. The name of the publication that includes the set of all tables that are defined in the stream's include_objects.

string publication = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The publication to set.

Returns
TypeDescription
PostgresqlSourceConfig.Builder

This builder for chaining.

setPublicationBytes(ByteString value)

public PostgresqlSourceConfig.Builder setPublicationBytes(ByteString value)

Required. The name of the publication that includes the set of all tables that are defined in the stream's include_objects.

string publication = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for publication to set.

Returns
TypeDescription
PostgresqlSourceConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PostgresqlSourceConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PostgresqlSourceConfig.Builder
Overrides

setReplicationSlot(String value)

public PostgresqlSourceConfig.Builder setReplicationSlot(String value)

Required. Immutable. The name of the logical replication slot that's configured with the pgoutput plugin.

string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueString

The replicationSlot to set.

Returns
TypeDescription
PostgresqlSourceConfig.Builder

This builder for chaining.

setReplicationSlotBytes(ByteString value)

public PostgresqlSourceConfig.Builder setReplicationSlotBytes(ByteString value)

Required. Immutable. The name of the logical replication slot that's configured with the pgoutput plugin.

string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueByteString

The bytes for replicationSlot to set.

Returns
TypeDescription
PostgresqlSourceConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final PostgresqlSourceConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PostgresqlSourceConfig.Builder
Overrides