<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: timedPlayback.proto

namespace Rv\Data\TimedPlayback;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Generated from protobuf message <code>rv.data.TimedPlayback.Update</code>
 */
class Update extends \Google\Protobuf\Internal\Message
{
    protected $ActionType;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\TimedPlayback\Update\Play $play
     *     @type \Rv\Data\TimedPlayback\Update\Record $record
     *     @type \Rv\Data\TimedPlayback\Update\Pause $pause
     *     @type \Rv\Data\TimedPlayback\Update\Reset $reset
     *     @type \Rv\Data\TimedPlayback\Update\JumpToTime $jump_to_time
     *     @type \Rv\Data\TimedPlayback\Update\StartScrub $start_scrub
     *     @type \Rv\Data\TimedPlayback\Update\EndScrub $end_scrub
     *     @type \Rv\Data\TimedPlayback\Update\Duration $duration
     *     @type \Rv\Data\TimedPlayback\Update\Loop $loop
     *     @type \Rv\Data\TimedPlayback\Sequence $update_sequence
     *     @type \Rv\Data\TimedPlayback\Update\MonitorSource $monitor_source
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\TimedPlayback::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.data.TimedPlayback.Update.Play play = 1;</code>
     * @return \Rv\Data\TimedPlayback\Update\Play|null
     */
    public function getPlay()
    {
        return $this->readOneof(1);
    }

    public function hasPlay()
    {
        return $this->hasOneof(1);
    }

