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

namespace Rv\Data\NetworkAPI\Action;

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

/**
 * Generated from protobuf message <code>rv.data.NetworkAPI.Action.API_Transport</code>
 */
class API_Transport extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_Transport.TransportLayer layer = 1;</code>
     */
    protected $layer = 0;
    protected $TransportAction;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $layer
     *     @type \Rv\Data\NetworkAPI\Action\API_Transport\Play $play
     *     @type \Rv\Data\NetworkAPI\Action\API_Transport\Pause $pause
     *     @type \Rv\Data\NetworkAPI\Action\API_Transport\SkipBackward $skip_backward
     *     @type \Rv\Data\NetworkAPI\Action\API_Transport\SkipForward $skip_forward
     *     @type \Rv\Data\NetworkAPI\Action\API_Transport\GoToEnd $go_to_end
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ProApi::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_Transport.TransportLayer layer = 1;</code>
     * @return int
     */
    public function getLayer()
    {
        return $this->layer;
    }

    /**
     * Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_Transport.TransportLayer layer = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setLayer($var)
    {
        GPBUtil::checkEnum($var, \Rv\Data\NetworkAPI\Action\API_Transport\TransportLayer::class);
        $this->layer = $var;

        return $this;
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_Transport.SkipBackward skip_backward = 4;</code>
     * @return \Rv\Data\NetworkAPI\Action\API_Transport\SkipBackward|null
     */
    public function getSkipBackward()
    {
        return $this->readOneof(4);
    }

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

    /**
     * Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_Transport.SkipBackward skip_backward = 4;</code>
     * @param \Rv\Data\NetworkAPI\Action\API_Transport\SkipBackward $var
     * @return $this
     */
    public function setSkipBackward($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\NetworkAPI\Action\API_Transport\SkipBackward::class);
        $this->writeOneof(4, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_Transport.SkipForward skip_forward = 5;</code>
     * @return \Rv\Data\NetworkAPI\Action\API_Transport\SkipForward|null
     */
    public function getSkipForward()
    {
        return $this->readOneof(5);
    }

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

    /**
     * Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_Transport.SkipForward skip_forward = 5;</code>
     * @param \Rv\Data\NetworkAPI\Action\API_Transport\SkipForward $var
     * @return $this
     */
    public function setSkipForward($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\NetworkAPI\Action\API_Transport\SkipForward::class);
        $this->writeOneof(5, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_Transport.GoToEnd go_to_end = 6;</code>
     * @return \Rv\Data\NetworkAPI\Action\API_Transport\GoToEnd|null
     */
    public function getGoToEnd()
    {
        return $this->readOneof(6);
    }

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

    /**
     * Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_Transport.GoToEnd go_to_end = 6;</code>
     * @param \Rv\Data\NetworkAPI\Action\API_Transport\GoToEnd $var
     * @return $this
     */
    public function setGoToEnd($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\NetworkAPI\Action\API_Transport\GoToEnd::class);
        $this->writeOneof(6, $var);

        return $this;
    }

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

}

