propresenter7-php-lib/generated/Rv/Data/Graphics/Path/Shape.php
Thorsten Buss 4d10db4f17 Initial public release
PHP 8.4 library and CLI tools to read, modify, and generate ProPresenter 7
files: songs (.pro), playlists (.proplaylist), bundles (.probundle), themes,
and the global library files (Macros, Labels, Groups, ClearGroups, CCLI,
Messages, Timers, Stage, Workspace, Props, TestPatterns, Calendar,
KeyMappings, CommunicationDevices).

Built on the MIT-licensed ProPresenter7-Proto schema by greyshirtguy
(v7.16.2). Includes 18 CLI parsers, comprehensive API docs in doc/,
binary-format specs, and a synthetic 369-test PHPUnit suite covering
RTF extraction, translation slides, ZIP64 repair, round-trip fidelity,
and end-to-end generation.
2026-05-03 22:21:01 +02:00

181 lines
4.6 KiB
PHP

<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: graphicsData.proto
namespace Rv\Data\Graphics\Path;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>rv.data.Graphics.Path.Shape</code>
*/
class Shape extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field <code>.rv.data.Graphics.Path.Shape.Type type = 1;</code>
*/
protected $type = 0;
protected $AdditionalData;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $type
* @type \Rv\Data\Graphics\Path\Shape\RoundedRectangle $rounded_rectangle
* @type \Rv\Data\Graphics\Path\Shape\Polygon $polygon
* @type \Rv\Data\Graphics\Path\Shape\Star $star
* @type \Rv\Data\Graphics\Path\Shape\Arrow $arrow
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\GraphicsData::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field <code>.rv.data.Graphics.Path.Shape.Type type = 1;</code>
* @return int
*/
public function getType()
{
return $this->type;
}
/**
* Generated from protobuf field <code>.rv.data.Graphics.Path.Shape.Type type = 1;</code>
* @param int $var
* @return $this
*/
public function setType($var)
{
GPBUtil::checkEnum($var, \Rv\Data\Graphics\Path\Shape\Type::class);
$this->type = $var;
return $this;
}
/**
* Generated from protobuf field <code>.rv.data.Graphics.Path.Shape.RoundedRectangle rounded_rectangle = 2;</code>
* @return \Rv\Data\Graphics\Path\Shape\RoundedRectangle|null
*/
public function getRoundedRectangle()
{
return $this->readOneof(2);
}
public function hasRoundedRectangle()
{
return $this->hasOneof(2);
}
/**
* Generated from protobuf field <code>.rv.data.Graphics.Path.Shape.RoundedRectangle rounded_rectangle = 2;</code>
* @param \Rv\Data\Graphics\Path\Shape\RoundedRectangle $var
* @return $this
*/
public function setRoundedRectangle($var)
{
GPBUtil::checkMessage($var, \Rv\Data\Graphics\Path\Shape\RoundedRectangle::class);
$this->writeOneof(2, $var);
return $this;
}
/**
* Generated from protobuf field <code>.rv.data.Graphics.Path.Shape.Polygon polygon = 3;</code>
* @return \Rv\Data\Graphics\Path\Shape\Polygon|null
*/
public function getPolygon()
{
return $this->readOneof(3);
}
public function hasPolygon()
{
return $this->hasOneof(3);
}
/**
* Generated from protobuf field <code>.rv.data.Graphics.Path.Shape.Polygon polygon = 3;</code>
* @param \Rv\Data\Graphics\Path\Shape\Polygon $var
* @return $this
*/
public function setPolygon($var)
{
GPBUtil::checkMessage($var, \Rv\Data\Graphics\Path\Shape\Polygon::class);
$this->writeOneof(3, $var);
return $this;
}
/**
* Generated from protobuf field <code>.rv.data.Graphics.Path.Shape.Star star = 4;</code>
* @return \Rv\Data\Graphics\Path\Shape\Star|null
*/
public function getStar()
{
return $this->readOneof(4);
}
public function hasStar()
{
return $this->hasOneof(4);
}
/**
* Generated from protobuf field <code>.rv.data.Graphics.Path.Shape.Star star = 4;</code>
* @param \Rv\Data\Graphics\Path\Shape\Star $var
* @return $this
*/
public function setStar($var)
{
GPBUtil::checkMessage($var, \Rv\Data\Graphics\Path\Shape\Star::class);
$this->writeOneof(4, $var);
return $this;
}
/**
* Generated from protobuf field <code>.rv.data.Graphics.Path.Shape.Arrow arrow = 5;</code>
* @return \Rv\Data\Graphics\Path\Shape\Arrow|null
*/
public function getArrow()
{
return $this->readOneof(5);
}
public function hasArrow()
{
return $this->hasOneof(5);
}
/**
* Generated from protobuf field <code>.rv.data.Graphics.Path.Shape.Arrow arrow = 5;</code>
* @param \Rv\Data\Graphics\Path\Shape\Arrow $var
* @return $this
*/
public function setArrow($var)
{
GPBUtil::checkMessage($var, \Rv\Data\Graphics\Path\Shape\Arrow::class);
$this->writeOneof(5, $var);
return $this;
}
/**
* @return string
*/
public function getAdditionalData()
{
return $this->whichOneof("AdditionalData");
}
}