propresenter-php/php/generated/Rv/Data/PlaylistItem/Header.php
2026-03-01 16:12:17 +01:00

97 lines
2.4 KiB
PHP

<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: playlist.proto
namespace Rv\Data\PlaylistItem;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>rv.data.PlaylistItem.Header</code>
*/
class Header extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field <code>.rv.data.Color color = 1;</code>
*/
protected $color = null;
/**
* Generated from protobuf field <code>repeated .rv.data.Action actions = 2;</code>
*/
private $actions;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Rv\Data\Color $color
* @type array<\Rv\Data\Action>|\Google\Protobuf\Internal\RepeatedField $actions
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Playlist::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field <code>.rv.data.Color color = 1;</code>
* @return \Rv\Data\Color|null
*/
public function getColor()
{
return $this->color;
}
public function hasColor()
{
return isset($this->color);
}
public function clearColor()
{
unset($this->color);
}
/**
* Generated from protobuf field <code>.rv.data.Color color = 1;</code>
* @param \Rv\Data\Color $var
* @return $this
*/
public function setColor($var)
{
GPBUtil::checkMessage($var, \Rv\Data\Color::class);
$this->color = $var;
return $this;
}
/**
* Generated from protobuf field <code>repeated .rv.data.Action actions = 2;</code>
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getActions()
{
return $this->actions;
}
/**
* Generated from protobuf field <code>repeated .rv.data.Action actions = 2;</code>
* @param array<\Rv\Data\Action>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setActions($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\Action::class);
$this->actions = $arr;
return $this;
}
}