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

namespace Google\Cloud\Compute\V1;

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

/**
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy</code>
 */
class InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy extends \Google\Protobuf\Internal\Message
{
    /**
     * Specify bandwidth percentages for various traffic classes for queuing
     * type Bandwidth Percent.
     *
     * Generated from protobuf field <code>repeated .google.cloud.compute.v1.InterconnectApplicationAwareInterconnectBandwidthPercentage bandwidth_percentages = 233373323;</code>
     */
    private $bandwidth_percentages;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Compute\V1\InterconnectApplicationAwareInterconnectBandwidthPercentage[] $bandwidth_percentages
     *           Specify bandwidth percentages for various traffic classes for queuing
     *           type Bandwidth Percent.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * Specify bandwidth percentages for various traffic classes for queuing
     * type Bandwidth Percent.
     *
     * Generated from protobuf field <code>repeated .google.cloud.compute.v1.InterconnectApplicationAwareInterconnectBandwidthPercentage bandwidth_percentages = 233373323;</code>
     * @return RepeatedField<\Google\Cloud\Compute\V1\InterconnectApplicationAwareInterconnectBandwidthPercentage>
     */
    public function getBandwidthPercentages()
    {
        return $this->bandwidth_percentages;
    }

    /**
     * Specify bandwidth percentages for various traffic classes for queuing
     * type Bandwidth Percent.
     *
     * Generated from protobuf field <code>repeated .google.cloud.compute.v1.InterconnectApplicationAwareInterconnectBandwidthPercentage bandwidth_percentages = 233373323;</code>
     * @param \Google\Cloud\Compute\V1\InterconnectApplicationAwareInterconnectBandwidthPercentage[] $var
     * @return $this
     */
    public function setBandwidthPercentages($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Compute\V1\InterconnectApplicationAwareInterconnectBandwidthPercentage::class);
        $this->bandwidth_percentages = $arr;

        return $this;
    }

}

