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

namespace Messages;

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

/**
 * Generated from protobuf message <code>Messages.Extrema</code>
 */
class Extrema extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>uint32 dims = 1;</code>
     */
    protected $dims = 0;
    /**
     * Generated from protobuf field <code>repeated double min = 2 [packed = true];</code>
     */
    private $min;
    /**
     * Generated from protobuf field <code>repeated double max = 3 [packed = true];</code>
     */
    private $max;
    /**
     * Generated from protobuf field <code>bool is_set = 4;</code>
     */
    protected $is_set = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $dims
     *     @type float[]|\Google\Protobuf\Internal\RepeatedField $min
     *     @type float[]|\Google\Protobuf\Internal\RepeatedField $max
     *     @type bool $is_set
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Vector::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated double min = 2 [packed = true];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getMin()
    {
        return $this->min;
    }

    /**
     * Generated from protobuf field <code>repeated double min = 2 [packed = true];</code>
     * @param float[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setMin($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::DOUBLE);
        $this->min = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated double max = 3 [packed = true];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getMax()
    {
        return $this->max;
    }

    /**
     * Generated from protobuf field <code>repeated double max = 3 [packed = true];</code>
     * @param float[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setMax($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::DOUBLE);
        $this->max = $arr;

        return $this;
    }

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

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

        return $this;
    }

}

