rv.data.Media.AudioDevice */ class AudioDevice extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field string name = 1; */ protected $name = ''; /** * Generated from protobuf field string unique_id = 2; */ protected $unique_id = ''; /** * Generated from protobuf field string model_id = 3; */ protected $model_id = ''; /** * Generated from protobuf field uint32 channel_count = 4; */ protected $channel_count = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $name * @type string $unique_id * @type string $model_id * @type int $channel_count * } */ public function __construct($data = NULL) { \GPBMetadata\GraphicsData::initOnce(); parent::__construct($data); } /** * Generated from protobuf field string name = 1; * @return string */ public function getName() { return $this->name; } /** * Generated from protobuf field string name = 1; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * Generated from protobuf field string unique_id = 2; * @return string */ public function getUniqueId() { return $this->unique_id; } /** * Generated from protobuf field string unique_id = 2; * @param string $var * @return $this */ public function setUniqueId($var) { GPBUtil::checkString($var, True); $this->unique_id = $var; return $this; } /** * Generated from protobuf field string model_id = 3; * @return string */ public function getModelId() { return $this->model_id; } /** * Generated from protobuf field string model_id = 3; * @param string $var * @return $this */ public function setModelId($var) { GPBUtil::checkString($var, True); $this->model_id = $var; return $this; } /** * Generated from protobuf field uint32 channel_count = 4; * @return int */ public function getChannelCount() { return $this->channel_count; } /** * Generated from protobuf field uint32 channel_count = 4; * @param int $var * @return $this */ public function setChannelCount($var) { GPBUtil::checkUint32($var); $this->channel_count = $var; return $this; } }