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

/**
 * MaintenancePolicy defines the maintenance policy to be used for the cluster.
 *
 * Generated from protobuf message <code>google.container.v1.MaintenancePolicy</code>
 */
class MaintenancePolicy extends \Google\Protobuf\Internal\Message
{
    /**
     * Specifies the maintenance window in which maintenance may be performed.
     *
     * Generated from protobuf field <code>.google.container.v1.MaintenanceWindow window = 1;</code>
     */
    private $window = null;

    public function __construct() {
        \GPBMetadata\Google\Container\V1\ClusterService::initOnce();
        parent::__construct();
    }

    /**
     * Specifies the maintenance window in which maintenance may be performed.
     *
     * Generated from protobuf field <code>.google.container.v1.MaintenanceWindow window = 1;</code>
     * @return \Google\Cloud\Container\V1\MaintenanceWindow
     */
    public function getWindow()
    {
        return $this->window;
    }

    /**
     * Specifies the maintenance window in which maintenance may be performed.
     *
     * Generated from protobuf field <code>.google.container.v1.MaintenanceWindow window = 1;</code>
     * @param \Google\Cloud\Container\V1\MaintenanceWindow $var
     * @return $this
     */
    public function setWindow($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MaintenanceWindow::class);
        $this->window = $var;

        return $this;
    }

}

