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

namespace Rv\Data\TestPatternDocument\TestPatternData;

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

/**
 * Generated from protobuf message <code>rv.data.TestPatternDocument.TestPatternData.ColorProperty</code>
 */
class ColorProperty extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.Color value = 1;</code>
     */
    protected $value = null;

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

    /**
     * Generated from protobuf field <code>.rv.data.Color value = 1;</code>
     * @return \Rv\Data\Color|null
     */
    public function getValue()
    {
        return $this->value;
    }

    public function hasValue()
    {
        return isset($this->value);
    }

    public function clearValue()
    {
        unset($this->value);
    }

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

        return $this;
    }

}

