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

namespace Rv\Data\Effect\EffectVariable;

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

/**
 * Generated from protobuf message <code>rv.data.Effect.EffectVariable.EffectColor</code>
 */
class EffectColor extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.Color color = 1;</code>
     */
    protected $color = null;
    /**
     * Generated from protobuf field <code>.rv.data.Color default_color = 2;</code>
     */
    protected $default_color = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\Color $color
     *     @type \Rv\Data\Color $default_color
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Effects::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.data.Color color = 1;</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 = 1;</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>.rv.data.Color default_color = 2;</code>
     * @return \Rv\Data\Color|null
     */
    public function getDefaultColor()
    {
        return $this->default_color;
    }

    public function hasDefaultColor()
    {
        return isset($this->default_color);
    }

    public function clearDefaultColor()
    {
        unset($this->default_color);
    }

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

        return $this;
    }

}

