google.cloud.dialogflow.v2.Intent.Message.Card.Button
*/
class Intent_Message_Card_Button extends \Google\Protobuf\Internal\Message
{
/**
* Optional. The text to show on the button.
*
* Generated from protobuf field string text = 1;
*/
private $text = '';
/**
* Optional. The text to send back to the Dialogflow API or a URI to
* open.
*
* Generated from protobuf field string postback = 2;
*/
private $postback = '';
public function __construct() {
\GPBMetadata\Google\Cloud\Dialogflow\V2\Intent::initOnce();
parent::__construct();
}
/**
* Optional. The text to show on the button.
*
* Generated from protobuf field string text = 1;
* @return string
*/
public function getText()
{
return $this->text;
}
/**
* Optional. The text to show on the button.
*
* Generated from protobuf field string text = 1;
* @param string $var
* @return $this
*/
public function setText($var)
{
GPBUtil::checkString($var, True);
$this->text = $var;
return $this;
}
/**
* Optional. The text to send back to the Dialogflow API or a URI to
* open.
*
* Generated from protobuf field string postback = 2;
* @return string
*/
public function getPostback()
{
return $this->postback;
}
/**
* Optional. The text to send back to the Dialogflow API or a URI to
* open.
*
* Generated from protobuf field string postback = 2;
* @param string $var
* @return $this
*/
public function setPostback($var)
{
GPBUtil::checkString($var, True);
$this->postback = $var;
return $this;
}
}