rv.data.API_v1_PlaylistItem */ class API_v1_PlaylistItem extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field .rv.data.API_v1_Identifier id = 1; */ protected $id = null; /** * Generated from protobuf field .rv.data.API_v1_PlaylistItem.API_v1_PlaylistItemType type = 2; */ protected $type = 0; /** * Generated from protobuf field bool is_hidden = 3; */ protected $is_hidden = false; /** * Generated from protobuf field bool is_pco = 4; */ protected $is_pco = false; /** * Generated from protobuf field .rv.data.API_v1_Color header_color = 5; */ protected $header_color = null; /** * Generated from protobuf field .google.protobuf.UInt32Value duration = 6; */ protected $duration = null; /** * Generated from protobuf field .rv.data.API_v1_PlaylistPresentationItem presentation_info = 7; */ 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 .rv.data.API_v1_Identifier id = 1; * @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 .rv.data.API_v1_Identifier id = 1; * @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 .rv.data.API_v1_PlaylistItem.API_v1_PlaylistItemType type = 2; * @return int */ public function getType() { return $this->type; } /** * Generated from protobuf field .rv.data.API_v1_PlaylistItem.API_v1_PlaylistItemType type = 2; * @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 bool is_hidden = 3; * @return bool */ public function getIsHidden() { return $this->is_hidden; } /** * Generated from protobuf field bool is_hidden = 3; * @param bool $var * @return $this */ public function setIsHidden($var) { GPBUtil::checkBool($var); $this->is_hidden = $var; return $this; } /** * Generated from protobuf field bool is_pco = 4; * @return bool */ public function getIsPco() { return $this->is_pco; } /** * Generated from protobuf field bool is_pco = 4; * @param bool $var * @return $this */ public function setIsPco($var) { GPBUtil::checkBool($var); $this->is_pco = $var; return $this; } /** * Generated from protobuf field .rv.data.API_v1_Color header_color = 5; * @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 .rv.data.API_v1_Color header_color = 5; * @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 .google.protobuf.UInt32Value duration = 6; * @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 getDuration() * Generated from protobuf field .google.protobuf.UInt32Value duration = 6; * @return int|null */ public function getDurationUnwrapped() { return $this->readWrapperValue("duration"); } /** * Generated from protobuf field .google.protobuf.UInt32Value duration = 6; * @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 .google.protobuf.UInt32Value duration = 6; * @param int|null $var * @return $this */ public function setDurationUnwrapped($var) { $this->writeWrapperValue("duration", $var); return $this;} /** * Generated from protobuf field .rv.data.API_v1_PlaylistPresentationItem presentation_info = 7; * @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 .rv.data.API_v1_PlaylistPresentationItem presentation_info = 7; * @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; } }