<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: graphicsData.proto

namespace Rv\Data\Graphics;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Generated from protobuf message <code>rv.data.Graphics.Element</code>
 */
class Element extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.UUID uuid = 1;</code>
     */
    protected $uuid = null;
    /**
     * Generated from protobuf field <code>string name = 2;</code>
     */
    protected $name = '';
    /**
     * Generated from protobuf field <code>.rv.data.Graphics.Rect bounds = 3;</code>
     */
    protected $bounds = null;
    /**
     * Generated from protobuf field <code>double rotation = 4;</code>
     */
    protected $rotation = 0.0;
    /**
     * Generated from protobuf field <code>double opacity = 5;</code>
     */
    protected $opacity = 0.0;
    /**
     * Generated from protobuf field <code>bool locked = 6;</code>
     */
    protected $locked = false;
    /**
     * Generated from protobuf field <code>bool aspect_ratio_locked = 7;</code>
     */
    protected $aspect_ratio_locked = false;
    /**
     * Generated from protobuf field <code>.rv.data.Graphics.Path path = 8;</code>
     */
    protected $path = null;
    /**
     * Generated from protobuf field <code>.rv.data.Graphics.Fill fill = 9;</code>
     */
    protected $fill = null;
    /**
     * Generated from protobuf field <code>.rv.data.Graphics.Stroke stroke = 10;</code>
     */
    protected $stroke = null;
    /**
     * Generated from protobuf field <code>.rv.data.Graphics.Shadow shadow = 11;</code>
     */
    protected $shadow = null;
    /**
     * Generated from protobuf field <code>.rv.data.Graphics.Feather feather = 12;</code>
     */
    protected $feather = null;
    /**
     * Generated from protobuf field <code>.rv.data.Graphics.Text text = 13;</code>
     */
    protected $text = null;
    /**
     * Generated from protobuf field <code>.rv.data.Graphics.Element.FlipMode flipMode = 15;</code>
     */
    protected $flipMode = 0;
    /**
     * Generated from protobuf field <code>bool hidden = 16;</code>
     */
    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 <code>.rv.data.UUID uuid = 1;</code>
     * @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 <code>.rv.data.UUID uuid = 1;</code>
     * @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 <code>string name = 2;</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Generated from protobuf field <code>string name = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Graphics.Rect bounds = 3;</code>
     * @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 <code>.rv.data.Graphics.Rect bounds = 3;</code>
     * @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 <code>double rotation = 4;</code>
     * @return float
     */
    public function getRotation()
    {
        return $this->rotation;
    }

    /**
     * Generated from protobuf field <code>double rotation = 4;</code>
     * @param float $var
     * @return $this
     */
    public function setRotation($var)
    {
        GPBUtil::checkDouble($var);
        $this->rotation = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>double opacity = 5;</code>
     * @return float
     */
    public function getOpacity()
    {
        return $this->opacity;
    }

    /**
     * Generated from protobuf field <code>double opacity = 5;</code>
     * @param float $var
     * @return $this
     */
    public function setOpacity($var)
    {
        GPBUtil::checkDouble($var);
        $this->opacity = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool locked = 6;</code>
     * @return bool
     */
    public function getLocked()
    {
        return $this->locked;
    }

    /**
     * Generated from protobuf field <code>bool locked = 6;</code>
     * @param bool $var
     * @return $this
     */
    public function setLocked($var)
    {
        GPBUtil::checkBool($var);
        $this->locked = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool aspect_ratio_locked = 7;</code>
     * @return bool
     */
    public function getAspectRatioLocked()
    {
        return $this->aspect_ratio_locked;
    }

    /**
     * Generated from protobuf field <code>bool aspect_ratio_locked = 7;</code>
     * @param bool $var
     * @return $this
     */
    public function setAspectRatioLocked($var)
    {
        GPBUtil::checkBool($var);
        $this->aspect_ratio_locked = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Graphics.Path path = 8;</code>
     * @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 <code>.rv.data.Graphics.Path path = 8;</code>
     * @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 <code>.rv.data.Graphics.Fill fill = 9;</code>
     * @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 <code>.rv.data.Graphics.Fill fill = 9;</code>
     * @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 <code>.rv.data.Graphics.Stroke stroke = 10;</code>
     * @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 <code>.rv.data.Graphics.Stroke stroke = 10;</code>
     * @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 <code>.rv.data.Graphics.Shadow shadow = 11;</code>
     * @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 <code>.rv.data.Graphics.Shadow shadow = 11;</code>
     * @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 <code>.rv.data.Graphics.Feather feather = 12;</code>
     * @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 <code>.rv.data.Graphics.Feather feather = 12;</code>
     * @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 <code>.rv.data.Graphics.Text text = 13;</code>
     * @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 <code>.rv.data.Graphics.Text text = 13;</code>
     * @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 <code>.rv.data.Graphics.Element.FlipMode flipMode = 15;</code>
     * @return int
     */
    public function getFlipMode()
    {
        return $this->flipMode;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Graphics.Element.FlipMode flipMode = 15;</code>
     * @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 <code>bool hidden = 16;</code>
     * @return bool
     */
    public function getHidden()
    {
        return $this->hidden;
    }

    /**
     * Generated from protobuf field <code>bool hidden = 16;</code>
     * @param bool $var
     * @return $this
     */
    public function setHidden($var)
    {
        GPBUtil::checkBool($var);
        $this->hidden = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Graphics.Text.LineFillMask text_line_mask = 14;</code>
     * @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 <code>.rv.data.Graphics.Text.LineFillMask text_line_mask = 14;</code>
     * @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");
    }

}

