<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: meta.proto

namespace Messages;

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

/**
 * Generated from protobuf message <code>Messages.Representation</code>
 */
class Representation extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string property_key = 1;</code>
     */
    protected $property_key = '';
    /**
     * Generated from protobuf field <code>uint32 color_map = 2;</code>
     */
    protected $color_map = 0;
    /**
     * Generated from protobuf field <code>uint32 component = 3;</code>
     */
    protected $component = 0;
    /**
     * Generated from protobuf field <code>bool auto_range = 4;</code>
     */
    protected $auto_range = false;
    /**
     * Generated from protobuf field <code>bool use_default_key = 5;</code>
     */
    protected $use_default_key = false;
    /**
     * Generated from protobuf field <code>bool color_out_of_range = 6;</code>
     */
    protected $color_out_of_range = false;
    /**
     * Generated from protobuf field <code>bool use_magnitude = 7;</code>
     */
    protected $use_magnitude = false;
    /**
     *
     * Generated from protobuf field <code>float displacement_multiplier = 9;</code>
     */
    protected $displacement_multiplier = 0.0;
    /**
     *reserved
     *
     * Generated from protobuf field <code>repeated float range = 10;</code>
     */
    private $range;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $property_key
     *     @type int $color_map
     *     @type int $component
     *     @type bool $auto_range
     *     @type bool $use_default_key
     *     @type bool $color_out_of_range
     *     @type bool $use_magnitude
     *     @type float $displacement_multiplier
     *     @type float[]|\Google\Protobuf\Internal\RepeatedField $range
     *          reserved
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Meta::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>string property_key = 1;</code>
     * @return string
     */
    public function getPropertyKey()
    {
        return $this->property_key;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint32 color_map = 2;</code>
     * @return int
     */
    public function getColorMap()
    {
        return $this->color_map;
    }

    /**
     * Generated from protobuf field <code>uint32 color_map = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setColorMap($var)
    {
        GPBUtil::checkUint32($var);
        $this->color_map = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint32 component = 3;</code>
     * @return int
     */
    public function getComponent()
    {
        return $this->component;
    }

    /**
     * Generated from protobuf field <code>uint32 component = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setComponent($var)
    {
        GPBUtil::checkUint32($var);
        $this->component = $var;

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool color_out_of_range = 6;</code>
     * @return bool
     */
    public function getColorOutOfRange()
    {
        return $this->color_out_of_range;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool use_magnitude = 7;</code>
     * @return bool
     */
    public function getUseMagnitude()
    {
        return $this->use_magnitude;
    }

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

        return $this;
    }

    /**
     *
     * Generated from protobuf field <code>float displacement_multiplier = 9;</code>
     * @return float
     */
    public function getDisplacementMultiplier()
    {
        return $this->displacement_multiplier;
    }

    /**
     *
     * Generated from protobuf field <code>float displacement_multiplier = 9;</code>
     * @param float $var
     * @return $this
     */
    public function setDisplacementMultiplier($var)
    {
        GPBUtil::checkFloat($var);
        $this->displacement_multiplier = $var;

        return $this;
    }

    /**
     *reserved
     *
     * Generated from protobuf field <code>repeated float range = 10;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getRange()
    {
        return $this->range;
    }

    /**
     *reserved
     *
     * Generated from protobuf field <code>repeated float range = 10;</code>
     * @param float[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setRange($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::FLOAT);
        $this->range = $arr;

        return $this;
    }

}

