Google Cloud Dialogflow V2 Client - Class Input (2.8.0)

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

Input for the conversation.

Generated from protobuf message google.cloud.dialogflow.v2.BidiStreamingAnalyzeContentRequest.Input

Namespace

Google \ Cloud \ Dialogflow \ V2 \ BidiStreamingAnalyzeContentRequest

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ audio string

The content of audio stream to be recognized.

↳ dtmf Google\Cloud\Dialogflow\V2\TelephonyDtmfEvents

The DTMF digits used to invoke intent and fill in parameter value. This input is ignored if the previous response indicated that DTMF input is not accepted.

↳ turn TurnInput

Turn input.

getAudio

The content of audio stream to be recognized.

Returns
Type Description
string

hasAudio

setAudio

The content of audio stream to be recognized.

Parameter
Name Description
var string
Returns
Type Description
$this

getDtmf

The DTMF digits used to invoke intent and fill in parameter value.

This input is ignored if the previous response indicated that DTMF input is not accepted.

Returns
Type Description
Google\Cloud\Dialogflow\V2\TelephonyDtmfEvents|null

hasDtmf

setDtmf

The DTMF digits used to invoke intent and fill in parameter value.

This input is ignored if the previous response indicated that DTMF input is not accepted.

Parameter
Name Description
var Google\Cloud\Dialogflow\V2\TelephonyDtmfEvents
Returns
Type Description
$this

getTurn

Turn input.

Returns
Type Description
TurnInput|null

hasTurn

setTurn

Turn input.

Parameter
Name Description
var TurnInput
Returns
Type Description
$this

getInput

Returns
Type Description
string