Class SourceConfig (1.36.0)

public final class SourceConfig extends GeneratedMessageV3 implements SourceConfigOrBuilder

The configuration of the stream source.

Protobuf type google.cloud.datastream.v1.SourceConfig

Static Fields

MYSQL_SOURCE_CONFIG_FIELD_NUMBER

public static final int MYSQL_SOURCE_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

ORACLE_SOURCE_CONFIG_FIELD_NUMBER

public static final int ORACLE_SOURCE_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

POSTGRESQL_SOURCE_CONFIG_FIELD_NUMBER

public static final int POSTGRESQL_SOURCE_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

SOURCE_CONNECTION_PROFILE_FIELD_NUMBER

public static final int SOURCE_CONNECTION_PROFILE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SourceConfig getDefaultInstance()
Returns
TypeDescription
SourceConfig

getDescriptor()

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

newBuilder()

public static SourceConfig.Builder newBuilder()
Returns
TypeDescription
SourceConfig.Builder

newBuilder(SourceConfig prototype)

public static SourceConfig.Builder newBuilder(SourceConfig prototype)
Parameter
NameDescription
prototypeSourceConfig
Returns
TypeDescription
SourceConfig.Builder

parseDelimitedFrom(InputStream input)

public static SourceConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SourceConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SourceConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SourceConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static SourceConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
SourceConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SourceConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SourceConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SourceConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SourceConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SourceConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SourceConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SourceConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SourceConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SourceConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SourceConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static SourceConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SourceConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SourceConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SourceConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static SourceConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SourceConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SourceConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SourceConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<SourceConfig> parser()
Returns
TypeDescription
Parser<SourceConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public SourceConfig getDefaultInstanceForType()
Returns
TypeDescription
SourceConfig

getMysqlSourceConfig()

public MysqlSourceConfig getMysqlSourceConfig()

MySQL data source configuration.

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

Returns
TypeDescription
MysqlSourceConfig

The mysqlSourceConfig.

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.

getOracleSourceConfigOrBuilder()

public OracleSourceConfigOrBuilder getOracleSourceConfigOrBuilder()

Oracle data source configuration.

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

Returns
TypeDescription
OracleSourceConfigOrBuilder

getParserForType()

public Parser<SourceConfig> getParserForType()
Returns
TypeDescription
Parser<SourceConfig>
Overrides

getPostgresqlSourceConfig()

public PostgresqlSourceConfig getPostgresqlSourceConfig()

PostgreSQL data source configuration.

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

Returns
TypeDescription
PostgresqlSourceConfig

The postgresqlSourceConfig.

getPostgresqlSourceConfigOrBuilder()

public PostgresqlSourceConfigOrBuilder getPostgresqlSourceConfigOrBuilder()

PostgreSQL data source configuration.

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

Returns
TypeDescription
PostgresqlSourceConfigOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SourceConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
SourceConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException