- 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
331 lines
8.1 KiB
PHP
331 lines
8.1 KiB
PHP
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
# source: graphicsData.proto
|
|
|
|
namespace Rv\Data\Graphics\Text\Attributes;
|
|
|
|
use Google\Protobuf\Internal\GPBType;
|
|
use Google\Protobuf\Internal\RepeatedField;
|
|
use Google\Protobuf\Internal\GPBUtil;
|
|
|
|
/**
|
|
* Generated from protobuf message <code>rv.data.Graphics.Text.Attributes.CustomAttribute</code>
|
|
*/
|
|
class CustomAttribute extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.IntRange range = 1;</code>
|
|
*/
|
|
protected $range = null;
|
|
protected $Attribute;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type \Rv\Data\IntRange $range
|
|
* @type int $capitalization
|
|
* @type float $original_font_size
|
|
* @type float $font_scale_factor
|
|
* @type \Rv\Data\Graphics\Text\GradientFill $text_gradient_fill
|
|
* @type bool $should_preserve_foreground_color
|
|
* @type string $chord
|
|
* @type \Rv\Data\Graphics\Text\CutOutFill $cut_out_fill
|
|
* @type \Rv\Data\Graphics\Text\MediaFill $media_fill
|
|
* @type \Rv\Data\Graphics\BackgroundEffect $background_effect
|
|
* }
|
|
*/
|
|
public function __construct($data = NULL) {
|
|
\GPBMetadata\GraphicsData::initOnce();
|
|
parent::__construct($data);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.IntRange range = 1;</code>
|
|
* @return \Rv\Data\IntRange|null
|
|
*/
|
|
public function getRange()
|
|
{
|
|
return $this->range;
|
|
}
|
|
|
|
public function hasRange()
|
|
{
|
|
return isset($this->range);
|
|
}
|
|
|
|
public function clearRange()
|
|
{
|
|
unset($this->range);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.IntRange range = 1;</code>
|
|
* @param \Rv\Data\IntRange $var
|
|
* @return $this
|
|
*/
|
|
public function setRange($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\IntRange::class);
|
|
$this->range = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.Text.Attributes.Capitalization capitalization = 2;</code>
|
|
* @return int
|
|
*/
|
|
public function getCapitalization()
|
|
{
|
|
return $this->readOneof(2);
|
|
}
|
|
|
|
public function hasCapitalization()
|
|
{
|
|
return $this->hasOneof(2);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.Text.Attributes.Capitalization capitalization = 2;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setCapitalization($var)
|
|
{
|
|
GPBUtil::checkEnum($var, \Rv\Data\Graphics\Text\Attributes\Capitalization::class);
|
|
$this->writeOneof(2, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>double original_font_size = 3;</code>
|
|
* @return float
|
|
*/
|
|
public function getOriginalFontSize()
|
|
{
|
|
return $this->readOneof(3);
|
|
}
|
|
|
|
public function hasOriginalFontSize()
|
|
{
|
|
return $this->hasOneof(3);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>double original_font_size = 3;</code>
|
|
* @param float $var
|
|
* @return $this
|
|
*/
|
|
public function setOriginalFontSize($var)
|
|
{
|
|
GPBUtil::checkDouble($var);
|
|
$this->writeOneof(3, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>double font_scale_factor = 4;</code>
|
|
* @return float
|
|
*/
|
|
public function getFontScaleFactor()
|
|
{
|
|
return $this->readOneof(4);
|
|
}
|
|
|
|
public function hasFontScaleFactor()
|
|
{
|
|
return $this->hasOneof(4);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>double font_scale_factor = 4;</code>
|
|
* @param float $var
|
|
* @return $this
|
|
*/
|
|
public function setFontScaleFactor($var)
|
|
{
|
|
GPBUtil::checkDouble($var);
|
|
$this->writeOneof(4, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.Text.GradientFill text_gradient_fill = 5;</code>
|
|
* @return \Rv\Data\Graphics\Text\GradientFill|null
|
|
*/
|
|
public function getTextGradientFill()
|
|
{
|
|
return $this->readOneof(5);
|
|
}
|
|
|
|
public function hasTextGradientFill()
|
|
{
|
|
return $this->hasOneof(5);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.Text.GradientFill text_gradient_fill = 5;</code>
|
|
* @param \Rv\Data\Graphics\Text\GradientFill $var
|
|
* @return $this
|
|
*/
|
|
public function setTextGradientFill($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\Graphics\Text\GradientFill::class);
|
|
$this->writeOneof(5, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool should_preserve_foreground_color = 6;</code>
|
|
* @return bool
|
|
*/
|
|
public function getShouldPreserveForegroundColor()
|
|
{
|
|
return $this->readOneof(6);
|
|
}
|
|
|
|
public function hasShouldPreserveForegroundColor()
|
|
{
|
|
return $this->hasOneof(6);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool should_preserve_foreground_color = 6;</code>
|
|
* @param bool $var
|
|
* @return $this
|
|
*/
|
|
public function setShouldPreserveForegroundColor($var)
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
$this->writeOneof(6, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string chord = 7;</code>
|
|
* @return string
|
|
*/
|
|
public function getChord()
|
|
{
|
|
return $this->readOneof(7);
|
|
}
|
|
|
|
public function hasChord()
|
|
{
|
|
return $this->hasOneof(7);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string chord = 7;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setChord($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->writeOneof(7, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.Text.CutOutFill cut_out_fill = 8;</code>
|
|
* @return \Rv\Data\Graphics\Text\CutOutFill|null
|
|
*/
|
|
public function getCutOutFill()
|
|
{
|
|
return $this->readOneof(8);
|
|
}
|
|
|
|
public function hasCutOutFill()
|
|
{
|
|
return $this->hasOneof(8);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.Text.CutOutFill cut_out_fill = 8;</code>
|
|
* @param \Rv\Data\Graphics\Text\CutOutFill $var
|
|
* @return $this
|
|
*/
|
|
public function setCutOutFill($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\Graphics\Text\CutOutFill::class);
|
|
$this->writeOneof(8, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.Text.MediaFill media_fill = 9;</code>
|
|
* @return \Rv\Data\Graphics\Text\MediaFill|null
|
|
*/
|
|
public function getMediaFill()
|
|
{
|
|
return $this->readOneof(9);
|
|
}
|
|
|
|
public function hasMediaFill()
|
|
{
|
|
return $this->hasOneof(9);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.Text.MediaFill media_fill = 9;</code>
|
|
* @param \Rv\Data\Graphics\Text\MediaFill $var
|
|
* @return $this
|
|
*/
|
|
public function setMediaFill($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\Graphics\Text\MediaFill::class);
|
|
$this->writeOneof(9, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.BackgroundEffect background_effect = 10;</code>
|
|
* @return \Rv\Data\Graphics\BackgroundEffect|null
|
|
*/
|
|
public function getBackgroundEffect()
|
|
{
|
|
return $this->readOneof(10);
|
|
}
|
|
|
|
public function hasBackgroundEffect()
|
|
{
|
|
return $this->hasOneof(10);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.BackgroundEffect background_effect = 10;</code>
|
|
* @param \Rv\Data\Graphics\BackgroundEffect $var
|
|
* @return $this
|
|
*/
|
|
public function setBackgroundEffect($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\Graphics\BackgroundEffect::class);
|
|
$this->writeOneof(10, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getAttribute()
|
|
{
|
|
return $this->whichOneof("Attribute");
|
|
}
|
|
|
|
}
|
|
|