google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.Item
*/
class Intent_Message_CarouselSelect_Item extends \Google\Protobuf\Internal\Message
{
/**
* Required. Additional info about the option item.
*
* Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.SelectItemInfo info = 1;
*/
private $info = null;
/**
* Required. Title of the carousel item.
*
* Generated from protobuf field string title = 2;
*/
private $title = '';
/**
* Optional. The body text of the card.
*
* Generated from protobuf field string description = 3;
*/
private $description = '';
/**
* Optional. The image to display.
*
* Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Image image = 4;
*/
private $image = null;
public function __construct() {
\GPBMetadata\Google\Cloud\Dialogflow\V2\Intent::initOnce();
parent::__construct();
}
/**
* Required. Additional info about the option item.
*
* Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.SelectItemInfo info = 1;
* @return \Google\Cloud\Dialogflow\V2\Intent_Message_SelectItemInfo
*/
public function getInfo()
{
return $this->info;
}
/**
* Required. Additional info about the option item.
*
* Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.SelectItemInfo info = 1;
* @param \Google\Cloud\Dialogflow\V2\Intent_Message_SelectItemInfo $var
* @return $this
*/
public function setInfo($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\Intent_Message_SelectItemInfo::class);
$this->info = $var;
return $this;
}
/**
* Required. Title of the carousel item.
*
* Generated from protobuf field string title = 2;
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* Required. Title of the carousel item.
*
* Generated from protobuf field string title = 2;
* @param string $var
* @return $this
*/
public function setTitle($var)
{
GPBUtil::checkString($var, True);
$this->title = $var;
return $this;
}
/**
* Optional. The body text of the card.
*
* Generated from protobuf field string description = 3;
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Optional. The body text of the card.
*
* Generated from protobuf field string description = 3;
* @param string $var
* @return $this
*/
public function setDescription($var)
{
GPBUtil::checkString($var, True);
$this->description = $var;
return $this;
}
/**
* Optional. The image to display.
*
* 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 to display.
*
* 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;
}
}