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

namespace Messages;

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

/**
 * Generated from protobuf message <code>Messages.TreeControl</code>
 */
class TreeControl extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>uint32 min_depth = 1;</code>
     */
    protected $min_depth = 0;
    /**
     * Generated from protobuf field <code>uint32 max_depth = 2;</code>
     */
    protected $max_depth = 0;
    /**
     * Generated from protobuf field <code>uint64 max_size = 3;</code>
     */
    protected $max_size = 0;
    /**
     *reserved
     *
     * Generated from protobuf field <code>uint32 ref_dimensionality = 7;</code>
     */
    protected $ref_dimensionality = 0;
    /**
     * 0-7: mm, cm, m, km, in, ft, yd, mi (defined in common/space.h)       
     *
     * Generated from protobuf field <code>uint32 length_units = 8;</code>
     */
    protected $length_units = 0;
    /**
     *reserved
     *
     * Generated from protobuf field <code>.Messages.Extrema bounds = 10;</code>
     */
    protected $bounds = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $min_depth
     *     @type int $max_depth
     *     @type int|string $max_size
     *     @type int $ref_dimensionality
     *          reserved
     *     @type int $length_units
     *           0-7: mm, cm, m, km, in, ft, yd, mi (defined in common/space.h)       
     *     @type \Messages\Extrema $bounds
     *          reserved
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Spatial::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint64 max_size = 3;</code>
     * @return int|string
     */
    public function getMaxSize()
    {
        return $this->max_size;
    }

    /**
     * Generated from protobuf field <code>uint64 max_size = 3;</code>
     * @param int|string $var
     * @return $this
     */
    public function setMaxSize($var)
    {
        GPBUtil::checkUint64($var);
        $this->max_size = $var;

        return $this;
    }

    /**
     *reserved
     *
     * Generated from protobuf field <code>uint32 ref_dimensionality = 7;</code>
     * @return int
     */
    public function getRefDimensionality()
    {
        return $this->ref_dimensionality;
    }

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

        return $this;
    }

    /**
     * 0-7: mm, cm, m, km, in, ft, yd, mi (defined in common/space.h)       
     *
     * Generated from protobuf field <code>uint32 length_units = 8;</code>
     * @return int
     */
    public function getLengthUnits()
    {
        return $this->length_units;
    }

    /**
     * 0-7: mm, cm, m, km, in, ft, yd, mi (defined in common/space.h)       
     *
     * Generated from protobuf field <code>uint32 length_units = 8;</code>
     * @param int $var
     * @return $this
     */
    public function setLengthUnits($var)
    {
        GPBUtil::checkUint32($var);
        $this->length_units = $var;

        return $this;
    }

    /**
     *reserved
     *
     * Generated from protobuf field <code>.Messages.Extrema bounds = 10;</code>
     * @return \Messages\Extrema|null
     */
    public function getBounds()
    {
        return $this->bounds;
    }

    public function hasBounds()
    {
        return isset($this->bounds);
    }

    public function clearBounds()
    {
        unset($this->bounds);
    }

    /**
     *reserved
     *
     * Generated from protobuf field <code>.Messages.Extrema bounds = 10;</code>
     * @param \Messages\Extrema $var
     * @return $this
     */
    public function setBounds($var)
    {
        GPBUtil::checkMessage($var, \Messages\Extrema::class);
        $this->bounds = $var;

        return $this;
    }

}

