<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: proApiV1Color.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.API_v1_Color</code>
 */
class API_v1_Color extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>double red = 1;</code>
     */
    protected $red = 0.0;
    /**
     * Generated from protobuf field <code>double green = 2;</code>
     */
    protected $green = 0.0;
    /**
     * Generated from protobuf field <code>double blue = 3;</code>
     */
    protected $blue = 0.0;
    /**
     * Generated from protobuf field <code>double alpha = 4;</code>
     */
    protected $alpha = 0.0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type float $red
     *     @type float $green
     *     @type float $blue
     *     @type float $alpha
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ProApiV1Color::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

}

