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

namespace Rv\Data\Action;

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

/**
 * Generated from protobuf message <code>rv.data.Action.TimerType</code>
 */
class TimerType extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.Action.TimerType.TimerAction action_type = 2;</code>
     */
    protected $action_type = 0;
    /**
     * Generated from protobuf field <code>.rv.data.CollectionElementType timer_identification = 4;</code>
     */
    protected $timer_identification = null;
    /**
     * Generated from protobuf field <code>.rv.data.Timer.Configuration timer_configuration = 10;</code>
     */
    protected $timer_configuration = null;
    /**
     * Generated from protobuf field <code>double increment_amount = 11;</code>
     */
    protected $increment_amount = 0.0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $action_type
     *     @type \Rv\Data\CollectionElementType $timer_identification
     *     @type \Rv\Data\Timer\Configuration $timer_configuration
     *     @type float $increment_amount
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Action::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.data.Action.TimerType.TimerAction action_type = 2;</code>
     * @return int
     */
    public function getActionType()
    {
        return $this->action_type;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Action.TimerType.TimerAction action_type = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setActionType($var)
    {
        GPBUtil::checkEnum($var, \Rv\Data\Action\TimerType\TimerAction::class);
        $this->action_type = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.CollectionElementType timer_identification = 4;</code>
     * @return \Rv\Data\CollectionElementType|null
     */
    public function getTimerIdentification()
    {
        return $this->timer_identification;
    }

    public function hasTimerIdentification()
    {
        return isset($this->timer_identification);
    }

    public function clearTimerIdentification()
    {
        unset($this->timer_identification);
    }

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

        return $this;
    }

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

    public function hasTimerConfiguration()
    {
        return isset($this->timer_configuration);
    }

    public function clearTimerConfiguration()
    {
        unset($this->timer_configuration);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>double increment_amount = 11;</code>
     * @return float
     */
    public function getIncrementAmount()
    {
        return $this->increment_amount;
    }

    /**
     * Generated from protobuf field <code>double increment_amount = 11;</code>
     * @param float $var
     * @return $this
     */
    public function setIncrementAmount($var)
    {
        GPBUtil::checkDouble($var);
        $this->increment_amount = $var;

        return $this;
    }

}

