- 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
613 lines
16 KiB
PHP
613 lines
16 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;
|
|
|
|
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</code>
|
|
*/
|
|
class Attributes extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Font font = 1;</code>
|
|
*/
|
|
protected $font = null;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.Text.Attributes.Capitalization capitalization = 2;</code>
|
|
*/
|
|
protected $capitalization = 0;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.Text.Attributes.Underline underline_style = 4;</code>
|
|
*/
|
|
protected $underline_style = null;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Color underline_color = 5;</code>
|
|
*/
|
|
protected $underline_color = null;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.Text.Attributes.Paragraph paragraph_style = 6;</code>
|
|
*/
|
|
protected $paragraph_style = null;
|
|
/**
|
|
* Generated from protobuf field <code>double kerning = 7;</code>
|
|
*/
|
|
protected $kerning = 0.0;
|
|
/**
|
|
* Generated from protobuf field <code>int32 superscript = 8;</code>
|
|
*/
|
|
protected $superscript = 0;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.Text.Attributes.Underline strikethrough_style = 9;</code>
|
|
*/
|
|
protected $strikethrough_style = null;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Color strikethrough_color = 10;</code>
|
|
*/
|
|
protected $strikethrough_color = null;
|
|
/**
|
|
* Generated from protobuf field <code>double stroke_width = 11;</code>
|
|
*/
|
|
protected $stroke_width = 0.0;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Color stroke_color = 12;</code>
|
|
*/
|
|
protected $stroke_color = null;
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.Graphics.Text.Attributes.CustomAttribute custom_attributes = 13;</code>
|
|
*/
|
|
private $custom_attributes;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Color background_color = 15;</code>
|
|
*/
|
|
protected $background_color = null;
|
|
protected $fill;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type \Rv\Data\Font $font
|
|
* @type int $capitalization
|
|
* @type \Rv\Data\Graphics\Text\Attributes\Underline $underline_style
|
|
* @type \Rv\Data\Color $underline_color
|
|
* @type \Rv\Data\Graphics\Text\Attributes\Paragraph $paragraph_style
|
|
* @type float $kerning
|
|
* @type int $superscript
|
|
* @type \Rv\Data\Graphics\Text\Attributes\Underline $strikethrough_style
|
|
* @type \Rv\Data\Color $strikethrough_color
|
|
* @type float $stroke_width
|
|
* @type \Rv\Data\Color $stroke_color
|
|
* @type array<\Rv\Data\Graphics\Text\Attributes\CustomAttribute>|\Google\Protobuf\Internal\RepeatedField $custom_attributes
|
|
* @type \Rv\Data\Color $background_color
|
|
* @type \Rv\Data\Color $text_solid_fill
|
|
* @type \Rv\Data\Graphics\Text\GradientFill $text_gradient_fill
|
|
* @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.Font font = 1;</code>
|
|
* @return \Rv\Data\Font|null
|
|
*/
|
|
public function getFont()
|
|
{
|
|
return $this->font;
|
|
}
|
|
|
|
public function hasFont()
|
|
{
|
|
return isset($this->font);
|
|
}
|
|
|
|
public function clearFont()
|
|
{
|
|
unset($this->font);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Font font = 1;</code>
|
|
* @param \Rv\Data\Font $var
|
|
* @return $this
|
|
*/
|
|
public function setFont($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\Font::class);
|
|
$this->font = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.Text.Attributes.Capitalization capitalization = 2;</code>
|
|
* @return int
|
|
*/
|
|
public function getCapitalization()
|
|
{
|
|
return $this->capitalization;
|
|
}
|
|
|
|
/**
|
|
* 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->capitalization = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.Text.Attributes.Underline underline_style = 4;</code>
|
|
* @return \Rv\Data\Graphics\Text\Attributes\Underline|null
|
|
*/
|
|
public function getUnderlineStyle()
|
|
{
|
|
return $this->underline_style;
|
|
}
|
|
|
|
public function hasUnderlineStyle()
|
|
{
|
|
return isset($this->underline_style);
|
|
}
|
|
|
|
public function clearUnderlineStyle()
|
|
{
|
|
unset($this->underline_style);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.Text.Attributes.Underline underline_style = 4;</code>
|
|
* @param \Rv\Data\Graphics\Text\Attributes\Underline $var
|
|
* @return $this
|
|
*/
|
|
public function setUnderlineStyle($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\Graphics\Text\Attributes\Underline::class);
|
|
$this->underline_style = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Color underline_color = 5;</code>
|
|
* @return \Rv\Data\Color|null
|
|
*/
|
|
public function getUnderlineColor()
|
|
{
|
|
return $this->underline_color;
|
|
}
|
|
|
|
public function hasUnderlineColor()
|
|
{
|
|
return isset($this->underline_color);
|
|
}
|
|
|
|
public function clearUnderlineColor()
|
|
{
|
|
unset($this->underline_color);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Color underline_color = 5;</code>
|
|
* @param \Rv\Data\Color $var
|
|
* @return $this
|
|
*/
|
|
public function setUnderlineColor($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\Color::class);
|
|
$this->underline_color = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.Text.Attributes.Paragraph paragraph_style = 6;</code>
|
|
* @return \Rv\Data\Graphics\Text\Attributes\Paragraph|null
|
|
*/
|
|
public function getParagraphStyle()
|
|
{
|
|
return $this->paragraph_style;
|
|
}
|
|
|
|
public function hasParagraphStyle()
|
|
{
|
|
return isset($this->paragraph_style);
|
|
}
|
|
|
|
public function clearParagraphStyle()
|
|
{
|
|
unset($this->paragraph_style);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.Text.Attributes.Paragraph paragraph_style = 6;</code>
|
|
* @param \Rv\Data\Graphics\Text\Attributes\Paragraph $var
|
|
* @return $this
|
|
*/
|
|
public function setParagraphStyle($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\Graphics\Text\Attributes\Paragraph::class);
|
|
$this->paragraph_style = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>double kerning = 7;</code>
|
|
* @return float
|
|
*/
|
|
public function getKerning()
|
|
{
|
|
return $this->kerning;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>double kerning = 7;</code>
|
|
* @param float $var
|
|
* @return $this
|
|
*/
|
|
public function setKerning($var)
|
|
{
|
|
GPBUtil::checkDouble($var);
|
|
$this->kerning = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>int32 superscript = 8;</code>
|
|
* @return int
|
|
*/
|
|
public function getSuperscript()
|
|
{
|
|
return $this->superscript;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>int32 superscript = 8;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setSuperscript($var)
|
|
{
|
|
GPBUtil::checkInt32($var);
|
|
$this->superscript = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.Text.Attributes.Underline strikethrough_style = 9;</code>
|
|
* @return \Rv\Data\Graphics\Text\Attributes\Underline|null
|
|
*/
|
|
public function getStrikethroughStyle()
|
|
{
|
|
return $this->strikethrough_style;
|
|
}
|
|
|
|
public function hasStrikethroughStyle()
|
|
{
|
|
return isset($this->strikethrough_style);
|
|
}
|
|
|
|
public function clearStrikethroughStyle()
|
|
{
|
|
unset($this->strikethrough_style);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.Text.Attributes.Underline strikethrough_style = 9;</code>
|
|
* @param \Rv\Data\Graphics\Text\Attributes\Underline $var
|
|
* @return $this
|
|
*/
|
|
public function setStrikethroughStyle($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\Graphics\Text\Attributes\Underline::class);
|
|
$this->strikethrough_style = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Color strikethrough_color = 10;</code>
|
|
* @return \Rv\Data\Color|null
|
|
*/
|
|
public function getStrikethroughColor()
|
|
{
|
|
return $this->strikethrough_color;
|
|
}
|
|
|
|
public function hasStrikethroughColor()
|
|
{
|
|
return isset($this->strikethrough_color);
|
|
}
|
|
|
|
public function clearStrikethroughColor()
|
|
{
|
|
unset($this->strikethrough_color);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Color strikethrough_color = 10;</code>
|
|
* @param \Rv\Data\Color $var
|
|
* @return $this
|
|
*/
|
|
public function setStrikethroughColor($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\Color::class);
|
|
$this->strikethrough_color = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>double stroke_width = 11;</code>
|
|
* @return float
|
|
*/
|
|
public function getStrokeWidth()
|
|
{
|
|
return $this->stroke_width;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>double stroke_width = 11;</code>
|
|
* @param float $var
|
|
* @return $this
|
|
*/
|
|
public function setStrokeWidth($var)
|
|
{
|
|
GPBUtil::checkDouble($var);
|
|
$this->stroke_width = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Color stroke_color = 12;</code>
|
|
* @return \Rv\Data\Color|null
|
|
*/
|
|
public function getStrokeColor()
|
|
{
|
|
return $this->stroke_color;
|
|
}
|
|
|
|
public function hasStrokeColor()
|
|
{
|
|
return isset($this->stroke_color);
|
|
}
|
|
|
|
public function clearStrokeColor()
|
|
{
|
|
unset($this->stroke_color);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Color stroke_color = 12;</code>
|
|
* @param \Rv\Data\Color $var
|
|
* @return $this
|
|
*/
|
|
public function setStrokeColor($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\Color::class);
|
|
$this->stroke_color = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.Graphics.Text.Attributes.CustomAttribute custom_attributes = 13;</code>
|
|
* @return \Google\Protobuf\Internal\RepeatedField
|
|
*/
|
|
public function getCustomAttributes()
|
|
{
|
|
return $this->custom_attributes;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.Graphics.Text.Attributes.CustomAttribute custom_attributes = 13;</code>
|
|
* @param array<\Rv\Data\Graphics\Text\Attributes\CustomAttribute>|\Google\Protobuf\Internal\RepeatedField $var
|
|
* @return $this
|
|
*/
|
|
public function setCustomAttributes($var)
|
|
{
|
|
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\Graphics\Text\Attributes\CustomAttribute::class);
|
|
$this->custom_attributes = $arr;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Color background_color = 15;</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 = 15;</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.Color text_solid_fill = 3;</code>
|
|
* @return \Rv\Data\Color|null
|
|
*/
|
|
public function getTextSolidFill()
|
|
{
|
|
return $this->readOneof(3);
|
|
}
|
|
|
|
public function hasTextSolidFill()
|
|
{
|
|
return $this->hasOneof(3);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Color text_solid_fill = 3;</code>
|
|
* @param \Rv\Data\Color $var
|
|
* @return $this
|
|
*/
|
|
public function setTextSolidFill($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\Color::class);
|
|
$this->writeOneof(3, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.Text.GradientFill text_gradient_fill = 14;</code>
|
|
* @return \Rv\Data\Graphics\Text\GradientFill|null
|
|
*/
|
|
public function getTextGradientFill()
|
|
{
|
|
return $this->readOneof(14);
|
|
}
|
|
|
|
public function hasTextGradientFill()
|
|
{
|
|
return $this->hasOneof(14);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.Text.GradientFill text_gradient_fill = 14;</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(14, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.Text.CutOutFill cut_out_fill = 16;</code>
|
|
* @return \Rv\Data\Graphics\Text\CutOutFill|null
|
|
*/
|
|
public function getCutOutFill()
|
|
{
|
|
return $this->readOneof(16);
|
|
}
|
|
|
|
public function hasCutOutFill()
|
|
{
|
|
return $this->hasOneof(16);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.Text.CutOutFill cut_out_fill = 16;</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(16, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.Text.MediaFill media_fill = 17;</code>
|
|
* @return \Rv\Data\Graphics\Text\MediaFill|null
|
|
*/
|
|
public function getMediaFill()
|
|
{
|
|
return $this->readOneof(17);
|
|
}
|
|
|
|
public function hasMediaFill()
|
|
{
|
|
return $this->hasOneof(17);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.Text.MediaFill media_fill = 17;</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(17, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.BackgroundEffect background_effect = 18;</code>
|
|
* @return \Rv\Data\Graphics\BackgroundEffect|null
|
|
*/
|
|
public function getBackgroundEffect()
|
|
{
|
|
return $this->readOneof(18);
|
|
}
|
|
|
|
public function hasBackgroundEffect()
|
|
{
|
|
return $this->hasOneof(18);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.BackgroundEffect background_effect = 18;</code>
|
|
* @param \Rv\Data\Graphics\BackgroundEffect $var
|
|
* @return $this
|
|
*/
|
|
public function setBackgroundEffect($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\Graphics\BackgroundEffect::class);
|
|
$this->writeOneof(18, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getFill()
|
|
{
|
|
return $this->whichOneof("fill");
|
|
}
|
|
|
|
}
|
|
|