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

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\API_v1_Timer_Response\Timers $timers
     *     @type \Rv\Data\API_v1_Timer_Response\CreateTimer $create_timer
     *     @type \Rv\Data\API_v1_Timer_Response\CurrentTimes $current_times
     *     @type \Rv\Data\API_v1_Timer_Response\AllTimersOperation $all_timers_operation
     *     @type \Rv\Data\API_v1_Timer_Response\GetTimer $get_timer
     *     @type \Rv\Data\API_v1_Timer_Response\PutTimer $put_timer
     *     @type \Rv\Data\API_v1_Timer_Response\DeleteTimer $delete_timer
     *     @type \Rv\Data\API_v1_Timer_Response\TimerOperation $timer_operation
     *     @type \Rv\Data\API_v1_Timer_Response\PutTimerOperation $put_timer_operation
     *     @type \Rv\Data\API_v1_Timer_Response\TimerIncrement $timer_increment
     *     @type \Rv\Data\API_v1_Timer_Response\SystemTime $system_time
     *     @type \Rv\Data\API_v1_Timer_Response\VideoCountdown $video_countdown
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ProApiV1Timer::initOnce();
        parent::__construct($data);
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Timer_Response.SystemTime system_time = 11;</code>
     * @return \Rv\Data\API_v1_Timer_Response\SystemTime|null
     */
    public function getSystemTime()
    {
        return $this->readOneof(11);
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Timer_Response.VideoCountdown video_countdown = 12;</code>
     * @return \Rv\Data\API_v1_Timer_Response\VideoCountdown|null
     */
    public function getVideoCountdown()
    {
        return $this->readOneof(12);
    }

    public function hasVideoCountdown()
    {
        return $this->hasOneof(12);
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Timer_Response.VideoCountdown video_countdown = 12;</code>
     * @param \Rv\Data\API_v1_Timer_Response\VideoCountdown $var
     * @return $this
     */
    public function setVideoCountdown($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\API_v1_Timer_Response\VideoCountdown::class);
        $this->writeOneof(12, $var);

        return $this;
    }

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

}

