151 lines
4.3 KiB
PHP
151 lines
4.3 KiB
PHP
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
# source: digitalAudio.proto
|
|
|
|
namespace Rv\Data\DigitalAudio\Device;
|
|
|
|
use Google\Protobuf\Internal\GPBType;
|
|
use Google\Protobuf\Internal\RepeatedField;
|
|
use Google\Protobuf\Internal\GPBUtil;
|
|
|
|
/**
|
|
* Generated from protobuf message <code>rv.data.DigitalAudio.Device.Routing</code>
|
|
*/
|
|
class Routing extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.DigitalAudio.Device.Channel channels = 1;</code>
|
|
*/
|
|
private $channels;
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.DigitalAudio.Device.Map map = 2;</code>
|
|
*/
|
|
private $map;
|
|
/**
|
|
* Generated from protobuf field <code>bool is_custom_map = 3;</code>
|
|
*/
|
|
protected $is_custom_map = false;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.DigitalAudio.Device.Channel master_channel = 4;</code>
|
|
*/
|
|
protected $master_channel = null;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type array<\Rv\Data\DigitalAudio\Device\Channel>|\Google\Protobuf\Internal\RepeatedField $channels
|
|
* @type array<\Rv\Data\DigitalAudio\Device\Map>|\Google\Protobuf\Internal\RepeatedField $map
|
|
* @type bool $is_custom_map
|
|
* @type \Rv\Data\DigitalAudio\Device\Channel $master_channel
|
|
* }
|
|
*/
|
|
public function __construct($data = NULL) {
|
|
\GPBMetadata\DigitalAudio::initOnce();
|
|
parent::__construct($data);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.DigitalAudio.Device.Channel channels = 1;</code>
|
|
* @return \Google\Protobuf\Internal\RepeatedField
|
|
*/
|
|
public function getChannels()
|
|
{
|
|
return $this->channels;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.DigitalAudio.Device.Channel channels = 1;</code>
|
|
* @param array<\Rv\Data\DigitalAudio\Device\Channel>|\Google\Protobuf\Internal\RepeatedField $var
|
|
* @return $this
|
|
*/
|
|
public function setChannels($var)
|
|
{
|
|
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\DigitalAudio\Device\Channel::class);
|
|
$this->channels = $arr;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.DigitalAudio.Device.Map map = 2;</code>
|
|
* @return \Google\Protobuf\Internal\RepeatedField
|
|
*/
|
|
public function getMap()
|
|
{
|
|
return $this->map;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.DigitalAudio.Device.Map map = 2;</code>
|
|
* @param array<\Rv\Data\DigitalAudio\Device\Map>|\Google\Protobuf\Internal\RepeatedField $var
|
|
* @return $this
|
|
*/
|
|
public function setMap($var)
|
|
{
|
|
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\DigitalAudio\Device\Map::class);
|
|
$this->map = $arr;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool is_custom_map = 3;</code>
|
|
* @return bool
|
|
*/
|
|
public function getIsCustomMap()
|
|
{
|
|
return $this->is_custom_map;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool is_custom_map = 3;</code>
|
|
* @param bool $var
|
|
* @return $this
|
|
*/
|
|
public function setIsCustomMap($var)
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
$this->is_custom_map = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.DigitalAudio.Device.Channel master_channel = 4;</code>
|
|
* @return \Rv\Data\DigitalAudio\Device\Channel|null
|
|
*/
|
|
public function getMasterChannel()
|
|
{
|
|
return $this->master_channel;
|
|
}
|
|
|
|
public function hasMasterChannel()
|
|
{
|
|
return isset($this->master_channel);
|
|
}
|
|
|
|
public function clearMasterChannel()
|
|
{
|
|
unset($this->master_channel);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.DigitalAudio.Device.Channel master_channel = 4;</code>
|
|
* @param \Rv\Data\DigitalAudio\Device\Channel $var
|
|
* @return $this
|
|
*/
|
|
public function setMasterChannel($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\DigitalAudio\Device\Channel::class);
|
|
$this->master_channel = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|