<?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.GraphicsControl</code>
 */
class GraphicsControl extends \Google\Protobuf\Internal\Message
{
    /**
     * render program enumeration: 0-explicit raster, 1-implicit raster, 2-explicit ray, 3-implicit ray
     *
     * Generated from protobuf field <code>uint32 mode = 1;</code>
     */
    protected $mode = 0;
    /**
     * bitfield flags, see common/style.h
     *
     * Generated from protobuf field <code>uint32 style = 2;</code>
     */
    protected $style = 0;
    /**
     *reserved
     *
     * Generated from protobuf field <code>repeated float color = 4;</code>
     */
    private $color;
    /**
     * Generated from protobuf field <code>float alpha = 5;</code>
     */
    protected $alpha = 0.0;
    /**
     * Generated from protobuf field <code>float point_width = 6;</code>
     */
    protected $point_width = 0.0;
    /**
     * Generated from protobuf field <code>float line_width = 7;</code>
     */
    protected $line_width = 0.0;
    /**
     *reserved
     *
     * Generated from protobuf field <code>bool visible = 10;</code>
     */
    protected $visible = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $mode
     *           render program enumeration: 0-explicit raster, 1-implicit raster, 2-explicit ray, 3-implicit ray
     *     @type int $style
     *           bitfield flags, see common/style.h
     *     @type float[]|\Google\Protobuf\Internal\RepeatedField $color
     *          reserved
     *     @type float $alpha
     *     @type float $point_width
     *     @type float $line_width
     *     @type bool $visible
     *          reserved
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Meta::initOnce();
        parent::__construct($data);
    }

    /**
     * render program enumeration: 0-explicit raster, 1-implicit raster, 2-explicit ray, 3-implicit ray
     *
     * Generated from protobuf field <code>uint32 mode = 1;</code>
     * @return int
     */
    public function getMode()
    {
        return $this->mode;
    }

    /**
     * render program enumeration: 0-explicit raster, 1-implicit raster, 2-explicit ray, 3-implicit ray
     *
     * Generated from protobuf field <code>uint32 mode = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setMode($var)
    {
        GPBUtil::checkUint32($var);
        $this->mode = $var;

        return $this;
    }

    /**
     * bitfield flags, see common/style.h
     *
     * Generated from protobuf field <code>uint32 style = 2;</code>
     * @return int
     */
    public function getStyle()
    {
        return $this->style;
    }

    /**
     * bitfield flags, see common/style.h
     *
     * Generated from protobuf field <code>uint32 style = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setStyle($var)
    {
        GPBUtil::checkUint32($var);
        $this->style = $var;

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>float point_width = 6;</code>
     * @return float
     */
    public function getPointWidth()
    {
        return $this->point_width;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>float line_width = 7;</code>
     * @return float
     */
    public function getLineWidth()
    {
        return $this->line_width;
    }

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

        return $this;
    }

    /**
     *reserved
     *
     * Generated from protobuf field <code>bool visible = 10;</code>
     * @return bool
     */
    public function getVisible()
    {
        return $this->visible;
    }

    /**
     *reserved
     *
     * Generated from protobuf field <code>bool visible = 10;</code>
     * @param bool $var
     * @return $this
     */
    public function setVisible($var)
    {
        GPBUtil::checkBool($var);
        $this->visible = $var;

        return $this;
    }

}

