Google Cloud Datastream V1 Client - Class SourceConfig (2.5.1)

Reference documentation and code samples for the Google Cloud Datastream V1 Client class SourceConfig.

The configuration of the stream source.

Generated from protobuf message google.cloud.datastream.v1.SourceConfig

Namespace

Google \ Cloud \ Datastream \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ source_connection_profile string

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

↳ oracle_source_config OracleSourceConfig

Oracle data source configuration.

↳ mysql_source_config MysqlSourceConfig

MySQL data source configuration.

↳ postgresql_source_config PostgresqlSourceConfig

PostgreSQL data source configuration.

↳ sql_server_source_config SqlServerSourceConfig

SQLServer data source configuration.

↳ salesforce_source_config SalesforceSourceConfig

Salesforce data source configuration.

↳ mongodb_source_config MongodbSourceConfig

MongoDB data source configuration.

getSourceConnectionProfile

Required. Source connection profile resource.

Format: projects/{project}/locations/{location}/connectionProfiles/{name}

Returns
Type Description
string

setSourceConnectionProfile

Required. Source connection profile resource.

Format: projects/{project}/locations/{location}/connectionProfiles/{name}

Parameter
Name Description
var string
Returns
Type Description
$this

getOracleSourceConfig

Oracle data source configuration.

Returns
Type Description
OracleSourceConfig|null

hasOracleSourceConfig

setOracleSourceConfig

Oracle data source configuration.

Parameter
Name Description
var OracleSourceConfig
Returns
Type Description
$this

getMysqlSourceConfig

MySQL data source configuration.

Returns
Type Description
MysqlSourceConfig|null

hasMysqlSourceConfig

setMysqlSourceConfig

MySQL data source configuration.

Parameter
Name Description
var MysqlSourceConfig
Returns
Type Description
$this

getPostgresqlSourceConfig

PostgreSQL data source configuration.

Returns
Type Description
PostgresqlSourceConfig|null

hasPostgresqlSourceConfig

setPostgresqlSourceConfig

PostgreSQL data source configuration.

Parameter
Name Description
var PostgresqlSourceConfig
Returns
Type Description
$this

getSqlServerSourceConfig

SQLServer data source configuration.

Returns
Type Description
SqlServerSourceConfig|null

hasSqlServerSourceConfig

setSqlServerSourceConfig

SQLServer data source configuration.

Parameter
Name Description
var SqlServerSourceConfig
Returns
Type Description
$this

getSalesforceSourceConfig

Salesforce data source configuration.

Returns
Type Description
SalesforceSourceConfig|null

hasSalesforceSourceConfig

setSalesforceSourceConfig

Salesforce data source configuration.

Parameter
Name Description
var SalesforceSourceConfig
Returns
Type Description
$this

getMongodbSourceConfig

MongoDB data source configuration.

Returns
Type Description
MongodbSourceConfig|null

hasMongodbSourceConfig

setMongodbSourceConfig

MongoDB data source configuration.

Parameter
Name Description
var MongodbSourceConfig
Returns
Type Description
$this

getSourceStreamConfig

Returns
Type Description
string

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.