Class SourceConfig.Builder (1.6.0)

public static final class SourceConfig.Builder extends GeneratedMessageV3.Builder<SourceConfig.Builder> implements SourceConfigOrBuilder

The configuration of the stream source.

Protobuf type google.cloud.datastream.v1.SourceConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SourceConfig build()
Returns
TypeDescription
SourceConfig

buildPartial()

public SourceConfig buildPartial()
Returns
TypeDescription
SourceConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMysqlSourceConfig()

public SourceConfig.Builder clearMysqlSourceConfig()

MySQL data source configuration.

.google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101;

Returns
TypeDescription
SourceConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOracleSourceConfig()

public SourceConfig.Builder clearOracleSourceConfig()

Oracle data source configuration.

.google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100;

Returns
TypeDescription
SourceConfig.Builder

clearPostgresqlSourceConfig()

public SourceConfig.Builder clearPostgresqlSourceConfig()

PostgreSQL data source configuration.

.google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102;

Returns
TypeDescription
SourceConfig.Builder

clearSourceConnectionProfile()

public SourceConfig.Builder clearSourceConnectionProfile()

Required. Source connection profile resoource. Format: projects/{project}/locations/{location}/connectionProfiles/{name}

string source_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
SourceConfig.Builder

This builder for chaining.

clearSourceStreamConfig()

public SourceConfig.Builder clearSourceStreamConfig()
Returns
TypeDescription
SourceConfig.Builder

clone()

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

getDefaultInstanceForType()

public SourceConfig getDefaultInstanceForType()
Returns
TypeDescription
SourceConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMysqlSourceConfig()

public MysqlSourceConfig getMysqlSourceConfig()

MySQL data source configuration.

.google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101;

Returns
TypeDescription
MysqlSourceConfig

The mysqlSourceConfig.

getMysqlSourceConfigBuilder()

public MysqlSourceConfig.Builder getMysqlSourceConfigBuilder()

MySQL data source configuration.

.google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101;

Returns
TypeDescription
MysqlSourceConfig.Builder

getMysqlSourceConfigOrBuilder()

public MysqlSourceConfigOrBuilder getMysqlSourceConfigOrBuilder()

MySQL data source configuration.

.google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101;

Returns
TypeDescription
MysqlSourceConfigOrBuilder

getOracleSourceConfig()

public OracleSourceConfig getOracleSourceConfig()

Oracle data source configuration.

.google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100;

Returns
TypeDescription
OracleSourceConfig

The oracleSourceConfig.

getOracleSourceConfigBuilder()

public OracleSourceConfig.Builder getOracleSourceConfigBuilder()

Oracle data source configuration.

.google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100;

Returns
TypeDescription
OracleSourceConfig.Builder

getOracleSourceConfigOrBuilder()

public OracleSourceConfigOrBuilder getOracleSourceConfigOrBuilder()

Oracle data source configuration.

.google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100;

Returns
TypeDescription
OracleSourceConfigOrBuilder

getPostgresqlSourceConfig()

public PostgresqlSourceConfig getPostgresqlSourceConfig()

PostgreSQL data source configuration.

.google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102;

Returns
TypeDescription
PostgresqlSourceConfig

The postgresqlSourceConfig.

getPostgresqlSourceConfigBuilder()

public PostgresqlSourceConfig.Builder getPostgresqlSourceConfigBuilder()

PostgreSQL data source configuration.

.google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102;

Returns
TypeDescription
PostgresqlSourceConfig.Builder

getPostgresqlSourceConfigOrBuilder()

public PostgresqlSourceConfigOrBuilder getPostgresqlSourceConfigOrBuilder()

PostgreSQL data source configuration.

.google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102;

Returns
TypeDescription
PostgresqlSourceConfigOrBuilder

getSourceConnectionProfile()

public String getSourceConnectionProfile()

Required. Source connection profile resoource. Format: projects/{project}/locations/{location}/connectionProfiles/{name}

string source_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The sourceConnectionProfile.

getSourceConnectionProfileBytes()

public ByteString getSourceConnectionProfileBytes()

Required. Source connection profile resoource. Format: projects/{project}/locations/{location}/connectionProfiles/{name}

string source_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for sourceConnectionProfile.

getSourceStreamConfigCase()

public SourceConfig.SourceStreamConfigCase getSourceStreamConfigCase()
Returns
TypeDescription
SourceConfig.SourceStreamConfigCase

hasMysqlSourceConfig()

public boolean hasMysqlSourceConfig()

