- 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
537 lines
13 KiB
PHP
537 lines
13 KiB
PHP
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
# source: playlist.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.Playlist</code>
|
|
*/
|
|
class Playlist extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.UUID uuid = 1;</code>
|
|
*/
|
|
protected $uuid = null;
|
|
/**
|
|
* Generated from protobuf field <code>string name = 2;</code>
|
|
*/
|
|
protected $name = '';
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Playlist.Type type = 3;</code>
|
|
*/
|
|
protected $type = 0;
|
|
/**
|
|
* Generated from protobuf field <code>bool expanded = 4;</code>
|
|
*/
|
|
protected $expanded = false;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.UUID targeted_layer_uuid = 5;</code>
|
|
*/
|
|
protected $targeted_layer_uuid = null;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.URL smart_directory_path = 6;</code>
|
|
*/
|
|
protected $smart_directory_path = null;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.HotKey hot_key = 7;</code>
|
|
*/
|
|
protected $hot_key = null;
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.Cue cues = 8;</code>
|
|
*/
|
|
private $cues;
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.Playlist children = 9;</code>
|
|
*/
|
|
private $children;
|
|
/**
|
|
* Generated from protobuf field <code>bool timecode_enabled = 10;</code>
|
|
*/
|
|
protected $timecode_enabled = false;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Playlist.TimingType timing = 11;</code>
|
|
*/
|
|
protected $timing = 0;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Playlist.StartupInfo startup_info = 16;</code>
|
|
*/
|
|
protected $startup_info = null;
|
|
protected $ChildrenType;
|
|
protected $LinkData;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type \Rv\Data\UUID $uuid
|
|
* @type string $name
|
|
* @type int $type
|
|
* @type bool $expanded
|
|
* @type \Rv\Data\UUID $targeted_layer_uuid
|
|
* @type \Rv\Data\URL $smart_directory_path
|
|
* @type \Rv\Data\HotKey $hot_key
|
|
* @type array<\Rv\Data\Cue>|\Google\Protobuf\Internal\RepeatedField $cues
|
|
* @type array<\Rv\Data\Playlist>|\Google\Protobuf\Internal\RepeatedField $children
|
|
* @type bool $timecode_enabled
|
|
* @type int $timing
|
|
* @type \Rv\Data\Playlist\StartupInfo $startup_info
|
|
* @type \Rv\Data\Playlist\PlaylistArray $playlists
|
|
* @type \Rv\Data\Playlist\PlaylistItems $items
|
|
* @type \Rv\Data\Playlist\FolderDirectory $smart_directory
|
|
* @type \Rv\Data\PlanningCenterPlan $pco_plan
|
|
* }
|
|
*/
|
|
public function __construct($data = NULL) {
|
|
\GPBMetadata\Playlist::initOnce();
|
|
parent::__construct($data);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.UUID uuid = 1;</code>
|
|
* @return \Rv\Data\UUID|null
|
|
*/
|
|
public function getUuid()
|
|
{
|
|
return $this->uuid;
|
|
}
|
|
|
|
public function hasUuid()
|
|
{
|
|
return isset($this->uuid);
|
|
}
|
|
|
|
public function clearUuid()
|
|
{
|
|
unset($this->uuid);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.UUID uuid = 1;</code>
|
|
* @param \Rv\Data\UUID $var
|
|
* @return $this
|
|
*/
|
|
public function setUuid($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\UUID::class);
|
|
$this->uuid = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string name = 2;</code>
|
|
* @return string
|
|
*/
|
|
public function getName()
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string name = 2;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setName($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->name = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Playlist.Type type = 3;</code>
|
|
* @return int
|
|
*/
|
|
public function getType()
|
|
{
|
|
return $this->type;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Playlist.Type type = 3;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setType($var)
|
|
{
|
|
GPBUtil::checkEnum($var, \Rv\Data\Playlist\Type::class);
|
|
$this->type = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool expanded = 4;</code>
|
|
* @return bool
|
|
*/
|
|
public function getExpanded()
|
|
{
|
|
return $this->expanded;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool expanded = 4;</code>
|
|
* @param bool $var
|
|
* @return $this
|
|
*/
|
|
public function setExpanded($var)
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
$this->expanded = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.UUID targeted_layer_uuid = 5;</code>
|
|
* @return \Rv\Data\UUID|null
|
|
*/
|
|
public function getTargetedLayerUuid()
|
|
{
|
|
return $this->targeted_layer_uuid;
|
|
}
|
|
|
|
public function hasTargetedLayerUuid()
|
|
{
|
|
return isset($this->targeted_layer_uuid);
|
|
}
|
|
|
|
public function clearTargetedLayerUuid()
|
|
{
|
|
unset($this->targeted_layer_uuid);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.UUID targeted_layer_uuid = 5;</code>
|
|
* @param \Rv\Data\UUID $var
|
|
* @return $this
|
|
*/
|
|
public function setTargetedLayerUuid($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\UUID::class);
|
|
$this->targeted_layer_uuid = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.URL smart_directory_path = 6;</code>
|
|
* @return \Rv\Data\URL|null
|
|
*/
|
|
public function getSmartDirectoryPath()
|
|
{
|
|
return $this->smart_directory_path;
|
|
}
|
|
|
|
public function hasSmartDirectoryPath()
|
|
{
|
|
return isset($this->smart_directory_path);
|
|
}
|
|
|
|
public function clearSmartDirectoryPath()
|
|
{
|
|
unset($this->smart_directory_path);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.URL smart_directory_path = 6;</code>
|
|
* @param \Rv\Data\URL $var
|
|
* @return $this
|
|
*/
|
|
public function setSmartDirectoryPath($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\URL::class);
|
|
$this->smart_directory_path = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.HotKey hot_key = 7;</code>
|
|
* @return \Rv\Data\HotKey|null
|
|
*/
|
|
public function getHotKey()
|
|
{
|
|
return $this->hot_key;
|
|
}
|
|
|
|
public function hasHotKey()
|
|
{
|
|
return isset($this->hot_key);
|
|
}
|
|
|
|
public function clearHotKey()
|
|
{
|
|
unset($this->hot_key);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.HotKey hot_key = 7;</code>
|
|
* @param \Rv\Data\HotKey $var
|
|
* @return $this
|
|
*/
|
|
public function setHotKey($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\HotKey::class);
|
|
$this->hot_key = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.Cue cues = 8;</code>
|
|
* @return \Google\Protobuf\Internal\RepeatedField
|
|
*/
|
|
public function getCues()
|
|
{
|
|
return $this->cues;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.Cue cues = 8;</code>
|
|
* @param array<\Rv\Data\Cue>|\Google\Protobuf\Internal\RepeatedField $var
|
|
* @return $this
|
|
*/
|
|
public function setCues($var)
|
|
{
|
|
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\Cue::class);
|
|
$this->cues = $arr;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.Playlist children = 9;</code>
|
|
* @return \Google\Protobuf\Internal\RepeatedField
|
|
*/
|
|
public function getChildren()
|
|
{
|
|
return $this->children;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.Playlist children = 9;</code>
|
|
* @param array<\Rv\Data\Playlist>|\Google\Protobuf\Internal\RepeatedField $var
|
|
* @return $this
|
|
*/
|
|
public function setChildren($var)
|
|
{
|
|
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\Playlist::class);
|
|
$this->children = $arr;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool timecode_enabled = 10;</code>
|
|
* @return bool
|
|
*/
|
|
public function getTimecodeEnabled()
|
|
{
|
|
return $this->timecode_enabled;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool timecode_enabled = 10;</code>
|
|
* @param bool $var
|
|
* @return $this
|
|
*/
|
|
public function setTimecodeEnabled($var)
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
$this->timecode_enabled = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Playlist.TimingType timing = 11;</code>
|
|
* @return int
|
|
*/
|
|
public function getTiming()
|
|
{
|
|
return $this->timing;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Playlist.TimingType timing = 11;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setTiming($var)
|
|
{
|
|
GPBUtil::checkEnum($var, \Rv\Data\Playlist\TimingType::class);
|
|
$this->timing = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Playlist.StartupInfo startup_info = 16;</code>
|
|
* @return \Rv\Data\Playlist\StartupInfo|null
|
|
*/
|
|
public function getStartupInfo()
|
|
{
|
|
return $this->startup_info;
|
|
}
|
|
|
|
public function hasStartupInfo()
|
|
{
|
|
return isset($this->startup_info);
|
|
}
|
|
|
|
public function clearStartupInfo()
|
|
{
|
|
unset($this->startup_info);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Playlist.StartupInfo startup_info = 16;</code>
|
|
* @param \Rv\Data\Playlist\StartupInfo $var
|
|
* @return $this
|
|
*/
|
|
public function setStartupInfo($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\Playlist\StartupInfo::class);
|
|
$this->startup_info = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Playlist.PlaylistArray playlists = 12;</code>
|
|
* @return \Rv\Data\Playlist\PlaylistArray|null
|
|
*/
|
|
public function getPlaylists()
|
|
{
|
|
return $this->readOneof(12);
|
|
}
|
|
|
|
public function hasPlaylists()
|
|
{
|
|
return $this->hasOneof(12);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Playlist.PlaylistArray playlists = 12;</code>
|
|
* @param \Rv\Data\Playlist\PlaylistArray $var
|
|
* @return $this
|
|
*/
|
|
public function setPlaylists($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\Playlist\PlaylistArray::class);
|
|
$this->writeOneof(12, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Playlist.PlaylistItems items = 13;</code>
|
|
* @return \Rv\Data\Playlist\PlaylistItems|null
|
|
*/
|
|
public function getItems()
|
|
{
|
|
return $this->readOneof(13);
|
|
}
|
|
|
|
public function hasItems()
|
|
{
|
|
return $this->hasOneof(13);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Playlist.PlaylistItems items = 13;</code>
|
|
* @param \Rv\Data\Playlist\PlaylistItems $var
|
|
* @return $this
|
|
*/
|
|
public function setItems($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\Playlist\PlaylistItems::class);
|
|
$this->writeOneof(13, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Playlist.FolderDirectory smart_directory = 14;</code>
|
|
* @return \Rv\Data\Playlist\FolderDirectory|null
|
|
*/
|
|
public function getSmartDirectory()
|
|
{
|
|
return $this->readOneof(14);
|
|
}
|
|
|
|
public function hasSmartDirectory()
|
|
{
|
|
return $this->hasOneof(14);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Playlist.FolderDirectory smart_directory = 14;</code>
|
|
* @param \Rv\Data\Playlist\FolderDirectory $var
|
|
* @return $this
|
|
*/
|
|
public function setSmartDirectory($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\Playlist\FolderDirectory::class);
|
|
$this->writeOneof(14, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.PlanningCenterPlan pco_plan = 15;</code>
|
|
* @return \Rv\Data\PlanningCenterPlan|null
|
|
*/
|
|
public function getPcoPlan()
|
|
{
|
|
return $this->readOneof(15);
|
|
}
|
|
|
|
public function hasPcoPlan()
|
|
{
|
|
return $this->hasOneof(15);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.PlanningCenterPlan pco_plan = 15;</code>
|
|
* @param \Rv\Data\PlanningCenterPlan $var
|
|
* @return $this
|
|
*/
|
|
public function setPcoPlan($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\PlanningCenterPlan::class);
|
|
$this->writeOneof(15, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getChildrenType()
|
|
{
|
|
return $this->whichOneof("ChildrenType");
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getLinkData()
|
|
{
|
|
return $this->whichOneof("LinkData");
|
|
}
|
|
|
|
}
|
|
|