<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/gkemulticloud/v1/aws_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 `AwsClusters.UpdateAwsNodePool` method.
 *
 * Generated from protobuf message <code>google.cloud.gkemulticloud.v1.UpdateAwsNodePoolRequest</code>
 */
class UpdateAwsNodePoolRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
     * resource to update.
     *
     * Generated from protobuf field <code>.google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pool = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $aws_node_pool = null;
    /**
     * If set, only validate the request, but don't actually update the node pool.
     *
     * 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 [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]:
     *  *   `annotations`.
     *  *   `version`.
     *  *   `autoscaling.min_node_count`.
     *  *   `autoscaling.max_node_count`.
     *  *   `config.config_encryption.kms_key_arn`.
     *  *   `config.security_group_ids`.
     *  *   `config.root_volume.iops`.
     *  *   `config.root_volume.kms_key_arn`.
     *  *   `config.root_volume.volume_type`.
     *  *   `config.root_volume.size_gib`.
     *  *   `config.proxy_config`.
     *  *   `config.proxy_config.secret_arn`.
     *  *   `config.proxy_config.secret_version`.
     *  *   `config.ssh_config`.
     *  *   `config.ssh_config.ec2_key_pair`.
     *  *   `config.instance_placement.tenancy`.
     *  *   `config.iam_instance_profile`.
     *  *   `config.labels`.
     *  *   `config.tags`.
     *  *   `config.autoscaling_metrics_collection`.
     *  *   `config.autoscaling_metrics_collection.granularity`.
     *  *   `config.autoscaling_metrics_collection.metrics`.
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 3 [(.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\AwsNodePool $aws_node_pool
     *           Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
     *           resource to update.
     *     @type bool $validate_only
     *           If set, only validate the request, but don't actually update the node pool.
     *     @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 [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]:
     *            *   `annotations`.
     *            *   `version`.
     *            *   `autoscaling.min_node_count`.
     *            *   `autoscaling.max_node_count`.
     *            *   `config.config_encryption.kms_key_arn`.
     *            *   `config.security_group_ids`.
     *            *   `config.root_volume.iops`.
     *            *   `config.root_volume.kms_key_arn`.
     *            *   `config.root_volume.volume_type`.
     *            *   `config.root_volume.size_gib`.
     *            *   `config.proxy_config`.
     *            *   `config.proxy_config.secret_arn`.
     *            *   `config.proxy_config.secret_version`.
     *            *   `config.ssh_config`.
     *            *   `config.ssh_config.ec2_key_pair`.
     *            *   `config.instance_placement.tenancy`.
     *            *   `config.iam_instance_profile`.
     *            *   `config.labels`.
     *            *   `config.tags`.
     *            *   `config.autoscaling_metrics_collection`.
     *            *   `config.autoscaling_metrics_collection.granularity`.
     *            *   `config.autoscaling_metrics_collection.metrics`.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce();
        parent::__construct($data);
    }

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

    public function hasAwsNodePool()
    {
        return isset($this->aws_node_pool);
    }

    public function clearAwsNodePool()
    {
        unset($this->aws_node_pool);
    }

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

        return $this;
    }

    /**
     * If set, only validate the request, but don't actually update the node pool.
     *
     * 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 don't actually update the node pool.
     *
     * 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 [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]:
     *  *   `annotations`.
     *  *   `version`.
     *  *   `autoscaling.min_node_count`.
     *  *   `autoscaling.max_node_count`.
     *  *   `config.config_encryption.kms_key_arn`.
     *  *   `config.security_group_ids`.
     *  *   `config.root_volume.iops`.
     *  *   `config.root_volume.kms_key_arn`.
     *  *   `config.root_volume.volume_type`.
     *  *   `config.root_volume.size_gib`.
     *  *   `config.proxy_config`.
     *  *   `config.proxy_config.secret_arn`.
     *  *   `config.proxy_config.secret_version`.
     *  *   `config.ssh_config`.
     *  *   `config.ssh_config.ec2_key_pair`.
     *  *   `config.instance_placement.tenancy`.
     *  *   `config.iam_instance_profile`.
     *  *   `config.labels`.
     *  *   `config.tags`.
     *  *   `config.autoscaling_metrics_collection`.
     *  *   `config.autoscaling_metrics_collection.granularity`.
     *  *   `config.autoscaling_metrics_collection.metrics`.
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 3 [(.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 [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]:
     *  *   `annotations`.
     *  *   `version`.
     *  *   `autoscaling.min_node_count`.
     *  *   `autoscaling.max_node_count`.
     *  *   `config.config_encryption.kms_key_arn`.
     *  *   `config.security_group_ids`.
     *  *   `config.root_volume.iops`.
     *  *   `config.root_volume.kms_key_arn`.
     *  *   `config.root_volume.volume_type`.
     *  *   `config.root_volume.size_gib`.
     *  *   `config.proxy_config`.
     *  *   `config.proxy_config.secret_arn`.
     *  *   `config.proxy_config.secret_version`.
     *  *   `config.ssh_config`.
     *  *   `config.ssh_config.ec2_key_pair`.
     *  *   `config.instance_placement.tenancy`.
     *  *   `config.iam_instance_profile`.
     *  *   `config.labels`.
     *  *   `config.tags`.
     *  *   `config.autoscaling_metrics_collection`.
     *  *   `config.autoscaling_metrics_collection.granularity`.
     *  *   `config.autoscaling_metrics_collection.metrics`.
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 3 [(.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;
    }

}