MySQL data source configuration.

.google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101;

Returns
TypeDescription
boolean

Whether the mysqlSourceConfig field is set.

hasOracleSourceConfig()

public boolean hasOracleSourceConfig()

Oracle data source configuration.

.google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100;

Returns
TypeDescription
boolean

Whether the oracleSourceConfig field is set.

hasPostgresqlSourceConfig()

public boolean hasPostgresqlSourceConfig()

PostgreSQL data source configuration.

.google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102;

Returns
TypeDescription
boolean

Whether the postgresqlSourceConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SourceConfig other)

public SourceConfig.Builder mergeFrom(SourceConfig other)
Parameter
NameDescription
otherSourceConfig
Returns
TypeDescription
SourceConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMysqlSourceConfig(MysqlSourceConfig value)

public SourceConfig.Builder mergeMysqlSourceConfig(MysqlSourceConfig value)

MySQL data source configuration.

.google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101;

Parameter
NameDescription
valueMysqlSourceConfig
Returns
TypeDescription
SourceConfig.Builder

mergeOracleSourceConfig(OracleSourceConfig value)

public SourceConfig.Builder mergeOracleSourceConfig(OracleSourceConfig value)

Oracle data source configuration.

.google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100;

Parameter
NameDescription
valueOracleSourceConfig
Returns
TypeDescription
SourceConfig.Builder

mergePostgresqlSourceConfig(PostgresqlSourceConfig value)

public SourceConfig.Builder mergePostgresqlSourceConfig(PostgresqlSourceConfig value)

PostgreSQL data source configuration.

.google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102;

Parameter
NameDescription
valuePostgresqlSourceConfig
Returns
TypeDescription
SourceConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMysqlSourceConfig(MysqlSourceConfig value)

public SourceConfig.Builder setMysqlSourceConfig(MysqlSourceConfig value)

MySQL data source configuration.

.google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101;

Parameter
NameDescription
valueMysqlSourceConfig
Returns
TypeDescription
SourceConfig.Builder

setMysqlSourceConfig(MysqlSourceConfig.Builder builderForValue)

public SourceConfig.Builder setMysqlSourceConfig(MysqlSourceConfig.Builder builderForValue)

MySQL data source configuration.

.google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101;

Parameter
NameDescription
builderForValueMysqlSourceConfig.Builder
Returns
TypeDescription
SourceConfig.Builder

setOracleSourceConfig(OracleSourceConfig value)

public SourceConfig.Builder setOracleSourceConfig(OracleSourceConfig value)

Oracle data source configuration.

.google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100;

Parameter
NameDescription
valueOracleSourceConfig
Returns
TypeDescription
SourceConfig.Builder

setOracleSourceConfig(OracleSourceConfig.Builder builderForValue)

public SourceConfig.Builder setOracleSourceConfig(OracleSourceConfig.Builder builderForValue)

Oracle data source configuration.

.google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100;

Parameter
NameDescription
builderForValueOracleSourceConfig.Builder
Returns
TypeDescription
SourceConfig.Builder

setPostgresqlSourceConfig(PostgresqlSourceConfig value)

public SourceConfig.Builder setPostgresqlSourceConfig(PostgresqlSourceConfig value)

PostgreSQL data source configuration.

.google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102;

Parameter
NameDescription
valuePostgresqlSourceConfig
Returns
TypeDescription
SourceConfig.Builder

setPostgresqlSourceConfig(PostgresqlSourceConfig.Builder builderForValue)

public SourceConfig.Builder setPostgresqlSourceConfig(PostgresqlSourceConfig.Builder builderForValue)

PostgreSQL data source configuration.

.google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102;

Parameter
NameDescription
builderForValuePostgresqlSourceConfig.Builder
Returns
TypeDescription
SourceConfig.Builder

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

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

setSourceConnectionProfile(String value)

public SourceConfig.Builder setSourceConnectionProfile(String value)

Required. Source connection profile resoource. Format: projects/{project}/locations/{location}/connectionProfiles/{name}

string source_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The sourceConnectionProfile to set.

Returns
TypeDescription
SourceConfig.Builder

This builder for chaining.

setSourceConnectionProfileBytes(ByteString value)

public SourceConfig.Builder setSourceConnectionProfileBytes(ByteString value)

Required. Source connection profile resoource. Format: projects/{project}/locations/{location}/connectionProfiles/{name}

string source_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for sourceConnectionProfile to set.

Returns
TypeDescription
SourceConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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