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

namespace Rv\Data\Media;

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

/**
 * Generated from protobuf message <code>rv.data.Media.DrawingProperties</code>
 */
class DrawingProperties extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.Media.ScaleBehavior scale_behavior = 1;</code>
     */
    protected $scale_behavior = 0;
    /**
     * Generated from protobuf field <code>bool is_blurred = 16;</code>
     */
    protected $is_blurred = false;
    /**
     * Generated from protobuf field <code>.rv.data.Media.ScaleAlignment scale_alignment = 2;</code>
     */
    protected $scale_alignment = 0;
    /**
     * Generated from protobuf field <code>bool flipped_horizontally = 3;</code>
     */
    protected $flipped_horizontally = false;
    /**
     * Generated from protobuf field <code>bool flipped_vertically = 4;</code>
     */
    protected $flipped_vertically = false;
    /**
     * Generated from protobuf field <code>.rv.data.Graphics.Size natural_size = 5;</code>
     */
    protected $natural_size = null;
    /**
     * Generated from protobuf field <code>double custom_image_rotation = 6;</code>
     */
    protected $custom_image_rotation = 0.0;
    /**
     * Generated from protobuf field <code>.rv.data.Graphics.Rect custom_image_bounds = 7;</code>
     */
    protected $custom_image_bounds = null;
    /**
     * Generated from protobuf field <code>bool custom_image_aspect_locked = 8;</code>
     */
    protected $custom_image_aspect_locked = false;
    /**
     * Generated from protobuf field <code>bool alpha_inverted = 9;</code>
     */
    protected $alpha_inverted = false;
    /**
     * Generated from protobuf field <code>.rv.data.Media.DrawingProperties.NativeRotationType native_rotation = 10;</code>
     */
    protected $native_rotation = 0;
    /**
     * Generated from protobuf field <code>.rv.data.UUID selected_effect_preset_uuid = 11;</code>
     */
    protected $selected_effect_preset_uuid = null;
    /**
     * Generated from protobuf field <code>repeated .rv.data.Effect effects = 12;</code>
     */
    private $effects;
    /**
     * Generated from protobuf field <code>bool crop_enable = 13;</code>
     */
    protected $crop_enable = false;
    /**
     * Generated from protobuf field <code>.rv.data.Graphics.EdgeInsets crop_insets = 14;</code>
     */
    protected $crop_insets = null;
    /**
     * Generated from protobuf field <code>.rv.data.AlphaType alpha_type = 15;</code>
     */
    protected $alpha_type = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $scale_behavior
     *     @type bool $is_blurred
     *     @type int $scale_alignment
     *     @type bool $flipped_horizontally
     *     @type bool $flipped_vertically
     *     @type \Rv\Data\Graphics\Size $natural_size
     *     @type float $custom_image_rotation
     *     @type \Rv\Data\Graphics\Rect $custom_image_bounds
     *     @type bool $custom_image_aspect_locked
     *     @type bool $alpha_inverted
     *     @type int $native_rotation
     *     @type \Rv\Data\UUID $selected_effect_preset_uuid
     *     @type array<\Rv\Data\Effect>|\Google\Protobuf\Internal\RepeatedField $effects
     *     @type bool $crop_enable
     *     @type \Rv\Data\Graphics\EdgeInsets $crop_insets
     *     @type int $alpha_type
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\GraphicsData::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.data.Media.ScaleBehavior scale_behavior = 1;</code>
     * @return int
     */
    public function getScaleBehavior()
    {
        return $this->scale_behavior;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Media.ScaleBehavior scale_behavior = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setScaleBehavior($var)
    {
        GPBUtil::checkEnum($var, \Rv\Data\Media\ScaleBehavior::class);
        $this->scale_behavior = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool is_blurred = 16;</code>
     * @return bool
     */
    public function getIsBlurred()
    {
        return $this->is_blurred;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Media.ScaleAlignment scale_alignment = 2;</code>
     * @return int
     */
    public function getScaleAlignment()
    {
        return $this->scale_alignment;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Media.ScaleAlignment scale_alignment = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setScaleAlignment($var)
    {
        GPBUtil::checkEnum($var, \Rv\Data\Media\ScaleAlignment::class);
        $this->scale_alignment = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool flipped_horizontally = 3;</code>
     * @return bool
     */
    public function getFlippedHorizontally()
    {
        return $this->flipped_horizontally;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool flipped_vertically = 4;</code>
     * @return bool
     */
    public function getFlippedVertically()
    {
        return $this->flipped_vertically;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Graphics.Size natural_size = 5;</code>
     * @return \Rv\Data\Graphics\Size|null
     */
    public function getNaturalSize()
    {
        return $this->natural_size;
    }

    public function hasNaturalSize()
    {
        return isset($this->natural_size);
    }

    public function clearNaturalSize()
    {
        unset($this->natural_size);
    }

    /**
     * Generated from protobuf field <code>.rv.data.Graphics.Size natural_size = 5;</code>
     * @param \Rv\Data\Graphics\Size $var
     * @return $this
     */
    public function setNaturalSize($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\Graphics\Size::class);
        $this->natural_size = $var;

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Graphics.Rect custom_image_bounds = 7;</code>
     * @return \Rv\Data\Graphics\Rect|null
     */
    public function getCustomImageBounds()
    {
        return $this->custom_image_bounds;
    }

    public function hasCustomImageBounds()
    {
        return isset($this->custom_image_bounds);
    }

    public function clearCustomImageBounds()
    {
        unset($this->custom_image_bounds);
    }

    /**
     * Generated from protobuf field <code>.rv.data.Graphics.Rect custom_image_bounds = 7;</code>
     * @param \Rv\Data\Graphics\Rect $var
     * @return $this
     */
    public function setCustomImageBounds($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\Graphics\Rect::class);
        $this->custom_image_bounds = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool custom_image_aspect_locked = 8;</code>
     * @return bool
     */
    public function getCustomImageAspectLocked()
    {
        return $this->custom_image_aspect_locked;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool alpha_inverted = 9;</code>
     * @return bool
     */
    public function getAlphaInverted()
    {
        return $this->alpha_inverted;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Media.DrawingProperties.NativeRotationType native_rotation = 10;</code>
     * @return int
     */
    public function getNativeRotation()
    {
        return $this->native_rotation;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Media.DrawingProperties.NativeRotationType native_rotation = 10;</code>
     * @param int $var
     * @return $this
     */
    public function setNativeRotation($var)
    {
        GPBUtil::checkEnum($var, \Rv\Data\Media\DrawingProperties\NativeRotationType::class);
        $this->native_rotation = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.UUID selected_effect_preset_uuid = 11;</code>
     * @return \Rv\Data\UUID|null
     */
    public function getSelectedEffectPresetUuid()
    {
        return $this->selected_effect_preset_uuid;
    }

    public function hasSelectedEffectPresetUuid()
    {
        return isset($this->selected_effect_preset_uuid);
    }

    public function clearSelectedEffectPresetUuid()
    {
        unset($this->selected_effect_preset_uuid);
    }

    /**
     * Generated from protobuf field <code>.rv.data.UUID selected_effect_preset_uuid = 11;</code>
     * @param \Rv\Data\UUID $var
     * @return $this
     */
    public function setSelectedEffectPresetUuid($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\UUID::class);
        $this->selected_effect_preset_uuid = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .rv.data.Effect effects = 12;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getEffects()
    {
        return $this->effects;
    }

    /**
     * Generated from protobuf field <code>repeated .rv.data.Effect effects = 12;</code>
     * @param array<\Rv\Data\Effect>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setEffects($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\Effect::class);
        $this->effects = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool crop_enable = 13;</code>
     * @return bool
     */
    public function getCropEnable()
    {
        return $this->crop_enable;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Graphics.EdgeInsets crop_insets = 14;</code>
     * @return \Rv\Data\Graphics\EdgeInsets|null
     */
    public function getCropInsets()
    {
        return $this->crop_insets;
    }

    public function hasCropInsets()
    {
        return isset($this->crop_insets);
    }

    public function clearCropInsets()
    {
        unset($this->crop_insets);
    }

    /**
     * Generated from protobuf field <code>.rv.data.Graphics.EdgeInsets crop_insets = 14;</code>
     * @param \Rv\Data\Graphics\EdgeInsets $var
     * @return $this
     */
    public function setCropInsets($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\Graphics\EdgeInsets::class);
        $this->crop_insets = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.AlphaType alpha_type = 15;</code>
     * @return int
     */
    public function getAlphaType()
    {
        return $this->alpha_type;
    }

    /**
     * Generated from protobuf field <code>.rv.data.AlphaType alpha_type = 15;</code>
     * @param int $var
     * @return $this
     */
    public function setAlphaType($var)
    {
        GPBUtil::checkEnum($var, \Rv\Data\AlphaType::class);
        $this->alpha_type = $var;

        return $this;
    }

}

