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

namespace Google\Cloud\Container\V1;

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

/**
 * NetworkTierConfig contains network tier information.
 *
 * Generated from protobuf message <code>google.container.v1.NetworkTierConfig</code>
 */
class NetworkTierConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Network tier configuration.
     *
     * Generated from protobuf field <code>.google.container.v1.NetworkTierConfig.NetworkTier network_tier = 1;</code>
     */
    protected $network_tier = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $network_tier
     *           Network tier configuration.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Container\V1\ClusterService::initOnce();
        parent::__construct($data);
    }

    /**
     * Network tier configuration.
     *
     * Generated from protobuf field <code>.google.container.v1.NetworkTierConfig.NetworkTier network_tier = 1;</code>
     * @return int
     */
    public function getNetworkTier()
    {
        return $this->network_tier;
    }

    /**
     * Network tier configuration.
     *
     * Generated from protobuf field <code>.google.container.v1.NetworkTierConfig.NetworkTier network_tier = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setNetworkTier($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NetworkTierConfig\NetworkTier::class);
        $this->network_tier = $var;

        return $this;
    }

}

