google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button
*/
class Intent_Message_BasicCard_Button extends \Google\Protobuf\Internal\Message
{
/**
* Required. The title of the button.
*
* Generated from protobuf field string title = 1;
*/
private $title = '';
/**
* Required. Action to take when a user taps on the button.
*
* Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2;
*/
private $open_uri_action = null;
public function __construct() {
\GPBMetadata\Google\Cloud\Dialogflow\V2\Intent::initOnce();
parent::__construct();
}
/**
* Required. The title of the button.
*
* Generated from protobuf field string title = 1;
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* Required. The title of the button.
*
* Generated from protobuf field string title = 1;
* @param string $var
* @return $this
*/
public function setTitle($var)
{
GPBUtil::checkString($var, True);
$this->title = $var;
return $this;
}
/**
* Required. Action to take when a user taps on the button.
*
* Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2;
* @return \Google\Cloud\Dialogflow\V2\Intent_Message_BasicCard_Button_OpenUriAction
*/
public function getOpenUriAction()
{
return $this->open_uri_action;
}
/**
* Required. Action to take when a user taps on the button.
*
* Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2;
* @param \Google\Cloud\Dialogflow\V2\Intent_Message_BasicCard_Button_OpenUriAction $var
* @return $this
*/
public function setOpenUriAction($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\Intent_Message_BasicCard_Button_OpenUriAction::class);
$this->open_uri_action = $var;
return $this;
}
}