- 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
387 lines
8.8 KiB
PHP
387 lines
8.8 KiB
PHP
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
# source: screens.proto
|
|
|
|
namespace Rv\Data;
|
|
|
|
use Google\Protobuf\Internal\GPBType;
|
|
use Google\Protobuf\Internal\RepeatedField;
|
|
use Google\Protobuf\Internal\GPBUtil;
|
|
|
|
/**
|
|
* Generated from protobuf message <code>rv.data.OutputDisplay</code>
|
|
*/
|
|
class OutputDisplay extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Generated from protobuf field <code>string name = 1;</code>
|
|
*/
|
|
protected $name = '';
|
|
/**
|
|
* Generated from protobuf field <code>string model = 2;</code>
|
|
*/
|
|
protected $model = '';
|
|
/**
|
|
* Generated from protobuf field <code>string serial = 3;</code>
|
|
*/
|
|
protected $serial = '';
|
|
/**
|
|
* Generated from protobuf field <code>string deviceName = 4;</code>
|
|
*/
|
|
protected $deviceName = '';
|
|
/**
|
|
* Generated from protobuf field <code>string vendor = 5;</code>
|
|
*/
|
|
protected $vendor = '';
|
|
/**
|
|
* Generated from protobuf field <code>uint32 modeIndex = 6;</code>
|
|
*/
|
|
protected $modeIndex = 0;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.Rect bounds = 7;</code>
|
|
*/
|
|
protected $bounds = null;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.OutputDisplay.Type type = 8;</code>
|
|
*/
|
|
protected $type = 0;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.DisplayMode mode = 9;</code>
|
|
*/
|
|
protected $mode = null;
|
|
/**
|
|
* Generated from protobuf field <code>string render_id = 10;</code>
|
|
*/
|
|
protected $render_id = '';
|
|
/**
|
|
* Generated from protobuf field <code>int32 video_delay = 12;</code>
|
|
*/
|
|
protected $video_delay = 0;
|
|
protected $HardwareOptions;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type string $name
|
|
* @type string $model
|
|
* @type string $serial
|
|
* @type string $deviceName
|
|
* @type string $vendor
|
|
* @type int $modeIndex
|
|
* @type \Rv\Data\Graphics\Rect $bounds
|
|
* @type int $type
|
|
* @type \Rv\Data\DisplayMode $mode
|
|
* @type string $render_id
|
|
* @type int $video_delay
|
|
* @type \Rv\Data\OutputDisplay\Blackmagic $blackmagic
|
|
* }
|
|
*/
|
|
public function __construct($data = NULL) {
|
|
\GPBMetadata\Screens::initOnce();
|
|
parent::__construct($data);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string name = 1;</code>
|
|
* @return string
|
|
*/
|
|
public function getName()
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string name = 1;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setName($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->name = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string model = 2;</code>
|
|
* @return string
|
|
*/
|
|
public function getModel()
|
|
{
|
|
return $this->model;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string model = 2;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setModel($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->model = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string serial = 3;</code>
|
|
* @return string
|
|
*/
|
|
public function getSerial()
|
|
{
|
|
return $this->serial;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string serial = 3;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setSerial($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->serial = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string deviceName = 4;</code>
|
|
* @return string
|
|
*/
|
|
public function getDeviceName()
|
|
{
|
|
return $this->deviceName;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string deviceName = 4;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setDeviceName($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->deviceName = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string vendor = 5;</code>
|
|
* @return string
|
|
*/
|
|
public function getVendor()
|
|
{
|
|
return $this->vendor;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string vendor = 5;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setVendor($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->vendor = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>uint32 modeIndex = 6;</code>
|
|
* @return int
|
|
*/
|
|
public function getModeIndex()
|
|
{
|
|
return $this->modeIndex;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>uint32 modeIndex = 6;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setModeIndex($var)
|
|
{
|
|
GPBUtil::checkUint32($var);
|
|
$this->modeIndex = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.Rect bounds = 7;</code>
|
|
* @return \Rv\Data\Graphics\Rect|null
|
|
*/
|
|
public function getBounds()
|
|
{
|
|
return $this->bounds;
|
|
}
|
|
|
|
public function hasBounds()
|
|
{
|
|
return isset($this->bounds);
|
|
}
|
|
|
|
public function clearBounds()
|
|
{
|
|
unset($this->bounds);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.Rect bounds = 7;</code>
|
|
* @param \Rv\Data\Graphics\Rect $var
|
|
* @return $this
|
|
*/
|
|
public function setBounds($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\Graphics\Rect::class);
|
|
$this->bounds = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.OutputDisplay.Type type = 8;</code>
|
|
* @return int
|
|
*/
|
|
public function getType()
|
|
{
|
|
return $this->type;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.OutputDisplay.Type type = 8;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setType($var)
|
|
{
|
|
GPBUtil::checkEnum($var, \Rv\Data\OutputDisplay\Type::class);
|
|
$this->type = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.DisplayMode mode = 9;</code>
|
|
* @return \Rv\Data\DisplayMode|null
|
|
*/
|
|
public function getMode()
|
|
{
|
|
return $this->mode;
|
|
}
|
|
|
|
public function hasMode()
|
|
{
|
|
return isset($this->mode);
|
|
}
|
|
|
|
public function clearMode()
|
|
{
|
|
unset($this->mode);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.DisplayMode mode = 9;</code>
|
|
* @param \Rv\Data\DisplayMode $var
|
|
* @return $this
|
|
*/
|
|
public function setMode($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\DisplayMode::class);
|
|
$this->mode = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string render_id = 10;</code>
|
|
* @return string
|
|
*/
|
|
public function getRenderId()
|
|
{
|
|
return $this->render_id;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string render_id = 10;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setRenderId($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->render_id = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>int32 video_delay = 12;</code>
|
|
* @return int
|
|
*/
|
|
public function getVideoDelay()
|
|
{
|
|
return $this->video_delay;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>int32 video_delay = 12;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setVideoDelay($var)
|
|
{
|
|
GPBUtil::checkInt32($var);
|
|
$this->video_delay = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.OutputDisplay.Blackmagic blackmagic = 11;</code>
|
|
* @return \Rv\Data\OutputDisplay\Blackmagic|null
|
|
*/
|
|
public function getBlackmagic()
|
|
{
|
|
return $this->readOneof(11);
|
|
}
|
|
|
|
public function hasBlackmagic()
|
|
{
|
|
return $this->hasOneof(11);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.OutputDisplay.Blackmagic blackmagic = 11;</code>
|
|
* @param \Rv\Data\OutputDisplay\Blackmagic $var
|
|
* @return $this
|
|
*/
|
|
public function setBlackmagic($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\OutputDisplay\Blackmagic::class);
|
|
$this->writeOneof(11, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getHardwareOptions()
|
|
{
|
|
return $this->whichOneof("HardwareOptions");
|
|
}
|
|
|
|
}
|
|
|