rv.data.TextLayer */ class TextLayer extends \Google\Protobuf\Internal\Message { protected $LayerType; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Rv\Data\TextLayer\Composite $composite * @type \Rv\Data\Media $media * @type \Rv\Data\Graphics\Text\CutOutFill $cut_out * @type \Rv\Data\Graphics\BackgroundEffect $background_effect * } */ public function __construct($data = NULL) { \GPBMetadata\Rv2D::initOnce(); parent::__construct($data); } /** * Generated from protobuf field .rv.data.TextLayer.Composite composite = 1; * @return \Rv\Data\TextLayer\Composite|null */ public function getComposite() { return $this->readOneof(1); } public function hasComposite() { return $this->hasOneof(1); } /** * Generated from protobuf field .rv.data.TextLayer.Composite composite = 1; * @param \Rv\Data\TextLayer\Composite $var * @return $this */ public function setComposite($var) { GPBUtil::checkMessage($var, \Rv\Data\TextLayer\Composite::class); $this->writeOneof(1, $var); return $this; } /** * Generated from protobuf field .rv.data.Media media = 2; * @return \Rv\Data\Media|null */ public function getMedia() { return $this->readOneof(2); } public function hasMedia() { return $this->hasOneof(2); } /** * Generated from protobuf field .rv.data.Media media = 2; * @param \Rv\Data\Media $var * @return $this */ public function setMedia($var) { GPBUtil::checkMessage($var, \Rv\Data\Media::class); $this->writeOneof(2, $var); return $this; } /** * Generated from protobuf field .rv.data.Graphics.Text.CutOutFill cut_out = 3; * @return \Rv\Data\Graphics\Text\CutOutFill|null */ public function getCutOut() { return $this->readOneof(3); } public function hasCutOut() { return $this->hasOneof(3); } /** * Generated from protobuf field .rv.data.Graphics.Text.CutOutFill cut_out = 3; * @param \Rv\Data\Graphics\Text\CutOutFill $var * @return $this */ public function setCutOut($var) { GPBUtil::checkMessage($var, \Rv\Data\Graphics\Text\CutOutFill::class); $this->writeOneof(3, $var); return $this; } /** * Generated from protobuf field .rv.data.Graphics.BackgroundEffect background_effect = 4; * @return \Rv\Data\Graphics\BackgroundEffect|null */ public function getBackgroundEffect() { return $this->readOneof(4); } public function hasBackgroundEffect() { return $this->hasOneof(4); } /** * Generated from protobuf field .rv.data.Graphics.BackgroundEffect background_effect = 4; * @param \Rv\Data\Graphics\BackgroundEffect $var * @return $this */ public function setBackgroundEffect($var) { GPBUtil::checkMessage($var, \Rv\Data\Graphics\BackgroundEffect::class); $this->writeOneof(4, $var); return $this; } /** * @return string */ public function getLayerType() { return $this->whichOneof("LayerType"); } }