rv.data.API_v1_Presentation.SlideGroup */ class SlideGroup extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field string name = 1; */ protected $name = ''; /** * Generated from protobuf field .rv.data.API_v1_Color color = 2; */ protected $color = null; /** * Generated from protobuf field repeated .rv.data.API_v1_Presentation.SlideGroup.Slide slides = 3; */ private $slides; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $name * @type \Rv\Data\API_v1_Color $color * @type array<\Rv\Data\API_v1_Presentation\SlideGroup\Slide>|\Google\Protobuf\Internal\RepeatedField $slides * } */ public function __construct($data = NULL) { \GPBMetadata\ProApiV1Presentation::initOnce(); parent::__construct($data); } /** * Generated from protobuf field string name = 1; * @return string */ public function getName() { return $this->name; } /** * Generated from protobuf field string name = 1; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * Generated from protobuf field .rv.data.API_v1_Color color = 2; * @return \Rv\Data\API_v1_Color|null */ public function getColor() { return $this->color; } public function hasColor() { return isset($this->color); } public function clearColor() { unset($this->color); } /** * Generated from protobuf field .rv.data.API_v1_Color color = 2; * @param \Rv\Data\API_v1_Color $var * @return $this */ public function setColor($var) { GPBUtil::checkMessage($var, \Rv\Data\API_v1_Color::class); $this->color = $var; return $this; } /** * Generated from protobuf field repeated .rv.data.API_v1_Presentation.SlideGroup.Slide slides = 3; * @return \Google\Protobuf\Internal\RepeatedField */ public function getSlides() { return $this->slides; } /** * Generated from protobuf field repeated .rv.data.API_v1_Presentation.SlideGroup.Slide slides = 3; * @param array<\Rv\Data\API_v1_Presentation\SlideGroup\Slide>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setSlides($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\API_v1_Presentation\SlideGroup\Slide::class); $this->slides = $arr; return $this; } }