rv.data.PlaylistDocument */ class PlaylistDocument extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field .rv.data.ApplicationInfo application_info = 1; */ protected $application_info = null; /** * Generated from protobuf field .rv.data.PlaylistDocument.Type type = 2; */ protected $type = 0; /** * Generated from protobuf field .rv.data.Playlist root_node = 3; */ protected $root_node = null; /** * Generated from protobuf field repeated .rv.data.Playlist.Tag tags = 4; */ private $tags; /** * Generated from protobuf field .rv.data.Playlist live_video_playlist = 5; */ protected $live_video_playlist = null; /** * Generated from protobuf field .rv.data.Playlist downloads_playlist = 6; */ protected $downloads_playlist = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Rv\Data\ApplicationInfo $application_info * @type int $type * @type \Rv\Data\Playlist $root_node * @type array<\Rv\Data\Playlist\Tag>|\Google\Protobuf\Internal\RepeatedField $tags * @type \Rv\Data\Playlist $live_video_playlist * @type \Rv\Data\Playlist $downloads_playlist * } */ public function __construct($data = NULL) { \GPBMetadata\Propresenter::initOnce(); parent::__construct($data); } /** * Generated from protobuf field .rv.data.ApplicationInfo application_info = 1; * @return \Rv\Data\ApplicationInfo|null */ public function getApplicationInfo() { return $this->application_info; } public function hasApplicationInfo() { return isset($this->application_info); } public function clearApplicationInfo() { unset($this->application_info); } /** * Generated from protobuf field .rv.data.ApplicationInfo application_info = 1; * @param \Rv\Data\ApplicationInfo $var * @return $this */ public function setApplicationInfo($var) { GPBUtil::checkMessage($var, \Rv\Data\ApplicationInfo::class); $this->application_info = $var; return $this; } /** * Generated from protobuf field .rv.data.PlaylistDocument.Type type = 2; * @return int */ public function getType() { return $this->type; } /** * Generated from protobuf field .rv.data.PlaylistDocument.Type type = 2; * @param int $var * @return $this */ public function setType($var) { GPBUtil::checkEnum($var, \Rv\Data\PlaylistDocument\Type::class); $this->type = $var; return $this; } /** * Generated from protobuf field .rv.data.Playlist root_node = 3; * @return \Rv\Data\Playlist|null */ public function getRootNode() { return $this->root_node; } public function hasRootNode() { return isset($this->root_node); } public function clearRootNode() { unset($this->root_node); } /** * Generated from protobuf field .rv.data.Playlist root_node = 3; * @param \Rv\Data\Playlist $var * @return $this */ public function setRootNode($var) { GPBUtil::checkMessage($var, \Rv\Data\Playlist::class); $this->root_node = $var; return $this; } /** * Generated from protobuf field repeated .rv.data.Playlist.Tag tags = 4; * @return \Google\Protobuf\Internal\RepeatedField */ public function getTags() { return $this->tags; } /** * Generated from protobuf field repeated .rv.data.Playlist.Tag tags = 4; * @param array<\Rv\Data\Playlist\Tag>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setTags($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\Playlist\Tag::class); $this->tags = $arr; return $this; } /** * Generated from protobuf field .rv.data.Playlist live_video_playlist = 5; * @return \Rv\Data\Playlist|null */ public function getLiveVideoPlaylist() { return $this->live_video_playlist; } public function hasLiveVideoPlaylist() { return isset($this->live_video_playlist); } public function clearLiveVideoPlaylist() { unset($this->live_video_playlist); } /** * Generated from protobuf field .rv.data.Playlist live_video_playlist = 5; * @param \Rv\Data\Playlist $var * @return $this */ public function setLiveVideoPlaylist($var) { GPBUtil::checkMessage($var, \Rv\Data\Playlist::class); $this->live_video_playlist = $var; return $this; } /** * Generated from protobuf field .rv.data.Playlist downloads_playlist = 6; * @return \Rv\Data\Playlist|null */ public function getDownloadsPlaylist() { return $this->downloads_playlist; } public function hasDownloadsPlaylist() { return isset($this->downloads_playlist); } public function clearDownloadsPlaylist() { unset($this->downloads_playlist); } /** * Generated from protobuf field .rv.data.Playlist downloads_playlist = 6; * @param \Rv\Data\Playlist $var * @return $this */ public function setDownloadsPlaylist($var) { GPBUtil::checkMessage($var, \Rv\Data\Playlist::class); $this->downloads_playlist = $var; return $this; } }