<?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;

/**
 * Represents the Maintenance exclusion option.
 *
 * Generated from protobuf message <code>google.container.v1.MaintenanceExclusionOptions</code>
 */
class MaintenanceExclusionOptions extends \Google\Protobuf\Internal\Message
{
    /**
     * Scope specifies the upgrade scope which upgrades are blocked by the
     * exclusion.
     *
     * Generated from protobuf field <code>.google.container.v1.MaintenanceExclusionOptions.Scope scope = 1;</code>
     */
    private $scope = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $scope
     *           Scope specifies the upgrade scope which upgrades are blocked by the
     *           exclusion.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Container\V1\ClusterService::initOnce();
        parent::__construct($data);
    }

    /**
     * Scope specifies the upgrade scope which upgrades are blocked by the
     * exclusion.
     *
     * Generated from protobuf field <code>.google.container.v1.MaintenanceExclusionOptions.Scope scope = 1;</code>
     * @return int
     */
    public function getScope()
    {
        return $this->scope;
    }

    /**
     * Scope specifies the upgrade scope which upgrades are blocked by the
     * exclusion.
     *
     * Generated from protobuf field <code>.google.container.v1.MaintenanceExclusionOptions.Scope scope = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setScope($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\MaintenanceExclusionOptions\Scope::class);
        $this->scope = $var;

        return $this;
    }

}

