<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/apihub/v1/common_fields.proto

namespace Google\Cloud\ApiHub\V1\ConfigVariable;

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

/**
 * The config variable value of data type multi int.
 *
 * Generated from protobuf message <code>google.cloud.apihub.v1.ConfigVariable.MultiIntValues</code>
 */
class MultiIntValues extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. The config variable value of data type multi int.
     *
     * Generated from protobuf field <code>repeated int32 values = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $values;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $values
     *           Optional. The config variable value of data type multi int.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Apihub\V1\CommonFields::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. The config variable value of data type multi int.
     *
     * Generated from protobuf field <code>repeated int32 values = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getValues()
    {
        return $this->values;
    }

    /**
     * Optional. The config variable value of data type multi int.
     *
     * Generated from protobuf field <code>repeated int32 values = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setValues($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
        $this->values = $arr;

        return $this;
    }

}


