<?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.Visual</code>
 */
class Visual extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.Messages.Zone region = 1;</code>
     */
    protected $region = null;
    /**
     * Generated from protobuf field <code>.Messages.GraphicsControl control = 2;</code>
     */
    protected $control = null;
    /**
     * Generated from protobuf field <code>.Messages.Representation representation = 3;</code>
     */
    protected $representation = null;
    /**
     *reserved
     *
     * Generated from protobuf field <code>repeated uint32 points = 5;</code>
     */
    private $points;
    /**
     * Generated from protobuf field <code>repeated uint32 lines = 6;</code>
     */
    private $lines;
    /**
     * Generated from protobuf field <code>repeated uint32 triangles = 7;</code>
     */
    private $triangles;
    /**
     * only used on composite elements (e.g. QUAD4 represented using triangles)
     *
     * Generated from protobuf field <code>repeated uint32 indices_per_element = 8;</code>
     */
    private $indices_per_element;
    /**
     * only used on composite elements (e.g. QUAD4 represented using triangles)
     *
     * Generated from protobuf field <code>repeated uint32 elements_to_indices = 9;</code>
     */
    private $elements_to_indices;
    /**
     * only used on composite elements (e.g. QUAD4 represented using triangles)
     *
     * Generated from protobuf field <code>repeated uint32 indices_to_elements = 10;</code>
     */
    private $indices_to_elements;
    /**
     * optional data such as displacement vectors and positions (if not nodal positions)
     *
     * Generated from protobuf field <code>repeated .Messages.Vector32 extras = 15;</code>
     */
    private $extras;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Messages\Zone $region
     *     @type \Messages\GraphicsControl $control
     *     @type \Messages\Representation $representation
     *     @type int[]|\Google\Protobuf\Internal\RepeatedField $points
     *          reserved
     *     @type int[]|\Google\Protobuf\Internal\RepeatedField $lines
     *     @type int[]|\Google\Protobuf\Internal\RepeatedField $triangles
     *     @type int[]|\Google\Protobuf\Internal\RepeatedField $indices_per_element
     *           only used on composite elements (e.g. QUAD4 represented using triangles)
     *     @type int[]|\Google\Protobuf\Internal\RepeatedField $elements_to_indices
     *           only used on composite elements (e.g. QUAD4 represented using triangles)
     *     @type int[]|\Google\Protobuf\Internal\RepeatedField $indices_to_elements
     *           only used on composite elements (e.g. QUAD4 represented using triangles)
     *     @type \Messages\Vector32[]|\Google\Protobuf\Internal\RepeatedField $extras
     *           optional data such as displacement vectors and positions (if not nodal positions)
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Meta::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.Messages.Zone region = 1;</code>
     * @return \Messages\Zone|null
     */
    public function getRegion()
    {
        return $this->region;
    }

    public function hasRegion()
    {
        return isset($this->region);
    }

    public function clearRegion()
    {
        unset($this->region);
    }

    /**
     * Generated from protobuf field <code>.Messages.Zone region = 1;</code>
     * @param \Messages\Zone $var
     * @return $this
     */
    public function setRegion($var)
    {
        GPBUtil::checkMessage($var, \Messages\Zone::class);
        $this->region = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.Messages.GraphicsControl control = 2;</code>
     * @return \Messages\GraphicsControl|null
     */
    public function getControl()
    {
        return $this->control;
    }

    public function hasControl()
    {
        return isset($this->control);
    }

    public function clearControl()
    {
        unset($this->control);
    }

    /**
     * Generated from protobuf field <code>.Messages.GraphicsControl control = 2;</code>
     * @param \Messages\GraphicsControl $var
     * @return $this
     */
    public function setControl($var)
    {
        GPBUtil::checkMessage($var, \Messages\GraphicsControl::class);
        $this->control = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.Messages.Representation representation = 3;</code>
     * @return \Messages\Representation|null
     */
    public function getRepresentation()
    {
        return $this->representation;
    }

    public function hasRepresentation()
    {
        return isset($this->representation);
    }

    public function clearRepresentation()
    {
        unset($this->representation);
    }

    /**
     * Generated from protobuf field <code>.Messages.Representation representation = 3;</code>
     * @param \Messages\Representation $var
     * @return $this
     */
    public function setRepresentation($var)
    {
        GPBUtil::checkMessage($var, \Messages\Representation::class);
        $this->representation = $var;

        return $this;
    }

    /**
     *reserved
     *
     * Generated from protobuf field <code>repeated uint32 points = 5;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getPoints()
    {
        return $this->points;
    }

    /**
     *reserved
     *
     * Generated from protobuf field <code>repeated uint32 points = 5;</code>
     * @param int[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setPoints($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::UINT32);
        $this->points = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated uint32 lines = 6;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getLines()
    {
        return $this->lines;
    }

    /**
     * Generated from protobuf field <code>repeated uint32 lines = 6;</code>
     * @param int[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setLines($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::UINT32);
        $this->lines = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated uint32 triangles = 7;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getTriangles()
    {
        return $this->triangles;
    }

    /**
     * Generated from protobuf field <code>repeated uint32 triangles = 7;</code>
     * @param int[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setTriangles($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::UINT32);
        $this->triangles = $arr;

        return $this;
    }

    /**
     * only used on composite elements (e.g. QUAD4 represented using triangles)
     *
     * Generated from protobuf field <code>repeated uint32 indices_per_element = 8;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getIndicesPerElement()
    {
        return $this->indices_per_element;
    }

    /**
     * only used on composite elements (e.g. QUAD4 represented using triangles)
     *
     * Generated from protobuf field <code>repeated uint32 indices_per_element = 8;</code>
     * @param int[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setIndicesPerElement($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::UINT32);
        $this->indices_per_element = $arr;

        return $this;
    }

    /**
     * only used on composite elements (e.g. QUAD4 represented using triangles)
     *
     * Generated from protobuf field <code>repeated uint32 elements_to_indices = 9;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getElementsToIndices()
    {
        return $this->elements_to_indices;
    }

    /**
     * only used on composite elements (e.g. QUAD4 represented using triangles)
     *
     * Generated from protobuf field <code>repeated uint32 elements_to_indices = 9;</code>
     * @param int[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setElementsToIndices($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::UINT32);
        $this->elements_to_indices = $arr;

        return $this;
    }

    /**
     * only used on composite elements (e.g. QUAD4 represented using triangles)
     *
     * Generated from protobuf field <code>repeated uint32 indices_to_elements = 10;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getIndicesToElements()
    {
        return $this->indices_to_elements;
    }

    /**
     * only used on composite elements (e.g. QUAD4 represented using triangles)
     *
     * Generated from protobuf field <code>repeated uint32 indices_to_elements = 10;</code>
     * @param int[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setIndicesToElements($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::UINT32);
        $this->indices_to_elements = $arr;

        return $this;
    }

    /**
     * optional data such as displacement vectors and positions (if not nodal positions)
     *
     * Generated from protobuf field <code>repeated .Messages.Vector32 extras = 15;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getExtras()
    {
        return $this->extras;
    }

    /**
     * optional data such as displacement vectors and positions (if not nodal positions)
     *
     * Generated from protobuf field <code>repeated .Messages.Vector32 extras = 15;</code>
     * @param \Messages\Vector32[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setExtras($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Messages\Vector32::class);
        $this->extras = $arr;

        return $this;
    }

}

