rv.data.Graphics.Text.Attributes
*/
class Attributes extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field .rv.data.Font font = 1;
*/
protected $font = null;
/**
* Generated from protobuf field .rv.data.Graphics.Text.Attributes.Capitalization capitalization = 2;
*/
protected $capitalization = 0;
/**
* Generated from protobuf field .rv.data.Graphics.Text.Attributes.Underline underline_style = 4;
*/
protected $underline_style = null;
/**
* Generated from protobuf field .rv.data.Color underline_color = 5;
*/
protected $underline_color = null;
/**
* Generated from protobuf field .rv.data.Graphics.Text.Attributes.Paragraph paragraph_style = 6;
*/
protected $paragraph_style = null;
/**
* Generated from protobuf field double kerning = 7;
*/
protected $kerning = 0.0;
/**
* Generated from protobuf field int32 superscript = 8;
*/
protected $superscript = 0;
/**
* Generated from protobuf field .rv.data.Graphics.Text.Attributes.Underline strikethrough_style = 9;
*/
protected $strikethrough_style = null;
/**
* Generated from protobuf field .rv.data.Color strikethrough_color = 10;
*/
protected $strikethrough_color = null;
/**
* Generated from protobuf field double stroke_width = 11;
*/
protected $stroke_width = 0.0;
/**
* Generated from protobuf field .rv.data.Color stroke_color = 12;
*/
protected $stroke_color = null;
/**
* Generated from protobuf field repeated .rv.data.Graphics.Text.Attributes.CustomAttribute custom_attributes = 13;
*/
private $custom_attributes;
/**
* Generated from protobuf field .rv.data.Color background_color = 15;
*/
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 .rv.data.Font font = 1;
* @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 .rv.data.Font font = 1;
* @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 .rv.data.Graphics.Text.Attributes.Capitalization capitalization = 2;
* @return int
*/
public function getCapitalization()
{
return $this->capitalization;
}
/**
* Generated from protobuf field .rv.data.Graphics.Text.Attributes.Capitalization capitalization = 2;
* @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 .rv.data.Graphics.Text.Attributes.Underline underline_style = 4;
* @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 .rv.data.Graphics.Text.Attributes.Underline underline_style = 4;
* @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 .rv.data.Color underline_color = 5;
* @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 .rv.data.Color underline_color = 5;
* @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 .rv.data.Graphics.Text.Attributes.Paragraph paragraph_style = 6;
* @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 .rv.data.Graphics.Text.Attributes.Paragraph paragraph_style = 6;
* @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 double kerning = 7;
* @return float
*/
public function getKerning()
{
return $this->kerning;
}
/**
* Generated from protobuf field double kerning = 7;
* @param float $var
* @return $this
*/
public function setKerning($var)
{
GPBUtil::checkDouble($var);
$this->kerning = $var;
return $this;
}
/**
* Generated from protobuf field int32 superscript = 8;
* @return int
*/
public function getSuperscript()
{
return $this->superscript;
}
/**
* Generated from protobuf field int32 superscript = 8;
* @param int $var
* @return $this
*/
public function setSuperscript($var)
{
GPBUtil::checkInt32($var);
$this->superscript = $var;
return $this;
}
/**
* Generated from protobuf field .rv.data.Graphics.Text.Attributes.Underline strikethrough_style = 9;
* @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 .rv.data.Graphics.Text.Attributes.Underline strikethrough_style = 9;
* @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 .rv.data.Color strikethrough_color = 10;
* @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 .rv.data.Color strikethrough_color = 10;
* @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 double stroke_width = 11;
* @return float
*/
public function getStrokeWidth()
{
return $this->stroke_width;
}
/**
* Generated from protobuf field double stroke_width = 11;
* @param float $var
* @return $this
*/
public function setStrokeWidth($var)
{
GPBUtil::checkDouble($var);
$this->stroke_width = $var;
return $this;
}
/**
* Generated from protobuf field .rv.data.Color stroke_color = 12;
* @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 .rv.data.Color stroke_color = 12;
* @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 repeated .rv.data.Graphics.Text.Attributes.CustomAttribute custom_attributes = 13;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getCustomAttributes()
{
return $this->custom_attributes;
}
/**
* Generated from protobuf field repeated .rv.data.Graphics.Text.Attributes.CustomAttribute custom_attributes = 13;
* @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 .rv.data.Color background_color = 15;
* @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 .rv.data.Color background_color = 15;
* @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 .rv.data.Color text_solid_fill = 3;
* @return \Rv\Data\Color|null
*/
public function getTextSolidFill()
{
return $this->readOneof(3);
}
public function hasTextSolidFill()
{
return $this->hasOneof(3);
}
/**
* Generated from protobuf field .rv.data.Color text_solid_fill = 3;
* @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 .rv.data.Graphics.Text.GradientFill text_gradient_fill = 14;
* @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 .rv.data.Graphics.Text.GradientFill text_gradient_fill = 14;
* @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 .rv.data.Graphics.Text.CutOutFill cut_out_fill = 16;
* @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 .rv.data.Graphics.Text.CutOutFill cut_out_fill = 16;
* @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 .rv.data.Graphics.Text.MediaFill media_fill = 17;
* @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 .rv.data.Graphics.Text.MediaFill media_fill = 17;
* @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 .rv.data.Graphics.BackgroundEffect background_effect = 18;
* @return \Rv\Data\Graphics\BackgroundEffect|null
*/
public function getBackgroundEffect()
{
return $this->readOneof(18);
}
public function hasBackgroundEffect()
{
return $this->hasOneof(18);
}
/**
* Generated from protobuf field .rv.data.Graphics.BackgroundEffect background_effect = 18;
* @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");
}
}