<?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 network usage.
 * Only applicable in the App Engine flexible environment.
 *
 * Generated from protobuf message <code>google.appengine.v1.NetworkUtilization</code>
 */
class NetworkUtilization extends \Google\Protobuf\Internal\Message
{
    /**
     * Target bytes sent per second.
     *
     * Generated from protobuf field <code>int32 target_sent_bytes_per_second = 1;</code>
     */
    private $target_sent_bytes_per_second = 0;
    /**
     * Target packets sent per second.
     *
     * Generated from protobuf field <code>int32 target_sent_packets_per_second = 11;</code>
     */
    private $target_sent_packets_per_second = 0;
    /**
     * Target bytes received per second.
     *
     * Generated from protobuf field <code>int32 target_received_bytes_per_second = 12;</code>
     */
    private $target_received_bytes_per_second = 0;
    /**
     * Target packets received per second.
     *
     * Generated from protobuf field <code>int32 target_received_packets_per_second = 13;</code>
     */
    private $target_received_packets_per_second = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $target_sent_bytes_per_second
     *           Target bytes sent per second.
     *     @type int $target_sent_packets_per_second
     *           Target packets sent per second.
     *     @type int $target_received_bytes_per_second
     *           Target bytes received per second.
     *     @type int $target_received_packets_per_second
     *           Target packets received per second.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Appengine\V1\Version::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     * Target packets sent per second.
     *
     * Generated from protobuf field <code>int32 target_sent_packets_per_second = 11;</code>
     * @return int
     */
    public function getTargetSentPacketsPerSecond()
    {
        return $this->target_sent_packets_per_second;
    }

    /**
     * Target packets sent per second.
     *
     * Generated from protobuf field <code>int32 target_sent_packets_per_second = 11;</code>
     * @param int $var
     * @return $this
     */
    public function setTargetSentPacketsPerSecond($var)
    {
        GPBUtil::checkInt32($var);
        $this->target_sent_packets_per_second = $var;

        return $this;
    }

    /**
     * Target bytes received per second.
     *
     * Generated from protobuf field <code>int32 target_received_bytes_per_second = 12;</code>
     * @return int
     */
    public function getTargetReceivedBytesPerSecond()
    {
        return $this->target_received_bytes_per_second;
    }

    /**
     * Target bytes received per second.
     *
     * Generated from protobuf field <code>int32 target_received_bytes_per_second = 12;</code>
     * @param int $var
     * @return $this
     */
    public function setTargetReceivedBytesPerSecond($var)
    {
        GPBUtil::checkInt32($var);
        $this->target_received_bytes_per_second = $var;

        return $this;
    }

    /**
     * Target packets received per second.
     *
     * Generated from protobuf field <code>int32 target_received_packets_per_second = 13;</code>
     * @return int
     */
    public function getTargetReceivedPacketsPerSecond()
    {
        return $this->target_received_packets_per_second;
    }

    /**
     * Target packets received per second.
     *
     * Generated from protobuf field <code>int32 target_received_packets_per_second = 13;</code>
     * @param int $var
     * @return $this
     */
    public function setTargetReceivedPacketsPerSecond($var)
    {
        GPBUtil::checkInt32($var);
        $this->target_received_packets_per_second = $var;

        return $this;
    }

}

