google.cloud.dialogflow.v2.Intent.Message.SimpleResponse
*/
class Intent_Message_SimpleResponse extends \Google\Protobuf\Internal\Message
{
/**
* One of text_to_speech or ssml must be provided. The plain text of the
* speech output. Mutually exclusive with ssml.
*
* Generated from protobuf field string text_to_speech = 1;
*/
private $text_to_speech = '';
/**
* One of text_to_speech or ssml must be provided. Structured spoken
* response to the user in the SSML format. Mutually exclusive with
* text_to_speech.
*
* Generated from protobuf field string ssml = 2;
*/
private $ssml = '';
/**
* Optional. The text to display.
*
* Generated from protobuf field string display_text = 3;
*/
private $display_text = '';
public function __construct() {
\GPBMetadata\Google\Cloud\Dialogflow\V2\Intent::initOnce();
parent::__construct();
}
/**
* One of text_to_speech or ssml must be provided. The plain text of the
* speech output. Mutually exclusive with ssml.
*
* Generated from protobuf field string text_to_speech = 1;
* @return string
*/
public function getTextToSpeech()
{
return $this->text_to_speech;
}
/**
* One of text_to_speech or ssml must be provided. The plain text of the
* speech output. Mutually exclusive with ssml.
*
* Generated from protobuf field string text_to_speech = 1;
* @param string $var
* @return $this
*/
public function setTextToSpeech($var)
{
GPBUtil::checkString($var, True);
$this->text_to_speech = $var;
return $this;
}
/**
* One of text_to_speech or ssml must be provided. Structured spoken
* response to the user in the SSML format. Mutually exclusive with
* text_to_speech.
*
* Generated from protobuf field string ssml = 2;
* @return string
*/
public function getSsml()
{
return $this->ssml;
}
/**
* One of text_to_speech or ssml must be provided. Structured spoken
* response to the user in the SSML format. Mutually exclusive with
* text_to_speech.
*
* Generated from protobuf field string ssml = 2;
* @param string $var
* @return $this
*/
public function setSsml($var)
{
GPBUtil::checkString($var, True);
$this->ssml = $var;
return $this;
}
/**
* Optional. The text to display.
*
* Generated from protobuf field string display_text = 3;
* @return string
*/
public function getDisplayText()
{
return $this->display_text;
}
/**
* Optional. The text to display.
*
* Generated from protobuf field string display_text = 3;
* @param string $var
* @return $this
*/
public function setDisplayText($var)
{
GPBUtil::checkString($var, True);
$this->display_text = $var;
return $this;
}
}