<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: layers.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.Layer</code>
 */
class Layer 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.Color color = 3;</code>
     */
    protected $color = null;
    /**
     * Generated from protobuf field <code>bool muted = 4;</code>
     */
    protected $muted = false;
    /**
     * Generated from protobuf field <code>bool hidden = 5;</code>
     */
    protected $hidden = false;
    /**
     * Generated from protobuf field <code>.rv.data.Layer.BlendMode blend_mode = 6;</code>
     */
    protected $blend_mode = 0;
    /**
     * Generated from protobuf field <code>double opacity = 7;</code>
     */
    protected $opacity = 0.0;
    /**
     * Generated from protobuf field <code>.rv.data.UUID selected_target_set_uuid = 8;</code>
     */
    protected $selected_target_set_uuid = null;
    /**
     * Generated from protobuf field <code>.rv.data.UUID effects_preset_uuid = 9;</code>
     */
    protected $effects_preset_uuid = null;
    /**
     * Generated from protobuf field <code>double effects_build_duration = 10;</code>
     */
    protected $effects_build_duration = 0.0;
    /**
     * Generated from protobuf field <code>.rv.data.UUID layer_preset_uuid = 11;</code>
     */
    protected $layer_preset_uuid = null;
    /**
     * Generated from protobuf field <code>.rv.data.HotKey hot_key = 12;</code>
     */
    protected $hot_key = null;
    /**
     * Generated from protobuf field <code>.rv.data.Transition transition = 13;</code>
     */
    protected $transition = null;
    /**
     * Generated from protobuf field <code>repeated .rv.data.Effect effects = 14;</code>
     */
    private $effects;
    /**
     * Generated from protobuf field <code>.rv.data.Layer.Blending blend = 15;</code>
     */
    protected $blend = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\UUID $uuid
     *     @type string $name
     *     @type \Rv\Data\Color $color
     *     @type bool $muted
     *     @type bool $hidden
     *     @type int $blend_mode
     *     @type float $opacity
     *     @type \Rv\Data\UUID $selected_target_set_uuid
     *     @type \Rv\Data\UUID $effects_preset_uuid
     *     @type float $effects_build_duration
     *     @type \Rv\Data\UUID $layer_preset_uuid
     *     @type \Rv\Data\HotKey $hot_key
     *     @type \Rv\Data\Transition $transition
     *     @type array<\Rv\Data\Effect>|\Google\Protobuf\Internal\RepeatedField $effects
     *     @type \Rv\Data\Layer\Blending $blend
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Layers::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.Color color = 3;</code>
     * @return \Rv\Data\Color|null
     */
    public function getColor()
    {
        return $this->color;
    }

    public function hasColor()
    {
        return isset($this->color);
    }

    public function clearColor()
    {
        unset($this->color);
    }

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool hidden = 5;</code>
     * @return bool
     */
    public function getHidden()
    {
        return $this->hidden;
    }

    /**
     * Generated from protobuf field <code>bool hidden = 5;</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.Layer.BlendMode blend_mode = 6;</code>
     * @return int
     */
    public function getBlendMode()
    {
        return $this->blend_mode;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Layer.BlendMode blend_mode = 6;</code>
     * @param int $var
     * @return $this
     */
    public function setBlendMode($var)
    {
        GPBUtil::checkEnum($var, \Rv\Data\Layer\BlendMode::class);
        $this->blend_mode = $var;

        return $this;
    }

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

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

        return $this;
    }

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

    public function hasSelectedTargetSetUuid()
    {
        return isset($this->selected_target_set_uuid);
    }

    public function clearSelectedTargetSetUuid()
    {
        unset($this->selected_target_set_uuid);
    }

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

        return $this;
    }

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

    public function hasEffectsPresetUuid()
    {
        return isset($this->effects_preset_uuid);
    }

    public function clearEffectsPresetUuid()
    {
        unset($this->effects_preset_uuid);
    }

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

        return $this;
    }

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

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

        return $this;
    }

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

    public function hasLayerPresetUuid()
    {
        return isset($this->layer_preset_uuid);
    }

    public function clearLayerPresetUuid()
    {
        unset($this->layer_preset_uuid);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.HotKey hot_key = 12;</code>
     * @return \Rv\Data\HotKey|null
     */
    public function getHotKey()
    {
        return $this->hot_key;
    }

    public function hasHotKey()
    {
        return isset($this->hot_key);
    }

    public function clearHotKey()
    {
        unset($this->hot_key);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Transition transition = 13;</code>
     * @return \Rv\Data\Transition|null
     */
    public function getTransition()
    {
        return $this->transition;
    }

    public function hasTransition()
    {
        return isset($this->transition);
    }

    public function clearTransition()
    {
        unset($this->transition);
    }

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

        return $this;
    }

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

    /**
     * Generated from protobuf field <code>repeated .rv.data.Effect effects = 14;</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>.rv.data.Layer.Blending blend = 15;</code>
     * @return \Rv\Data\Layer\Blending|null
     */
    public function getBlend()
    {
        return $this->blend;
    }

    public function hasBlend()
    {
        return isset($this->blend);
    }

    public function clearBlend()
    {
        unset($this->blend);
    }

    /**
     * Generated from protobuf field <code>.rv.data.Layer.Blending blend = 15;</code>
     * @param \Rv\Data\Layer\Blending $var
     * @return $this
     */
    public function setBlend($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\Layer\Blending::class);
        $this->blend = $var;

        return $this;
    }

}

