google.cloud.dialogflow.v2.StreamingDetectIntentResponse */ class StreamingDetectIntentResponse extends \Google\Protobuf\Internal\Message { /** * The unique identifier of the response. It can be used to * locate a response in the training example set or for reporting issues. * * Generated from protobuf field string response_id = 1; */ private $response_id = ''; /** * The result of speech recognition. * * Generated from protobuf field .google.cloud.dialogflow.v2.StreamingRecognitionResult recognition_result = 2; */ private $recognition_result = null; /** * The result of the conversational query or event processing. * * Generated from protobuf field .google.cloud.dialogflow.v2.QueryResult query_result = 3; */ private $query_result = null; /** * Specifies the status of the webhook request. * * Generated from protobuf field .google.rpc.Status webhook_status = 4; */ private $webhook_status = null; public function __construct() { \GPBMetadata\Google\Cloud\Dialogflow\V2\Session::initOnce(); parent::__construct(); } /** * The unique identifier of the response. It can be used to * locate a response in the training example set or for reporting issues. * * Generated from protobuf field string response_id = 1; * @return string */ public function getResponseId() { return $this->response_id; } /** * The unique identifier of the response. It can be used to * locate a response in the training example set or for reporting issues. * * 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 speech recognition. * * Generated from protobuf field .google.cloud.dialogflow.v2.StreamingRecognitionResult recognition_result = 2; * @return \Google\Cloud\Dialogflow\V2\StreamingRecognitionResult */ public function getRecognitionResult() { return $this->recognition_result; } /** * The result of speech recognition. * * Generated from protobuf field .google.cloud.dialogflow.v2.StreamingRecognitionResult recognition_result = 2; * @param \Google\Cloud\Dialogflow\V2\StreamingRecognitionResult $var * @return $this */ public function setRecognitionResult($var) { GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\StreamingRecognitionResult::class); $this->recognition_result = $var; return $this; } /** * The result of the conversational query or event processing. * * Generated from protobuf field .google.cloud.dialogflow.v2.QueryResult query_result = 3; * @return \Google\Cloud\Dialogflow\V2\QueryResult */ public function getQueryResult() { return $this->query_result; } /** * The result of the conversational query or event processing. * * Generated from protobuf field .google.cloud.dialogflow.v2.QueryResult query_result = 3; * @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; } /** * Specifies the status of the webhook request. * * Generated from protobuf field .google.rpc.Status webhook_status = 4; * @return \Google\Rpc\Status */ public function getWebhookStatus() { return $this->webhook_status; } /** * Specifies the status of the webhook request. * * Generated from protobuf field .google.rpc.Status webhook_status = 4; * @param \Google\Rpc\Status $var * @return $this */ public function setWebhookStatus($var) { GPBUtil::checkMessage($var, \Google\Rpc\Status::class); $this->webhook_status = $var; return $this; } }