rv.data.Presentation.Timeline */ class Timeline extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field repeated .rv.data.Presentation.Timeline.Cue cues = 1; */ private $cues; /** * Generated from protobuf field double duration = 5; */ protected $duration = 0.0; /** * Generated from protobuf field bool loop = 6; */ protected $loop = false; /** * Generated from protobuf field .rv.data.Action audio_action = 8; */ protected $audio_action = null; /** * Generated from protobuf field bool timecode_enable = 9; */ protected $timecode_enable = false; /** * Generated from protobuf field double timecode_offset = 10; */ protected $timecode_offset = 0.0; /** * Generated from protobuf field repeated .rv.data.Presentation.Timeline.Cue cues_v2 = 11; */ private $cues_v2; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type array<\Rv\Data\Presentation\Timeline\Cue>|\Google\Protobuf\Internal\RepeatedField $cues * @type float $duration * @type bool $loop * @type \Rv\Data\Action $audio_action * @type bool $timecode_enable * @type float $timecode_offset * @type array<\Rv\Data\Presentation\Timeline\Cue>|\Google\Protobuf\Internal\RepeatedField $cues_v2 * } */ public function __construct($data = NULL) { \GPBMetadata\Presentation::initOnce(); parent::__construct($data); } /** * Generated from protobuf field repeated .rv.data.Presentation.Timeline.Cue cues = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getCues() { return $this->cues; } /** * Generated from protobuf field repeated .rv.data.Presentation.Timeline.Cue cues = 1; * @param array<\Rv\Data\Presentation\Timeline\Cue>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setCues($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\Presentation\Timeline\Cue::class); $this->cues = $arr; return $this; } /** * Generated from protobuf field double duration = 5; * @return float */ public function getDuration() { return $this->duration; } /** * Generated from protobuf field double duration = 5; * @param float $var * @return $this */ public function setDuration($var) { GPBUtil::checkDouble($var); $this->duration = $var; return $this; } /** * Generated from protobuf field bool loop = 6; * @return bool */ public function getLoop() { return $this->loop; } /** * Generated from protobuf field bool loop = 6; * @param bool $var * @return $this */ public function setLoop($var) { GPBUtil::checkBool($var); $this->loop = $var; return $this; } /** * Generated from protobuf field .rv.data.Action audio_action = 8; * @return \Rv\Data\Action|null */ public function getAudioAction() { return $this->audio_action; } public function hasAudioAction() { return isset($this->audio_action); } public function clearAudioAction() { unset($this->audio_action); } /** * Generated from protobuf field .rv.data.Action audio_action = 8; * @param \Rv\Data\Action $var * @return $this */ public function setAudioAction($var) { GPBUtil::checkMessage($var, \Rv\Data\Action::class); $this->audio_action = $var; return $this; } /** * Generated from protobuf field bool timecode_enable = 9; * @return bool */ public function getTimecodeEnable() { return $this->timecode_enable; } /** * Generated from protobuf field bool timecode_enable = 9; * @param bool $var * @return $this */ public function setTimecodeEnable($var) { GPBUtil::checkBool($var); $this->timecode_enable = $var; return $this; } /** * Generated from protobuf field double timecode_offset = 10; * @return float */ public function getTimecodeOffset() { return $this->timecode_offset; } /** * Generated from protobuf field double timecode_offset = 10; * @param float $var * @return $this */ public function setTimecodeOffset($var) { GPBUtil::checkDouble($var); $this->timecode_offset = $var; return $this; } /** * Generated from protobuf field repeated .rv.data.Presentation.Timeline.Cue cues_v2 = 11; * @return \Google\Protobuf\Internal\RepeatedField */ public function getCuesV2() { return $this->cues_v2; } /** * Generated from protobuf field repeated .rv.data.Presentation.Timeline.Cue cues_v2 = 11; * @param array<\Rv\Data\Presentation\Timeline\Cue>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setCuesV2($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\Presentation\Timeline\Cue::class); $this->cues_v2 = $arr; return $this; } }