google.cloud.dialogflow.v2.WebhookRequest */ class WebhookRequest extends \Google\Protobuf\Internal\Message { /** * The unique identifier of detectIntent request session. * Can be used to identify end-user inside webhook implementation. * Format: `projects//agent/sessions/`. * * Generated from protobuf field string session = 4; */ private $session = ''; /** * The unique identifier of the response. Contains the same value as * `[Streaming]DetectIntentResponse.response_id`. * * Generated from protobuf field string response_id = 1; */ private $response_id = ''; /** * 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; */ private $query_result = null; /** * 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; */ private $original_detect_intent_request = null; public function __construct() { \GPBMetadata\Google\Cloud\Dialogflow\V2\Webhook::initOnce(); parent::__construct(); } /** * The unique identifier of detectIntent request session. * Can be used to identify end-user inside webhook implementation. * Format: `projects//agent/sessions/`. * * Generated from protobuf field string session = 4; * @return string */ public function getSession() { return $this->session; } /** * The unique identifier of detectIntent request session. * Can be used to identify end-user inside webhook implementation. * Format: `projects//agent/sessions/`. * * Generated from protobuf field string session = 4; * @param string $var * @return $this */ public function setSession($var) { GPBUtil::checkString($var, True); $this->session = $var; return $this; } /** * The unique identifier of the response. Contains the same value as * `[Streaming]DetectIntentResponse.response_id`. * * Generated from protobuf field string response_id = 1; * @return string */ public function getResponseId() { return $this->response_id; } /** * The unique identifier of the response. Contains the same value as * `[Streaming]DetectIntentResponse.response_id`. * * Generated from protobuf field string response_id = 1; * @param string $var * @return $this */ public function setResponseId($var) { GPBUtil::checkString($var, True); $this->response_id = $var; return $this; } /** * 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; * @return \Google\Cloud\Dialogflow\V2\QueryResult */ public function getQueryResult() { return $this->query_result; } /** * 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; * @param \Google\Cloud\Dialogflow\V2\QueryResult $var * @return $this */ public function setQueryResult($var) { GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\QueryResult::class); $this->query_result = $var; return $this; } /** * 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; * @return \Google\Cloud\Dialogflow\V2\OriginalDetectIntentRequest */ public function getOriginalDetectIntentRequest() { return $this->original_detect_intent_request; } /** * 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; * @param \Google\Cloud\Dialogflow\V2\OriginalDetectIntentRequest $var * @return $this */ public function setOriginalDetectIntentRequest($var) { GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\OriginalDetectIntentRequest::class); $this->original_detect_intent_request = $var; return $this; } }