Reference documentation and code samples for the Google Cloud Ces V1 Client class SessionInput.
Input for the session.
Generated from protobuf message google.cloud.ces.v1.SessionInput
Namespace
Google \ Cloud \ Ces \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ text
string
Optional. Text data from the end user.
↳ dtmf
string
Optional. DTMF digits from the end user.
↳ audio
string
Optional. Audio data from the end user.
↳ tool_responses
↳ image
↳ blob
↳ variables
Google\Protobuf\Struct
Optional. Contextual variables for the session, keyed by name. Only variables declared in the app will be used by the CES agent. Unrecognized variables will still be sent to the Dialogflow agent as additional session parameters.
↳ event
↳ will_continue
bool
Optional. A flag to indicate if the current message is a fragment of a larger input in the bidi streaming session. When true
, the agent will defer processing until a subsequent message with will_continue
set to false
is received. Note: This flag has no effect on audio and DTMF inputs, which are always processed in real-time.
getText
Optional. Text data from the end user.
string
hasText
setText
Optional. Text data from the end user.
var
string
$this
getDtmf
Optional. DTMF digits from the end user.
string
hasDtmf
setDtmf
Optional. DTMF digits from the end user.
var
string
$this
getAudio
Optional. Audio data from the end user.
string
hasAudio
setAudio
Optional. Audio data from the end user.
var
string
$this
getToolResponses
Optional. Execution results for the tool calls from the client.
hasToolResponses
setToolResponses
Optional. Execution results for the tool calls from the client.
$this
getImage
Optional. Image data from the end user.
hasImage
setImage
Optional. Image data from the end user.
$this
getBlob
Optional. Blob data from the end user.
hasBlob
setBlob
Optional. Blob data from the end user.
$this
getVariables
Optional. Contextual variables for the session, keyed by name. Only variables declared in the app will be used by the CES agent.
Unrecognized variables will still be sent to the Dialogflow agent as additional session parameters.
hasVariables
setVariables
Optional. Contextual variables for the session, keyed by name. Only variables declared in the app will be used by the CES agent.
Unrecognized variables will still be sent to the Dialogflow agent as additional session parameters.
$this
getEvent
Optional. Event input.
hasEvent
setEvent
Optional. Event input.
$this
getWillContinue
Optional. A flag to indicate if the current message is a fragment of a
larger input in the bidi streaming session. When true
, the agent will
defer processing until a subsequent message with will_continue
set to false
is received.
Note: This flag has no effect on audio and DTMF inputs, which are always processed in real-time.
bool
setWillContinue
Optional. A flag to indicate if the current message is a fragment of a
larger input in the bidi streaming session. When true
, the agent will
defer processing until a subsequent message with will_continue
set to false
is received.
Note: This flag has no effect on audio and DTMF inputs, which are always processed in real-time.
var
bool
$this
getInputType
string

