rv.data.Graphics.Text */ class Text extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field .rv.data.Graphics.Text.Attributes attributes = 3; */ protected $attributes = null; /** * Generated from protobuf field .rv.data.Graphics.Shadow shadow = 4; */ protected $shadow = null; /** * Generated from protobuf field bytes rtf_data = 5; */ protected $rtf_data = ''; /** * Generated from protobuf field .rv.data.Graphics.Text.VerticalAlignment vertical_alignment = 6; */ protected $vertical_alignment = 0; /** * Generated from protobuf field .rv.data.Graphics.Text.ScaleBehavior scale_behavior = 7; */ protected $scale_behavior = 0; /** * Generated from protobuf field .rv.data.Graphics.EdgeInsets margins = 8; */ protected $margins = null; /** * Generated from protobuf field bool is_superscript_standardized = 9; */ protected $is_superscript_standardized = false; /** * Generated from protobuf field .rv.data.Graphics.Text.Transform transform = 10; */ protected $transform = 0; /** * Generated from protobuf field string transformDelimiter = 11; */ protected $transformDelimiter = ''; /** * Generated from protobuf field .rv.data.Graphics.Text.ChordPro chord_pro = 12; */ protected $chord_pro = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Rv\Data\Graphics\Text\Attributes $attributes * @type \Rv\Data\Graphics\Shadow $shadow * @type string $rtf_data * @type int $vertical_alignment * @type int $scale_behavior * @type \Rv\Data\Graphics\EdgeInsets $margins * @type bool $is_superscript_standardized * @type int $transform * @type string $transformDelimiter * @type \Rv\Data\Graphics\Text\ChordPro $chord_pro * } */ public function __construct($data = NULL) { \GPBMetadata\GraphicsData::initOnce(); parent::__construct($data); } /** * Generated from protobuf field .rv.data.Graphics.Text.Attributes attributes = 3; * @return \Rv\Data\Graphics\Text\Attributes|null */ public function getAttributes() { return $this->attributes; } public function hasAttributes() { return isset($this->attributes); } public function clearAttributes() { unset($this->attributes); } /** * Generated from protobuf field .rv.data.Graphics.Text.Attributes attributes = 3; * @param \Rv\Data\Graphics\Text\Attributes $var * @return $this */ public function setAttributes($var) { GPBUtil::checkMessage($var, \Rv\Data\Graphics\Text\Attributes::class); $this->attributes = $var; return $this; } /** * Generated from protobuf field .rv.data.Graphics.Shadow shadow = 4; * @return \Rv\Data\Graphics\Shadow|null */ public function getShadow() { return $this->shadow; } public function hasShadow() { return isset($this->shadow); } public function clearShadow() { unset($this->shadow); } /** * Generated from protobuf field .rv.data.Graphics.Shadow shadow = 4; * @param \Rv\Data\Graphics\Shadow $var * @return $this */ public function setShadow($var) { GPBUtil::checkMessage($var, \Rv\Data\Graphics\Shadow::class); $this->shadow = $var; return $this; } /** * Generated from protobuf field bytes rtf_data = 5; * @return string */ public function getRtfData() { return $this->rtf_data; } /** * Generated from protobuf field bytes rtf_data = 5; * @param string $var * @return $this */ public function setRtfData($var) { GPBUtil::checkString($var, False); $this->rtf_data = $var; return $this; } /** * Generated from protobuf field .rv.data.Graphics.Text.VerticalAlignment vertical_alignment = 6; * @return int */ public function getVerticalAlignment() { return $this->vertical_alignment; } /** * Generated from protobuf field .rv.data.Graphics.Text.VerticalAlignment vertical_alignment = 6; * @param int $var * @return $this */ public function setVerticalAlignment($var) { GPBUtil::checkEnum($var, \Rv\Data\Graphics\Text\VerticalAlignment::class); $this->vertical_alignment = $var; return $this; } /** * Generated from protobuf field .rv.data.Graphics.Text.ScaleBehavior scale_behavior = 7; * @return int */ public function getScaleBehavior() { return $this->scale_behavior; } /** * Generated from protobuf field .rv.data.Graphics.Text.ScaleBehavior scale_behavior = 7; * @param int $var * @return $this */ public function setScaleBehavior($var) { GPBUtil::checkEnum($var, \Rv\Data\Graphics\Text\ScaleBehavior::class); $this->scale_behavior = $var; return $this; } /** * Generated from protobuf field .rv.data.Graphics.EdgeInsets margins = 8; * @return \Rv\Data\Graphics\EdgeInsets|null */ public function getMargins() { return $this->margins; } public function hasMargins() { return isset($this->margins); } public function clearMargins() { unset($this->margins); } /** * Generated from protobuf field .rv.data.Graphics.EdgeInsets margins = 8; * @param \Rv\Data\Graphics\EdgeInsets $var * @return $this */ public function setMargins($var) { GPBUtil::checkMessage($var, \Rv\Data\Graphics\EdgeInsets::class); $this->margins = $var; return $this; } /** * Generated from protobuf field bool is_superscript_standardized = 9; * @return bool */ public function getIsSuperscriptStandardized() { return $this->is_superscript_standardized; } /** * Generated from protobuf field bool is_superscript_standardized = 9; * @param bool $var * @return $this */ public function setIsSuperscriptStandardized($var) { GPBUtil::checkBool($var); $this->is_superscript_standardized = $var; return $this; } /** * Generated from protobuf field .rv.data.Graphics.Text.Transform transform = 10; * @return int */ public function getTransform() { return $this->transform; } /** * Generated from protobuf field .rv.data.Graphics.Text.Transform transform = 10; * @param int $var * @return $this */ public function setTransform($var) { GPBUtil::checkEnum($var, \Rv\Data\Graphics\Text\Transform::class); $this->transform = $var; return $this; } /** * Generated from protobuf field string transformDelimiter = 11; * @return string */ public function getTransformDelimiter() { return $this->transformDelimiter; } /** * Generated from protobuf field string transformDelimiter = 11; * @param string $var * @return $this */ public function setTransformDelimiter($var) { GPBUtil::checkString($var, True); $this->transformDelimiter = $var; return $this; } /** * Generated from protobuf field .rv.data.Graphics.Text.ChordPro chord_pro = 12; * @return \Rv\Data\Graphics\Text\ChordPro|null */ public function getChordPro() { return $this->chord_pro; } public function hasChordPro() { return isset($this->chord_pro); } public function clearChordPro() { unset($this->chord_pro); } /** * Generated from protobuf field .rv.data.Graphics.Text.ChordPro chord_pro = 12; * @param \Rv\Data\Graphics\Text\ChordPro $var * @return $this */ public function setChordPro($var) { GPBUtil::checkMessage($var, \Rv\Data\Graphics\Text\ChordPro::class); $this->chord_pro = $var; return $this; } }