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

namespace Rv\Data\TriggerTransferRenderState;

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

/**
 * Generated from protobuf message <code>rv.data.TriggerTransferRenderState.TimerState</code>
 */
class TimerState extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.Timer timer = 1;</code>
     */
    protected $timer = null;
    /**
     * Generated from protobuf field <code>bool is_running = 2;</code>
     */
    protected $is_running = false;
    /**
     * Generated from protobuf field <code>bool has_overrun = 3;</code>
     */
    protected $has_overrun = false;
    /**
     * Generated from protobuf field <code>float value = 4;</code>
     */
    protected $value = 0.0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\Timer $timer
     *     @type bool $is_running
     *     @type bool $has_overrun
     *     @type float $value
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ProCore::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.data.Timer timer = 1;</code>
     * @return \Rv\Data\Timer|null
     */
    public function getTimer()
    {
        return $this->timer;
    }

    public function hasTimer()
    {
        return isset($this->timer);
    }

    public function clearTimer()
    {
        unset($this->timer);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool is_running = 2;</code>
     * @return bool
     */
    public function getIsRunning()
    {
        return $this->is_running;
    }

    /**
     * Generated from protobuf field <code>bool is_running = 2;</code>
     * @param bool $var
     * @return $this
     */
    public function setIsRunning($var)
    {
        GPBUtil::checkBool($var);
        $this->is_running = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool has_overrun = 3;</code>
     * @return bool
     */
    public function getHasOverrun()
    {
        return $this->has_overrun;
    }

    /**
     * Generated from protobuf field <code>bool has_overrun = 3;</code>
     * @param bool $var
     * @return $this
     */
    public function setHasOverrun($var)
    {
        GPBUtil::checkBool($var);
        $this->has_overrun = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>float value = 4;</code>
     * @return float
     */
    public function getValue()
    {
        return $this->value;
    }

    /**
     * Generated from protobuf field <code>float value = 4;</code>
     * @param float $var
     * @return $this
     */
    public function setValue($var)
    {
        GPBUtil::checkFloat($var);
        $this->value = $var;

        return $this;
    }

}

