<?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.Timing</code>
 */
class Timing extends \Google\Protobuf\Internal\Message
{
    protected $Source;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\TimedPlayback\Timing\LayerTransport $layer_transport
     *     @type \Rv\Data\TimedPlayback\Timing\SMPTETimecode $smpte_timecode
     *     @type \Rv\Data\TimedPlayback\Timing\Internal $internal
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\TimedPlayback::initOnce();
        parent::__construct($data);
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

}

