<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: timedPlayback.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.TimedPlayback</code>
 */
class TimedPlayback extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.TimedPlayback.Sequence sequence = 1;</code>
     */
    protected $sequence = null;
    /**
     * Generated from protobuf field <code>.rv.data.TimedPlayback.Timing timing = 2;</code>
     */
    protected $timing = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\TimedPlayback\Sequence $sequence
     *     @type \Rv\Data\TimedPlayback\Timing $timing
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\TimedPlayback::initOnce();
        parent::__construct($data);
    }

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

    public function hasSequence()
    {
        return isset($this->sequence);
    }

    public function clearSequence()
    {
        unset($this->sequence);
    }

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

        return $this;
    }

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

    public function hasTiming()
    {
        return isset($this->timing);
    }

    public function clearTiming()
    {
        unset($this->timing);
    }

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

        return $this;
    }

}

