Google Cloud Dialogflow Cx V3 Client - Class Text (0.2.1)

Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class Text.

The text response message.

Generated from protobuf message google.cloud.dialogflow.cx.v3.ResponseMessage.Text

Namespace

Google \ Cloud \ Dialogflow \ Cx \ V3 \ ResponseMessage

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ text array

Required. A collection of text responses.

↳ allow_playback_interruption bool

Output only. Whether the playback of this message can be interrupted by the end user's speech and the client can then starts the next Dialogflow request.

getText

Required. A collection of text responses.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setText

Required. A collection of text responses.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getAllowPlaybackInterruption

Output only. Whether the playback of this message can be interrupted by the end user's speech and the client can then starts the next Dialogflow request.

Returns
TypeDescription
bool

setAllowPlaybackInterruption

Output only. Whether the playback of this message can be interrupted by the end user's speech and the client can then starts the next Dialogflow request.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this