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

namespace Rv\Data\Audio;

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

/**
 * Generated from protobuf message <code>rv.data.Audio.SettingsDocument</code>
 */
class SettingsDocument extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.Audio.OutputSetup output_setup = 1;</code>
     */
    protected $output_setup = null;
    /**
     * Generated from protobuf field <code>.rv.data.Audio.Device monitor_device = 2;</code>
     */
    protected $monitor_device = null;
    /**
     * Generated from protobuf field <code>bool monitor_on_mains = 3;</code>
     */
    protected $monitor_on_mains = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\Audio\OutputSetup $output_setup
     *     @type \Rv\Data\Audio\Device $monitor_device
     *     @type bool $monitor_on_mains
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Audio::initOnce();
        parent::__construct($data);
    }

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

    public function hasOutputSetup()
    {
        return isset($this->output_setup);
    }

    public function clearOutputSetup()
    {
        unset($this->output_setup);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Audio.Device monitor_device = 2;</code>
     * @return \Rv\Data\Audio\Device|null
     */
    public function getMonitorDevice()
    {
        return $this->monitor_device;
    }

    public function hasMonitorDevice()
    {
        return isset($this->monitor_device);
    }

    public function clearMonitorDevice()
    {
        unset($this->monitor_device);
    }

    /**
     * Generated from protobuf field <code>.rv.data.Audio.Device monitor_device = 2;</code>
     * @param \Rv\Data\Audio\Device $var
     * @return $this
     */
    public function setMonitorDevice($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\Audio\Device::class);
        $this->monitor_device = $var;

        return $this;
    }

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

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

        return $this;
    }

}