    /**
     * Generated from protobuf field <code>.rv.data.TimedPlayback.Update.Play play = 1;</code>
     * @param \Rv\Data\TimedPlayback\Update\Play $var
     * @return $this
     */
    public function setPlay($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\TimedPlayback\Update\Play::class);
        $this->writeOneof(1, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.TimedPlayback.Update.Record record = 2;</code>
     * @return \Rv\Data\TimedPlayback\Update\Record|null
     */
    public function getRecord()
    {
        return $this->readOneof(2);
    }

    public function hasRecord()
    {
        return $this->hasOneof(2);
    }

    /**
     * Generated from protobuf field <code>.rv.data.TimedPlayback.Update.Record record = 2;</code>
     * @param \Rv\Data\TimedPlayback\Update\Record $var
     * @return $this
     */
    public function setRecord($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\TimedPlayback\Update\Record::class);
        $this->writeOneof(2, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.TimedPlayback.Update.Pause pause = 3;</code>
     * @return \Rv\Data\TimedPlayback\Update\Pause|null
     */
    public function getPause()
    {
        return $this->readOneof(3);
    }

    public function hasPause()
    {
        return $this->hasOneof(3);
    }

    /**
     * Generated from protobuf field <code>.rv.data.TimedPlayback.Update.Pause pause = 3;</code>
     * @param \Rv\Data\TimedPlayback\Update\Pause $var
     * @return $this
     */
    public function setPause($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\TimedPlayback\Update\Pause::class);
        $this->writeOneof(3, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.TimedPlayback.Update.Reset reset = 4;</code>
     * @return \Rv\Data\TimedPlayback\Update\Reset|null
     */
    public function getReset()
    {
        return $this->readOneof(4);
    }

    public function hasReset()
    {
        return $this->hasOneof(4);
    }

    /**
     * Generated from protobuf field <code>.rv.data.TimedPlayback.Update.Reset reset = 4;</code>
     * @param \Rv\Data\TimedPlayback\Update\Reset $var
     * @return $this
     */
    public function setReset($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\TimedPlayback\Update\Reset::class);
        $this->writeOneof(4, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.TimedPlayback.Update.JumpToTime jump_to_time = 5;</code>
     * @return \Rv\Data\TimedPlayback\Update\JumpToTime|null
     */
    public function getJumpToTime()
    {
        return $this->readOneof(5);
    }

    public function hasJumpToTime()
    {
        return $this->hasOneof(5);
    }

    /**
     * Generated from protobuf field <code>.rv.data.TimedPlayback.Update.JumpToTime jump_to_time = 5;</code>
     * @param \Rv\Data\TimedPlayback\Update\JumpToTime $var
     * @return $this
     */
    public function setJumpToTime($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\TimedPlayback\Update\JumpToTime::class);
        $this->writeOneof(5, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.TimedPlayback.Update.StartScrub start_scrub = 6;</code>
     * @return \Rv\Data\TimedPlayback\Update\StartScrub|null
     */
    public function getStartScrub()
    {
        return $this->readOneof(6);
    }

    public function hasStartScrub()
    {
        return $this->hasOneof(6);
    }

    /**
     * Generated from protobuf field <code>.rv.data.TimedPlayback.Update.StartScrub start_scrub = 6;</code>
     * @param \Rv\Data\TimedPlayback\Update\StartScrub $var
     * @return $this
     */
    public function setStartScrub($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\TimedPlayback\Update\StartScrub::class);
        $this->writeOneof(6, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.TimedPlayback.Update.EndScrub end_scrub = 7;</code>
     * @return \Rv\Data\TimedPlayback\Update\EndScrub|null
     */
    public function getEndScrub()
    {
        return $this->readOneof(7);
    }

    public function hasEndScrub()
    {
        return $this->hasOneof(7);
    }

    /**
     * Generated from protobuf field <code>.rv.data.TimedPlayback.Update.EndScrub end_scrub = 7;</code>
     * @param \Rv\Data\TimedPlayback\Update\EndScrub $var
     * @return $this
     */
    public function setEndScrub($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\TimedPlayback\Update\EndScrub::class);
        $this->writeOneof(7, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.TimedPlayback.Update.Duration duration = 8;</code>
     * @return \Rv\Data\TimedPlayback\Update\Duration|null
     */
    public function getDuration()
    {
        return $this->readOneof(8);
    }

    public function hasDuration()
    {
        return $this->hasOneof(8);
    }

    /**
     * Generated from protobuf field <code>.rv.data.TimedPlayback.Update.Duration duration = 8;</code>
     * @param \Rv\Data\TimedPlayback\Update\Duration $var
     * @return $this
     */
    public function setDuration($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\TimedPlayback\Update\Duration::class);
        $this->writeOneof(8, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.TimedPlayback.Update.Loop loop = 9;</code>
     * @return \Rv\Data\TimedPlayback\Update\Loop|null
     */
    public function getLoop()
    {
        return $this->readOneof(9);
    }

    public function hasLoop()
    {
        return $this->hasOneof(9);
    }

    /**
     * Generated from protobuf field <code>.rv.data.TimedPlayback.Update.Loop loop = 9;</code>
     * @param \Rv\Data\TimedPlayback\Update\Loop $var
     * @return $this
     */
    public function setLoop($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\TimedPlayback\Update\Loop::class);
        $this->writeOneof(9, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.TimedPlayback.Sequence update_sequence = 10;</code>
     * @return \Rv\Data\TimedPlayback\Sequence|null
     */
    public function getUpdateSequence()
    {
        return $this->readOneof(10);
    }

    public function hasUpdateSequence()
    {
        return $this->hasOneof(10);
    }

    /**
     * Generated from protobuf field <code>.rv.data.TimedPlayback.Sequence update_sequence = 10;</code>
     * @param \Rv\Data\TimedPlayback\Sequence $var
     * @return $this
     */
    public function setUpdateSequence($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\TimedPlayback\Sequence::class);
        $this->writeOneof(10, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.TimedPlayback.Update.MonitorSource monitor_source = 11;</code>
     * @return \Rv\Data\TimedPlayback\Update\MonitorSource|null
     */
    public function getMonitorSource()
    {
        return $this->readOneof(11);
    }

    public function hasMonitorSource()
    {
        return $this->hasOneof(11);
    }

    /**
     * Generated from protobuf field <code>.rv.data.TimedPlayback.Update.MonitorSource monitor_source = 11;</code>
     * @param \Rv\Data\TimedPlayback\Update\MonitorSource $var
     * @return $this
     */
    public function setMonitorSource($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\TimedPlayback\Update\MonitorSource::class);
        $this->writeOneof(11, $var);

        return $this;
    }

    /**
     * @return string
     */
    public function getActionType()
    {
        return $this->whichOneof("ActionType");
    }

}

