- Move src/, tests/, bin/, generated/, proto/, composer.json, composer.lock, phpunit.xml from php/ to repo root - Move ref/ to doc/reference_samples/ for better organization - Remove vendor/ from git tracking (now properly gitignored) - Update all test file paths (dirname adjustments and ref/ -> doc/reference_samples/) - Update all documentation paths (AGENTS.md, doc/*.md) - Remove php.bak/ directory - All 252 tests pass
235 lines
6.1 KiB
PHP
235 lines
6.1 KiB
PHP
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
# source: propresenter.proto
|
|
|
|
namespace Rv\Data;
|
|
|
|
use Google\Protobuf\Internal\GPBType;
|
|
use Google\Protobuf\Internal\RepeatedField;
|
|
use Google\Protobuf\Internal\GPBUtil;
|
|
|
|
/**
|
|
* Generated from protobuf message <code>rv.data.PlaylistDocument</code>
|
|
*/
|
|
class PlaylistDocument extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.ApplicationInfo application_info = 1;</code>
|
|
*/
|
|
protected $application_info = null;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.PlaylistDocument.Type type = 2;</code>
|
|
*/
|
|
protected $type = 0;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Playlist root_node = 3;</code>
|
|
*/
|
|
protected $root_node = null;
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.Playlist.Tag tags = 4;</code>
|
|
*/
|
|
private $tags;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Playlist live_video_playlist = 5;</code>
|
|
*/
|
|
protected $live_video_playlist = null;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Playlist downloads_playlist = 6;</code>
|
|
*/
|
|
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 <code>.rv.data.ApplicationInfo application_info = 1;</code>
|
|
* @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 <code>.rv.data.ApplicationInfo application_info = 1;</code>
|
|
* @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 <code>.rv.data.PlaylistDocument.Type type = 2;</code>
|
|
* @return int
|
|
*/
|
|
public function getType()
|
|
{
|
|
return $this->type;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.PlaylistDocument.Type type = 2;</code>
|
|
* @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 <code>.rv.data.Playlist root_node = 3;</code>
|
|
* @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 <code>.rv.data.Playlist root_node = 3;</code>
|
|
* @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 <code>repeated .rv.data.Playlist.Tag tags = 4;</code>
|
|
* @return \Google\Protobuf\Internal\RepeatedField
|
|
*/
|
|
public function getTags()
|
|
{
|
|
return $this->tags;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.Playlist.Tag tags = 4;</code>
|
|
* @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 <code>.rv.data.Playlist live_video_playlist = 5;</code>
|
|
* @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 <code>.rv.data.Playlist live_video_playlist = 5;</code>
|
|
* @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 <code>.rv.data.Playlist downloads_playlist = 6;</code>
|
|
* @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 <code>.rv.data.Playlist downloads_playlist = 6;</code>
|
|
* @param \Rv\Data\Playlist $var
|
|
* @return $this
|
|
*/
|
|
public function setDownloadsPlaylist($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\Playlist::class);
|
|
$this->downloads_playlist = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|