Class PostgresqlSourceConfig (1.51.0)

public final class PostgresqlSourceConfig extends GeneratedMessageV3 implements PostgresqlSourceConfigOrBuilder

PostgreSQL data source configuration

Protobuf type google.cloud.datastream.v1.PostgresqlSourceConfig

Static Fields

EXCLUDE_OBJECTS_FIELD_NUMBER

public static final int EXCLUDE_OBJECTS_FIELD_NUMBER
Field Value
Type Description
int

INCLUDE_OBJECTS_FIELD_NUMBER

public static final int INCLUDE_OBJECTS_FIELD_NUMBER
Field Value
Type Description
int

MAX_CONCURRENT_BACKFILL_TASKS_FIELD_NUMBER

public static final int MAX_CONCURRENT_BACKFILL_TASKS_FIELD_NUMBER
Field Value
Type Description
int

PUBLICATION_FIELD_NUMBER

public static final int PUBLICATION_FIELD_NUMBER
Field Value
Type Description
int

REPLICATION_SLOT_FIELD_NUMBER

public static final int REPLICATION_SLOT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PostgresqlSourceConfig getDefaultInstance()
Returns
Type Description
PostgresqlSourceConfig

getDescriptor()

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

newBuilder()

public static PostgresqlSourceConfig.Builder newBuilder()
Returns
Type Description
PostgresqlSourceConfig.Builder

newBuilder(PostgresqlSourceConfig prototype)

public static PostgresqlSourceConfig.Builder newBuilder(PostgresqlSourceConfig prototype)
Parameter
Name Description
prototype PostgresqlSourceConfig
Returns
Type Description
PostgresqlSourceConfig.Builder

parseDelimitedFrom(InputStream input)

public static PostgresqlSourceConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PostgresqlSourceConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PostgresqlSourceConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PostgresqlSourceConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static PostgresqlSourceConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
PostgresqlSourceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PostgresqlSourceConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PostgresqlSourceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PostgresqlSourceConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PostgresqlSourceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PostgresqlSourceConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PostgresqlSourceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PostgresqlSourceConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PostgresqlSourceConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PostgresqlSourceConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PostgresqlSourceConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static PostgresqlSourceConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PostgresqlSourceConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PostgresqlSourceConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PostgresqlSourceConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static PostgresqlSourceConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PostgresqlSourceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PostgresqlSourceConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PostgresqlSourceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<PostgresqlSourceConfig> parser()
Returns
Type Description
Parser<PostgresqlSourceConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public PostgresqlSourceConfig getDefaultInstanceForType()
Returns
Type Description
PostgresqlSourceConfig

getExcludeObjects()

public PostgresqlRdbms getExcludeObjects()

PostgreSQL objects to exclude from the stream.

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

Returns
Type Description
PostgresqlRdbms

The excludeObjects.

getExcludeObjectsOrBuilder()

public PostgresqlRdbmsOrBuilder getExcludeObjectsOrBuilder()

PostgreSQL objects to exclude from the stream.

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

Returns
Type Description
PostgresqlRdbmsOrBuilder

getIncludeObjects()

public PostgresqlRdbms getIncludeObjects()

PostgreSQL objects to include in the stream.

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

Returns
Type Description
PostgresqlRdbms

The includeObjects.

getIncludeObjectsOrBuilder()

public PostgresqlRdbmsOrBuilder getIncludeObjectsOrBuilder()

PostgreSQL objects to include in the stream.

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

Returns
Type Description
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
Type Description
int

The maxConcurrentBackfillTasks.

getParserForType()

public Parser<PostgresqlSourceConfig> getParserForType()
Returns
Type Description
Parser<PostgresqlSourceConfig>
Overrides

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
Type Description
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
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for replicationSlot.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasExcludeObjects()

public boolean hasExcludeObjects()

PostgreSQL objects to exclude from the stream.

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

Returns
Type Description
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
Type Description
boolean

Whether the includeObjects field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public PostgresqlSourceConfig.Builder newBuilderForType()
Returns
Type Description
PostgresqlSourceConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PostgresqlSourceConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PostgresqlSourceConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public PostgresqlSourceConfig.Builder toBuilder()
Returns
Type Description
PostgresqlSourceConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException