<?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_Timer</code>
 */
class API_Timer extends \Google\Protobuf\Internal\Message
{
    protected $TimerAction;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\NetworkAPI\Action\API_Timer\StartTimer $start
     *     @type \Rv\Data\NetworkAPI\Action\API_Timer\StopTimer $stop
     *     @type \Rv\Data\NetworkAPI\Action\API_Timer\ResetTimer $reset
     *     @type \Rv\Data\NetworkAPI\Action\API_Timer\ConfigureTimer $configure
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ProApi::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_Timer.StartTimer start = 1;</code>
     * @return \Rv\Data\NetworkAPI\Action\API_Timer\StartTimer|null
     */
    public function getStart()
    {
        return $this->readOneof(1);
    }

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

    /**
     * Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_Timer.StartTimer start = 1;</code>
     * @param \Rv\Data\NetworkAPI\Action\API_Timer\StartTimer $var
     * @return $this
     */
    public function setStart($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\NetworkAPI\Action\API_Timer\StartTimer::class);
        $this->writeOneof(1, $var);

        return $this;
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

}

