- 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
300 lines
7.3 KiB
PHP
300 lines
7.3 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.PlaylistItem</code>
|
|
*/
|
|
class PlaylistItem 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>repeated .rv.data.UUID tags = 7;</code>
|
|
*/
|
|
private $tags;
|
|
/**
|
|
* Generated from protobuf field <code>bool is_hidden = 9;</code>
|
|
*/
|
|
protected $is_hidden = false;
|
|
protected $ItemType;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type \Rv\Data\UUID $uuid
|
|
* @type string $name
|
|
* @type array<\Rv\Data\UUID>|\Google\Protobuf\Internal\RepeatedField $tags
|
|
* @type bool $is_hidden
|
|
* @type \Rv\Data\PlaylistItem\Header $header
|
|
* @type \Rv\Data\PlaylistItem\Presentation $presentation
|
|
* @type \Rv\Data\Cue $cue
|
|
* @type \Rv\Data\PlaylistItem\PlanningCenter $planning_center
|
|
* @type \Rv\Data\PlaylistItem\Placeholder $placeholder
|
|
* }
|
|
*/
|
|
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>repeated .rv.data.UUID tags = 7;</code>
|
|
* @return \Google\Protobuf\Internal\RepeatedField
|
|
*/
|
|
public function getTags()
|
|
{
|
|
return $this->tags;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.UUID tags = 7;</code>
|
|
* @param array<\Rv\Data\UUID>|\Google\Protobuf\Internal\RepeatedField $var
|
|
* @return $this
|
|
*/
|
|
public function setTags($var)
|
|
{
|
|
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\UUID::class);
|
|
$this->tags = $arr;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool is_hidden = 9;</code>
|
|
* @return bool
|
|
*/
|
|
public function getIsHidden()
|
|
{
|
|
return $this->is_hidden;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool is_hidden = 9;</code>
|
|
* @param bool $var
|
|
* @return $this
|
|
*/
|
|
public function setIsHidden($var)
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
$this->is_hidden = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.PlaylistItem.Header header = 3;</code>
|
|
* @return \Rv\Data\PlaylistItem\Header|null
|
|
*/
|
|
public function getHeader()
|
|
{
|
|
return $this->readOneof(3);
|
|
}
|
|
|
|
public function hasHeader()
|
|
{
|
|
return $this->hasOneof(3);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.PlaylistItem.Header header = 3;</code>
|
|
* @param \Rv\Data\PlaylistItem\Header $var
|
|
* @return $this
|
|
*/
|
|
public function setHeader($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\PlaylistItem\Header::class);
|
|
$this->writeOneof(3, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.PlaylistItem.Presentation presentation = 4;</code>
|
|
* @return \Rv\Data\PlaylistItem\Presentation|null
|
|
*/
|
|
public function getPresentation()
|
|
{
|
|
return $this->readOneof(4);
|
|
}
|
|
|
|
public function hasPresentation()
|
|
{
|
|
return $this->hasOneof(4);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.PlaylistItem.Presentation presentation = 4;</code>
|
|
* @param \Rv\Data\PlaylistItem\Presentation $var
|
|
* @return $this
|
|
*/
|
|
public function setPresentation($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\PlaylistItem\Presentation::class);
|
|
$this->writeOneof(4, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Cue cue = 5;</code>
|
|
* @return \Rv\Data\Cue|null
|
|
*/
|
|
public function getCue()
|
|
{
|
|
return $this->readOneof(5);
|
|
}
|
|
|
|
public function hasCue()
|
|
{
|
|
return $this->hasOneof(5);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Cue cue = 5;</code>
|
|
* @param \Rv\Data\Cue $var
|
|
* @return $this
|
|
*/
|
|
public function setCue($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\Cue::class);
|
|
$this->writeOneof(5, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.PlaylistItem.PlanningCenter planning_center = 6;</code>
|
|
* @return \Rv\Data\PlaylistItem\PlanningCenter|null
|
|
*/
|
|
public function getPlanningCenter()
|
|
{
|
|
return $this->readOneof(6);
|
|
}
|
|
|
|
public function hasPlanningCenter()
|
|
{
|
|
return $this->hasOneof(6);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.PlaylistItem.PlanningCenter planning_center = 6;</code>
|
|
* @param \Rv\Data\PlaylistItem\PlanningCenter $var
|
|
* @return $this
|
|
*/
|
|
public function setPlanningCenter($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\PlaylistItem\PlanningCenter::class);
|
|
$this->writeOneof(6, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.PlaylistItem.Placeholder placeholder = 8;</code>
|
|
* @return \Rv\Data\PlaylistItem\Placeholder|null
|
|
*/
|
|
public function getPlaceholder()
|
|
{
|
|
return $this->readOneof(8);
|
|
}
|
|
|
|
public function hasPlaceholder()
|
|
{
|
|
return $this->hasOneof(8);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.PlaylistItem.Placeholder placeholder = 8;</code>
|
|
* @param \Rv\Data\PlaylistItem\Placeholder $var
|
|
* @return $this
|
|
*/
|
|
public function setPlaceholder($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\PlaylistItem\Placeholder::class);
|
|
$this->writeOneof(8, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getItemType()
|
|
{
|
|
return $this->whichOneof("ItemType");
|
|
}
|
|
|
|
}
|
|
|