rv.data.Graphics.Element
*/
class Element extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field .rv.data.UUID uuid = 1;
*/
protected $uuid = null;
/**
* Generated from protobuf field string name = 2;
*/
protected $name = '';
/**
* Generated from protobuf field .rv.data.Graphics.Rect bounds = 3;
*/
protected $bounds = null;
/**
* Generated from protobuf field double rotation = 4;
*/
protected $rotation = 0.0;
/**
* Generated from protobuf field double opacity = 5;
*/
protected $opacity = 0.0;
/**
* Generated from protobuf field bool locked = 6;
*/
protected $locked = false;
/**
* Generated from protobuf field bool aspect_ratio_locked = 7;
*/
protected $aspect_ratio_locked = false;
/**
* Generated from protobuf field .rv.data.Graphics.Path path = 8;
*/
protected $path = null;
/**
* Generated from protobuf field .rv.data.Graphics.Fill fill = 9;
*/
protected $fill = null;
/**
* Generated from protobuf field .rv.data.Graphics.Stroke stroke = 10;
*/
protected $stroke = null;
/**
* Generated from protobuf field .rv.data.Graphics.Shadow shadow = 11;
*/
protected $shadow = null;
/**
* Generated from protobuf field .rv.data.Graphics.Feather feather = 12;
*/
protected $feather = null;
/**
* Generated from protobuf field .rv.data.Graphics.Text text = 13;
*/
protected $text = null;
/**
* Generated from protobuf field .rv.data.Graphics.Element.FlipMode flipMode = 15;
*/
protected $flipMode = 0;
/**
* Generated from protobuf field bool hidden = 16;
*/
protected $hidden = false;
protected $Mask;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Rv\Data\UUID $uuid
* @type string $name
* @type \Rv\Data\Graphics\Rect $bounds
* @type float $rotation
* @type float $opacity
* @type bool $locked
* @type bool $aspect_ratio_locked
* @type \Rv\Data\Graphics\Path $path
* @type \Rv\Data\Graphics\Fill $fill
* @type \Rv\Data\Graphics\Stroke $stroke
* @type \Rv\Data\Graphics\Shadow $shadow
* @type \Rv\Data\Graphics\Feather $feather
* @type \Rv\Data\Graphics\Text $text
* @type int $flipMode
* @type bool $hidden
* @type \Rv\Data\Graphics\Text\LineFillMask $text_line_mask
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\GraphicsData::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field .rv.data.UUID uuid = 1;
* @return \Rv\Data\UUID|null
*/
public function getUuid()
{
return $this->uuid;
}
public function hasUuid()
{
return isset($this->uuid);
}
public function clearUuid()
{
unset($this->uuid);
}
/**
* Generated from protobuf field .rv.data.UUID uuid = 1;
* @param \Rv\Data\UUID $var
* @return $this
*/
public function setUuid($var)
{
GPBUtil::checkMessage($var, \Rv\Data\UUID::class);
$this->uuid = $var;
return $this;
}
/**
* Generated from protobuf field string name = 2;
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Generated from protobuf field string name = 2;
* @param string $var
* @return $this
*/
public function setName($var)
{
GPBUtil::checkString($var, True);
$this->name = $var;
return $this;
}
/**
* Generated from protobuf field .rv.data.Graphics.Rect bounds = 3;
* @return \Rv\Data\Graphics\Rect|null
*/
public function getBounds()
{
return $this->bounds;
}
public function hasBounds()
{
return isset($this->bounds);
}
public function clearBounds()
{
unset($this->bounds);
}
/**
* Generated from protobuf field .rv.data.Graphics.Rect bounds = 3;
* @param \Rv\Data\Graphics\Rect $var
* @return $this
*/
public function setBounds($var)
{
GPBUtil::checkMessage($var, \Rv\Data\Graphics\Rect::class);
$this->bounds = $var;
return $this;
}
/**
* Generated from protobuf field double rotation = 4;
* @return float
*/
public function getRotation()
{
return $this->rotation;
}
/**
* Generated from protobuf field double rotation = 4;
* @param float $var
* @return $this
*/
public function setRotation($var)
{
GPBUtil::checkDouble($var);
$this->rotation = $var;
return $this;
}
/**
* Generated from protobuf field double opacity = 5;
* @return float
*/
public function getOpacity()
{
return $this->opacity;
}
/**
* Generated from protobuf field double opacity = 5;
* @param float $var
* @return $this
*/
public function setOpacity($var)
{
GPBUtil::checkDouble($var);
$this->opacity = $var;
return $this;
}
/**
* Generated from protobuf field bool locked = 6;
* @return bool
*/
public function getLocked()
{
return $this->locked;
}
/**
* Generated from protobuf field bool locked = 6;
* @param bool $var
* @return $this
*/
public function setLocked($var)
{
GPBUtil::checkBool($var);
$this->locked = $var;
return $this;
}
/**
* Generated from protobuf field bool aspect_ratio_locked = 7;
* @return bool
*/
public function getAspectRatioLocked()
{
return $this->aspect_ratio_locked;
}
/**
* Generated from protobuf field bool aspect_ratio_locked = 7;
* @param bool $var
* @return $this
*/
public function setAspectRatioLocked($var)
{
GPBUtil::checkBool($var);
$this->aspect_ratio_locked = $var;
return $this;
}
/**
* Generated from protobuf field .rv.data.Graphics.Path path = 8;
* @return \Rv\Data\Graphics\Path|null
*/
public function getPath()
{
return $this->path;
}
public function hasPath()
{
return isset($this->path);
}
public function clearPath()
{
unset($this->path);
}
/**
* Generated from protobuf field .rv.data.Graphics.Path path = 8;
* @param \Rv\Data\Graphics\Path $var
* @return $this
*/
public function setPath($var)
{
GPBUtil::checkMessage($var, \Rv\Data\Graphics\Path::class);
$this->path = $var;
return $this;
}
/**
* Generated from protobuf field .rv.data.Graphics.Fill fill = 9;
* @return \Rv\Data\Graphics\Fill|null
*/
public function getFill()
{
return $this->fill;
}
public function hasFill()
{
return isset($this->fill);
}
public function clearFill()
{
unset($this->fill);
}
/**
* Generated from protobuf field .rv.data.Graphics.Fill fill = 9;
* @param \Rv\Data\Graphics\Fill $var
* @return $this
*/
public function setFill($var)
{
GPBUtil::checkMessage($var, \Rv\Data\Graphics\Fill::class);
$this->fill = $var;
return $this;
}
/**
* Generated from protobuf field .rv.data.Graphics.Stroke stroke = 10;
* @return \Rv\Data\Graphics\Stroke|null
*/
public function getStroke()
{
return $this->stroke;
}
public function hasStroke()
{
return isset($this->stroke);
}
public function clearStroke()
{
unset($this->stroke);
}
/**
* Generated from protobuf field .rv.data.Graphics.Stroke stroke = 10;
* @param \Rv\Data\Graphics\Stroke $var
* @return $this
*/
public function setStroke($var)
{
GPBUtil::checkMessage($var, \Rv\Data\Graphics\Stroke::class);
$this->stroke = $var;
return $this;
}
/**
* Generated from protobuf field .rv.data.Graphics.Shadow shadow = 11;
* @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 = 11;
* @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 .rv.data.Graphics.Feather feather = 12;
* @return \Rv\Data\Graphics\Feather|null
*/
public function getFeather()
{
return $this->feather;
}
public function hasFeather()
{
return isset($this->feather);
}
public function clearFeather()
{
unset($this->feather);
}
/**
* Generated from protobuf field .rv.data.Graphics.Feather feather = 12;
* @param \Rv\Data\Graphics\Feather $var
* @return $this
*/
public function setFeather($var)
{
GPBUtil::checkMessage($var, \Rv\Data\Graphics\Feather::class);
$this->feather = $var;
return $this;
}
/**
* Generated from protobuf field .rv.data.Graphics.Text text = 13;
* @return \Rv\Data\Graphics\Text|null
*/
public function getText()
{
return $this->text;
}
public function hasText()
{
return isset($this->text);
}
public function clearText()
{
unset($this->text);
}
/**
* Generated from protobuf field .rv.data.Graphics.Text text = 13;
* @param \Rv\Data\Graphics\Text $var
* @return $this
*/
public function setText($var)
{
GPBUtil::checkMessage($var, \Rv\Data\Graphics\Text::class);
$this->text = $var;
return $this;
}
/**
* Generated from protobuf field .rv.data.Graphics.Element.FlipMode flipMode = 15;
* @return int
*/
public function getFlipMode()
{
return $this->flipMode;
}
/**
* Generated from protobuf field .rv.data.Graphics.Element.FlipMode flipMode = 15;
* @param int $var
* @return $this
*/
public function setFlipMode($var)
{
GPBUtil::checkEnum($var, \Rv\Data\Graphics\Element\FlipMode::class);
$this->flipMode = $var;
return $this;
}
/**
* Generated from protobuf field bool hidden = 16;
* @return bool
*/
public function getHidden()
{
return $this->hidden;
}
/**
* Generated from protobuf field bool hidden = 16;
* @param bool $var
* @return $this
*/
public function setHidden($var)
{
GPBUtil::checkBool($var);
$this->hidden = $var;
return $this;
}
/**
* Generated from protobuf field .rv.data.Graphics.Text.LineFillMask text_line_mask = 14;
* @return \Rv\Data\Graphics\Text\LineFillMask|null
*/
public function getTextLineMask()
{
return $this->readOneof(14);
}
public function hasTextLineMask()
{
return $this->hasOneof(14);
}
/**
* Generated from protobuf field .rv.data.Graphics.Text.LineFillMask text_line_mask = 14;
* @param \Rv\Data\Graphics\Text\LineFillMask $var
* @return $this
*/
public function setTextLineMask($var)
{
GPBUtil::checkMessage($var, \Rv\Data\Graphics\Text\LineFillMask::class);
$this->writeOneof(14, $var);
return $this;
}
/**
* @return string
*/
public function getMask()
{
return $this->whichOneof("Mask");
}
}