<?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.AudioInputType</code>
 */
class AudioInputType extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int32 index = 1;</code>
     */
    protected $index = 0;
    /**
     * Generated from protobuf field <code>bool override_mode = 2;</code>
     */
    protected $override_mode = false;
    /**
     * Generated from protobuf field <code>.rv.data.AudioInput.BehaviorMode behavior_mode = 3;</code>
     */
    protected $behavior_mode = null;
    /**
     * Generated from protobuf field <code>bool override_volume = 4;</code>
     */
    protected $override_volume = false;
    /**
     * Generated from protobuf field <code>double volume = 5;</code>
     */
    protected $volume = 0.0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $index
     *     @type bool $override_mode
     *     @type \Rv\Data\AudioInput\BehaviorMode $behavior_mode
     *     @type bool $override_volume
     *     @type float $volume
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Action::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>int32 index = 1;</code>
     * @return int
     */
    public function getIndex()
    {
        return $this->index;
    }

    /**
     * Generated from protobuf field <code>int32 index = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setIndex($var)
    {
        GPBUtil::checkInt32($var);
        $this->index = $var;

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.AudioInput.BehaviorMode behavior_mode = 3;</code>
     * @return \Rv\Data\AudioInput\BehaviorMode|null
     */
    public function getBehaviorMode()
    {
        return $this->behavior_mode;
    }

    public function hasBehaviorMode()
    {
        return isset($this->behavior_mode);
    }

    public function clearBehaviorMode()
    {
        unset($this->behavior_mode);
    }

    /**
     * Generated from protobuf field <code>.rv.data.AudioInput.BehaviorMode behavior_mode = 3;</code>
     * @param \Rv\Data\AudioInput\BehaviorMode $var
     * @return $this
     */
    public function setBehaviorMode($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\AudioInput\BehaviorMode::class);
        $this->behavior_mode = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool override_volume = 4;</code>
     * @return bool
     */
    public function getOverrideVolume()
    {
        return $this->override_volume;
    }

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

        return $this;
    }

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

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

        return $this;
    }

}

