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

namespace Rv\Data\DigitalAudio;

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

/**
 * Generated from protobuf message <code>rv.data.DigitalAudio.Setup</code>
 */
class Setup extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>repeated .rv.data.DigitalAudio.Bus buses = 1;</code>
     */
    private $buses;
    /**
     * Generated from protobuf field <code>.rv.data.DigitalAudio.Device monitor_device = 2;</code>
     */
    protected $monitor_device = null;
    /**
     * Generated from protobuf field <code>.rv.data.DigitalAudio.Device main_output_device = 3;</code>
     */
    protected $main_output_device = null;
    /**
     * Generated from protobuf field <code>bool enable_sdi_ndi_device = 4;</code>
     */
    protected $enable_sdi_ndi_device = false;
    /**
     * Generated from protobuf field <code>.rv.data.DigitalAudio.Device sdi_ndi_device = 5;</code>
     */
    protected $sdi_ndi_device = null;
    /**
     * Generated from protobuf field <code>bool monitor_on_mains = 6;</code>
     */
    protected $monitor_on_mains = false;
    /**
     * Generated from protobuf field <code>bool disable_main_output_device = 7;</code>
     */
    protected $disable_main_output_device = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Rv\Data\DigitalAudio\Bus>|\Google\Protobuf\Internal\RepeatedField $buses
     *     @type \Rv\Data\DigitalAudio\Device $monitor_device
     *     @type \Rv\Data\DigitalAudio\Device $main_output_device
     *     @type bool $enable_sdi_ndi_device
     *     @type \Rv\Data\DigitalAudio\Device $sdi_ndi_device
     *     @type bool $monitor_on_mains
     *     @type bool $disable_main_output_device
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\DigitalAudio::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>repeated .rv.data.DigitalAudio.Bus buses = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getBuses()
    {
        return $this->buses;
    }

    /**
     * Generated from protobuf field <code>repeated .rv.data.DigitalAudio.Bus buses = 1;</code>
     * @param array<\Rv\Data\DigitalAudio\Bus>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setBuses($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\DigitalAudio\Bus::class);
        $this->buses = $arr;

        return $this;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.DigitalAudio.Device main_output_device = 3;</code>
     * @return \Rv\Data\DigitalAudio\Device|null
     */
    public function getMainOutputDevice()
    {
        return $this->main_output_device;
    }

    public function hasMainOutputDevice()
    {
        return isset($this->main_output_device);
    }

    public function clearMainOutputDevice()
    {
        unset($this->main_output_device);
    }

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.DigitalAudio.Device sdi_ndi_device = 5;</code>
     * @return \Rv\Data\DigitalAudio\Device|null
     */
    public function getSdiNdiDevice()
    {
        return $this->sdi_ndi_device;
    }

    public function hasSdiNdiDevice()
    {
        return isset($this->sdi_ndi_device);
    }

    public function clearSdiNdiDevice()
    {
        unset($this->sdi_ndi_device);
    }

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool disable_main_output_device = 7;</code>
     * @return bool
     */
    public function getDisableMainOutputDevice()
    {
        return $this->disable_main_output_device;
    }

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

        return $this;
    }

}

