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

namespace Google\Cloud\Filestore\V1\Instance;

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

/**
 * Fixed IOPS (input/output operations per second) parameters.
 *
 * Generated from protobuf message <code>google.cloud.filestore.v1.Instance.FixedIOPS</code>
 */
class FixedIOPS extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Maximum IOPS.
     *
     * Generated from protobuf field <code>int64 max_iops = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $max_iops = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $max_iops
     *           Required. Maximum IOPS.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Filestore\V1\CloudFilestoreService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Maximum IOPS.
     *
     * Generated from protobuf field <code>int64 max_iops = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int|string
     */
    public function getMaxIops()
    {
        return $this->max_iops;
    }

    /**
     * Required. Maximum IOPS.
     *
     * Generated from protobuf field <code>int64 max_iops = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int|string $var
     * @return $this
     */
    public function setMaxIops($var)
    {
        GPBUtil::checkInt64($var);
        $this->max_iops = $var;

        return $this;
    }

}

