<?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>
     */
    protected $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>
     */
    protected $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`.
     *  *   `azureClient`.
     *  *   `control_plane.version`.
     *  *   `control_plane.vm_size`.
     *  *   `annotations`.
     *  *   `authorization.admin_users`.
     *  *   `authorization.admin_groups`.
     *  *   `control_plane.root_volume.size_gib`.
     *  *   `azure_services_authentication`.
     *  *   `azure_services_authentication.tenant_id`.
     *  *   `azure_services_authentication.application_id`.
     *  *   `control_plane.proxy_config`.
     *  *   `control_plane.proxy_config.resource_group_id`.
     *  *   `control_plane.proxy_config.secret_id`.
     *  *   `control_plane.ssh_config.authorized_key`.
     *  *   `logging_config.component_config.enable_components`
     *  *   `monitoring_config.managed_prometheus_config.enabled`.
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $update_mask = null;

    /**
     * @param \Google\Cloud\GkeMultiCloud\V1\AzureCluster $azureCluster Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
     *                                                                  resource to update.
     * @param \Google\Protobuf\FieldMask                  $updateMask   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`.
     *                                                                  *   `azureClient`.
     *                                                                  *   `control_plane.version`.
     *                                                                  *   `control_plane.vm_size`.
     *                                                                  *   `annotations`.
     *                                                                  *   `authorization.admin_users`.
     *                                                                  *   `authorization.admin_groups`.
     *                                                                  *   `control_plane.root_volume.size_gib`.
     *                                                                  *   `azure_services_authentication`.
     *                                                                  *   `azure_services_authentication.tenant_id`.
     *                                                                  *   `azure_services_authentication.application_id`.
     *                                                                  *   `control_plane.proxy_config`.
     *                                                                  *   `control_plane.proxy_config.resource_group_id`.
     *                                                                  *   `control_plane.proxy_config.secret_id`.
     *                                                                  *   `control_plane.ssh_config.authorized_key`.
     *                                                                  *   `logging_config.component_config.enable_components`
     *                                                                  *   `monitoring_config.managed_prometheus_config.enabled`.
     *
     * @return \Google\Cloud\GkeMultiCloud\V1\UpdateAzureClusterRequest
     *
     * @experimental
     */
    public static function build(\Google\Cloud\GkeMultiCloud\V1\AzureCluster $azureCluster, \Google\Protobuf\FieldMask $updateMask): self
    {
        return (new self())
            ->setAzureCluster($azureCluster)
            ->setUpdateMask($updateMask);
    }

    /**
     * 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`.
     *            *   `azureClient`.
     *            *   `control_plane.version`.
     *            *   `control_plane.vm_size`.
     *            *   `annotations`.
     *            *   `authorization.admin_users`.
     *            *   `authorization.admin_groups`.
     *            *   `control_plane.root_volume.size_gib`.
     *            *   `azure_services_authentication`.
     *            *   `azure_services_authentication.tenant_id`.
     *            *   `azure_services_authentication.application_id`.
     *            *   `control_plane.proxy_config`.
     *            *   `control_plane.proxy_config.resource_group_id`.
     *            *   `control_plane.proxy_config.secret_id`.
     *            *   `control_plane.ssh_config.authorized_key`.
     *            *   `logging_config.component_config.enable_components`
     *            *   `monitoring_config.managed_prometheus_config.enabled`.
     * }
     */
    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`.
     *  *   `azureClient`.
     *  *   `control_plane.version`.
     *  *   `control_plane.vm_size`.
     *  *   `annotations`.
     *  *   `authorization.admin_users`.
     *  *   `authorization.admin_groups`.
     *  *   `control_plane.root_volume.size_gib`.
     *  *   `azure_services_authentication`.
     *  *   `azure_services_authentication.tenant_id`.
     *  *   `azure_services_authentication.application_id`.
     *  *   `control_plane.proxy_config`.
     *  *   `control_plane.proxy_config.resource_group_id`.
     *  *   `control_plane.proxy_config.secret_id`.
     *  *   `control_plane.ssh_config.authorized_key`.
     *  *   `logging_config.component_config.enable_components`
     *  *   `monitoring_config.managed_prometheus_config.enabled`.
     *
     * 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`.
     *  *   `azureClient`.
     *  *   `control_plane.version`.
     *  *   `control_plane.vm_size`.
     *  *   `annotations`.
     *  *   `authorization.admin_users`.
     *  *   `authorization.admin_groups`.
     *  *   `control_plane.root_volume.size_gib`.
     *  *   `azure_services_authentication`.
     *  *   `azure_services_authentication.tenant_id`.
     *  *   `azure_services_authentication.application_id`.
     *  *   `control_plane.proxy_config`.
     *  *   `control_plane.proxy_config.resource_group_id`.
     *  *   `control_plane.proxy_config.secret_id`.
     *  *   `control_plane.ssh_config.authorized_key`.
     *  *   `logging_config.component_config.enable_components`
     *  *   `monitoring_config.managed_prometheus_config.enabled`.
     *
     * 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;
    }

}

