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

285 lines
7.1 KiB
PHP

<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: proApiV1Playlist.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.API_v1_PlaylistItem</code>
*/
class API_v1_PlaylistItem extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field <code>.rv.data.API_v1_Identifier id = 1;</code>
*/
protected $id = null;
/**
* Generated from protobuf field <code>.rv.data.API_v1_PlaylistItem.API_v1_PlaylistItemType type = 2;</code>
*/
protected $type = 0;
/**
* Generated from protobuf field <code>bool is_hidden = 3;</code>
*/
protected $is_hidden = false;
/**
* Generated from protobuf field <code>bool is_pco = 4;</code>
*/
protected $is_pco = false;
/**
* Generated from protobuf field <code>.rv.data.API_v1_Color header_color = 5;</code>
*/
protected $header_color = null;
/**
* Generated from protobuf field <code>.google.protobuf.UInt32Value duration = 6;</code>
*/
protected $duration = null;
/**
* Generated from protobuf field <code>.rv.data.API_v1_PlaylistPresentationItem presentation_info = 7;</code>
*/
protected $presentation_info = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Rv\Data\API_v1_Identifier $id
* @type int $type
* @type bool $is_hidden
* @type bool $is_pco
* @type \Rv\Data\API_v1_Color $header_color
* @type \Google\Protobuf\UInt32Value $duration
* @type \Rv\Data\API_v1_PlaylistPresentationItem $presentation_info
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\ProApiV1Playlist::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field <code>.rv.data.API_v1_Identifier id = 1;</code>
* @return \Rv\Data\API_v1_Identifier|null
*/
public function getId()
{
return $this->id;
}
public function hasId()
{
return isset($this->id);
}
public function clearId()
{
unset($this->id);
}
/**
* Generated from protobuf field <code>.rv.data.API_v1_Identifier id = 1;</code>
* @param \Rv\Data\API_v1_Identifier $var
* @return $this
*/
public function setId($var)
{
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Identifier::class);
$this->id = $var;
return $this;
}
/**
* Generated from protobuf field <code>.rv.data.API_v1_PlaylistItem.API_v1_PlaylistItemType type = 2;</code>
* @return int
*/
public function getType()
{
return $this->type;
}
/**
* Generated from protobuf field <code>.rv.data.API_v1_PlaylistItem.API_v1_PlaylistItemType type = 2;</code>
* @param int $var
* @return $this
*/
public function setType($var)
{
GPBUtil::checkEnum($var, \Rv\Data\API_v1_PlaylistItem\API_v1_PlaylistItemType::class);
$this->type = $var;
return $this;
}
/**
* Generated from protobuf field <code>bool is_hidden = 3;</code>
* @return bool
*/
public function getIsHidden()
{
return $this->is_hidden;
}
/**
* Generated from protobuf field <code>bool is_hidden = 3;</code>
* @param bool $var
* @return $this
*/
public function setIsHidden($var)
{
GPBUtil::checkBool($var);
$this->is_hidden = $var;
return $this;
}
/**
* Generated from protobuf field <code>bool is_pco = 4;</code>
* @return bool
*/
public function getIsPco()
{
return $this->is_pco;
}
/**
* Generated from protobuf field <code>bool is_pco = 4;</code>
* @param bool $var
* @return $this
*/
public function setIsPco($var)
{
GPBUtil::checkBool($var);
$this->is_pco = $var;
return $this;
}
/**
* Generated from protobuf field <code>.rv.data.API_v1_Color header_color = 5;</code>
* @return \Rv\Data\API_v1_Color|null
*/
public function getHeaderColor()
{
return $this->header_color;
}
public function hasHeaderColor()
{
return isset($this->header_color);
}
public function clearHeaderColor()
{
unset($this->header_color);
}
/**
* Generated from protobuf field <code>.rv.data.API_v1_Color header_color = 5;</code>
* @param \Rv\Data\API_v1_Color $var
* @return $this
*/
public function setHeaderColor($var)
{
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Color::class);
$this->header_color = $var;
return $this;
}
/**
* Generated from protobuf field <code>.google.protobuf.UInt32Value duration = 6;</code>
* @return \Google\Protobuf\UInt32Value|null
*/
public function getDuration()
{
return $this->duration;
}
public function hasDuration()
{
return isset($this->duration);
}
public function clearDuration()
{
unset($this->duration);
}
/**
* Returns the unboxed value from <code>getDuration()</code>
* Generated from protobuf field <code>.google.protobuf.UInt32Value duration = 6;</code>
* @return int|null
*/
public function getDurationUnwrapped()
{
return $this->readWrapperValue("duration");
}
/**
* Generated from protobuf field <code>.google.protobuf.UInt32Value duration = 6;</code>
* @param \Google\Protobuf\UInt32Value $var
* @return $this
*/
public function setDuration($var)
{
GPBUtil::checkMessage($var, \Google\Protobuf\UInt32Value::class);
$this->duration = $var;
return $this;
}
/**
* Sets the field by wrapping a primitive type in a Google\Protobuf\UInt32Value object.
* Generated from protobuf field <code>.google.protobuf.UInt32Value duration = 6;</code>
* @param int|null $var
* @return $this
*/
public function setDurationUnwrapped($var)
{
$this->writeWrapperValue("duration", $var);
return $this;}
/**
* Generated from protobuf field <code>.rv.data.API_v1_PlaylistPresentationItem presentation_info = 7;</code>
* @return \Rv\Data\API_v1_PlaylistPresentationItem|null
*/
public function getPresentationInfo()
{
return $this->presentation_info;
}
public function hasPresentationInfo()
{
return isset($this->presentation_info);
}
public function clearPresentationInfo()
{
unset($this->presentation_info);
}
/**
* Generated from protobuf field <code>.rv.data.API_v1_PlaylistPresentationItem presentation_info = 7;</code>
* @param \Rv\Data\API_v1_PlaylistPresentationItem $var
* @return $this
*/
public function setPresentationInfo($var)
{
GPBUtil::checkMessage($var, \Rv\Data\API_v1_PlaylistPresentationItem::class);
$this->presentation_info = $var;
return $this;
}
}