google.cloud.dialogflow.v2.Intent.Message.ListSelect */ class Intent_Message_ListSelect extends \Google\Protobuf\Internal\Message { /** * Optional. The overall title of the list. * * Generated from protobuf field string title = 1; */ private $title = ''; /** * Required. List items. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.ListSelect.Item items = 2; */ private $items; public function __construct() { \GPBMetadata\Google\Cloud\Dialogflow\V2\Intent::initOnce(); parent::__construct(); } /** * Optional. The overall title of the list. * * Generated from protobuf field string title = 1; * @return string */ public function getTitle() { return $this->title; } /** * Optional. The overall title of the list. * * 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. List items. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.ListSelect.Item items = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getItems() { return $this->items; } /** * Required. List items. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.ListSelect.Item items = 2; * @param \Google\Cloud\Dialogflow\V2\Intent_Message_ListSelect_Item[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dialogflow\V2\Intent_Message_ListSelect_Item::class); $this->items = $arr; return $this; } }