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

namespace Google\Cloud\GkeMultiCloud\V1;

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

/**
 * Request message for `AzureClusters.UpdateAzureCluster` method.
 *
 * Generated from protobuf message <code>google.cloud.gkemulticloud.v1.UpdateAzureClusterRequest</code>
 */
class UpdateAzureClusterRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to update.
     *
     * Generated from protobuf field <code>.google.cloud.gkemulticloud.v1.AzureCluster azure_cluster = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $azure_cluster = null;
    /**
     * If set, only validate the request, but do not actually update the cluster.
     *
     * Generated from protobuf field <code>bool validate_only = 2;</code>
     */
    private $validate_only = false;
    /**
     * Required. Mask of fields to update. At least one path must be supplied in
     * this field. The elements of the repeated paths field can only include these
     * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]:
     *  *   `description`.
     *  *   `annotations`.
     *  *   `azureClient`.
     *  *   `control_plane.version`.
     *  *   `control_plane.vm_size`.
     *  *   `authorization.admin_users`.
     *  *   `control_plane.root_volume.size_gib`.
     *  *   `logging_config`
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $update_mask = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\GkeMultiCloud\V1\AzureCluster $azure_cluster
     *           Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to update.
     *     @type bool $validate_only
     *           If set, only validate the request, but do not actually update the cluster.
     *     @type \Google\Protobuf\FieldMask $update_mask
     *           Required. Mask of fields to update. At least one path must be supplied in
     *           this field. The elements of the repeated paths field can only include these
     *           fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]:
     *            *   `description`.
     *            *   `annotations`.
     *            *   `azureClient`.
     *            *   `control_plane.version`.
     *            *   `control_plane.vm_size`.
     *            *   `authorization.admin_users`.
     *            *   `control_plane.root_volume.size_gib`.
     *            *   `logging_config`
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to update.
     *
     * Generated from protobuf field <code>.google.cloud.gkemulticloud.v1.AzureCluster azure_cluster = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Cloud\GkeMultiCloud\V1\AzureCluster|null
     */
    public function getAzureCluster()
    {
        return $this->azure_cluster;
    }

    public function hasAzureCluster()
    {
        return isset($this->azure_cluster);
    }

    public function clearAzureCluster()
    {
        unset($this->azure_cluster);
    }

    /**
     * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to update.
     *
     * Generated from protobuf field <code>.google.cloud.gkemulticloud.v1.AzureCluster azure_cluster = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Cloud\GkeMultiCloud\V1\AzureCluster $var
     * @return $this
     */
    public function setAzureCluster($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureCluster::class);
        $this->azure_cluster = $var;

        return $this;
    }

    /**
     * If set, only validate the request, but do not actually update the cluster.
     *
     * Generated from protobuf field <code>bool validate_only = 2;</code>
     * @return bool
     */
    public function getValidateOnly()
    {
        return $this->validate_only;
    }

    /**
     * If set, only validate the request, but do not actually update the cluster.
     *
     * Generated from protobuf field <code>bool validate_only = 2;</code>
     * @param bool $var
     * @return $this
     */
    public function setValidateOnly($var)
    {
        GPBUtil::checkBool($var);
        $this->validate_only = $var;

        return $this;
    }

    /**
     * Required. Mask of fields to update. At least one path must be supplied in
     * this field. The elements of the repeated paths field can only include these
     * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]:
     *  *   `description`.
     *  *   `annotations`.
     *  *   `azureClient`.
     *  *   `control_plane.version`.
     *  *   `control_plane.vm_size`.
     *  *   `authorization.admin_users`.
     *  *   `control_plane.root_volume.size_gib`.
     *  *   `logging_config`
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Protobuf\FieldMask|null
     */
    public function getUpdateMask()
    {
        return $this->update_mask;
    }

    public function hasUpdateMask()
    {
        return isset($this->update_mask);
    }

    public function clearUpdateMask()
    {
        unset($this->update_mask);
    }

    /**
     * Required. Mask of fields to update. At least one path must be supplied in
     * this field. The elements of the repeated paths field can only include these
     * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]:
     *  *   `description`.
     *  *   `annotations`.
     *  *   `azureClient`.
     *  *   `control_plane.version`.
     *  *   `control_plane.vm_size`.
     *  *   `authorization.admin_users`.
     *  *   `control_plane.root_volume.size_gib`.
     *  *   `logging_config`
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Protobuf\FieldMask $var
     * @return $this
     */
    public function setUpdateMask($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class);
        $this->update_mask = $var;

        return $this;
    }

}

