google.cloud.dialogflow.v2.Intent.Message.BasicCard
*/
class Intent_Message_BasicCard extends \Google\Protobuf\Internal\Message
{
/**
* Optional. The title of the card.
*
* Generated from protobuf field string title = 1;
*/
private $title = '';
/**
* Optional. The subtitle of the card.
*
* Generated from protobuf field string subtitle = 2;
*/
private $subtitle = '';
/**
* Required, unless image is present. The body text of the card.
*
* Generated from protobuf field string formatted_text = 3;
*/
private $formatted_text = '';
/**
* Optional. The image for the card.
*
* Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Image image = 4;
*/
private $image = null;
/**
* Optional. The collection of card buttons.
*
* Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 5;
*/
private $buttons;
public function __construct() {
\GPBMetadata\Google\Cloud\Dialogflow\V2\Intent::initOnce();
parent::__construct();
}
/**
* Optional. The title of the card.
*
* Generated from protobuf field string title = 1;
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* Optional. The title of the card.
*
* 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;
}
/**
* Optional. The subtitle of the card.
*
* Generated from protobuf field string subtitle = 2;
* @return string
*/
public function getSubtitle()
{
return $this->subtitle;
}
/**
* Optional. The subtitle of the card.
*
* Generated from protobuf field string subtitle = 2;
* @param string $var
* @return $this
*/
public function setSubtitle($var)
{
GPBUtil::checkString($var, True);
$this->subtitle = $var;
return $this;
}
/**
* Required, unless image is present. The body text of the card.
*
* Generated from protobuf field string formatted_text = 3;
* @return string
*/
public function getFormattedText()
{
return $this->formatted_text;
}
/**
* Required, unless image is present. The body text of the card.
*
* Generated from protobuf field string formatted_text = 3;
* @param string $var
* @return $this
*/
public function setFormattedText($var)
{
GPBUtil::checkString($var, True);
$this->formatted_text = $var;
return $this;
}
/**
* Optional. The image for the card.
*
* Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Image image = 4;
* @return \Google\Cloud\Dialogflow\V2\Intent_Message_Image
*/
public function getImage()
{
return $this->image;
}
/**
* Optional. The image for the card.
*
* Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Image image = 4;
* @param \Google\Cloud\Dialogflow\V2\Intent_Message_Image $var
* @return $this
*/
public function setImage($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\Intent_Message_Image::class);
$this->image = $var;
return $this;
}
/**
* Optional. The collection of card buttons.
*
* Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 5;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getButtons()
{
return $this->buttons;
}
/**
* Optional. The collection of card buttons.
*
* Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 5;
* @param \Google\Cloud\Dialogflow\V2\Intent_Message_BasicCard_Button[]|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setButtons($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dialogflow\V2\Intent_Message_BasicCard_Button::class);
$this->buttons = $arr;
return $this;
}
}