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

namespace Google\Cloud\AppEngine\V1;

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

/**
 * Target scaling by request utilization.
 * Only applicable in the App Engine flexible environment.
 *
 * Generated from protobuf message <code>google.appengine.v1.RequestUtilization</code>
 */
class RequestUtilization extends \Google\Protobuf\Internal\Message
{
    /**
     * Target requests per second.
     *
     * Generated from protobuf field <code>int32 target_request_count_per_second = 1;</code>
     */
    private $target_request_count_per_second = 0;
    /**
     * Target number of concurrent requests.
     *
     * Generated from protobuf field <code>int32 target_concurrent_requests = 2;</code>
     */
    private $target_concurrent_requests = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $target_request_count_per_second
     *           Target requests per second.
     *     @type int $target_concurrent_requests
     *           Target number of concurrent requests.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Appengine\V1\Version::initOnce();
        parent::__construct($data);
    }

    /**
     * Target requests per second.
     *
     * Generated from protobuf field <code>int32 target_request_count_per_second = 1;</code>
     * @return int
     */
    public function getTargetRequestCountPerSecond()
    {
        return $this->target_request_count_per_second;
    }

    /**
     * Target requests per second.
     *
     * Generated from protobuf field <code>int32 target_request_count_per_second = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setTargetRequestCountPerSecond($var)
    {
        GPBUtil::checkInt32($var);
        $this->target_request_count_per_second = $var;

        return $this;
    }

    /**
     * Target number of concurrent requests.
     *
     * Generated from protobuf field <code>int32 target_concurrent_requests = 2;</code>
     * @return int
     */
    public function getTargetConcurrentRequests()
    {
        return $this->target_concurrent_requests;
    }

    /**
     * Target number of concurrent requests.
     *
     * Generated from protobuf field <code>int32 target_concurrent_requests = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setTargetConcurrentRequests($var)
    {
        GPBUtil::checkInt32($var);
        $this->target_concurrent_requests = $var;

        return $this;
    }

}

