Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class WebhookRequest.
The request message for a webhook call.
Generated from protobuf message google.cloud.dialogflow.v2.WebhookRequest
Namespace
Google \ Cloud \ Dialogflow \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ session
string
The unique identifier of detectIntent request session. Can be used to identify end-user inside webhook implementation. Format: projects/<Project ID>/agent/sessions/<Session ID>
, or projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>
.
↳ response_id
string
The unique identifier of the response. Contains the same value as [Streaming]DetectIntentResponse.response_id
.
↳ query_result
Google\Cloud\Dialogflow\V2\QueryResult
The result of the conversational query or event processing. Contains the same value as [Streaming]DetectIntentResponse.query_result
.
↳ original_detect_intent_request
Google\Cloud\Dialogflow\V2\OriginalDetectIntentRequest
Optional. The contents of the original request that was passed to [Streaming]DetectIntent
call.
getSession
The unique identifier of detectIntent request session.
Can be used to identify end-user inside webhook implementation.
Format: projects/<Project ID>/agent/sessions/<Session ID>
, or projects/<Project ID>/agent/environments/<Environment ID>/users/<User
ID>/sessions/<Session ID>
.
string
setSession
The unique identifier of detectIntent request session.
Can be used to identify end-user inside webhook implementation.
Format: projects/<Project ID>/agent/sessions/<Session ID>
, or projects/<Project ID>/agent/environments/<Environment ID>/users/<User
ID>/sessions/<Session ID>
.
var
string
$this
getResponseId
The unique identifier of the response. Contains the same value as [Streaming]DetectIntentResponse.response_id
.
string
setResponseId
The unique identifier of the response. Contains the same value as [Streaming]DetectIntentResponse.response_id
.
var
string
$this
getQueryResult
The result of the conversational query or event processing. Contains the
same value as [Streaming]DetectIntentResponse.query_result
.
hasQueryResult
clearQueryResult
setQueryResult
The result of the conversational query or event processing. Contains the
same value as [Streaming]DetectIntentResponse.query_result
.
$this
getOriginalDetectIntentRequest
Optional. The contents of the original request that was passed to [Streaming]DetectIntent
call.
hasOriginalDetectIntentRequest
clearOriginalDetectIntentRequest
setOriginalDetectIntentRequest
Optional. The contents of the original request that was passed to [Streaming]DetectIntent
call.
$this