rv.data.PlaylistItem
*/
class PlaylistItem extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field .rv.data.UUID uuid = 1;
*/
protected $uuid = null;
/**
* Generated from protobuf field string name = 2;
*/
protected $name = '';
/**
* Generated from protobuf field repeated .rv.data.UUID tags = 7;
*/
private $tags;
/**
* Generated from protobuf field bool is_hidden = 9;
*/
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 .rv.data.UUID uuid = 1;
* @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 .rv.data.UUID uuid = 1;
* @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 string name = 2;
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Generated from protobuf field string name = 2;
* @param string $var
* @return $this
*/
public function setName($var)
{
GPBUtil::checkString($var, True);
$this->name = $var;
return $this;
}
/**
* Generated from protobuf field repeated .rv.data.UUID tags = 7;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getTags()
{
return $this->tags;
}
/**
* Generated from protobuf field repeated .rv.data.UUID tags = 7;
* @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 bool is_hidden = 9;
* @return bool
*/
public function getIsHidden()
{
return $this->is_hidden;
}
/**
* Generated from protobuf field bool is_hidden = 9;
* @param bool $var
* @return $this
*/
public function setIsHidden($var)
{
GPBUtil::checkBool($var);
$this->is_hidden = $var;
return $this;
}
/**
* Generated from protobuf field .rv.data.PlaylistItem.Header header = 3;
* @return \Rv\Data\PlaylistItem\Header|null
*/
public function getHeader()
{
return $this->readOneof(3);
}
public function hasHeader()
{
return $this->hasOneof(3);
}
/**
* Generated from protobuf field .rv.data.PlaylistItem.Header header = 3;
* @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 .rv.data.PlaylistItem.Presentation presentation = 4;
* @return \Rv\Data\PlaylistItem\Presentation|null
*/
public function getPresentation()
{
return $this->readOneof(4);
}
public function hasPresentation()
{
return $this->hasOneof(4);
}
/**
* Generated from protobuf field .rv.data.PlaylistItem.Presentation presentation = 4;
* @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 .rv.data.Cue cue = 5;
* @return \Rv\Data\Cue|null
*/
public function getCue()
{
return $this->readOneof(5);
}
public function hasCue()
{
return $this->hasOneof(5);
}
/**
* Generated from protobuf field .rv.data.Cue cue = 5;
* @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 .rv.data.PlaylistItem.PlanningCenter planning_center = 6;
* @return \Rv\Data\PlaylistItem\PlanningCenter|null
*/
public function getPlanningCenter()
{
return $this->readOneof(6);
}
public function hasPlanningCenter()
{
return $this->hasOneof(6);
}
/**
* Generated from protobuf field .rv.data.PlaylistItem.PlanningCenter planning_center = 6;
* @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 .rv.data.PlaylistItem.Placeholder placeholder = 8;
* @return \Rv\Data\PlaylistItem\Placeholder|null
*/
public function getPlaceholder()
{
return $this->readOneof(8);
}
public function hasPlaceholder()
{
return $this->hasOneof(8);
}
/**
* Generated from protobuf field .rv.data.PlaylistItem.Placeholder placeholder = 8;
* @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");
}
}