154 lines
3.7 KiB
PHP
154 lines
3.7 KiB
PHP
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
# source: rv2d.proto
|
|
|
|
namespace Rv\Data;
|
|
|
|
use Google\Protobuf\Internal\GPBType;
|
|
use Google\Protobuf\Internal\RepeatedField;
|
|
use Google\Protobuf\Internal\GPBUtil;
|
|
|
|
/**
|
|
* Generated from protobuf message <code>rv.data.TextLayer</code>
|
|
*/
|
|
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 <code>.rv.data.TextLayer.Composite composite = 1;</code>
|
|
* @return \Rv\Data\TextLayer\Composite|null
|
|
*/
|
|
public function getComposite()
|
|
{
|
|
return $this->readOneof(1);
|
|
}
|
|
|
|
public function hasComposite()
|
|
{
|
|
return $this->hasOneof(1);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.TextLayer.Composite composite = 1;</code>
|
|
* @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 <code>.rv.data.Media media = 2;</code>
|
|
* @return \Rv\Data\Media|null
|
|
*/
|
|
public function getMedia()
|
|
{
|
|
return $this->readOneof(2);
|
|
}
|
|
|
|
public function hasMedia()
|
|
{
|
|
return $this->hasOneof(2);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Media media = 2;</code>
|
|
* @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 <code>.rv.data.Graphics.Text.CutOutFill cut_out = 3;</code>
|
|
* @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 <code>.rv.data.Graphics.Text.CutOutFill cut_out = 3;</code>
|
|
* @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 <code>.rv.data.Graphics.BackgroundEffect background_effect = 4;</code>
|
|
* @return \Rv\Data\Graphics\BackgroundEffect|null
|
|
*/
|
|
public function getBackgroundEffect()
|
|
{
|
|
return $this->readOneof(4);
|
|
}
|
|
|
|
public function hasBackgroundEffect()
|
|
{
|
|
return $this->hasOneof(4);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.BackgroundEffect background_effect = 4;</code>
|
|
* @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");
|
|
}
|
|
|
|
}
|
|
|