/*
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/gkemulticloud/v1/aws_resources.proto

package com.google.cloud.gkemulticloud.v1;

/**
 *
 *
 * <pre>
 * ControlPlane defines common parameters between control plane nodes.
 * </pre>
 *
 * Protobuf type {@code google.cloud.gkemulticloud.v1.AwsControlPlane}
 */
public final class AwsControlPlane extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AwsControlPlane)
    AwsControlPlaneOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use AwsControlPlane.newBuilder() to construct.
  private AwsControlPlane(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private AwsControlPlane() {
    version_ = "";
    instanceType_ = "";
    subnetIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    iamInstanceProfile_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    return new AwsControlPlane();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    return this.unknownFields;
  }

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.cloud.gkemulticloud.v1.AwsResourcesProto
        .internal_static_google_cloud_gkemulticloud_v1_AwsControlPlane_descriptor;
  }

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected com.google.protobuf.MapField internalGetMapField(int number) {
    switch (number) {
      case 11:
        return internalGetTags();
      default:
        throw new RuntimeException("Invalid map field number: " + number);
    }
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.cloud.gkemulticloud.v1.AwsResourcesProto
        .internal_static_google_cloud_gkemulticloud_v1_AwsControlPlane_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.cloud.gkemulticloud.v1.AwsControlPlane.class,
            com.google.cloud.gkemulticloud.v1.AwsControlPlane.Builder.class);
  }

  public static final int VERSION_FIELD_NUMBER = 1;

  @SuppressWarnings("serial")
  private volatile java.lang.Object version_ = "";
  /**
   *
   *
   * <pre>
   * Required. The Kubernetes version to run on control plane replicas
   * (e.g. `1.19.10-gke.1000`).
   * You can list all supported versions on a given Google Cloud region by
   * calling
   * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig].
   * </pre>
   *
   * <code>string version = 1 [(.google.api.field_behavior) = REQUIRED];</code>
   *
   * @return The version.
   */
  @java.lang.Override
  public java.lang.String getVersion() {
    java.lang.Object ref = version_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      version_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Required. The Kubernetes version to run on control plane replicas
   * (e.g. `1.19.10-gke.1000`).
   * You can list all supported versions on a given Google Cloud region by
   * calling
   * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig].
   * </pre>
   *
   * <code>string version = 1 [(.google.api.field_behavior) = REQUIRED];</code>
   *
   * @return The bytes for version.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getVersionBytes() {
    java.lang.Object ref = version_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      version_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int INSTANCE_TYPE_FIELD_NUMBER = 2;

  @SuppressWarnings("serial")
  private volatile java.lang.Object instanceType_ = "";
  /**
   *
   *
   * <pre>
   * Optional. The AWS instance type.
   * When unspecified, it uses a default based on the cluster's version.
   * </pre>
   *
   * <code>string instance_type = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The instanceType.
   */
  @java.lang.Override
  public java.lang.String getInstanceType() {
    java.lang.Object ref = instanceType_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      instanceType_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Optional. The AWS instance type.
   * When unspecified, it uses a default based on the cluster's version.
   * </pre>
   *
   * <code>string instance_type = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The bytes for instanceType.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getInstanceTypeBytes() {
    java.lang.Object ref = instanceType_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      instanceType_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SSH_CONFIG_FIELD_NUMBER = 14;
  private com.google.cloud.gkemulticloud.v1.AwsSshConfig sshConfig_;
  /**
   *
   *
   * <pre>
   * Optional. SSH configuration for how to access the underlying control plane
   * machines.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 14 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return Whether the sshConfig field is set.
   */
  @java.lang.Override
  public boolean hasSshConfig() {
    return sshConfig_ != null;
  }
  /**
   *
   *
   * <pre>
   * Optional. SSH configuration for how to access the underlying control plane
   * machines.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 14 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return The sshConfig.
   */
  @java.lang.Override
  public com.google.cloud.gkemulticloud.v1.AwsSshConfig getSshConfig() {
    return sshConfig_ == null
        ? com.google.cloud.gkemulticloud.v1.AwsSshConfig.getDefaultInstance()
        : sshConfig_;
  }
  /**
   *
   *
   * <pre>
   * Optional. SSH configuration for how to access the underlying control plane
   * machines.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 14 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.gkemulticloud.v1.AwsSshConfigOrBuilder getSshConfigOrBuilder() {
    return sshConfig_ == null
        ? com.google.cloud.gkemulticloud.v1.AwsSshConfig.getDefaultInstance()
        : sshConfig_;
  }

  public static final int SUBNET_IDS_FIELD_NUMBER = 4;

  @SuppressWarnings("serial")
  private com.google.protobuf.LazyStringList subnetIds_;
  /**
   *
   *
   * <pre>
   * Required. The list of subnets where control plane replicas will run.
   * A replica will be provisioned on each subnet and up to three values
   * can be provided.
   * Each subnet must be in a different AWS Availability Zone (AZ).
   * </pre>
   *
   * <code>repeated string subnet_ids = 4 [(.google.api.field_behavior) = REQUIRED];</code>
   *
   * @return A list containing the subnetIds.
   */
  public com.google.protobuf.ProtocolStringList getSubnetIdsList() {
    return subnetIds_;
  }
  /**
   *
   *
   * <pre>
   * Required. The list of subnets where control plane replicas will run.
   * A replica will be provisioned on each subnet and up to three values
   * can be provided.
   * Each subnet must be in a different AWS Availability Zone (AZ).
   * </pre>
   *
   * <code>repeated string subnet_ids = 4 [(.google.api.field_behavior) = REQUIRED];</code>
   *
   * @return The count of subnetIds.
   */
  public int getSubnetIdsCount() {
    return subnetIds_.size();
  }
  /**
   *
   *
   * <pre>
   * Required. The list of subnets where control plane replicas will run.
   * A replica will be provisioned on each subnet and up to three values
   * can be provided.
   * Each subnet must be in a different AWS Availability Zone (AZ).
   * </pre>
   *
   * <code>repeated string subnet_ids = 4 [(.google.api.field_behavior) = REQUIRED];</code>
   *
   * @param index The index of the element to return.
   * @return The subnetIds at the given index.
   */
  public java.lang.String getSubnetIds(int index) {
    return subnetIds_.get(index);
  }
  /**
   *
   *
   * <pre>
   * Required. The list of subnets where control plane replicas will run.
   * A replica will be provisioned on each subnet and up to three values
   * can be provided.
   * Each subnet must be in a different AWS Availability Zone (AZ).
   * </pre>
   *
   * <code>repeated string subnet_ids = 4 [(.google.api.field_behavior) = REQUIRED];</code>
   *
   * @param index The index of the value to return.
   * @return The bytes of the subnetIds at the given index.
   */
  public com.google.protobuf.ByteString getSubnetIdsBytes(int index) {
    return subnetIds_.getByteString(index);
  }

  public static final int SECURITY_GROUP_IDS_FIELD_NUMBER = 5;

  @SuppressWarnings("serial")
  private com.google.protobuf.LazyStringList securityGroupIds_;
  /**
   *
   *
   * <pre>
   * Optional. The IDs of additional security groups to add to control plane
   * replicas. The Anthos Multi-Cloud API will automatically create and manage
   * security groups with the minimum rules needed for a functioning cluster.
   * </pre>
   *
   * <code>repeated string security_group_ids = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return A list containing the securityGroupIds.
   */
  public com.google.protobuf.ProtocolStringList getSecurityGroupIdsList() {
    return securityGroupIds_;
  }
  /**
   *
   *
   * <pre>
   * Optional. The IDs of additional security groups to add to control plane
   * replicas. The Anthos Multi-Cloud API will automatically create and manage
   * security groups with the minimum rules needed for a functioning cluster.
   * </pre>
   *
   * <code>repeated string security_group_ids = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The count of securityGroupIds.
   */
  public int getSecurityGroupIdsCount() {
    return securityGroupIds_.size();
  }
  /**
   *
   *
   * <pre>
   * Optional. The IDs of additional security groups to add to control plane
   * replicas. The Anthos Multi-Cloud API will automatically create and manage
   * security groups with the minimum rules needed for a functioning cluster.
   * </pre>
   *
   * <code>repeated string security_group_ids = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @param index The index of the element to return.
   * @return The securityGroupIds at the given index.
   */
  public java.lang.String getSecurityGroupIds(int index) {
    return securityGroupIds_.get(index);
  }
  /**
   *
   *
   * <pre>
   * Optional. The IDs of additional security groups to add to control plane
   * replicas. The Anthos Multi-Cloud API will automatically create and manage
   * security groups with the minimum rules needed for a functioning cluster.
   * </pre>
   *
   * <code>repeated string security_group_ids = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @param index The index of the value to return.
   * @return The bytes of the securityGroupIds at the given index.
   */
  public com.google.protobuf.ByteString getSecurityGroupIdsBytes(int index) {
    return securityGroupIds_.getByteString(index);
  }

  public static final int IAM_INSTANCE_PROFILE_FIELD_NUMBER = 7;

  @SuppressWarnings("serial")
  private volatile java.lang.Object iamInstanceProfile_ = "";
  /**
   *
   *
   * <pre>
   * Required. The name or ARN of the AWS IAM instance profile to assign to each
   * control plane replica.
   * </pre>
   *
   * <code>string iam_instance_profile = 7 [(.google.api.field_behavior) = REQUIRED];</code>
   *
   * @return The iamInstanceProfile.
   */
  @java.lang.Override
  public java.lang.String getIamInstanceProfile() {
    java.lang.Object ref = iamInstanceProfile_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      iamInstanceProfile_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Required. The name or ARN of the AWS IAM instance profile to assign to each
   * control plane replica.
   * </pre>
   *
   * <code>string iam_instance_profile = 7 [(.google.api.field_behavior) = REQUIRED];</code>
   *
   * @return The bytes for iamInstanceProfile.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getIamInstanceProfileBytes() {
    java.lang.Object ref = iamInstanceProfile_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      iamInstanceProfile_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ROOT_VOLUME_FIELD_NUMBER = 8;
  private com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate rootVolume_;
  /**
   *
   *
   * <pre>
   * Optional. Configuration related to the root volume provisioned for each
   * control plane replica.
   * Volumes will be provisioned in the availability zone associated
   * with the corresponding subnet.
   * When unspecified, it defaults to 32 GiB with the GP2 volume type.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 8 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return Whether the rootVolume field is set.
   */
  @java.lang.Override
  public boolean hasRootVolume() {
    return rootVolume_ != null;
  }
  /**
   *
   *
   * <pre>
   * Optional. Configuration related to the root volume provisioned for each
   * control plane replica.
   * Volumes will be provisioned in the availability zone associated
   * with the corresponding subnet.
   * When unspecified, it defaults to 32 GiB with the GP2 volume type.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 8 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return The rootVolume.
   */
  @java.lang.Override
  public com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate getRootVolume() {
    return rootVolume_ == null
        ? com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate.getDefaultInstance()
        : rootVolume_;
  }
  /**
   *
   *
   * <pre>
   * Optional. Configuration related to the root volume provisioned for each
   * control plane replica.
   * Volumes will be provisioned in the availability zone associated
   * with the corresponding subnet.
   * When unspecified, it defaults to 32 GiB with the GP2 volume type.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 8 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.gkemulticloud.v1.AwsVolumeTemplateOrBuilder getRootVolumeOrBuilder() {
    return rootVolume_ == null
        ? com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate.getDefaultInstance()
        : rootVolume_;
  }

  public static final int MAIN_VOLUME_FIELD_NUMBER = 9;
  private com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate mainVolume_;
  /**
   *
   *
   * <pre>
   * Optional. Configuration related to the main volume provisioned for each
   * control plane replica.
   * The main volume is in charge of storing all of the cluster's etcd state.
   * Volumes will be provisioned in the availability zone associated
   * with the corresponding subnet.
   * When unspecified, it defaults to 8 GiB with the GP2 volume type.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AwsVolumeTemplate main_volume = 9 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return Whether the mainVolume field is set.
   */
  @java.lang.Override
  public boolean hasMainVolume() {
    return mainVolume_ != null;
  }
  /**
   *
   *
   * <pre>
   * Optional. Configuration related to the main volume provisioned for each
   * control plane replica.
   * The main volume is in charge of storing all of the cluster's etcd state.
   * Volumes will be provisioned in the availability zone associated
   * with the corresponding subnet.
   * When unspecified, it defaults to 8 GiB with the GP2 volume type.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AwsVolumeTemplate main_volume = 9 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return The mainVolume.
   */
  @java.lang.Override
  public com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate getMainVolume() {
    return mainVolume_ == null
        ? com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate.getDefaultInstance()
        : mainVolume_;
  }
  /**
   *
   *
   * <pre>
   * Optional. Configuration related to the main volume provisioned for each
   * control plane replica.
   * The main volume is in charge of storing all of the cluster's etcd state.
   * Volumes will be provisioned in the availability zone associated
   * with the corresponding subnet.
   * When unspecified, it defaults to 8 GiB with the GP2 volume type.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AwsVolumeTemplate main_volume = 9 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.gkemulticloud.v1.AwsVolumeTemplateOrBuilder getMainVolumeOrBuilder() {
    return mainVolume_ == null
        ? com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate.getDefaultInstance()
        : mainVolume_;
  }

  public static final int DATABASE_ENCRYPTION_FIELD_NUMBER = 10;
  private com.google.cloud.gkemulticloud.v1.AwsDatabaseEncryption databaseEncryption_;
  /**
   *
   *
   * <pre>
   * Required. The ARN of the AWS KMS key used to encrypt cluster secrets.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AwsDatabaseEncryption database_encryption = 10 [(.google.api.field_behavior) = REQUIRED];
   * </code>
   *
   * @return Whether the databaseEncryption field is set.
   */
  @java.lang.Override
  public boolean hasDatabaseEncryption() {
    return databaseEncryption_ != null;
  }
  /**
   *
   *
   * <pre>
   * Required. The ARN of the AWS KMS key used to encrypt cluster secrets.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AwsDatabaseEncryption database_encryption = 10 [(.google.api.field_behavior) = REQUIRED];
   * </code>
   *
   * @return The databaseEncryption.
   */
  @java.lang.Override
  public com.google.cloud.gkemulticloud.v1.AwsDatabaseEncryption getDatabaseEncryption() {
    return databaseEncryption_ == null
        ? com.google.cloud.gkemulticloud.v1.AwsDatabaseEncryption.getDefaultInstance()
        : databaseEncryption_;
  }
  /**
   *
   *
   * <pre>
   * Required. The ARN of the AWS KMS key used to encrypt cluster secrets.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AwsDatabaseEncryption database_encryption = 10 [(.google.api.field_behavior) = REQUIRED];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.gkemulticloud.v1.AwsDatabaseEncryptionOrBuilder
      getDatabaseEncryptionOrBuilder() {
    return databaseEncryption_ == null
        ? com.google.cloud.gkemulticloud.v1.AwsDatabaseEncryption.getDefaultInstance()
        : databaseEncryption_;
  }

  public static final int TAGS_FIELD_NUMBER = 11;

  private static final class TagsDefaultEntryHolder {
    static final com.google.protobuf.MapEntry<java.lang.String, java.lang.String> defaultEntry =
        com.google.protobuf.MapEntry.<java.lang.String, java.lang.String>newDefaultInstance(
            com.google.cloud.gkemulticloud.v1.AwsResourcesProto
                .internal_static_google_cloud_gkemulticloud_v1_AwsControlPlane_TagsEntry_descriptor,
            com.google.protobuf.WireFormat.FieldType.STRING,
            "",
            com.google.protobuf.WireFormat.FieldType.STRING,
            "");
  }

  @SuppressWarnings("serial")
  private com.google.protobuf.MapField<java.lang.String, java.lang.String> tags_;

  private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetTags() {
    if (tags_ == null) {
      return com.google.protobuf.MapField.emptyMapField(TagsDefaultEntryHolder.defaultEntry);
    }
    return tags_;
  }

  public int getTagsCount() {
    return internalGetTags().getMap().size();
  }
  /**
   *
   *
   * <pre>
   * Optional. A set of AWS resource tags to propagate to all underlying managed
   * AWS resources.
   * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
   * (.+-=_:&#64;/). Keys can be up to 127 Unicode characters. Values can be up to
   * 255 Unicode characters.
   * </pre>
   *
   * <code>map&lt;string, string&gt; tags = 11 [(.google.api.field_behavior) = OPTIONAL];</code>
   */
  @java.lang.Override
  public boolean containsTags(java.lang.String key) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    return internalGetTags().getMap().containsKey(key);
  }
  /** Use {@link #getTagsMap()} instead. */
  @java.lang.Override
  @java.lang.Deprecated
  public java.util.Map<java.lang.String, java.lang.String> getTags() {
    return getTagsMap();
  }
  /**
   *
   *
   * <pre>
   * Optional. A set of AWS resource tags to propagate to all underlying managed
   * AWS resources.
   * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
   * (.+-=_:&#64;/). Keys can be up to 127 Unicode characters. Values can be up to
   * 255 Unicode characters.
   * </pre>
   *
   * <code>map&lt;string, string&gt; tags = 11 [(.google.api.field_behavior) = OPTIONAL];</code>
   */
  @java.lang.Override
  public java.util.Map<java.lang.String, java.lang.String> getTagsMap() {
    return internalGetTags().getMap();
  }
  /**
   *
   *
   * <pre>
   * Optional. A set of AWS resource tags to propagate to all underlying managed
   * AWS resources.
   * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
   * (.+-=_:&#64;/). Keys can be up to 127 Unicode characters. Values can be up to
   * 255 Unicode characters.
   * </pre>
   *
   * <code>map&lt;string, string&gt; tags = 11 [(.google.api.field_behavior) = OPTIONAL];</code>
   */
  @java.lang.Override
  public /* nullable */ java.lang.String getTagsOrDefault(
      java.lang.String key,
      /* nullable */
      java.lang.String defaultValue) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    java.util.Map<java.lang.String, java.lang.String> map = internalGetTags().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
  /**
   *
   *
   * <pre>
   * Optional. A set of AWS resource tags to propagate to all underlying managed
   * AWS resources.
   * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
   * (.+-=_:&#64;/). Keys can be up to 127 Unicode characters. Values can be up to
   * 255 Unicode characters.
   * </pre>
   *
   * <code>map&lt;string, string&gt; tags = 11 [(.google.api.field_behavior) = OPTIONAL];</code>
   */
  @java.lang.Override
  public java.lang.String getTagsOrThrow(java.lang.String key) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    java.util.Map<java.lang.String, java.lang.String> map = internalGetTags().getMap();
    if (!map.containsKey(key)) {
      throw new java.lang.IllegalArgumentException();
    }
    return map.get(key);
  }

  public static final int AWS_SERVICES_AUTHENTICATION_FIELD_NUMBER = 12;
  private com.google.cloud.gkemulticloud.v1.AwsServicesAuthentication awsServicesAuthentication_;
  /**
   *
   *
   * <pre>
   * Required. Authentication configuration for management of AWS resources.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AwsServicesAuthentication aws_services_authentication = 12 [(.google.api.field_behavior) = REQUIRED];
   * </code>
   *
   * @return Whether the awsServicesAuthentication field is set.
   */
  @java.lang.Override
  public boolean hasAwsServicesAuthentication() {
    return awsServicesAuthentication_ != null;
  }
  /**
   *
   *
   * <pre>
   * Required. Authentication configuration for management of AWS resources.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AwsServicesAuthentication aws_services_authentication = 12 [(.google.api.field_behavior) = REQUIRED];
   * </code>
   *
   * @return The awsServicesAuthentication.
   */
  @java.lang.Override
  public com.google.cloud.gkemulticloud.v1.AwsServicesAuthentication
      getAwsServicesAuthentication() {
    return awsServicesAuthentication_ == null
        ? com.google.cloud.gkemulticloud.v1.AwsServicesAuthentication.getDefaultInstance()
        : awsServicesAuthentication_;
  }
  /**
   *
   *
   * <pre>
   * Required. Authentication configuration for management of AWS resources.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AwsServicesAuthentication aws_services_authentication = 12 [(.google.api.field_behavior) = REQUIRED];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.gkemulticloud.v1.AwsServicesAuthenticationOrBuilder
      getAwsServicesAuthenticationOrBuilder() {
    return awsServicesAuthentication_ == null
        ? com.google.cloud.gkemulticloud.v1.AwsServicesAuthentication.getDefaultInstance()
        : awsServicesAuthentication_;
  }

  public static final int PROXY_CONFIG_FIELD_NUMBER = 16;
  private com.google.cloud.gkemulticloud.v1.AwsProxyConfig proxyConfig_;
  /**
   *
   *
   * <pre>
   * Optional. Proxy configuration for outbound HTTP(S) traffic.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AwsProxyConfig proxy_config = 16 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return Whether the proxyConfig field is set.
   */
  @java.lang.Override
  public boolean hasProxyConfig() {
    return proxyConfig_ != null;
  }
  /**
   *
   *
   * <pre>
   * Optional. Proxy configuration for outbound HTTP(S) traffic.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AwsProxyConfig proxy_config = 16 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return The proxyConfig.
   */
  @java.lang.Override
  public com.google.cloud.gkemulticloud.v1.AwsProxyConfig getProxyConfig() {
    return proxyConfig_ == null
        ? com.google.cloud.gkemulticloud.v1.AwsProxyConfig.getDefaultInstance()
        : proxyConfig_;
  }
  /**
   *
   *
   * <pre>
   * Optional. Proxy configuration for outbound HTTP(S) traffic.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AwsProxyConfig proxy_config = 16 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.gkemulticloud.v1.AwsProxyConfigOrBuilder getProxyConfigOrBuilder() {
    return proxyConfig_ == null
        ? com.google.cloud.gkemulticloud.v1.AwsProxyConfig.getDefaultInstance()
        : proxyConfig_;
  }

  public static final int CONFIG_ENCRYPTION_FIELD_NUMBER = 17;
  private com.google.cloud.gkemulticloud.v1.AwsConfigEncryption configEncryption_;
  /**
   *
   *
   * <pre>
   * Required. Config encryption for user data.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AwsConfigEncryption config_encryption = 17 [(.google.api.field_behavior) = REQUIRED];
   * </code>
   *
   * @return Whether the configEncryption field is set.
   */
  @java.lang.Override
  public boolean hasConfigEncryption() {
    return configEncryption_ != null;
  }
  /**
   *
   *
   * <pre>
   * Required. Config encryption for user data.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AwsConfigEncryption config_encryption = 17 [(.google.api.field_behavior) = REQUIRED];
   * </code>
   *
   * @return The configEncryption.
   */
  @java.lang.Override
  public com.google.cloud.gkemulticloud.v1.AwsConfigEncryption getConfigEncryption() {
    return configEncryption_ == null
        ? com.google.cloud.gkemulticloud.v1.AwsConfigEncryption.getDefaultInstance()
        : configEncryption_;
  }
  /**
   *
   *
   * <pre>
   * Required. Config encryption for user data.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AwsConfigEncryption config_encryption = 17 [(.google.api.field_behavior) = REQUIRED];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.gkemulticloud.v1.AwsConfigEncryptionOrBuilder
      getConfigEncryptionOrBuilder() {
    return configEncryption_ == null
        ? com.google.cloud.gkemulticloud.v1.AwsConfigEncryption.getDefaultInstance()
        : configEncryption_;
  }

  public static final int INSTANCE_PLACEMENT_FIELD_NUMBER = 18;
  private com.google.cloud.gkemulticloud.v1.AwsInstancePlacement instancePlacement_;
  /**
   *
   *
   * <pre>
   * Optional. The placement to use on control plane instances.
   * When unspecified, the VPC's default tenancy will be used.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 18 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return Whether the instancePlacement field is set.
   */
  @java.lang.Override
  public boolean hasInstancePlacement() {
    return instancePlacement_ != null;
  }
  /**
   *
   *
   * <pre>
   * Optional. The placement to use on control plane instances.
   * When unspecified, the VPC's default tenancy will be used.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 18 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return The instancePlacement.
   */
  @java.lang.Override
  public com.google.cloud.gkemulticloud.v1.AwsInstancePlacement getInstancePlacement() {
    return instancePlacement_ == null
        ? com.google.cloud.gkemulticloud.v1.AwsInstancePlacement.getDefaultInstance()
        : instancePlacement_;
  }
  /**
   *
   *
   * <pre>
   * Optional. The placement to use on control plane instances.
   * When unspecified, the VPC's default tenancy will be used.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 18 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.gkemulticloud.v1.AwsInstancePlacementOrBuilder
      getInstancePlacementOrBuilder() {
    return instancePlacement_ == null
        ? com.google.cloud.gkemulticloud.v1.AwsInstancePlacement.getDefaultInstance()
        : instancePlacement_;
  }

  private byte memoizedIsInitialized = -1;

  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceType_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceType_);
    }
    for (int i = 0; i < subnetIds_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, subnetIds_.getRaw(i));
    }
    for (int i = 0; i < securityGroupIds_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, securityGroupIds_.getRaw(i));
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iamInstanceProfile_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, iamInstanceProfile_);
    }
    if (rootVolume_ != null) {
      output.writeMessage(8, getRootVolume());
    }
    if (mainVolume_ != null) {
      output.writeMessage(9, getMainVolume());
    }
    if (databaseEncryption_ != null) {
      output.writeMessage(10, getDatabaseEncryption());
    }
    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
        output, internalGetTags(), TagsDefaultEntryHolder.defaultEntry, 11);
    if (awsServicesAuthentication_ != null) {
      output.writeMessage(12, getAwsServicesAuthentication());
    }
    if (sshConfig_ != null) {
      output.writeMessage(14, getSshConfig());
    }
    if (proxyConfig_ != null) {
      output.writeMessage(16, getProxyConfig());
    }
    if (configEncryption_ != null) {
      output.writeMessage(17, getConfigEncryption());
    }
    if (instancePlacement_ != null) {
      output.writeMessage(18, getInstancePlacement());
    }
    getUnknownFields().writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceType_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceType_);
    }
    {
      int dataSize = 0;
      for (int i = 0; i < subnetIds_.size(); i++) {
        dataSize += computeStringSizeNoTag(subnetIds_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getSubnetIdsList().size();
    }
    {
      int dataSize = 0;
      for (int i = 0; i < securityGroupIds_.size(); i++) {
        dataSize += computeStringSizeNoTag(securityGroupIds_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getSecurityGroupIdsList().size();
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iamInstanceProfile_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, iamInstanceProfile_);
    }
    if (rootVolume_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getRootVolume());
    }
    if (mainVolume_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getMainVolume());
    }
    if (databaseEncryption_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getDatabaseEncryption());
    }
    for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
        internalGetTags().getMap().entrySet()) {
      com.google.protobuf.MapEntry<java.lang.String, java.lang.String> tags__ =
          TagsDefaultEntryHolder.defaultEntry
              .newBuilderForType()
              .setKey(entry.getKey())
              .setValue(entry.getValue())
              .build();
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, tags__);
    }
    if (awsServicesAuthentication_ != null) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              12, getAwsServicesAuthentication());
    }
    if (sshConfig_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getSshConfig());
    }
    if (proxyConfig_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getProxyConfig());
    }
    if (configEncryption_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getConfigEncryption());
    }
    if (instancePlacement_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getInstancePlacement());
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.cloud.gkemulticloud.v1.AwsControlPlane)) {
      return super.equals(obj);
    }
    com.google.cloud.gkemulticloud.v1.AwsControlPlane other =
        (com.google.cloud.gkemulticloud.v1.AwsControlPlane) obj;

    if (!getVersion().equals(other.getVersion())) return false;
    if (!getInstanceType().equals(other.getInstanceType())) return false;
    if (hasSshConfig() != other.hasSshConfig()) return false;
    if (hasSshConfig()) {
      if (!getSshConfig().equals(other.getSshConfig())) return false;
    }
    if (!getSubnetIdsList().equals(other.getSubnetIdsList())) return false;
    if (!getSecurityGroupIdsList().equals(other.getSecurityGroupIdsList())) return false;
    if (!getIamInstanceProfile().equals(other.getIamInstanceProfile())) return false;
    if (hasRootVolume() != other.hasRootVolume()) return false;
    if (hasRootVolume()) {
      if (!getRootVolume().equals(other.getRootVolume())) return false;
    }
    if (hasMainVolume() != other.hasMainVolume()) return false;
    if (hasMainVolume()) {
      if (!getMainVolume().equals(other.getMainVolume())) return false;
    }
    if (hasDatabaseEncryption() != other.hasDatabaseEncryption()) return false;
    if (hasDatabaseEncryption()) {
      if (!getDatabaseEncryption().equals(other.getDatabaseEncryption())) return false;
    }
    if (!internalGetTags().equals(other.internalGetTags())) return false;
    if (hasAwsServicesAuthentication() != other.hasAwsServicesAuthentication()) return false;
    if (hasAwsServicesAuthentication()) {
      if (!getAwsServicesAuthentication().equals(other.getAwsServicesAuthentication()))
        return false;
    }
    if (hasProxyConfig() != other.hasProxyConfig()) return false;
    if (hasProxyConfig()) {
      if (!getProxyConfig().equals(other.getProxyConfig())) return false;
    }
    if (hasConfigEncryption() != other.hasConfigEncryption()) return false;
    if (hasConfigEncryption()) {
      if (!getConfigEncryption().equals(other.getConfigEncryption())) return false;
    }
    if (hasInstancePlacement() != other.hasInstancePlacement()) return false;
    if (hasInstancePlacement()) {
      if (!getInstancePlacement().equals(other.getInstancePlacement())) return false;
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + VERSION_FIELD_NUMBER;
    hash = (53 * hash) + getVersion().hashCode();
    hash = (37 * hash) + INSTANCE_TYPE_FIELD_NUMBER;
    hash = (53 * hash) + getInstanceType().hashCode();
    if (hasSshConfig()) {
      hash = (37 * hash) + SSH_CONFIG_FIELD_NUMBER;
      hash = (53 * hash) + getSshConfig().hashCode();
    }
    if (getSubnetIdsCount() > 0) {
      hash = (37 * hash) + SUBNET_IDS_FIELD_NUMBER;
      hash = (53 * hash) + getSubnetIdsList().hashCode();
    }
    if (getSecurityGroupIdsCount() > 0) {
      hash = (37 * hash) + SECURITY_GROUP_IDS_FIELD_NUMBER;
      hash = (53 * hash) + getSecurityGroupIdsList().hashCode();
    }
    hash = (37 * hash) + IAM_INSTANCE_PROFILE_FIELD_NUMBER;
    hash = (53 * hash) + getIamInstanceProfile().hashCode();
    if (hasRootVolume()) {
      hash = (37 * hash) + ROOT_VOLUME_FIELD_NUMBER;
      hash = (53 * hash) + getRootVolume().hashCode();
    }
    if (hasMainVolume()) {
      hash = (37 * hash) + MAIN_VOLUME_FIELD_NUMBER;
      hash = (53 * hash) + getMainVolume().hashCode();
    }
    if (hasDatabaseEncryption()) {
      hash = (37 * hash) + DATABASE_ENCRYPTION_FIELD_NUMBER;
      hash = (53 * hash) + getDatabaseEncryption().hashCode();
    }
    if (!internalGetTags().getMap().isEmpty()) {
      hash = (37 * hash) + TAGS_FIELD_NUMBER;
      hash = (53 * hash) + internalGetTags().hashCode();
    }
    if (hasAwsServicesAuthentication()) {
      hash = (37 * hash) + AWS_SERVICES_AUTHENTICATION_FIELD_NUMBER;
      hash = (53 * hash) + getAwsServicesAuthentication().hashCode();
    }
    if (hasProxyConfig()) {
      hash = (37 * hash) + PROXY_CONFIG_FIELD_NUMBER;
      hash = (53 * hash) + getProxyConfig().hashCode();
    }
    if (hasConfigEncryption()) {
      hash = (37 * hash) + CONFIG_ENCRYPTION_FIELD_NUMBER;
      hash = (53 * hash) + getConfigEncryption().hashCode();
    }
    if (hasInstancePlacement()) {
      hash = (37 * hash) + INSTANCE_PLACEMENT_FIELD_NUMBER;
      hash = (53 * hash) + getInstancePlacement().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.cloud.gkemulticloud.v1.AwsControlPlane parseFrom(
      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.gkemulticloud.v1.AwsControlPlane parseFrom(
      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.gkemulticloud.v1.AwsControlPlane parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.gkemulticloud.v1.AwsControlPlane parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.gkemulticloud.v1.AwsControlPlane parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.gkemulticloud.v1.AwsControlPlane parseFrom(
      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.gkemulticloud.v1.AwsControlPlane parseFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.gkemulticloud.v1.AwsControlPlane parseFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.cloud.gkemulticloud.v1.AwsControlPlane parseDelimitedFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.cloud.gkemulticloud.v1.AwsControlPlane parseDelimitedFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.cloud.gkemulticloud.v1.AwsControlPlane parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.gkemulticloud.v1.AwsControlPlane parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() {
    return newBuilder();
  }

  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }

  public static Builder newBuilder(com.google.cloud.gkemulticloud.v1.AwsControlPlane prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }

  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   *
   *
   * <pre>
   * ControlPlane defines common parameters between control plane nodes.
   * </pre>
   *
   * Protobuf type {@code google.cloud.gkemulticloud.v1.AwsControlPlane}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.gkemulticloud.v1.AwsControlPlane)
      com.google.cloud.gkemulticloud.v1.AwsControlPlaneOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.gkemulticloud.v1.AwsResourcesProto
          .internal_static_google_cloud_gkemulticloud_v1_AwsControlPlane_descriptor;
    }

    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMapField(int number) {
      switch (number) {
        case 11:
          return internalGetTags();
        default:
          throw new RuntimeException("Invalid map field number: " + number);
      }
    }

    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
      switch (number) {
        case 11:
          return internalGetMutableTags();
        default:
          throw new RuntimeException("Invalid map field number: " + number);
      }
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.gkemulticloud.v1.AwsResourcesProto
          .internal_static_google_cloud_gkemulticloud_v1_AwsControlPlane_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.gkemulticloud.v1.AwsControlPlane.class,
              com.google.cloud.gkemulticloud.v1.AwsControlPlane.Builder.class);
    }

    // Construct using com.google.cloud.gkemulticloud.v1.AwsControlPlane.newBuilder()
    private Builder() {}

    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
    }

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      version_ = "";
      instanceType_ = "";
      sshConfig_ = null;
      if (sshConfigBuilder_ != null) {
        sshConfigBuilder_.dispose();
        sshConfigBuilder_ = null;
      }
      subnetIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000008);
      securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000010);
      iamInstanceProfile_ = "";
      rootVolume_ = null;
      if (rootVolumeBuilder_ != null) {
        rootVolumeBuilder_.dispose();
        rootVolumeBuilder_ = null;
      }
      mainVolume_ = null;
      if (mainVolumeBuilder_ != null) {
        mainVolumeBuilder_.dispose();
        mainVolumeBuilder_ = null;
      }
      databaseEncryption_ = null;
      if (databaseEncryptionBuilder_ != null) {
        databaseEncryptionBuilder_.dispose();
        databaseEncryptionBuilder_ = null;
      }
      internalGetMutableTags().clear();
      awsServicesAuthentication_ = null;
      if (awsServicesAuthenticationBuilder_ != null) {
        awsServicesAuthenticationBuilder_.dispose();
        awsServicesAuthenticationBuilder_ = null;
      }
      proxyConfig_ = null;
      if (proxyConfigBuilder_ != null) {
        proxyConfigBuilder_.dispose();
        proxyConfigBuilder_ = null;
      }
      configEncryption_ = null;
      if (configEncryptionBuilder_ != null) {
        configEncryptionBuilder_.dispose();
        configEncryptionBuilder_ = null;
      }
      instancePlacement_ = null;
      if (instancePlacementBuilder_ != null) {
        instancePlacementBuilder_.dispose();
        instancePlacementBuilder_ = null;
      }
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.cloud.gkemulticloud.v1.AwsResourcesProto
          .internal_static_google_cloud_gkemulticloud_v1_AwsControlPlane_descriptor;
    }

    @java.lang.Override
    public com.google.cloud.gkemulticloud.v1.AwsControlPlane getDefaultInstanceForType() {
      return com.google.cloud.gkemulticloud.v1.AwsControlPlane.getDefaultInstance();
    }

    @java.lang.Override
    public com.google.cloud.gkemulticloud.v1.AwsControlPlane build() {
      com.google.cloud.gkemulticloud.v1.AwsControlPlane result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.google.cloud.gkemulticloud.v1.AwsControlPlane buildPartial() {
      com.google.cloud.gkemulticloud.v1.AwsControlPlane result =
          new com.google.cloud.gkemulticloud.v1.AwsControlPlane(this);
      buildPartialRepeatedFields(result);
      if (bitField0_ != 0) {
        buildPartial0(result);
      }
      onBuilt();
      return result;
    }

    private void buildPartialRepeatedFields(
        com.google.cloud.gkemulticloud.v1.AwsControlPlane result) {
      if (((bitField0_ & 0x00000008) != 0)) {
        subnetIds_ = subnetIds_.getUnmodifiableView();
        bitField0_ = (bitField0_ & ~0x00000008);
      }
      result.subnetIds_ = subnetIds_;
      if (((bitField0_ & 0x00000010) != 0)) {
        securityGroupIds_ = securityGroupIds_.getUnmodifiableView();
        bitField0_ = (bitField0_ & ~0x00000010);
      }
      result.securityGroupIds_ = securityGroupIds_;
    }

    private void buildPartial0(com.google.cloud.gkemulticloud.v1.AwsControlPlane result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.version_ = version_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.instanceType_ = instanceType_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.sshConfig_ = sshConfigBuilder_ == null ? sshConfig_ : sshConfigBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.iamInstanceProfile_ = iamInstanceProfile_;
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.rootVolume_ = rootVolumeBuilder_ == null ? rootVolume_ : rootVolumeBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000080) != 0)) {
        result.mainVolume_ = mainVolumeBuilder_ == null ? mainVolume_ : mainVolumeBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000100) != 0)) {
        result.databaseEncryption_ =
            databaseEncryptionBuilder_ == null
                ? databaseEncryption_
                : databaseEncryptionBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000200) != 0)) {
        result.tags_ = internalGetTags();
        result.tags_.makeImmutable();
      }
      if (((from_bitField0_ & 0x00000400) != 0)) {
        result.awsServicesAuthentication_ =
            awsServicesAuthenticationBuilder_ == null
                ? awsServicesAuthentication_
                : awsServicesAuthenticationBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000800) != 0)) {
        result.proxyConfig_ =
            proxyConfigBuilder_ == null ? proxyConfig_ : proxyConfigBuilder_.build();
      }
      if (((from_bitField0_ & 0x00001000) != 0)) {
        result.configEncryption_ =
            configEncryptionBuilder_ == null ? configEncryption_ : configEncryptionBuilder_.build();
      }
      if (((from_bitField0_ & 0x00002000) != 0)) {
        result.instancePlacement_ =
            instancePlacementBuilder_ == null
                ? instancePlacement_
                : instancePlacementBuilder_.build();
      }
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }

    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.setField(field, value);
    }

    @java.lang.Override
    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }

    @java.lang.Override
    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }

    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }

    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }

    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.google.cloud.gkemulticloud.v1.AwsControlPlane) {
        return mergeFrom((com.google.cloud.gkemulticloud.v1.AwsControlPlane) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.cloud.gkemulticloud.v1.AwsControlPlane other) {
      if (other == com.google.cloud.gkemulticloud.v1.AwsControlPlane.getDefaultInstance())
        return this;
      if (!other.getVersion().isEmpty()) {
        version_ = other.version_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (!other.getInstanceType().isEmpty()) {
        instanceType_ = other.instanceType_;
        bitField0_ |= 0x00000002;
        onChanged();
      }
      if (other.hasSshConfig()) {
        mergeSshConfig(other.getSshConfig());
      }
      if (!other.subnetIds_.isEmpty()) {
        if (subnetIds_.isEmpty()) {
          subnetIds_ = other.subnetIds_;
          bitField0_ = (bitField0_ & ~0x00000008);
        } else {
          ensureSubnetIdsIsMutable();
          subnetIds_.addAll(other.subnetIds_);
        }
        onChanged();
      }
      if (!other.securityGroupIds_.isEmpty()) {
        if (securityGroupIds_.isEmpty()) {
          securityGroupIds_ = other.securityGroupIds_;
          bitField0_ = (bitField0_ & ~0x00000010);
        } else {
          ensureSecurityGroupIdsIsMutable();
          securityGroupIds_.addAll(other.securityGroupIds_);
        }
        onChanged();
      }
      if (!other.getIamInstanceProfile().isEmpty()) {
        iamInstanceProfile_ = other.iamInstanceProfile_;
        bitField0_ |= 0x00000020;
        onChanged();
      }
      if (other.hasRootVolume()) {
        mergeRootVolume(other.getRootVolume());
      }
      if (other.hasMainVolume()) {
        mergeMainVolume(other.getMainVolume());
      }
      if (other.hasDatabaseEncryption()) {
        mergeDatabaseEncryption(other.getDatabaseEncryption());
      }
      internalGetMutableTags().mergeFrom(other.internalGetTags());
      bitField0_ |= 0x00000200;
      if (other.hasAwsServicesAuthentication()) {
        mergeAwsServicesAuthentication(other.getAwsServicesAuthentication());
      }
      if (other.hasProxyConfig()) {
        mergeProxyConfig(other.getProxyConfig());
      }
      if (other.hasConfigEncryption()) {
        mergeConfigEncryption(other.getConfigEncryption());
      }
      if (other.hasInstancePlacement()) {
        mergeInstancePlacement(other.getInstancePlacement());
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10:
              {
                version_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
            case 18:
              {
                instanceType_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000002;
                break;
              } // case 18
            case 34:
              {
                java.lang.String s = input.readStringRequireUtf8();
                ensureSubnetIdsIsMutable();
                subnetIds_.add(s);
                break;
              } // case 34
            case 42:
              {
                java.lang.String s = input.readStringRequireUtf8();
                ensureSecurityGroupIdsIsMutable();
                securityGroupIds_.add(s);
                break;
              } // case 42
            case 58:
              {
                iamInstanceProfile_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000020;
                break;
              } // case 58
            case 66:
              {
                input.readMessage(getRootVolumeFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000040;
                break;
              } // case 66
            case 74:
              {
                input.readMessage(getMainVolumeFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000080;
                break;
              } // case 74
            case 82:
              {
                input.readMessage(
                    getDatabaseEncryptionFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000100;
                break;
              } // case 82
            case 90:
              {
                com.google.protobuf.MapEntry<java.lang.String, java.lang.String> tags__ =
                    input.readMessage(
                        TagsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
                internalGetMutableTags().getMutableMap().put(tags__.getKey(), tags__.getValue());
                bitField0_ |= 0x00000200;
                break;
              } // case 90
            case 98:
              {
                input.readMessage(
                    getAwsServicesAuthenticationFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000400;
                break;
              } // case 98
            case 114:
              {
                input.readMessage(getSshConfigFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000004;
                break;
              } // case 114
            case 130:
              {
                input.readMessage(getProxyConfigFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000800;
                break;
              } // case 130
            case 138:
              {
                input.readMessage(
                    getConfigEncryptionFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00001000;
                break;
              } // case 138
            case 146:
              {
                input.readMessage(
                    getInstancePlacementFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00002000;
                break;
              } // case 146
            default:
              {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }

    private int bitField0_;

    private java.lang.Object version_ = "";
    /**
     *
     *
     * <pre>
     * Required. The Kubernetes version to run on control plane replicas
     * (e.g. `1.19.10-gke.1000`).
     * You can list all supported versions on a given Google Cloud region by
     * calling
     * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig].
     * </pre>
     *
     * <code>string version = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return The version.
     */
    public java.lang.String getVersion() {
      java.lang.Object ref = version_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        version_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. The Kubernetes version to run on control plane replicas
     * (e.g. `1.19.10-gke.1000`).
     * You can list all supported versions on a given Google Cloud region by
     * calling
     * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig].
     * </pre>
     *
     * <code>string version = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return The bytes for version.
     */
    public com.google.protobuf.ByteString getVersionBytes() {
      java.lang.Object ref = version_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        version_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. The Kubernetes version to run on control plane replicas
     * (e.g. `1.19.10-gke.1000`).
     * You can list all supported versions on a given Google Cloud region by
     * calling
     * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig].
     * </pre>
     *
     * <code>string version = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @param value The version to set.
     * @return This builder for chaining.
     */
    public Builder setVersion(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      version_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. The Kubernetes version to run on control plane replicas
     * (e.g. `1.19.10-gke.1000`).
     * You can list all supported versions on a given Google Cloud region by
     * calling
     * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig].
     * </pre>
     *
     * <code>string version = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearVersion() {
      version_ = getDefaultInstance().getVersion();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. The Kubernetes version to run on control plane replicas
     * (e.g. `1.19.10-gke.1000`).
     * You can list all supported versions on a given Google Cloud region by
     * calling
     * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig].
     * </pre>
     *
     * <code>string version = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @param value The bytes for version to set.
     * @return This builder for chaining.
     */
    public Builder setVersionBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      version_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    private java.lang.Object instanceType_ = "";
    /**
     *
     *
     * <pre>
     * Optional. The AWS instance type.
     * When unspecified, it uses a default based on the cluster's version.
     * </pre>
     *
     * <code>string instance_type = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The instanceType.
     */
    public java.lang.String getInstanceType() {
      java.lang.Object ref = instanceType_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        instanceType_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The AWS instance type.
     * When unspecified, it uses a default based on the cluster's version.
     * </pre>
     *
     * <code>string instance_type = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The bytes for instanceType.
     */
    public com.google.protobuf.ByteString getInstanceTypeBytes() {
      java.lang.Object ref = instanceType_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        instanceType_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The AWS instance type.
     * When unspecified, it uses a default based on the cluster's version.
     * </pre>
     *
     * <code>string instance_type = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param value The instanceType to set.
     * @return This builder for chaining.
     */
    public Builder setInstanceType(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      instanceType_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The AWS instance type.
     * When unspecified, it uses a default based on the cluster's version.
     * </pre>
     *
     * <code>string instance_type = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearInstanceType() {
      instanceType_ = getDefaultInstance().getInstanceType();
      bitField0_ = (bitField0_ & ~0x00000002);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The AWS instance type.
     * When unspecified, it uses a default based on the cluster's version.
     * </pre>
     *
     * <code>string instance_type = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param value The bytes for instanceType to set.
     * @return This builder for chaining.
     */
    public Builder setInstanceTypeBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      instanceType_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }

    private com.google.cloud.gkemulticloud.v1.AwsSshConfig sshConfig_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.gkemulticloud.v1.AwsSshConfig,
            com.google.cloud.gkemulticloud.v1.AwsSshConfig.Builder,
            com.google.cloud.gkemulticloud.v1.AwsSshConfigOrBuilder>
        sshConfigBuilder_;
    /**
     *
     *
     * <pre>
     * Optional. SSH configuration for how to access the underlying control plane
     * machines.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 14 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return Whether the sshConfig field is set.
     */
    public boolean hasSshConfig() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     *
     *
     * <pre>
     * Optional. SSH configuration for how to access the underlying control plane
     * machines.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 14 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The sshConfig.
     */
    public com.google.cloud.gkemulticloud.v1.AwsSshConfig getSshConfig() {
      if (sshConfigBuilder_ == null) {
        return sshConfig_ == null
            ? com.google.cloud.gkemulticloud.v1.AwsSshConfig.getDefaultInstance()
            : sshConfig_;
      } else {
        return sshConfigBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. SSH configuration for how to access the underlying control plane
     * machines.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 14 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setSshConfig(com.google.cloud.gkemulticloud.v1.AwsSshConfig value) {
      if (sshConfigBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        sshConfig_ = value;
      } else {
        sshConfigBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. SSH configuration for how to access the underlying control plane
     * machines.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 14 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setSshConfig(
        com.google.cloud.gkemulticloud.v1.AwsSshConfig.Builder builderForValue) {
      if (sshConfigBuilder_ == null) {
        sshConfig_ = builderForValue.build();
      } else {
        sshConfigBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. SSH configuration for how to access the underlying control plane
     * machines.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 14 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder mergeSshConfig(com.google.cloud.gkemulticloud.v1.AwsSshConfig value) {
      if (sshConfigBuilder_ == null) {
        if (((bitField0_ & 0x00000004) != 0)
            && sshConfig_ != null
            && sshConfig_ != com.google.cloud.gkemulticloud.v1.AwsSshConfig.getDefaultInstance()) {
          getSshConfigBuilder().mergeFrom(value);
        } else {
          sshConfig_ = value;
        }
      } else {
        sshConfigBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. SSH configuration for how to access the underlying control plane
     * machines.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 14 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder clearSshConfig() {
      bitField0_ = (bitField0_ & ~0x00000004);
      sshConfig_ = null;
      if (sshConfigBuilder_ != null) {
        sshConfigBuilder_.dispose();
        sshConfigBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. SSH configuration for how to access the underlying control plane
     * machines.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 14 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.gkemulticloud.v1.AwsSshConfig.Builder getSshConfigBuilder() {
      bitField0_ |= 0x00000004;
      onChanged();
      return getSshConfigFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Optional. SSH configuration for how to access the underlying control plane
     * machines.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 14 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.gkemulticloud.v1.AwsSshConfigOrBuilder getSshConfigOrBuilder() {
      if (sshConfigBuilder_ != null) {
        return sshConfigBuilder_.getMessageOrBuilder();
      } else {
        return sshConfig_ == null
            ? com.google.cloud.gkemulticloud.v1.AwsSshConfig.getDefaultInstance()
            : sshConfig_;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. SSH configuration for how to access the underlying control plane
     * machines.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 14 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.gkemulticloud.v1.AwsSshConfig,
            com.google.cloud.gkemulticloud.v1.AwsSshConfig.Builder,
            com.google.cloud.gkemulticloud.v1.AwsSshConfigOrBuilder>
        getSshConfigFieldBuilder() {
      if (sshConfigBuilder_ == null) {
        sshConfigBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.gkemulticloud.v1.AwsSshConfig,
                com.google.cloud.gkemulticloud.v1.AwsSshConfig.Builder,
                com.google.cloud.gkemulticloud.v1.AwsSshConfigOrBuilder>(
                getSshConfig(), getParentForChildren(), isClean());
        sshConfig_ = null;
      }
      return sshConfigBuilder_;
    }

    private com.google.protobuf.LazyStringList subnetIds_ =
        com.google.protobuf.LazyStringArrayList.EMPTY;

    private void ensureSubnetIdsIsMutable() {
      if (!((bitField0_ & 0x00000008) != 0)) {
        subnetIds_ = new com.google.protobuf.LazyStringArrayList(subnetIds_);
        bitField0_ |= 0x00000008;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. The list of subnets where control plane replicas will run.
     * A replica will be provisioned on each subnet and up to three values
     * can be provided.
     * Each subnet must be in a different AWS Availability Zone (AZ).
     * </pre>
     *
     * <code>repeated string subnet_ids = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return A list containing the subnetIds.
     */
    public com.google.protobuf.ProtocolStringList getSubnetIdsList() {
      return subnetIds_.getUnmodifiableView();
    }
    /**
     *
     *
     * <pre>
     * Required. The list of subnets where control plane replicas will run.
     * A replica will be provisioned on each subnet and up to three values
     * can be provided.
     * Each subnet must be in a different AWS Availability Zone (AZ).
     * </pre>
     *
     * <code>repeated string subnet_ids = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return The count of subnetIds.
     */
    public int getSubnetIdsCount() {
      return subnetIds_.size();
    }
    /**
     *
     *
     * <pre>
     * Required. The list of subnets where control plane replicas will run.
     * A replica will be provisioned on each subnet and up to three values
     * can be provided.
     * Each subnet must be in a different AWS Availability Zone (AZ).
     * </pre>
     *
     * <code>repeated string subnet_ids = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @param index The index of the element to return.
     * @return The subnetIds at the given index.
     */
    public java.lang.String getSubnetIds(int index) {
      return subnetIds_.get(index);
    }
    /**
     *
     *
     * <pre>
     * Required. The list of subnets where control plane replicas will run.
     * A replica will be provisioned on each subnet and up to three values
     * can be provided.
     * Each subnet must be in a different AWS Availability Zone (AZ).
     * </pre>
     *
     * <code>repeated string subnet_ids = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @param index The index of the value to return.
     * @return The bytes of the subnetIds at the given index.
     */
    public com.google.protobuf.ByteString getSubnetIdsBytes(int index) {
      return subnetIds_.getByteString(index);
    }
    /**
     *
     *
     * <pre>
     * Required. The list of subnets where control plane replicas will run.
     * A replica will be provisioned on each subnet and up to three values
     * can be provided.
     * Each subnet must be in a different AWS Availability Zone (AZ).
     * </pre>
     *
     * <code>repeated string subnet_ids = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @param index The index to set the value at.
     * @param value The subnetIds to set.
     * @return This builder for chaining.
     */
    public Builder setSubnetIds(int index, java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureSubnetIdsIsMutable();
      subnetIds_.set(index, value);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. The list of subnets where control plane replicas will run.
     * A replica will be provisioned on each subnet and up to three values
     * can be provided.
     * Each subnet must be in a different AWS Availability Zone (AZ).
     * </pre>
     *
     * <code>repeated string subnet_ids = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @param value The subnetIds to add.
     * @return This builder for chaining.
     */
    public Builder addSubnetIds(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureSubnetIdsIsMutable();
      subnetIds_.add(value);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. The list of subnets where control plane replicas will run.
     * A replica will be provisioned on each subnet and up to three values
     * can be provided.
     * Each subnet must be in a different AWS Availability Zone (AZ).
     * </pre>
     *
     * <code>repeated string subnet_ids = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @param values The subnetIds to add.
     * @return This builder for chaining.
     */
    public Builder addAllSubnetIds(java.lang.Iterable<java.lang.String> values) {
      ensureSubnetIdsIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subnetIds_);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. The list of subnets where control plane replicas will run.
     * A replica will be provisioned on each subnet and up to three values
     * can be provided.
     * Each subnet must be in a different AWS Availability Zone (AZ).
     * </pre>
     *
     * <code>repeated string subnet_ids = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearSubnetIds() {
      subnetIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000008);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. The list of subnets where control plane replicas will run.
     * A replica will be provisioned on each subnet and up to three values
     * can be provided.
     * Each subnet must be in a different AWS Availability Zone (AZ).
     * </pre>
     *
     * <code>repeated string subnet_ids = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @param value The bytes of the subnetIds to add.
     * @return This builder for chaining.
     */
    public Builder addSubnetIdsBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      ensureSubnetIdsIsMutable();
      subnetIds_.add(value);
      onChanged();
      return this;
    }

    private com.google.protobuf.LazyStringList securityGroupIds_ =
        com.google.protobuf.LazyStringArrayList.EMPTY;

    private void ensureSecurityGroupIdsIsMutable() {
      if (!((bitField0_ & 0x00000010) != 0)) {
        securityGroupIds_ = new com.google.protobuf.LazyStringArrayList(securityGroupIds_);
        bitField0_ |= 0x00000010;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The IDs of additional security groups to add to control plane
     * replicas. The Anthos Multi-Cloud API will automatically create and manage
     * security groups with the minimum rules needed for a functioning cluster.
     * </pre>
     *
     * <code>repeated string security_group_ids = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return A list containing the securityGroupIds.
     */
    public com.google.protobuf.ProtocolStringList getSecurityGroupIdsList() {
      return securityGroupIds_.getUnmodifiableView();
    }
    /**
     *
     *
     * <pre>
     * Optional. The IDs of additional security groups to add to control plane
     * replicas. The Anthos Multi-Cloud API will automatically create and manage
     * security groups with the minimum rules needed for a functioning cluster.
     * </pre>
     *
     * <code>repeated string security_group_ids = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The count of securityGroupIds.
     */
    public int getSecurityGroupIdsCount() {
      return securityGroupIds_.size();
    }
    /**
     *
     *
     * <pre>
     * Optional. The IDs of additional security groups to add to control plane
     * replicas. The Anthos Multi-Cloud API will automatically create and manage
     * security groups with the minimum rules needed for a functioning cluster.
     * </pre>
     *
     * <code>repeated string security_group_ids = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param index The index of the element to return.
     * @return The securityGroupIds at the given index.
     */
    public java.lang.String getSecurityGroupIds(int index) {
      return securityGroupIds_.get(index);
    }
    /**
     *
     *
     * <pre>
     * Optional. The IDs of additional security groups to add to control plane
     * replicas. The Anthos Multi-Cloud API will automatically create and manage
     * security groups with the minimum rules needed for a functioning cluster.
     * </pre>
     *
     * <code>repeated string security_group_ids = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param index The index of the value to return.
     * @return The bytes of the securityGroupIds at the given index.
     */
    public com.google.protobuf.ByteString getSecurityGroupIdsBytes(int index) {
      return securityGroupIds_.getByteString(index);
    }
    /**
     *
     *
     * <pre>
     * Optional. The IDs of additional security groups to add to control plane
     * replicas. The Anthos Multi-Cloud API will automatically create and manage
     * security groups with the minimum rules needed for a functioning cluster.
     * </pre>
     *
     * <code>repeated string security_group_ids = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param index The index to set the value at.
     * @param value The securityGroupIds to set.
     * @return This builder for chaining.
     */
    public Builder setSecurityGroupIds(int index, java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureSecurityGroupIdsIsMutable();
      securityGroupIds_.set(index, value);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The IDs of additional security groups to add to control plane
     * replicas. The Anthos Multi-Cloud API will automatically create and manage
     * security groups with the minimum rules needed for a functioning cluster.
     * </pre>
     *
     * <code>repeated string security_group_ids = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param value The securityGroupIds to add.
     * @return This builder for chaining.
     */
    public Builder addSecurityGroupIds(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureSecurityGroupIdsIsMutable();
      securityGroupIds_.add(value);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The IDs of additional security groups to add to control plane
     * replicas. The Anthos Multi-Cloud API will automatically create and manage
     * security groups with the minimum rules needed for a functioning cluster.
     * </pre>
     *
     * <code>repeated string security_group_ids = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param values The securityGroupIds to add.
     * @return This builder for chaining.
     */
    public Builder addAllSecurityGroupIds(java.lang.Iterable<java.lang.String> values) {
      ensureSecurityGroupIdsIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(values, securityGroupIds_);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The IDs of additional security groups to add to control plane
     * replicas. The Anthos Multi-Cloud API will automatically create and manage
     * security groups with the minimum rules needed for a functioning cluster.
     * </pre>
     *
     * <code>repeated string security_group_ids = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearSecurityGroupIds() {
      securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000010);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The IDs of additional security groups to add to control plane
     * replicas. The Anthos Multi-Cloud API will automatically create and manage
     * security groups with the minimum rules needed for a functioning cluster.
     * </pre>
     *
     * <code>repeated string security_group_ids = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param value The bytes of the securityGroupIds to add.
     * @return This builder for chaining.
     */
    public Builder addSecurityGroupIdsBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      ensureSecurityGroupIdsIsMutable();
      securityGroupIds_.add(value);
      onChanged();
      return this;
    }

    private java.lang.Object iamInstanceProfile_ = "";
    /**
     *
     *
     * <pre>
     * Required. The name or ARN of the AWS IAM instance profile to assign to each
     * control plane replica.
     * </pre>
     *
     * <code>string iam_instance_profile = 7 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return The iamInstanceProfile.
     */
    public java.lang.String getIamInstanceProfile() {
      java.lang.Object ref = iamInstanceProfile_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        iamInstanceProfile_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. The name or ARN of the AWS IAM instance profile to assign to each
     * control plane replica.
     * </pre>
     *
     * <code>string iam_instance_profile = 7 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return The bytes for iamInstanceProfile.
     */
    public com.google.protobuf.ByteString getIamInstanceProfileBytes() {
      java.lang.Object ref = iamInstanceProfile_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        iamInstanceProfile_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. The name or ARN of the AWS IAM instance profile to assign to each
     * control plane replica.
     * </pre>
     *
     * <code>string iam_instance_profile = 7 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @param value The iamInstanceProfile to set.
     * @return This builder for chaining.
     */
    public Builder setIamInstanceProfile(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      iamInstanceProfile_ = value;
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. The name or ARN of the AWS IAM instance profile to assign to each
     * control plane replica.
     * </pre>
     *
     * <code>string iam_instance_profile = 7 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearIamInstanceProfile() {
      iamInstanceProfile_ = getDefaultInstance().getIamInstanceProfile();
      bitField0_ = (bitField0_ & ~0x00000020);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. The name or ARN of the AWS IAM instance profile to assign to each
     * control plane replica.
     * </pre>
     *
     * <code>string iam_instance_profile = 7 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @param value The bytes for iamInstanceProfile to set.
     * @return This builder for chaining.
     */
    public Builder setIamInstanceProfileBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      iamInstanceProfile_ = value;
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }

    private com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate rootVolume_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate,
            com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate.Builder,
            com.google.cloud.gkemulticloud.v1.AwsVolumeTemplateOrBuilder>
        rootVolumeBuilder_;
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to the root volume provisioned for each
     * control plane replica.
     * Volumes will be provisioned in the availability zone associated
     * with the corresponding subnet.
     * When unspecified, it defaults to 32 GiB with the GP2 volume type.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 8 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return Whether the rootVolume field is set.
     */
    public boolean hasRootVolume() {
      return ((bitField0_ & 0x00000040) != 0);
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to the root volume provisioned for each
     * control plane replica.
     * Volumes will be provisioned in the availability zone associated
     * with the corresponding subnet.
     * When unspecified, it defaults to 32 GiB with the GP2 volume type.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 8 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The rootVolume.
     */
    public com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate getRootVolume() {
      if (rootVolumeBuilder_ == null) {
        return rootVolume_ == null
            ? com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate.getDefaultInstance()
            : rootVolume_;
      } else {
        return rootVolumeBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to the root volume provisioned for each
     * control plane replica.
     * Volumes will be provisioned in the availability zone associated
     * with the corresponding subnet.
     * When unspecified, it defaults to 32 GiB with the GP2 volume type.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 8 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setRootVolume(com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate value) {
      if (rootVolumeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        rootVolume_ = value;
      } else {
        rootVolumeBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to the root volume provisioned for each
     * control plane replica.
     * Volumes will be provisioned in the availability zone associated
     * with the corresponding subnet.
     * When unspecified, it defaults to 32 GiB with the GP2 volume type.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 8 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setRootVolume(
        com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate.Builder builderForValue) {
      if (rootVolumeBuilder_ == null) {
        rootVolume_ = builderForValue.build();
      } else {
        rootVolumeBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to the root volume provisioned for each
     * control plane replica.
     * Volumes will be provisioned in the availability zone associated
     * with the corresponding subnet.
     * When unspecified, it defaults to 32 GiB with the GP2 volume type.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 8 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder mergeRootVolume(com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate value) {
      if (rootVolumeBuilder_ == null) {
        if (((bitField0_ & 0x00000040) != 0)
            && rootVolume_ != null
            && rootVolume_
                != com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate.getDefaultInstance()) {
          getRootVolumeBuilder().mergeFrom(value);
        } else {
          rootVolume_ = value;
        }
      } else {
        rootVolumeBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to the root volume provisioned for each
     * control plane replica.
     * Volumes will be provisioned in the availability zone associated
     * with the corresponding subnet.
     * When unspecified, it defaults to 32 GiB with the GP2 volume type.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 8 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder clearRootVolume() {
      bitField0_ = (bitField0_ & ~0x00000040);
      rootVolume_ = null;
      if (rootVolumeBuilder_ != null) {
        rootVolumeBuilder_.dispose();
        rootVolumeBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to the root volume provisioned for each
     * control plane replica.
     * Volumes will be provisioned in the availability zone associated
     * with the corresponding subnet.
     * When unspecified, it defaults to 32 GiB with the GP2 volume type.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 8 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate.Builder getRootVolumeBuilder() {
      bitField0_ |= 0x00000040;
      onChanged();
      return getRootVolumeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to the root volume provisioned for each
     * control plane replica.
     * Volumes will be provisioned in the availability zone associated
     * with the corresponding subnet.
     * When unspecified, it defaults to 32 GiB with the GP2 volume type.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 8 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.gkemulticloud.v1.AwsVolumeTemplateOrBuilder getRootVolumeOrBuilder() {
      if (rootVolumeBuilder_ != null) {
        return rootVolumeBuilder_.getMessageOrBuilder();
      } else {
        return rootVolume_ == null
            ? com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate.getDefaultInstance()
            : rootVolume_;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to the root volume provisioned for each
     * control plane replica.
     * Volumes will be provisioned in the availability zone associated
     * with the corresponding subnet.
     * When unspecified, it defaults to 32 GiB with the GP2 volume type.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 8 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate,
            com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate.Builder,
            com.google.cloud.gkemulticloud.v1.AwsVolumeTemplateOrBuilder>
        getRootVolumeFieldBuilder() {
      if (rootVolumeBuilder_ == null) {
        rootVolumeBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate,
                com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate.Builder,
                com.google.cloud.gkemulticloud.v1.AwsVolumeTemplateOrBuilder>(
                getRootVolume(), getParentForChildren(), isClean());
        rootVolume_ = null;
      }
      return rootVolumeBuilder_;
    }

    private com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate mainVolume_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate,
            com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate.Builder,
            com.google.cloud.gkemulticloud.v1.AwsVolumeTemplateOrBuilder>
        mainVolumeBuilder_;
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to the main volume provisioned for each
     * control plane replica.
     * The main volume is in charge of storing all of the cluster's etcd state.
     * Volumes will be provisioned in the availability zone associated
     * with the corresponding subnet.
     * When unspecified, it defaults to 8 GiB with the GP2 volume type.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsVolumeTemplate main_volume = 9 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return Whether the mainVolume field is set.
     */
    public boolean hasMainVolume() {
      return ((bitField0_ & 0x00000080) != 0);
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to the main volume provisioned for each
     * control plane replica.
     * The main volume is in charge of storing all of the cluster's etcd state.
     * Volumes will be provisioned in the availability zone associated
     * with the corresponding subnet.
     * When unspecified, it defaults to 8 GiB with the GP2 volume type.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsVolumeTemplate main_volume = 9 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The mainVolume.
     */
    public com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate getMainVolume() {
      if (mainVolumeBuilder_ == null) {
        return mainVolume_ == null
            ? com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate.getDefaultInstance()
            : mainVolume_;
      } else {
        return mainVolumeBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to the main volume provisioned for each
     * control plane replica.
     * The main volume is in charge of storing all of the cluster's etcd state.
     * Volumes will be provisioned in the availability zone associated
     * with the corresponding subnet.
     * When unspecified, it defaults to 8 GiB with the GP2 volume type.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsVolumeTemplate main_volume = 9 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setMainVolume(com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate value) {
      if (mainVolumeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        mainVolume_ = value;
      } else {
        mainVolumeBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to the main volume provisioned for each
     * control plane replica.
     * The main volume is in charge of storing all of the cluster's etcd state.
     * Volumes will be provisioned in the availability zone associated
     * with the corresponding subnet.
     * When unspecified, it defaults to 8 GiB with the GP2 volume type.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsVolumeTemplate main_volume = 9 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setMainVolume(
        com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate.Builder builderForValue) {
      if (mainVolumeBuilder_ == null) {
        mainVolume_ = builderForValue.build();
      } else {
        mainVolumeBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to the main volume provisioned for each
     * control plane replica.
     * The main volume is in charge of storing all of the cluster's etcd state.
     * Volumes will be provisioned in the availability zone associated
     * with the corresponding subnet.
     * When unspecified, it defaults to 8 GiB with the GP2 volume type.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsVolumeTemplate main_volume = 9 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder mergeMainVolume(com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate value) {
      if (mainVolumeBuilder_ == null) {
        if (((bitField0_ & 0x00000080) != 0)
            && mainVolume_ != null
            && mainVolume_
                != com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate.getDefaultInstance()) {
          getMainVolumeBuilder().mergeFrom(value);
        } else {
          mainVolume_ = value;
        }
      } else {
        mainVolumeBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to the main volume provisioned for each
     * control plane replica.
     * The main volume is in charge of storing all of the cluster's etcd state.
     * Volumes will be provisioned in the availability zone associated
     * with the corresponding subnet.
     * When unspecified, it defaults to 8 GiB with the GP2 volume type.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsVolumeTemplate main_volume = 9 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder clearMainVolume() {
      bitField0_ = (bitField0_ & ~0x00000080);
      mainVolume_ = null;
      if (mainVolumeBuilder_ != null) {
        mainVolumeBuilder_.dispose();
        mainVolumeBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to the main volume provisioned for each
     * control plane replica.
     * The main volume is in charge of storing all of the cluster's etcd state.
     * Volumes will be provisioned in the availability zone associated
     * with the corresponding subnet.
     * When unspecified, it defaults to 8 GiB with the GP2 volume type.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsVolumeTemplate main_volume = 9 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate.Builder getMainVolumeBuilder() {
      bitField0_ |= 0x00000080;
      onChanged();
      return getMainVolumeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to the main volume provisioned for each
     * control plane replica.
     * The main volume is in charge of storing all of the cluster's etcd state.
     * Volumes will be provisioned in the availability zone associated
     * with the corresponding subnet.
     * When unspecified, it defaults to 8 GiB with the GP2 volume type.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsVolumeTemplate main_volume = 9 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.gkemulticloud.v1.AwsVolumeTemplateOrBuilder getMainVolumeOrBuilder() {
      if (mainVolumeBuilder_ != null) {
        return mainVolumeBuilder_.getMessageOrBuilder();
      } else {
        return mainVolume_ == null
            ? com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate.getDefaultInstance()
            : mainVolume_;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to the main volume provisioned for each
     * control plane replica.
     * The main volume is in charge of storing all of the cluster's etcd state.
     * Volumes will be provisioned in the availability zone associated
     * with the corresponding subnet.
     * When unspecified, it defaults to 8 GiB with the GP2 volume type.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsVolumeTemplate main_volume = 9 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate,
            com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate.Builder,
            com.google.cloud.gkemulticloud.v1.AwsVolumeTemplateOrBuilder>
        getMainVolumeFieldBuilder() {
      if (mainVolumeBuilder_ == null) {
        mainVolumeBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate,
                com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate.Builder,
                com.google.cloud.gkemulticloud.v1.AwsVolumeTemplateOrBuilder>(
                getMainVolume(), getParentForChildren(), isClean());
        mainVolume_ = null;
      }
      return mainVolumeBuilder_;
    }

    private com.google.cloud.gkemulticloud.v1.AwsDatabaseEncryption databaseEncryption_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.gkemulticloud.v1.AwsDatabaseEncryption,
            com.google.cloud.gkemulticloud.v1.AwsDatabaseEncryption.Builder,
            com.google.cloud.gkemulticloud.v1.AwsDatabaseEncryptionOrBuilder>
        databaseEncryptionBuilder_;
    /**
     *
     *
     * <pre>
     * Required. The ARN of the AWS KMS key used to encrypt cluster secrets.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsDatabaseEncryption database_encryption = 10 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     *
     * @return Whether the databaseEncryption field is set.
     */
    public boolean hasDatabaseEncryption() {
      return ((bitField0_ & 0x00000100) != 0);
    }
    /**
     *
     *
     * <pre>
     * Required. The ARN of the AWS KMS key used to encrypt cluster secrets.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsDatabaseEncryption database_encryption = 10 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     *
     * @return The databaseEncryption.
     */
    public com.google.cloud.gkemulticloud.v1.AwsDatabaseEncryption getDatabaseEncryption() {
      if (databaseEncryptionBuilder_ == null) {
        return databaseEncryption_ == null
            ? com.google.cloud.gkemulticloud.v1.AwsDatabaseEncryption.getDefaultInstance()
            : databaseEncryption_;
      } else {
        return databaseEncryptionBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Required. The ARN of the AWS KMS key used to encrypt cluster secrets.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsDatabaseEncryption database_encryption = 10 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    public Builder setDatabaseEncryption(
        com.google.cloud.gkemulticloud.v1.AwsDatabaseEncryption value) {
      if (databaseEncryptionBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        databaseEncryption_ = value;
      } else {
        databaseEncryptionBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. The ARN of the AWS KMS key used to encrypt cluster secrets.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsDatabaseEncryption database_encryption = 10 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    public Builder setDatabaseEncryption(
        com.google.cloud.gkemulticloud.v1.AwsDatabaseEncryption.Builder builderForValue) {
      if (databaseEncryptionBuilder_ == null) {
        databaseEncryption_ = builderForValue.build();
      } else {
        databaseEncryptionBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. The ARN of the AWS KMS key used to encrypt cluster secrets.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsDatabaseEncryption database_encryption = 10 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    public Builder mergeDatabaseEncryption(
        com.google.cloud.gkemulticloud.v1.AwsDatabaseEncryption value) {
      if (databaseEncryptionBuilder_ == null) {
        if (((bitField0_ & 0x00000100) != 0)
            && databaseEncryption_ != null
            && databaseEncryption_
                != com.google.cloud.gkemulticloud.v1.AwsDatabaseEncryption.getDefaultInstance()) {
          getDatabaseEncryptionBuilder().mergeFrom(value);
        } else {
          databaseEncryption_ = value;
        }
      } else {
        databaseEncryptionBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. The ARN of the AWS KMS key used to encrypt cluster secrets.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsDatabaseEncryption database_encryption = 10 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    public Builder clearDatabaseEncryption() {
      bitField0_ = (bitField0_ & ~0x00000100);
      databaseEncryption_ = null;
      if (databaseEncryptionBuilder_ != null) {
        databaseEncryptionBuilder_.dispose();
        databaseEncryptionBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. The ARN of the AWS KMS key used to encrypt cluster secrets.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsDatabaseEncryption database_encryption = 10 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    public com.google.cloud.gkemulticloud.v1.AwsDatabaseEncryption.Builder
        getDatabaseEncryptionBuilder() {
      bitField0_ |= 0x00000100;
      onChanged();
      return getDatabaseEncryptionFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Required. The ARN of the AWS KMS key used to encrypt cluster secrets.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsDatabaseEncryption database_encryption = 10 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    public com.google.cloud.gkemulticloud.v1.AwsDatabaseEncryptionOrBuilder
        getDatabaseEncryptionOrBuilder() {
      if (databaseEncryptionBuilder_ != null) {
        return databaseEncryptionBuilder_.getMessageOrBuilder();
      } else {
        return databaseEncryption_ == null
            ? com.google.cloud.gkemulticloud.v1.AwsDatabaseEncryption.getDefaultInstance()
            : databaseEncryption_;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. The ARN of the AWS KMS key used to encrypt cluster secrets.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsDatabaseEncryption database_encryption = 10 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.gkemulticloud.v1.AwsDatabaseEncryption,
            com.google.cloud.gkemulticloud.v1.AwsDatabaseEncryption.Builder,
            com.google.cloud.gkemulticloud.v1.AwsDatabaseEncryptionOrBuilder>
        getDatabaseEncryptionFieldBuilder() {
      if (databaseEncryptionBuilder_ == null) {
        databaseEncryptionBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.gkemulticloud.v1.AwsDatabaseEncryption,
                com.google.cloud.gkemulticloud.v1.AwsDatabaseEncryption.Builder,
                com.google.cloud.gkemulticloud.v1.AwsDatabaseEncryptionOrBuilder>(
                getDatabaseEncryption(), getParentForChildren(), isClean());
        databaseEncryption_ = null;
      }
      return databaseEncryptionBuilder_;
    }

    private com.google.protobuf.MapField<java.lang.String, java.lang.String> tags_;

    private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetTags() {
      if (tags_ == null) {
        return com.google.protobuf.MapField.emptyMapField(TagsDefaultEntryHolder.defaultEntry);
      }
      return tags_;
    }

    private com.google.protobuf.MapField<java.lang.String, java.lang.String>
        internalGetMutableTags() {
      if (tags_ == null) {
        tags_ = com.google.protobuf.MapField.newMapField(TagsDefaultEntryHolder.defaultEntry);
      }
      if (!tags_.isMutable()) {
        tags_ = tags_.copy();
      }
      bitField0_ |= 0x00000200;
      onChanged();
      return tags_;
    }

    public int getTagsCount() {
      return internalGetTags().getMap().size();
    }
    /**
     *
     *
     * <pre>
     * Optional. A set of AWS resource tags to propagate to all underlying managed
     * AWS resources.
     * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
     * (.+-=_:&#64;/). Keys can be up to 127 Unicode characters. Values can be up to
     * 255 Unicode characters.
     * </pre>
     *
     * <code>map&lt;string, string&gt; tags = 11 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    @java.lang.Override
    public boolean containsTags(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      return internalGetTags().getMap().containsKey(key);
    }
    /** Use {@link #getTagsMap()} instead. */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.String> getTags() {
      return getTagsMap();
    }
    /**
     *
     *
     * <pre>
     * Optional. A set of AWS resource tags to propagate to all underlying managed
     * AWS resources.
     * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
     * (.+-=_:&#64;/). Keys can be up to 127 Unicode characters. Values can be up to
     * 255 Unicode characters.
     * </pre>
     *
     * <code>map&lt;string, string&gt; tags = 11 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    @java.lang.Override
    public java.util.Map<java.lang.String, java.lang.String> getTagsMap() {
      return internalGetTags().getMap();
    }
    /**
     *
     *
     * <pre>
     * Optional. A set of AWS resource tags to propagate to all underlying managed
     * AWS resources.
     * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
     * (.+-=_:&#64;/). Keys can be up to 127 Unicode characters. Values can be up to
     * 255 Unicode characters.
     * </pre>
     *
     * <code>map&lt;string, string&gt; tags = 11 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    @java.lang.Override
    public /* nullable */ java.lang.String getTagsOrDefault(
        java.lang.String key,
        /* nullable */
        java.lang.String defaultValue) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      java.util.Map<java.lang.String, java.lang.String> map = internalGetTags().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     *
     *
     * <pre>
     * Optional. A set of AWS resource tags to propagate to all underlying managed
     * AWS resources.
     * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
     * (.+-=_:&#64;/). Keys can be up to 127 Unicode characters. Values can be up to
     * 255 Unicode characters.
     * </pre>
     *
     * <code>map&lt;string, string&gt; tags = 11 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    @java.lang.Override
    public java.lang.String getTagsOrThrow(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      java.util.Map<java.lang.String, java.lang.String> map = internalGetTags().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    public Builder clearTags() {
      bitField0_ = (bitField0_ & ~0x00000200);
      internalGetMutableTags().getMutableMap().clear();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. A set of AWS resource tags to propagate to all underlying managed
     * AWS resources.
     * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
     * (.+-=_:&#64;/). Keys can be up to 127 Unicode characters. Values can be up to
     * 255 Unicode characters.
     * </pre>
     *
     * <code>map&lt;string, string&gt; tags = 11 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    public Builder removeTags(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      internalGetMutableTags().getMutableMap().remove(key);
      return this;
    }
    /** Use alternate mutation accessors instead. */
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.String> getMutableTags() {
      bitField0_ |= 0x00000200;
      return internalGetMutableTags().getMutableMap();
    }
    /**
     *
     *
     * <pre>
     * Optional. A set of AWS resource tags to propagate to all underlying managed
     * AWS resources.
     * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
     * (.+-=_:&#64;/). Keys can be up to 127 Unicode characters. Values can be up to
     * 255 Unicode characters.
     * </pre>
     *
     * <code>map&lt;string, string&gt; tags = 11 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    public Builder putTags(java.lang.String key, java.lang.String value) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      if (value == null) {
        throw new NullPointerException("map value");
      }
      internalGetMutableTags().getMutableMap().put(key, value);
      bitField0_ |= 0x00000200;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. A set of AWS resource tags to propagate to all underlying managed
     * AWS resources.
     * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
     * (.+-=_:&#64;/). Keys can be up to 127 Unicode characters. Values can be up to
     * 255 Unicode characters.
     * </pre>
     *
     * <code>map&lt;string, string&gt; tags = 11 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    public Builder putAllTags(java.util.Map<java.lang.String, java.lang.String> values) {
      internalGetMutableTags().getMutableMap().putAll(values);
      bitField0_ |= 0x00000200;
      return this;
    }

    private com.google.cloud.gkemulticloud.v1.AwsServicesAuthentication awsServicesAuthentication_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.gkemulticloud.v1.AwsServicesAuthentication,
            com.google.cloud.gkemulticloud.v1.AwsServicesAuthentication.Builder,
            com.google.cloud.gkemulticloud.v1.AwsServicesAuthenticationOrBuilder>
        awsServicesAuthenticationBuilder_;
    /**
     *
     *
     * <pre>
     * Required. Authentication configuration for management of AWS resources.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsServicesAuthentication aws_services_authentication = 12 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     *
     * @return Whether the awsServicesAuthentication field is set.
     */
    public boolean hasAwsServicesAuthentication() {
      return ((bitField0_ & 0x00000400) != 0);
    }
    /**
     *
     *
     * <pre>
     * Required. Authentication configuration for management of AWS resources.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsServicesAuthentication aws_services_authentication = 12 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     *
     * @return The awsServicesAuthentication.
     */
    public com.google.cloud.gkemulticloud.v1.AwsServicesAuthentication
        getAwsServicesAuthentication() {
      if (awsServicesAuthenticationBuilder_ == null) {
        return awsServicesAuthentication_ == null
            ? com.google.cloud.gkemulticloud.v1.AwsServicesAuthentication.getDefaultInstance()
            : awsServicesAuthentication_;
      } else {
        return awsServicesAuthenticationBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Required. Authentication configuration for management of AWS resources.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsServicesAuthentication aws_services_authentication = 12 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    public Builder setAwsServicesAuthentication(
        com.google.cloud.gkemulticloud.v1.AwsServicesAuthentication value) {
      if (awsServicesAuthenticationBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        awsServicesAuthentication_ = value;
      } else {
        awsServicesAuthenticationBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000400;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. Authentication configuration for management of AWS resources.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsServicesAuthentication aws_services_authentication = 12 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    public Builder setAwsServicesAuthentication(
        com.google.cloud.gkemulticloud.v1.AwsServicesAuthentication.Builder builderForValue) {
      if (awsServicesAuthenticationBuilder_ == null) {
        awsServicesAuthentication_ = builderForValue.build();
      } else {
        awsServicesAuthenticationBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000400;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. Authentication configuration for management of AWS resources.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsServicesAuthentication aws_services_authentication = 12 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    public Builder mergeAwsServicesAuthentication(
        com.google.cloud.gkemulticloud.v1.AwsServicesAuthentication value) {
      if (awsServicesAuthenticationBuilder_ == null) {
        if (((bitField0_ & 0x00000400) != 0)
            && awsServicesAuthentication_ != null
            && awsServicesAuthentication_
                != com.google.cloud.gkemulticloud.v1.AwsServicesAuthentication
                    .getDefaultInstance()) {
          getAwsServicesAuthenticationBuilder().mergeFrom(value);
        } else {
          awsServicesAuthentication_ = value;
        }
      } else {
        awsServicesAuthenticationBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000400;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. Authentication configuration for management of AWS resources.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsServicesAuthentication aws_services_authentication = 12 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    public Builder clearAwsServicesAuthentication() {
      bitField0_ = (bitField0_ & ~0x00000400);
      awsServicesAuthentication_ = null;
      if (awsServicesAuthenticationBuilder_ != null) {
        awsServicesAuthenticationBuilder_.dispose();
        awsServicesAuthenticationBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. Authentication configuration for management of AWS resources.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsServicesAuthentication aws_services_authentication = 12 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    public com.google.cloud.gkemulticloud.v1.AwsServicesAuthentication.Builder
        getAwsServicesAuthenticationBuilder() {
      bitField0_ |= 0x00000400;
      onChanged();
      return getAwsServicesAuthenticationFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Required. Authentication configuration for management of AWS resources.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsServicesAuthentication aws_services_authentication = 12 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    public com.google.cloud.gkemulticloud.v1.AwsServicesAuthenticationOrBuilder
        getAwsServicesAuthenticationOrBuilder() {
      if (awsServicesAuthenticationBuilder_ != null) {
        return awsServicesAuthenticationBuilder_.getMessageOrBuilder();
      } else {
        return awsServicesAuthentication_ == null
            ? com.google.cloud.gkemulticloud.v1.AwsServicesAuthentication.getDefaultInstance()
            : awsServicesAuthentication_;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. Authentication configuration for management of AWS resources.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsServicesAuthentication aws_services_authentication = 12 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.gkemulticloud.v1.AwsServicesAuthentication,
            com.google.cloud.gkemulticloud.v1.AwsServicesAuthentication.Builder,
            com.google.cloud.gkemulticloud.v1.AwsServicesAuthenticationOrBuilder>
        getAwsServicesAuthenticationFieldBuilder() {
      if (awsServicesAuthenticationBuilder_ == null) {
        awsServicesAuthenticationBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.gkemulticloud.v1.AwsServicesAuthentication,
                com.google.cloud.gkemulticloud.v1.AwsServicesAuthentication.Builder,
                com.google.cloud.gkemulticloud.v1.AwsServicesAuthenticationOrBuilder>(
                getAwsServicesAuthentication(), getParentForChildren(), isClean());
        awsServicesAuthentication_ = null;
      }
      return awsServicesAuthenticationBuilder_;
    }

    private com.google.cloud.gkemulticloud.v1.AwsProxyConfig proxyConfig_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.gkemulticloud.v1.AwsProxyConfig,
            com.google.cloud.gkemulticloud.v1.AwsProxyConfig.Builder,
            com.google.cloud.gkemulticloud.v1.AwsProxyConfigOrBuilder>
        proxyConfigBuilder_;
    /**
     *
     *
     * <pre>
     * Optional. Proxy configuration for outbound HTTP(S) traffic.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsProxyConfig proxy_config = 16 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return Whether the proxyConfig field is set.
     */
    public boolean hasProxyConfig() {
      return ((bitField0_ & 0x00000800) != 0);
    }
    /**
     *
     *
     * <pre>
     * Optional. Proxy configuration for outbound HTTP(S) traffic.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsProxyConfig proxy_config = 16 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The proxyConfig.
     */
    public com.google.cloud.gkemulticloud.v1.AwsProxyConfig getProxyConfig() {
      if (proxyConfigBuilder_ == null) {
        return proxyConfig_ == null
            ? com.google.cloud.gkemulticloud.v1.AwsProxyConfig.getDefaultInstance()
            : proxyConfig_;
      } else {
        return proxyConfigBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Proxy configuration for outbound HTTP(S) traffic.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsProxyConfig proxy_config = 16 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setProxyConfig(com.google.cloud.gkemulticloud.v1.AwsProxyConfig value) {
      if (proxyConfigBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        proxyConfig_ = value;
      } else {
        proxyConfigBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000800;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Proxy configuration for outbound HTTP(S) traffic.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsProxyConfig proxy_config = 16 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setProxyConfig(
        com.google.cloud.gkemulticloud.v1.AwsProxyConfig.Builder builderForValue) {
      if (proxyConfigBuilder_ == null) {
        proxyConfig_ = builderForValue.build();
      } else {
        proxyConfigBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000800;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Proxy configuration for outbound HTTP(S) traffic.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsProxyConfig proxy_config = 16 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder mergeProxyConfig(com.google.cloud.gkemulticloud.v1.AwsProxyConfig value) {
      if (proxyConfigBuilder_ == null) {
        if (((bitField0_ & 0x00000800) != 0)
            && proxyConfig_ != null
            && proxyConfig_
                != com.google.cloud.gkemulticloud.v1.AwsProxyConfig.getDefaultInstance()) {
          getProxyConfigBuilder().mergeFrom(value);
        } else {
          proxyConfig_ = value;
        }
      } else {
        proxyConfigBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000800;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Proxy configuration for outbound HTTP(S) traffic.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsProxyConfig proxy_config = 16 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder clearProxyConfig() {
      bitField0_ = (bitField0_ & ~0x00000800);
      proxyConfig_ = null;
      if (proxyConfigBuilder_ != null) {
        proxyConfigBuilder_.dispose();
        proxyConfigBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Proxy configuration for outbound HTTP(S) traffic.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsProxyConfig proxy_config = 16 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.gkemulticloud.v1.AwsProxyConfig.Builder getProxyConfigBuilder() {
      bitField0_ |= 0x00000800;
      onChanged();
      return getProxyConfigFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Optional. Proxy configuration for outbound HTTP(S) traffic.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsProxyConfig proxy_config = 16 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.gkemulticloud.v1.AwsProxyConfigOrBuilder getProxyConfigOrBuilder() {
      if (proxyConfigBuilder_ != null) {
        return proxyConfigBuilder_.getMessageOrBuilder();
      } else {
        return proxyConfig_ == null
            ? com.google.cloud.gkemulticloud.v1.AwsProxyConfig.getDefaultInstance()
            : proxyConfig_;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Proxy configuration for outbound HTTP(S) traffic.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsProxyConfig proxy_config = 16 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.gkemulticloud.v1.AwsProxyConfig,
            com.google.cloud.gkemulticloud.v1.AwsProxyConfig.Builder,
            com.google.cloud.gkemulticloud.v1.AwsProxyConfigOrBuilder>
        getProxyConfigFieldBuilder() {
      if (proxyConfigBuilder_ == null) {
        proxyConfigBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.gkemulticloud.v1.AwsProxyConfig,
                com.google.cloud.gkemulticloud.v1.AwsProxyConfig.Builder,
                com.google.cloud.gkemulticloud.v1.AwsProxyConfigOrBuilder>(
                getProxyConfig(), getParentForChildren(), isClean());
        proxyConfig_ = null;
      }
      return proxyConfigBuilder_;
    }

    private com.google.cloud.gkemulticloud.v1.AwsConfigEncryption configEncryption_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.gkemulticloud.v1.AwsConfigEncryption,
            com.google.cloud.gkemulticloud.v1.AwsConfigEncryption.Builder,
            com.google.cloud.gkemulticloud.v1.AwsConfigEncryptionOrBuilder>
        configEncryptionBuilder_;
    /**
     *
     *
     * <pre>
     * Required. Config encryption for user data.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsConfigEncryption config_encryption = 17 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     *
     * @return Whether the configEncryption field is set.
     */
    public boolean hasConfigEncryption() {
      return ((bitField0_ & 0x00001000) != 0);
    }
    /**
     *
     *
     * <pre>
     * Required. Config encryption for user data.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsConfigEncryption config_encryption = 17 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     *
     * @return The configEncryption.
     */
    public com.google.cloud.gkemulticloud.v1.AwsConfigEncryption getConfigEncryption() {
      if (configEncryptionBuilder_ == null) {
        return configEncryption_ == null
            ? com.google.cloud.gkemulticloud.v1.AwsConfigEncryption.getDefaultInstance()
            : configEncryption_;
      } else {
        return configEncryptionBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Required. Config encryption for user data.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsConfigEncryption config_encryption = 17 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    public Builder setConfigEncryption(
        com.google.cloud.gkemulticloud.v1.AwsConfigEncryption value) {
      if (configEncryptionBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        configEncryption_ = value;
      } else {
        configEncryptionBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00001000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. Config encryption for user data.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsConfigEncryption config_encryption = 17 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    public Builder setConfigEncryption(
        com.google.cloud.gkemulticloud.v1.AwsConfigEncryption.Builder builderForValue) {
      if (configEncryptionBuilder_ == null) {
        configEncryption_ = builderForValue.build();
      } else {
        configEncryptionBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00001000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. Config encryption for user data.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsConfigEncryption config_encryption = 17 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    public Builder mergeConfigEncryption(
        com.google.cloud.gkemulticloud.v1.AwsConfigEncryption value) {
      if (configEncryptionBuilder_ == null) {
        if (((bitField0_ & 0x00001000) != 0)
            && configEncryption_ != null
            && configEncryption_
                != com.google.cloud.gkemulticloud.v1.AwsConfigEncryption.getDefaultInstance()) {
          getConfigEncryptionBuilder().mergeFrom(value);
        } else {
          configEncryption_ = value;
        }
      } else {
        configEncryptionBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00001000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. Config encryption for user data.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsConfigEncryption config_encryption = 17 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    public Builder clearConfigEncryption() {
      bitField0_ = (bitField0_ & ~0x00001000);
      configEncryption_ = null;
      if (configEncryptionBuilder_ != null) {
        configEncryptionBuilder_.dispose();
        configEncryptionBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. Config encryption for user data.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsConfigEncryption config_encryption = 17 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    public com.google.cloud.gkemulticloud.v1.AwsConfigEncryption.Builder
        getConfigEncryptionBuilder() {
      bitField0_ |= 0x00001000;
      onChanged();
      return getConfigEncryptionFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Required. Config encryption for user data.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsConfigEncryption config_encryption = 17 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    public com.google.cloud.gkemulticloud.v1.AwsConfigEncryptionOrBuilder
        getConfigEncryptionOrBuilder() {
      if (configEncryptionBuilder_ != null) {
        return configEncryptionBuilder_.getMessageOrBuilder();
      } else {
        return configEncryption_ == null
            ? com.google.cloud.gkemulticloud.v1.AwsConfigEncryption.getDefaultInstance()
            : configEncryption_;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. Config encryption for user data.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsConfigEncryption config_encryption = 17 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.gkemulticloud.v1.AwsConfigEncryption,
            com.google.cloud.gkemulticloud.v1.AwsConfigEncryption.Builder,
            com.google.cloud.gkemulticloud.v1.AwsConfigEncryptionOrBuilder>
        getConfigEncryptionFieldBuilder() {
      if (configEncryptionBuilder_ == null) {
        configEncryptionBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.gkemulticloud.v1.AwsConfigEncryption,
                com.google.cloud.gkemulticloud.v1.AwsConfigEncryption.Builder,
                com.google.cloud.gkemulticloud.v1.AwsConfigEncryptionOrBuilder>(
                getConfigEncryption(), getParentForChildren(), isClean());
        configEncryption_ = null;
      }
      return configEncryptionBuilder_;
    }

    private com.google.cloud.gkemulticloud.v1.AwsInstancePlacement instancePlacement_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.gkemulticloud.v1.AwsInstancePlacement,
            com.google.cloud.gkemulticloud.v1.AwsInstancePlacement.Builder,
            com.google.cloud.gkemulticloud.v1.AwsInstancePlacementOrBuilder>
        instancePlacementBuilder_;
    /**
     *
     *
     * <pre>
     * Optional. The placement to use on control plane instances.
     * When unspecified, the VPC's default tenancy will be used.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 18 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return Whether the instancePlacement field is set.
     */
    public boolean hasInstancePlacement() {
      return ((bitField0_ & 0x00002000) != 0);
    }
    /**
     *
     *
     * <pre>
     * Optional. The placement to use on control plane instances.
     * When unspecified, the VPC's default tenancy will be used.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 18 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The instancePlacement.
     */
    public com.google.cloud.gkemulticloud.v1.AwsInstancePlacement getInstancePlacement() {
      if (instancePlacementBuilder_ == null) {
        return instancePlacement_ == null
            ? com.google.cloud.gkemulticloud.v1.AwsInstancePlacement.getDefaultInstance()
            : instancePlacement_;
      } else {
        return instancePlacementBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The placement to use on control plane instances.
     * When unspecified, the VPC's default tenancy will be used.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 18 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setInstancePlacement(
        com.google.cloud.gkemulticloud.v1.AwsInstancePlacement value) {
      if (instancePlacementBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        instancePlacement_ = value;
      } else {
        instancePlacementBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00002000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The placement to use on control plane instances.
     * When unspecified, the VPC's default tenancy will be used.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 18 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setInstancePlacement(
        com.google.cloud.gkemulticloud.v1.AwsInstancePlacement.Builder builderForValue) {
      if (instancePlacementBuilder_ == null) {
        instancePlacement_ = builderForValue.build();
      } else {
        instancePlacementBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00002000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The placement to use on control plane instances.
     * When unspecified, the VPC's default tenancy will be used.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 18 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder mergeInstancePlacement(
        com.google.cloud.gkemulticloud.v1.AwsInstancePlacement value) {
      if (instancePlacementBuilder_ == null) {
        if (((bitField0_ & 0x00002000) != 0)
            && instancePlacement_ != null
            && instancePlacement_
                != com.google.cloud.gkemulticloud.v1.AwsInstancePlacement.getDefaultInstance()) {
          getInstancePlacementBuilder().mergeFrom(value);
        } else {
          instancePlacement_ = value;
        }
      } else {
        instancePlacementBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00002000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The placement to use on control plane instances.
     * When unspecified, the VPC's default tenancy will be used.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 18 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder clearInstancePlacement() {
      bitField0_ = (bitField0_ & ~0x00002000);
      instancePlacement_ = null;
      if (instancePlacementBuilder_ != null) {
        instancePlacementBuilder_.dispose();
        instancePlacementBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The placement to use on control plane instances.
     * When unspecified, the VPC's default tenancy will be used.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 18 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.gkemulticloud.v1.AwsInstancePlacement.Builder
        getInstancePlacementBuilder() {
      bitField0_ |= 0x00002000;
      onChanged();
      return getInstancePlacementFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Optional. The placement to use on control plane instances.
     * When unspecified, the VPC's default tenancy will be used.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 18 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.gkemulticloud.v1.AwsInstancePlacementOrBuilder
        getInstancePlacementOrBuilder() {
      if (instancePlacementBuilder_ != null) {
        return instancePlacementBuilder_.getMessageOrBuilder();
      } else {
        return instancePlacement_ == null
            ? com.google.cloud.gkemulticloud.v1.AwsInstancePlacement.getDefaultInstance()
            : instancePlacement_;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The placement to use on control plane instances.
     * When unspecified, the VPC's default tenancy will be used.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 18 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.gkemulticloud.v1.AwsInstancePlacement,
            com.google.cloud.gkemulticloud.v1.AwsInstancePlacement.Builder,
            com.google.cloud.gkemulticloud.v1.AwsInstancePlacementOrBuilder>
        getInstancePlacementFieldBuilder() {
      if (instancePlacementBuilder_ == null) {
        instancePlacementBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.gkemulticloud.v1.AwsInstancePlacement,
                com.google.cloud.gkemulticloud.v1.AwsInstancePlacement.Builder,
                com.google.cloud.gkemulticloud.v1.AwsInstancePlacementOrBuilder>(
                getInstancePlacement(), getParentForChildren(), isClean());
        instancePlacement_ = null;
      }
      return instancePlacementBuilder_;
    }

    @java.lang.Override
    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }

    // @@protoc_insertion_point(builder_scope:google.cloud.gkemulticloud.v1.AwsControlPlane)
  }

  // @@protoc_insertion_point(class_scope:google.cloud.gkemulticloud.v1.AwsControlPlane)
  private static final com.google.cloud.gkemulticloud.v1.AwsControlPlane DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.cloud.gkemulticloud.v1.AwsControlPlane();
  }

  public static com.google.cloud.gkemulticloud.v1.AwsControlPlane getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<AwsControlPlane> PARSER =
      new com.google.protobuf.AbstractParser<AwsControlPlane>() {
        @java.lang.Override
        public AwsControlPlane parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          Builder builder = newBuilder();
          try {
            builder.mergeFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.setUnfinishedMessage(builder.buildPartial());
          } catch (com.google.protobuf.UninitializedMessageException e) {
            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
          } catch (java.io.IOException e) {
            throw new com.google.protobuf.InvalidProtocolBufferException(e)
                .setUnfinishedMessage(builder.buildPartial());
          }
          return builder.buildPartial();
        }
      };

  public static com.google.protobuf.Parser<AwsControlPlane> parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser<AwsControlPlane> getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.cloud.gkemulticloud.v1.AwsControlPlane getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
