Google Cloud Dialogflow V2 Client - Class Connection (2.3.0)

Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class Connection.

Represents a connection for SIP Trunk.

Generated from protobuf message google.cloud.dialogflow.v2.Connection

Namespace

Google \ Cloud \ Dialogflow \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ connection_id string

Output only. The unique identifier of the SIP Trunk connection.

↳ state int

Output only. State of the connection.

↳ update_time Google\Protobuf\Timestamp

Output only. When the connection status changed.

↳ error_details Connection\ErrorDetails

Output only. The error details for the connection. Only populated when authentication errors occur.

getConnectionId

Output only. The unique identifier of the SIP Trunk connection.

Returns
Type Description
string

setConnectionId

Output only. The unique identifier of the SIP Trunk connection.

Parameter
Name Description
var string
Returns
Type Description
$this

getState

Output only. State of the connection.

Returns
Type Description
int Enum of type State.

setState

Output only. State of the connection.

Parameter
Name Description
var int

Enum of type State.

Returns
Type Description
$this

getUpdateTime

Output only. When the connection status changed.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. When the connection status changed.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getErrorDetails

Output only. The error details for the connection. Only populated when authentication errors occur.

Returns
Type Description
Connection\ErrorDetails|null

hasErrorDetails

clearErrorDetails

setErrorDetails

Output only. The error details for the connection. Only populated when authentication errors occur.

Parameter
Name Description
var Connection\ErrorDetails
Returns
Type Description
$this