- Move src/, tests/, bin/, generated/, proto/, composer.json, composer.lock, phpunit.xml from php/ to repo root - Move ref/ to doc/reference_samples/ for better organization - Remove vendor/ from git tracking (now properly gitignored) - Update all test file paths (dirname adjustments and ref/ -> doc/reference_samples/) - Update all documentation paths (AGENTS.md, doc/*.md) - Remove php.bak/ directory - All 252 tests pass
168 lines
4 KiB
PHP
168 lines
4 KiB
PHP
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
# source: graphicsData.proto
|
|
|
|
namespace Rv\Data\Media\Audio;
|
|
|
|
use Google\Protobuf\Internal\GPBType;
|
|
use Google\Protobuf\Internal\RepeatedField;
|
|
use Google\Protobuf\Internal\GPBUtil;
|
|
|
|
/**
|
|
* Generated from protobuf message <code>rv.data.Media.Audio.Channel</code>
|
|
*/
|
|
class Channel extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Generated from protobuf field <code>uint32 index = 1;</code>
|
|
*/
|
|
protected $index = 0;
|
|
/**
|
|
* Generated from protobuf field <code>bool muted = 2;</code>
|
|
*/
|
|
protected $muted = false;
|
|
/**
|
|
* Generated from protobuf field <code>double volume = 3;</code>
|
|
*/
|
|
protected $volume = 0.0;
|
|
/**
|
|
* Generated from protobuf field <code>bool compress_limit = 4;</code>
|
|
*/
|
|
protected $compress_limit = false;
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.Media.Audio.Channel.Output outputs = 5;</code>
|
|
*/
|
|
private $outputs;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type int $index
|
|
* @type bool $muted
|
|
* @type float $volume
|
|
* @type bool $compress_limit
|
|
* @type array<\Rv\Data\Media\Audio\Channel\Output>|\Google\Protobuf\Internal\RepeatedField $outputs
|
|
* }
|
|
*/
|
|
public function __construct($data = NULL) {
|
|
\GPBMetadata\GraphicsData::initOnce();
|
|
parent::__construct($data);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>uint32 index = 1;</code>
|
|
* @return int
|
|
*/
|
|
public function getIndex()
|
|
{
|
|
return $this->index;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>uint32 index = 1;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setIndex($var)
|
|
{
|
|
GPBUtil::checkUint32($var);
|
|
$this->index = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool muted = 2;</code>
|
|
* @return bool
|
|
*/
|
|
public function getMuted()
|
|
{
|
|
return $this->muted;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool muted = 2;</code>
|
|
* @param bool $var
|
|
* @return $this
|
|
*/
|
|
public function setMuted($var)
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
$this->muted = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>double volume = 3;</code>
|
|
* @return float
|
|
*/
|
|
public function getVolume()
|
|
{
|
|
return $this->volume;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>double volume = 3;</code>
|
|
* @param float $var
|
|
* @return $this
|
|
*/
|
|
public function setVolume($var)
|
|
{
|
|
GPBUtil::checkDouble($var);
|
|
$this->volume = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool compress_limit = 4;</code>
|
|
* @return bool
|
|
*/
|
|
public function getCompressLimit()
|
|
{
|
|
return $this->compress_limit;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool compress_limit = 4;</code>
|
|
* @param bool $var
|
|
* @return $this
|
|
*/
|
|
public function setCompressLimit($var)
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
$this->compress_limit = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.Media.Audio.Channel.Output outputs = 5;</code>
|
|
* @return \Google\Protobuf\Internal\RepeatedField
|
|
*/
|
|
public function getOutputs()
|
|
{
|
|
return $this->outputs;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.Media.Audio.Channel.Output outputs = 5;</code>
|
|
* @param array<\Rv\Data\Media\Audio\Channel\Output>|\Google\Protobuf\Internal\RepeatedField $var
|
|
* @return $this
|
|
*/
|
|
public function setOutputs($var)
|
|
{
|
|
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\Media\Audio\Channel\Output::class);
|
|
$this->outputs = $arr;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|