- 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
252 lines
6.7 KiB
PHP
252 lines
6.7 KiB
PHP
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
# source: slide.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.Slide</code>
|
|
*/
|
|
class Slide extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.Slide.Element elements = 1;</code>
|
|
*/
|
|
private $elements;
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.UUID element_build_order = 2;</code>
|
|
*/
|
|
private $element_build_order;
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.AlignmentGuide guidelines = 3;</code>
|
|
*/
|
|
private $guidelines;
|
|
/**
|
|
* Generated from protobuf field <code>bool draws_background_color = 4;</code>
|
|
*/
|
|
protected $draws_background_color = false;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Color background_color = 5;</code>
|
|
*/
|
|
protected $background_color = null;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.Size size = 6;</code>
|
|
*/
|
|
protected $size = null;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.UUID uuid = 7;</code>
|
|
*/
|
|
protected $uuid = null;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type array<\Rv\Data\Slide\Element>|\Google\Protobuf\Internal\RepeatedField $elements
|
|
* @type array<\Rv\Data\UUID>|\Google\Protobuf\Internal\RepeatedField $element_build_order
|
|
* @type array<\Rv\Data\AlignmentGuide>|\Google\Protobuf\Internal\RepeatedField $guidelines
|
|
* @type bool $draws_background_color
|
|
* @type \Rv\Data\Color $background_color
|
|
* @type \Rv\Data\Graphics\Size $size
|
|
* @type \Rv\Data\UUID $uuid
|
|
* }
|
|
*/
|
|
public function __construct($data = NULL) {
|
|
\GPBMetadata\Slide::initOnce();
|
|
parent::__construct($data);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.Slide.Element elements = 1;</code>
|
|
* @return \Google\Protobuf\Internal\RepeatedField
|
|
*/
|
|
public function getElements()
|
|
{
|
|
return $this->elements;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.Slide.Element elements = 1;</code>
|
|
* @param array<\Rv\Data\Slide\Element>|\Google\Protobuf\Internal\RepeatedField $var
|
|
* @return $this
|
|
*/
|
|
public function setElements($var)
|
|
{
|
|
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\Slide\Element::class);
|
|
$this->elements = $arr;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.UUID element_build_order = 2;</code>
|
|
* @return \Google\Protobuf\Internal\RepeatedField
|
|
*/
|
|
public function getElementBuildOrder()
|
|
{
|
|
return $this->element_build_order;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.UUID element_build_order = 2;</code>
|
|
* @param array<\Rv\Data\UUID>|\Google\Protobuf\Internal\RepeatedField $var
|
|
* @return $this
|
|
*/
|
|
public function setElementBuildOrder($var)
|
|
{
|
|
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\UUID::class);
|
|
$this->element_build_order = $arr;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.AlignmentGuide guidelines = 3;</code>
|
|
* @return \Google\Protobuf\Internal\RepeatedField
|
|
*/
|
|
public function getGuidelines()
|
|
{
|
|
return $this->guidelines;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.AlignmentGuide guidelines = 3;</code>
|
|
* @param array<\Rv\Data\AlignmentGuide>|\Google\Protobuf\Internal\RepeatedField $var
|
|
* @return $this
|
|
*/
|
|
public function setGuidelines($var)
|
|
{
|
|
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\AlignmentGuide::class);
|
|
$this->guidelines = $arr;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool draws_background_color = 4;</code>
|
|
* @return bool
|
|
*/
|
|
public function getDrawsBackgroundColor()
|
|
{
|
|
return $this->draws_background_color;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool draws_background_color = 4;</code>
|
|
* @param bool $var
|
|
* @return $this
|
|
*/
|
|
public function setDrawsBackgroundColor($var)
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
$this->draws_background_color = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Color background_color = 5;</code>
|
|
* @return \Rv\Data\Color|null
|
|
*/
|
|
public function getBackgroundColor()
|
|
{
|
|
return $this->background_color;
|
|
}
|
|
|
|
public function hasBackgroundColor()
|
|
{
|
|
return isset($this->background_color);
|
|
}
|
|
|
|
public function clearBackgroundColor()
|
|
{
|
|
unset($this->background_color);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Color background_color = 5;</code>
|
|
* @param \Rv\Data\Color $var
|
|
* @return $this
|
|
*/
|
|
public function setBackgroundColor($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\Color::class);
|
|
$this->background_color = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.Size size = 6;</code>
|
|
* @return \Rv\Data\Graphics\Size|null
|
|
*/
|
|
public function getSize()
|
|
{
|
|
return $this->size;
|
|
}
|
|
|
|
public function hasSize()
|
|
{
|
|
return isset($this->size);
|
|
}
|
|
|
|
public function clearSize()
|
|
{
|
|
unset($this->size);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.Size size = 6;</code>
|
|
* @param \Rv\Data\Graphics\Size $var
|
|
* @return $this
|
|
*/
|
|
public function setSize($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\Graphics\Size::class);
|
|
$this->size = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.UUID uuid = 7;</code>
|
|
* @return \Rv\Data\UUID|null
|
|
*/
|
|
public function getUuid()
|
|
{
|
|
return $this->uuid;
|
|
}
|
|
|
|
public function hasUuid()
|
|
{
|
|
return isset($this->uuid);
|
|
}
|
|
|
|
public function clearUuid()
|
|
{
|
|
unset($this->uuid);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.UUID uuid = 7;</code>
|
|
* @param \Rv\Data\UUID $var
|
|
* @return $this
|
|
*/
|
|
public function setUuid($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\UUID::class);
|
|
$this->uuid = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|