<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: effects.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.Effect</code>
 */
class Effect extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.UUID uuid = 1;</code>
     */
    protected $uuid = null;
    /**
     * Generated from protobuf field <code>bool enabled = 2;</code>
     */
    protected $enabled = false;
    /**
     * Generated from protobuf field <code>string name = 3;</code>
     */
    protected $name = '';
    /**
     * Generated from protobuf field <code>string render_id = 4;</code>
     */
    protected $render_id = '';
    /**
     * Generated from protobuf field <code>string behavior_description = 5;</code>
     */
    protected $behavior_description = '';
    /**
     * Generated from protobuf field <code>string category = 6;</code>
     */
    protected $category = '';
    /**
     * Generated from protobuf field <code>repeated .rv.data.Effect.EffectVariable variables = 7;</code>
     */
    private $variables;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\UUID $uuid
     *     @type bool $enabled
     *     @type string $name
     *     @type string $render_id
     *     @type string $behavior_description
     *     @type string $category
     *     @type array<\Rv\Data\Effect\EffectVariable>|\Google\Protobuf\Internal\RepeatedField $variables
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Effects::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>bool enabled = 2;</code>
     * @return bool
     */
    public function getEnabled()
    {
        return $this->enabled;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string name = 3;</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string render_id = 4;</code>
     * @return string
     */
    public function getRenderId()
    {
        return $this->render_id;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string behavior_description = 5;</code>
     * @return string
     */
    public function getBehaviorDescription()
    {
        return $this->behavior_description;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string category = 6;</code>
     * @return string
     */
    public function getCategory()
    {
        return $this->category;
    }

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

        return $this;
    }

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

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

        return $this;
    }

}

