Optional. SSL configuration for the PostgreSQL connection. In case PostgresqlSslConfig is not set, the connection will use the default SSL mode, which isprefer(i.e. this mode will only use encryption if enabled from database side, otherwise will use unencrypted communication)
getHostname
Required. Hostname for the PostgreSQL connection.
Returns
Type
Description
string
setHostname
Required. Hostname for the PostgreSQL connection.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getPort
Port for the PostgreSQL connection, default value is 5432.
Returns
Type
Description
int
setPort
Port for the PostgreSQL connection, default value is 5432.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getUsername
Required. Username for the PostgreSQL connection.
Returns
Type
Description
string
setUsername
Required. Username for the PostgreSQL connection.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getPassword
Optional. Password for the PostgreSQL connection. Mutually exclusive with
thesecret_manager_stored_passwordfield.
Returns
Type
Description
string
setPassword
Optional. Password for the PostgreSQL connection. Mutually exclusive with
thesecret_manager_stored_passwordfield.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getDatabase
Required. Database for the PostgreSQL connection.
Returns
Type
Description
string
setDatabase
Required. Database for the PostgreSQL connection.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getSecretManagerStoredPassword
Optional. A reference to a Secret Manager resource name storing the
PostgreSQL connection password. Mutually exclusive with thepasswordfield.
Returns
Type
Description
string
setSecretManagerStoredPassword
Optional. A reference to a Secret Manager resource name storing the
PostgreSQL connection password. Mutually exclusive with thepasswordfield.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getSslConfig
Optional. SSL configuration for the PostgreSQL connection.
In case PostgresqlSslConfig is not set, the connection will use the default
SSL mode, which isprefer(i.e. this mode will only use encryption if
enabled from database side, otherwise will use unencrypted communication)
Optional. SSL configuration for the PostgreSQL connection.
In case PostgresqlSslConfig is not set, the connection will use the default
SSL mode, which isprefer(i.e. this mode will only use encryption if
enabled from database side, otherwise will use unencrypted communication)
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Datastream V1 Client - Class PostgresqlProfile (2.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.4.0 (latest)](/php/docs/reference/cloud-datastream/latest/V1.PostgresqlProfile)\n- [2.3.1](/php/docs/reference/cloud-datastream/2.3.1/V1.PostgresqlProfile)\n- [2.2.0](/php/docs/reference/cloud-datastream/2.2.0/V1.PostgresqlProfile)\n- [2.1.1](/php/docs/reference/cloud-datastream/2.1.1/V1.PostgresqlProfile)\n- [2.0.1](/php/docs/reference/cloud-datastream/2.0.1/V1.PostgresqlProfile)\n- [1.5.5](/php/docs/reference/cloud-datastream/1.5.5/V1.PostgresqlProfile)\n- [1.4.2](/php/docs/reference/cloud-datastream/1.4.2/V1.PostgresqlProfile)\n- [1.3.0](/php/docs/reference/cloud-datastream/1.3.0/V1.PostgresqlProfile)\n- [1.2.1](/php/docs/reference/cloud-datastream/1.2.1/V1.PostgresqlProfile)\n- [1.1.0](/php/docs/reference/cloud-datastream/1.1.0/V1.PostgresqlProfile)\n- [1.0.5](/php/docs/reference/cloud-datastream/1.0.5/V1.PostgresqlProfile) \nReference documentation and code samples for the Google Cloud Datastream V1 Client class PostgresqlProfile.\n\nPostgreSQL database profile.\n\nGenerated from protobuf message `google.cloud.datastream.v1.PostgresqlProfile`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Datastream \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getHostname\n\nRequired. Hostname for the PostgreSQL connection.\n\n### setHostname\n\nRequired. Hostname for the PostgreSQL connection.\n\n### getPort\n\nPort for the PostgreSQL connection, default value is 5432.\n\n### setPort\n\nPort for the PostgreSQL connection, default value is 5432.\n\n### getUsername\n\nRequired. Username for the PostgreSQL connection.\n\n### setUsername\n\nRequired. Username for the PostgreSQL connection.\n\n### getPassword\n\nOptional. Password for the PostgreSQL connection. Mutually exclusive with\nthe `secret_manager_stored_password` field.\n\n### setPassword\n\nOptional. Password for the PostgreSQL connection. Mutually exclusive with\nthe `secret_manager_stored_password` field.\n\n### getDatabase\n\nRequired. Database for the PostgreSQL connection.\n\n### setDatabase\n\nRequired. Database for the PostgreSQL connection.\n\n### getSecretManagerStoredPassword\n\nOptional. A reference to a Secret Manager resource name storing the\nPostgreSQL connection password. Mutually exclusive with the `password`\nfield.\n\n### setSecretManagerStoredPassword\n\nOptional. A reference to a Secret Manager resource name storing the\nPostgreSQL connection password. Mutually exclusive with the `password`\nfield.\n\n### getSslConfig\n\nOptional. SSL configuration for the PostgreSQL connection.\n\nIn case PostgresqlSslConfig is not set, the connection will use the default\nSSL mode, which is `prefer` (i.e. this mode will only use encryption if\nenabled from database side, otherwise will use unencrypted communication)\n\n### hasSslConfig\n\n### clearSslConfig\n\n### setSslConfig\n\nOptional. SSL configuration for the PostgreSQL connection.\n\nIn case PostgresqlSslConfig is not set, the connection will use the default\nSSL mode, which is `prefer` (i.e. this mode will only use encryption if\nenabled from database side, otherwise will use unencrypted communication)"]]