google.cloud.dialogflow.v2.Intent.Message.Card
*/
class Intent_Message_Card 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 = '';
/**
* Optional. The public URI to an image file for the card.
*
* Generated from protobuf field string image_uri = 3;
*/
private $image_uri = '';
/**
* Optional. The collection of card buttons.
*
* Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.Card.Button buttons = 4;
*/
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;
}
/**
* Optional. The public URI to an image file for the card.
*
* Generated from protobuf field string image_uri = 3;
* @return string
*/
public function getImageUri()
{
return $this->image_uri;
}
/**
* Optional. The public URI to an image file for the card.
*
* Generated from protobuf field string image_uri = 3;
* @param string $var
* @return $this
*/
public function setImageUri($var)
{
GPBUtil::checkString($var, True);
$this->image_uri = $var;
return $this;
}
/**
* Optional. The collection of card buttons.
*
* Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.Card.Button buttons = 4;
* @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.Card.Button buttons = 4;
* @param \Google\Cloud\Dialogflow\V2\Intent_Message_Card_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_Card_Button::class);
$this->buttons = $arr;
return $this;
}
}