Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class WebhookResponse.
The response message for a webhook call.
Generated from protobuf message google.cloud.dialogflow.cx.v3.WebhookResponse
Namespace
Google \ Cloud \ Dialogflow \ Cx \ V3Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ fulfillment_response
WebhookResponse\FulfillmentResponse
The fulfillment response to send to the user. This field can be omitted by the webhook if it does not intend to send any response to the user.
↳ page_info
PageInfo
Information about page status. This field can be omitted by the webhook if it does not intend to modify page status.
↳ session_info
SessionInfo
Information about session status. This field can be omitted by the webhook if it does not intend to modify session status.
↳ payload
↳ target_page
string
The target page to transition to. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>
.
↳ target_flow
string
The target flow to transition to. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>
.
getFulfillmentResponse
The fulfillment response to send to the user. This field can be omitted by the webhook if it does not intend to send any response to the user.
hasFulfillmentResponse
clearFulfillmentResponse
setFulfillmentResponse
The fulfillment response to send to the user. This field can be omitted by the webhook if it does not intend to send any response to the user.
$this
getPageInfo
Information about page status. This field can be omitted by the webhook if it does not intend to modify page status.
hasPageInfo
clearPageInfo
setPageInfo
Information about page status. This field can be omitted by the webhook if it does not intend to modify page status.
$this
getSessionInfo
Information about session status. This field can be omitted by the webhook if it does not intend to modify session status.
hasSessionInfo
clearSessionInfo
setSessionInfo
Information about session status. This field can be omitted by the webhook if it does not intend to modify session status.
$this
getPayload
Value to append directly to QueryResult.webhook_payloads .
hasPayload
clearPayload
setPayload
Value to append directly to QueryResult.webhook_payloads .
$this
getTargetPage
The target page to transition to.
Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>
.
string
hasTargetPage
setTargetPage
The target page to transition to.
Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>
.
var
string
$this
getTargetFlow
The target flow to transition to.
Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>
.
string
hasTargetFlow
setTargetFlow
The target flow to transition to.
Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>
.
var
string
$this
getTransition
string