Google Cloud Dialogflow V2 Client - Class WebhookRequest (1.0.1)

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

Methods

__construct

Constructor.

Parameters
NameDescription
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>.

Generated from protobuf field string session = 4;

Returns
TypeDescription
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>.

Generated from protobuf field string session = 4;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getResponseId

The unique identifier of the response. Contains the same value as [Streaming]DetectIntentResponse.response_id.

Generated from protobuf field string response_id = 1;

Returns
TypeDescription
string

setResponseId

The unique identifier of the response. Contains the same value as [Streaming]DetectIntentResponse.response_id.

Generated from protobuf field string response_id = 1;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getQueryResult

The result of the conversational query or event processing. Contains the same value as [Streaming]DetectIntentResponse.query_result.

Generated from protobuf field .google.cloud.dialogflow.v2.QueryResult query_result = 2;

Returns
TypeDescription
Google\Cloud\Dialogflow\V2\QueryResult|null

hasQueryResult

clearQueryResult

setQueryResult

The result of the conversational query or event processing. Contains the same value as [Streaming]DetectIntentResponse.query_result.

Generated from protobuf field .google.cloud.dialogflow.v2.QueryResult query_result = 2;

Parameter
NameDescription
var Google\Cloud\Dialogflow\V2\QueryResult
Returns
TypeDescription
$this

getOriginalDetectIntentRequest

Optional. The contents of the original request that was passed to [Streaming]DetectIntent call.

Generated from protobuf field .google.cloud.dialogflow.v2.OriginalDetectIntentRequest original_detect_intent_request = 3;

Returns
TypeDescription
Google\Cloud\Dialogflow\V2\OriginalDetectIntentRequest|null

hasOriginalDetectIntentRequest

clearOriginalDetectIntentRequest

setOriginalDetectIntentRequest

Optional. The contents of the original request that was passed to [Streaming]DetectIntent call.

Generated from protobuf field .google.cloud.dialogflow.v2.OriginalDetectIntentRequest original_detect_intent_request = 3;

Parameter
NameDescription
var Google\Cloud\Dialogflow\V2\OriginalDetectIntentRequest
Returns
TypeDescription
$this