<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: proApiV1Transport.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.API_v1_Transport_Response</code>
 */
class API_v1_Transport_Response extends \Google\Protobuf\Internal\Message
{
    protected $Response;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\API_v1_Transport_Response\Play $play
     *     @type \Rv\Data\API_v1_Transport_Response\Pause $pause
     *     @type \Rv\Data\API_v1_Transport_Response\SkipBackward $skip_backward
     *     @type \Rv\Data\API_v1_Transport_Response\SkipForward $skip_forward
     *     @type \Rv\Data\API_v1_Transport_Response\GoToEnd $go_to_end
     *     @type \Rv\Data\API_v1_Transport_Response\GetTime $get_time
     *     @type \Rv\Data\API_v1_Transport_Response\PutTime $put_time
     *     @type \Rv\Data\API_v1_Transport_Response\GetAutoAdvance $get_auto_advance
     *     @type \Rv\Data\API_v1_Transport_Response\DeleteAutoAdvance $delete_auto_advance
     *     @type \Rv\Data\API_v1_Transport_Response\GetCurrentMedia $get_current_media
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ProApiV1Transport::initOnce();
        parent::__construct($data);
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Transport_Response.GetTime get_time = 6;</code>
     * @return \Rv\Data\API_v1_Transport_Response\GetTime|null
     */
    public function getGetTime()
    {
        return $this->readOneof(6);
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Transport_Response.PutTime put_time = 7;</code>
     * @return \Rv\Data\API_v1_Transport_Response\PutTime|null
     */
    public function getPutTime()
    {
        return $this->readOneof(7);
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Transport_Response.GetAutoAdvance get_auto_advance = 8;</code>
     * @return \Rv\Data\API_v1_Transport_Response\GetAutoAdvance|null
     */
    public function getGetAutoAdvance()
    {
        return $this->readOneof(8);
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Transport_Response.DeleteAutoAdvance delete_auto_advance = 9;</code>
     * @return \Rv\Data\API_v1_Transport_Response\DeleteAutoAdvance|null
     */
    public function getDeleteAutoAdvance()
    {
        return $this->readOneof(9);
    }

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

}

