rv.data.Graphics.Text.Attributes.CustomAttribute */ class CustomAttribute extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field .rv.data.IntRange range = 1; */ 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 .rv.data.IntRange range = 1; * @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 .rv.data.IntRange range = 1; * @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 .rv.data.Graphics.Text.Attributes.Capitalization capitalization = 2; * @return int */ public function getCapitalization() { return $this->readOneof(2); } public function hasCapitalization() { return $this->hasOneof(2); } /** * 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->writeOneof(2, $var); return $this; } /** * Generated from protobuf field double original_font_size = 3; * @return float */ public function getOriginalFontSize() { return $this->readOneof(3); } public function hasOriginalFontSize() { return $this->hasOneof(3); } /** * Generated from protobuf field double original_font_size = 3; * @param float $var * @return $this */ public function setOriginalFontSize($var) { GPBUtil::checkDouble($var); $this->writeOneof(3, $var); return $this; } /** * Generated from protobuf field double font_scale_factor = 4; * @return float */ public function getFontScaleFactor() { return $this->readOneof(4); } public function hasFontScaleFactor() { return $this->hasOneof(4); } /** * Generated from protobuf field double font_scale_factor = 4; * @param float $var * @return $this */ public function setFontScaleFactor($var) { GPBUtil::checkDouble($var); $this->writeOneof(4, $var); return $this; } /** * Generated from protobuf field .rv.data.Graphics.Text.GradientFill text_gradient_fill = 5; * @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 .rv.data.Graphics.Text.GradientFill text_gradient_fill = 5; * @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 bool should_preserve_foreground_color = 6; * @return bool */ public function getShouldPreserveForegroundColor() { return $this->readOneof(6); } public function hasShouldPreserveForegroundColor() { return $this->hasOneof(6); } /** * Generated from protobuf field bool should_preserve_foreground_color = 6; * @param bool $var * @return $this */ public function setShouldPreserveForegroundColor($var) { GPBUtil::checkBool($var); $this->writeOneof(6, $var); return $this; } /** * Generated from protobuf field string chord = 7; * @return string */ public function getChord() { return $this->readOneof(7); } public function hasChord() { return $this->hasOneof(7); } /** * Generated from protobuf field string chord = 7; * @param string $var * @return $this */ public function setChord($var) { GPBUtil::checkString($var, True); $this->writeOneof(7, $var); return $this; } /** * Generated from protobuf field .rv.data.Graphics.Text.CutOutFill cut_out_fill = 8; * @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 .rv.data.Graphics.Text.CutOutFill cut_out_fill = 8; * @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 .rv.data.Graphics.Text.MediaFill media_fill = 9; * @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 .rv.data.Graphics.Text.MediaFill media_fill = 9; * @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 .rv.data.Graphics.BackgroundEffect background_effect = 10; * @return \Rv\Data\Graphics\BackgroundEffect|null */ public function getBackgroundEffect() { return $this->readOneof(10); } public function hasBackgroundEffect() { return $this->hasOneof(10); } /** * Generated from protobuf field .rv.data.Graphics.BackgroundEffect background_effect = 10; * @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"); } }