Google Cloud Datastream V1 Client - Class UserPasswordCredentials (2.7.0)

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

User-password credentials.

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

Namespace

Google \ Cloud \ Datastream \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ username string

Required. Username for the connection.

↳ password Secret

Required. Password for the connection.

getUsername

Required. Username for the connection.

Returns
Type Description
string

setUsername

Required. Username for the connection.

Parameter
Name Description
var string
Returns
Type Description
$this

getPassword

Required. Password for the connection.

Returns
Type Description
Secret|null

hasPassword

clearPassword

setPassword

Required. Password for the connection.

Parameter
Name Description
var Secret
Returns
Type Description
$this