/*
 * 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>
 * Parameters that describe the nodes in a cluster.
 * </pre>
 *
 * Protobuf type {@code google.cloud.gkemulticloud.v1.AwsNodeConfig}
 */
public final class AwsNodeConfig extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AwsNodeConfig)
    AwsNodeConfigOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use AwsNodeConfig.newBuilder() to construct.
  private AwsNodeConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private AwsNodeConfig() {
    instanceType_ = "";
    taints_ = java.util.Collections.emptyList();
    iamInstanceProfile_ = "";
    imageType_ = "";
    securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
  }

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

  @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_AwsNodeConfig_descriptor;
  }

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected com.google.protobuf.MapField internalGetMapField(int number) {
    switch (number) {
      case 4:
        return internalGetLabels();
      case 5:
        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_AwsNodeConfig_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.cloud.gkemulticloud.v1.AwsNodeConfig.class,
            com.google.cloud.gkemulticloud.v1.AwsNodeConfig.Builder.class);
  }

  public static final int INSTANCE_TYPE_FIELD_NUMBER = 1;

  @SuppressWarnings("serial")
  private volatile java.lang.Object instanceType_ = "";
  /**
   *
   *
   * <pre>
   * Optional. The AWS instance type.
   * When unspecified, it uses a default based on the node pool's version.
   * </pre>
   *
   * <code>string instance_type = 1 [(.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 node pool's version.
   * </pre>
   *
   * <code>string instance_type = 1 [(.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 ROOT_VOLUME_FIELD_NUMBER = 2;
  private com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate rootVolume_;
  /**
   *
   *
   * <pre>
   * Optional. Template for the root volume provisioned for node pool nodes.
   * Volumes will be provisioned in the availability zone assigned
   * to the node pool subnet.
   * When unspecified, it defaults to 32 GiB with the GP2 volume type.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 2 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return Whether the rootVolume field is set.
   */
  @java.lang.Override
  public boolean hasRootVolume() {
    return rootVolume_ != null;
  }
  /**
   *
   *
   * <pre>
   * Optional. Template for the root volume provisioned for node pool nodes.
   * Volumes will be provisioned in the availability zone assigned
   * to the node pool subnet.
   * When unspecified, it defaults to 32 GiB with the GP2 volume type.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 2 [(.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. Template for the root volume provisioned for node pool nodes.
   * Volumes will be provisioned in the availability zone assigned
   * to the node pool subnet.
   * When unspecified, it defaults to 32 GiB with the GP2 volume type.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 2 [(.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 TAINTS_FIELD_NUMBER = 3;

  @SuppressWarnings("serial")
  private java.util.List<com.google.cloud.gkemulticloud.v1.NodeTaint> taints_;
  /**
   *
   *
   * <pre>
   * Optional. The initial taints assigned to nodes of this node pool.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 3 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public java.util.List<com.google.cloud.gkemulticloud.v1.NodeTaint> getTaintsList() {
    return taints_;
  }
  /**
   *
   *
   * <pre>
   * Optional. The initial taints assigned to nodes of this node pool.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 3 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public java.util.List<? extends com.google.cloud.gkemulticloud.v1.NodeTaintOrBuilder>
      getTaintsOrBuilderList() {
    return taints_;
  }
  /**
   *
   *
   * <pre>
   * Optional. The initial taints assigned to nodes of this node pool.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 3 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public int getTaintsCount() {
    return taints_.size();
  }
  /**
   *
   *
   * <pre>
   * Optional. The initial taints assigned to nodes of this node pool.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 3 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.gkemulticloud.v1.NodeTaint getTaints(int index) {
    return taints_.get(index);
  }
  /**
   *
   *
   * <pre>
   * Optional. The initial taints assigned to nodes of this node pool.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 3 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.gkemulticloud.v1.NodeTaintOrBuilder getTaintsOrBuilder(int index) {
    return taints_.get(index);
  }

  public static final int LABELS_FIELD_NUMBER = 4;

  private static final class LabelsDefaultEntryHolder {
    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_AwsNodeConfig_LabelsEntry_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> labels_;

  private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() {
    if (labels_ == null) {
      return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
    }
    return labels_;
  }

  public int getLabelsCount() {
    return internalGetLabels().getMap().size();
  }
  /**
   *
   *
   * <pre>
   * Optional. The initial labels assigned to nodes of this node pool. An object
   * containing a list of "key": value pairs. Example: { "name": "wrench",
   * "mass": "1.3kg", "count": "3" }.
   * </pre>
   *
   * <code>map&lt;string, string&gt; labels = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
   */
  @java.lang.Override
  public boolean containsLabels(java.lang.String key) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    return internalGetLabels().getMap().containsKey(key);
  }
  /** Use {@link #getLabelsMap()} instead. */
  @java.lang.Override
  @java.lang.Deprecated
  public java.util.Map<java.lang.String, java.lang.String> getLabels() {
    return getLabelsMap();
  }
  /**
   *
   *
   * <pre>
   * Optional. The initial labels assigned to nodes of this node pool. An object
   * containing a list of "key": value pairs. Example: { "name": "wrench",
   * "mass": "1.3kg", "count": "3" }.
   * </pre>
   *
   * <code>map&lt;string, string&gt; labels = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
   */
  @java.lang.Override
  public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {
    return internalGetLabels().getMap();
  }
  /**
   *
   *
   * <pre>
   * Optional. The initial labels assigned to nodes of this node pool. An object
   * containing a list of "key": value pairs. Example: { "name": "wrench",
   * "mass": "1.3kg", "count": "3" }.
   * </pre>
   *
   * <code>map&lt;string, string&gt; labels = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
   */
  @java.lang.Override
  public /* nullable */ java.lang.String getLabelsOrDefault(
      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 = internalGetLabels().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
  /**
   *
   *
   * <pre>
   * Optional. The initial labels assigned to nodes of this node pool. An object
   * containing a list of "key": value pairs. Example: { "name": "wrench",
   * "mass": "1.3kg", "count": "3" }.
   * </pre>
   *
   * <code>map&lt;string, string&gt; labels = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
   */
  @java.lang.Override
  public java.lang.String getLabelsOrThrow(java.lang.String key) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
    if (!map.containsKey(key)) {
      throw new java.lang.IllegalArgumentException();
    }
    return map.get(key);
  }

  public static final int TAGS_FIELD_NUMBER = 5;

  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_AwsNodeConfig_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. Key/value metadata to assign to each underlying AWS resource.
   * 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 = 5 [(.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. Key/value metadata to assign to each underlying AWS resource.
   * 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 = 5 [(.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. Key/value metadata to assign to each underlying AWS resource.
   * 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 = 5 [(.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. Key/value metadata to assign to each underlying AWS resource.
   * 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 = 5 [(.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 IAM_INSTANCE_PROFILE_FIELD_NUMBER = 6;

  @SuppressWarnings("serial")
  private volatile java.lang.Object iamInstanceProfile_ = "";
  /**
   *
   *
   * <pre>
   * Required. The name or ARN of the AWS IAM role assigned to nodes in the
   * pool.
   * </pre>
   *
   * <code>string iam_instance_profile = 6 [(.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 role assigned to nodes in the
   * pool.
   * </pre>
   *
   * <code>string iam_instance_profile = 6 [(.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 IMAGE_TYPE_FIELD_NUMBER = 11;

  @SuppressWarnings("serial")
  private volatile java.lang.Object imageType_ = "";
  /**
   *
   *
   * <pre>
   * Optional. The OS image type to use on node pool instances.
   * Can have a value of `ubuntu`, or `windows` if the cluster enables
   * the Windows node pool preview feature.
   * When unspecified, it defaults to `ubuntu`.
   * </pre>
   *
   * <code>string image_type = 11 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The imageType.
   */
  @java.lang.Override
  public java.lang.String getImageType() {
    java.lang.Object ref = imageType_;
    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();
      imageType_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Optional. The OS image type to use on node pool instances.
   * Can have a value of `ubuntu`, or `windows` if the cluster enables
   * the Windows node pool preview feature.
   * When unspecified, it defaults to `ubuntu`.
   * </pre>
   *
   * <code>string image_type = 11 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The bytes for imageType.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getImageTypeBytes() {
    java.lang.Object ref = imageType_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      imageType_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SSH_CONFIG_FIELD_NUMBER = 9;
  private com.google.cloud.gkemulticloud.v1.AwsSshConfig sshConfig_;
  /**
   *
   *
   * <pre>
   * Optional. The SSH configuration.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 9 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return Whether the sshConfig field is set.
   */
  @java.lang.Override
  public boolean hasSshConfig() {
    return sshConfig_ != null;
  }
  /**
   *
   *
   * <pre>
   * Optional. The SSH configuration.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 9 [(.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. The SSH configuration.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 9 [(.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 SECURITY_GROUP_IDS_FIELD_NUMBER = 10;

  @SuppressWarnings("serial")
  private com.google.protobuf.LazyStringList securityGroupIds_;
  /**
   *
   *
   * <pre>
   * Optional. The IDs of additional security groups to add to nodes in this
   * pool. The manager will automatically create security groups with minimum
   * rules needed for a functioning cluster.
   * </pre>
   *
   * <code>repeated string security_group_ids = 10 [(.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 nodes in this
   * pool. The manager will automatically create security groups with minimum
   * rules needed for a functioning cluster.
   * </pre>
   *
   * <code>repeated string security_group_ids = 10 [(.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 nodes in this
   * pool. The manager will automatically create security groups with minimum
   * rules needed for a functioning cluster.
   * </pre>
   *
   * <code>repeated string security_group_ids = 10 [(.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 nodes in this
   * pool. The manager will automatically create security groups with minimum
   * rules needed for a functioning cluster.
   * </pre>
   *
   * <code>repeated string security_group_ids = 10 [(.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 PROXY_CONFIG_FIELD_NUMBER = 12;
  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 = 12 [(.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 = 12 [(.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 = 12 [(.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 = 13;
  private com.google.cloud.gkemulticloud.v1.AwsConfigEncryption configEncryption_;
  /**
   *
   *
   * <pre>
   * Required. Config encryption for user data.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AwsConfigEncryption config_encryption = 13 [(.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 = 13 [(.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 = 13 [(.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 = 14;
  private com.google.cloud.gkemulticloud.v1.AwsInstancePlacement instancePlacement_;
  /**
   *
   *
   * <pre>
   * Optional. Placement related info for this node.
   * When unspecified, the VPC's default tenancy will be used.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 14 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return Whether the instancePlacement field is set.
   */
  @java.lang.Override
  public boolean hasInstancePlacement() {
    return instancePlacement_ != null;
  }
  /**
   *
   *
   * <pre>
   * Optional. Placement related info for this node.
   * When unspecified, the VPC's default tenancy will be used.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 14 [(.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. Placement related info for this node.
   * When unspecified, the VPC's default tenancy will be used.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 14 [(.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_;
  }

  public static final int AUTOSCALING_METRICS_COLLECTION_FIELD_NUMBER = 15;
  private com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection
      autoscalingMetricsCollection_;
  /**
   *
   *
   * <pre>
   * Optional. Configuration related to CloudWatch metrics collection on the
   * Auto Scaling group of the node pool.
   * When unspecified, metrics collection is disabled.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return Whether the autoscalingMetricsCollection field is set.
   */
  @java.lang.Override
  public boolean hasAutoscalingMetricsCollection() {
    return autoscalingMetricsCollection_ != null;
  }
  /**
   *
   *
   * <pre>
   * Optional. Configuration related to CloudWatch metrics collection on the
   * Auto Scaling group of the node pool.
   * When unspecified, metrics collection is disabled.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return The autoscalingMetricsCollection.
   */
  @java.lang.Override
  public com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection
      getAutoscalingMetricsCollection() {
    return autoscalingMetricsCollection_ == null
        ? com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection
            .getDefaultInstance()
        : autoscalingMetricsCollection_;
  }
  /**
   *
   *
   * <pre>
   * Optional. Configuration related to CloudWatch metrics collection on the
   * Auto Scaling group of the node pool.
   * When unspecified, metrics collection is disabled.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollectionOrBuilder
      getAutoscalingMetricsCollectionOrBuilder() {
    return autoscalingMetricsCollection_ == null
        ? com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection
            .getDefaultInstance()
        : autoscalingMetricsCollection_;
  }

  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(instanceType_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceType_);
    }
    if (rootVolume_ != null) {
      output.writeMessage(2, getRootVolume());
    }
    for (int i = 0; i < taints_.size(); i++) {
      output.writeMessage(3, taints_.get(i));
    }
    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4);
    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
        output, internalGetTags(), TagsDefaultEntryHolder.defaultEntry, 5);
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iamInstanceProfile_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, iamInstanceProfile_);
    }
    if (sshConfig_ != null) {
      output.writeMessage(9, getSshConfig());
    }
    for (int i = 0; i < securityGroupIds_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, securityGroupIds_.getRaw(i));
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageType_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, imageType_);
    }
    if (proxyConfig_ != null) {
      output.writeMessage(12, getProxyConfig());
    }
    if (configEncryption_ != null) {
      output.writeMessage(13, getConfigEncryption());
    }
    if (instancePlacement_ != null) {
      output.writeMessage(14, getInstancePlacement());
    }
    if (autoscalingMetricsCollection_ != null) {
      output.writeMessage(15, getAutoscalingMetricsCollection());
    }
    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(instanceType_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceType_);
    }
    if (rootVolume_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRootVolume());
    }
    for (int i = 0; i < taints_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, taints_.get(i));
    }
    for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
        internalGetLabels().getMap().entrySet()) {
      com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ =
          LabelsDefaultEntryHolder.defaultEntry
              .newBuilderForType()
              .setKey(entry.getKey())
              .setValue(entry.getValue())
              .build();
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__);
    }
    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(5, tags__);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iamInstanceProfile_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, iamInstanceProfile_);
    }
    if (sshConfig_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getSshConfig());
    }
    {
      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(imageType_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, imageType_);
    }
    if (proxyConfig_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getProxyConfig());
    }
    if (configEncryption_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getConfigEncryption());
    }
    if (instancePlacement_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getInstancePlacement());
    }
    if (autoscalingMetricsCollection_ != null) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              15, getAutoscalingMetricsCollection());
    }
    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.AwsNodeConfig)) {
      return super.equals(obj);
    }
    com.google.cloud.gkemulticloud.v1.AwsNodeConfig other =
        (com.google.cloud.gkemulticloud.v1.AwsNodeConfig) obj;

    if (!getInstanceType().equals(other.getInstanceType())) return false;
    if (hasRootVolume() != other.hasRootVolume()) return false;
    if (hasRootVolume()) {
      if (!getRootVolume().equals(other.getRootVolume())) return false;
    }
    if (!getTaintsList().equals(other.getTaintsList())) return false;
    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
    if (!internalGetTags().equals(other.internalGetTags())) return false;
    if (!getIamInstanceProfile().equals(other.getIamInstanceProfile())) return false;
    if (!getImageType().equals(other.getImageType())) return false;
    if (hasSshConfig() != other.hasSshConfig()) return false;
    if (hasSshConfig()) {
      if (!getSshConfig().equals(other.getSshConfig())) return false;
    }
    if (!getSecurityGroupIdsList().equals(other.getSecurityGroupIdsList())) 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 (hasAutoscalingMetricsCollection() != other.hasAutoscalingMetricsCollection()) return false;
    if (hasAutoscalingMetricsCollection()) {
      if (!getAutoscalingMetricsCollection().equals(other.getAutoscalingMetricsCollection()))
        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) + INSTANCE_TYPE_FIELD_NUMBER;
    hash = (53 * hash) + getInstanceType().hashCode();
    if (hasRootVolume()) {
      hash = (37 * hash) + ROOT_VOLUME_FIELD_NUMBER;
      hash = (53 * hash) + getRootVolume().hashCode();
    }
    if (getTaintsCount() > 0) {
      hash = (37 * hash) + TAINTS_FIELD_NUMBER;
      hash = (53 * hash) + getTaintsList().hashCode();
    }
    if (!internalGetLabels().getMap().isEmpty()) {
      hash = (37 * hash) + LABELS_FIELD_NUMBER;
      hash = (53 * hash) + internalGetLabels().hashCode();
    }
    if (!internalGetTags().getMap().isEmpty()) {
      hash = (37 * hash) + TAGS_FIELD_NUMBER;
      hash = (53 * hash) + internalGetTags().hashCode();
    }
    hash = (37 * hash) + IAM_INSTANCE_PROFILE_FIELD_NUMBER;
    hash = (53 * hash) + getIamInstanceProfile().hashCode();
    hash = (37 * hash) + IMAGE_TYPE_FIELD_NUMBER;
    hash = (53 * hash) + getImageType().hashCode();
    if (hasSshConfig()) {
      hash = (37 * hash) + SSH_CONFIG_FIELD_NUMBER;
      hash = (53 * hash) + getSshConfig().hashCode();
    }
    if (getSecurityGroupIdsCount() > 0) {
      hash = (37 * hash) + SECURITY_GROUP_IDS_FIELD_NUMBER;
      hash = (53 * hash) + getSecurityGroupIdsList().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();
    }
    if (hasAutoscalingMetricsCollection()) {
      hash = (37 * hash) + AUTOSCALING_METRICS_COLLECTION_FIELD_NUMBER;
      hash = (53 * hash) + getAutoscalingMetricsCollection().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

  public static com.google.cloud.gkemulticloud.v1.AwsNodeConfig 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.AwsNodeConfig parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.gkemulticloud.v1.AwsNodeConfig 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.AwsNodeConfig parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.gkemulticloud.v1.AwsNodeConfig 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.AwsNodeConfig parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.gkemulticloud.v1.AwsNodeConfig 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.AwsNodeConfig parseDelimitedFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.cloud.gkemulticloud.v1.AwsNodeConfig 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.AwsNodeConfig 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.AwsNodeConfig 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.AwsNodeConfig 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>
   * Parameters that describe the nodes in a cluster.
   * </pre>
   *
   * Protobuf type {@code google.cloud.gkemulticloud.v1.AwsNodeConfig}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.gkemulticloud.v1.AwsNodeConfig)
      com.google.cloud.gkemulticloud.v1.AwsNodeConfigOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.gkemulticloud.v1.AwsResourcesProto
          .internal_static_google_cloud_gkemulticloud_v1_AwsNodeConfig_descriptor;
    }

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

    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
      switch (number) {
        case 4:
          return internalGetMutableLabels();
        case 5:
          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_AwsNodeConfig_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.gkemulticloud.v1.AwsNodeConfig.class,
              com.google.cloud.gkemulticloud.v1.AwsNodeConfig.Builder.class);
    }

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

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

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      instanceType_ = "";
      rootVolume_ = null;
      if (rootVolumeBuilder_ != null) {
        rootVolumeBuilder_.dispose();
        rootVolumeBuilder_ = null;
      }
      if (taintsBuilder_ == null) {
        taints_ = java.util.Collections.emptyList();
      } else {
        taints_ = null;
        taintsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000004);
      internalGetMutableLabels().clear();
      internalGetMutableTags().clear();
      iamInstanceProfile_ = "";
      imageType_ = "";
      sshConfig_ = null;
      if (sshConfigBuilder_ != null) {
        sshConfigBuilder_.dispose();
        sshConfigBuilder_ = null;
      }
      securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000100);
      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;
      }
      autoscalingMetricsCollection_ = null;
      if (autoscalingMetricsCollectionBuilder_ != null) {
        autoscalingMetricsCollectionBuilder_.dispose();
        autoscalingMetricsCollectionBuilder_ = 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_AwsNodeConfig_descriptor;
    }

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

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

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

    private void buildPartialRepeatedFields(
        com.google.cloud.gkemulticloud.v1.AwsNodeConfig result) {
      if (taintsBuilder_ == null) {
        if (((bitField0_ & 0x00000004) != 0)) {
          taints_ = java.util.Collections.unmodifiableList(taints_);
          bitField0_ = (bitField0_ & ~0x00000004);
        }
        result.taints_ = taints_;
      } else {
        result.taints_ = taintsBuilder_.build();
      }
      if (((bitField0_ & 0x00000100) != 0)) {
        securityGroupIds_ = securityGroupIds_.getUnmodifiableView();
        bitField0_ = (bitField0_ & ~0x00000100);
      }
      result.securityGroupIds_ = securityGroupIds_;
    }

    private void buildPartial0(com.google.cloud.gkemulticloud.v1.AwsNodeConfig result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.instanceType_ = instanceType_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.rootVolume_ = rootVolumeBuilder_ == null ? rootVolume_ : rootVolumeBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.labels_ = internalGetLabels();
        result.labels_.makeImmutable();
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.tags_ = internalGetTags();
        result.tags_.makeImmutable();
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.iamInstanceProfile_ = iamInstanceProfile_;
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.imageType_ = imageType_;
      }
      if (((from_bitField0_ & 0x00000080) != 0)) {
        result.sshConfig_ = sshConfigBuilder_ == null ? sshConfig_ : sshConfigBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000200) != 0)) {
        result.proxyConfig_ =
            proxyConfigBuilder_ == null ? proxyConfig_ : proxyConfigBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000400) != 0)) {
        result.configEncryption_ =
            configEncryptionBuilder_ == null ? configEncryption_ : configEncryptionBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000800) != 0)) {
        result.instancePlacement_ =
            instancePlacementBuilder_ == null
                ? instancePlacement_
                : instancePlacementBuilder_.build();
      }
      if (((from_bitField0_ & 0x00001000) != 0)) {
        result.autoscalingMetricsCollection_ =
            autoscalingMetricsCollectionBuilder_ == null
                ? autoscalingMetricsCollection_
                : autoscalingMetricsCollectionBuilder_.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.AwsNodeConfig) {
        return mergeFrom((com.google.cloud.gkemulticloud.v1.AwsNodeConfig) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.cloud.gkemulticloud.v1.AwsNodeConfig other) {
      if (other == com.google.cloud.gkemulticloud.v1.AwsNodeConfig.getDefaultInstance())
        return this;
      if (!other.getInstanceType().isEmpty()) {
        instanceType_ = other.instanceType_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (other.hasRootVolume()) {
        mergeRootVolume(other.getRootVolume());
      }
      if (taintsBuilder_ == null) {
        if (!other.taints_.isEmpty()) {
          if (taints_.isEmpty()) {
            taints_ = other.taints_;
            bitField0_ = (bitField0_ & ~0x00000004);
          } else {
            ensureTaintsIsMutable();
            taints_.addAll(other.taints_);
          }
          onChanged();
        }
      } else {
        if (!other.taints_.isEmpty()) {
          if (taintsBuilder_.isEmpty()) {
            taintsBuilder_.dispose();
            taintsBuilder_ = null;
            taints_ = other.taints_;
            bitField0_ = (bitField0_ & ~0x00000004);
            taintsBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getTaintsFieldBuilder()
                    : null;
          } else {
            taintsBuilder_.addAllMessages(other.taints_);
          }
        }
      }
      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
      bitField0_ |= 0x00000008;
      internalGetMutableTags().mergeFrom(other.internalGetTags());
      bitField0_ |= 0x00000010;
      if (!other.getIamInstanceProfile().isEmpty()) {
        iamInstanceProfile_ = other.iamInstanceProfile_;
        bitField0_ |= 0x00000020;
        onChanged();
      }
      if (!other.getImageType().isEmpty()) {
        imageType_ = other.imageType_;
        bitField0_ |= 0x00000040;
        onChanged();
      }
      if (other.hasSshConfig()) {
        mergeSshConfig(other.getSshConfig());
      }
      if (!other.securityGroupIds_.isEmpty()) {
        if (securityGroupIds_.isEmpty()) {
          securityGroupIds_ = other.securityGroupIds_;
          bitField0_ = (bitField0_ & ~0x00000100);
        } else {
          ensureSecurityGroupIdsIsMutable();
          securityGroupIds_.addAll(other.securityGroupIds_);
        }
        onChanged();
      }
      if (other.hasProxyConfig()) {
        mergeProxyConfig(other.getProxyConfig());
      }
      if (other.hasConfigEncryption()) {
        mergeConfigEncryption(other.getConfigEncryption());
      }
      if (other.hasInstancePlacement()) {
        mergeInstancePlacement(other.getInstancePlacement());
      }
      if (other.hasAutoscalingMetricsCollection()) {
        mergeAutoscalingMetricsCollection(other.getAutoscalingMetricsCollection());
      }
      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:
              {
                instanceType_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
            case 18:
              {
                input.readMessage(getRootVolumeFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000002;
                break;
              } // case 18
            case 26:
              {
                com.google.cloud.gkemulticloud.v1.NodeTaint m =
                    input.readMessage(
                        com.google.cloud.gkemulticloud.v1.NodeTaint.parser(), extensionRegistry);
                if (taintsBuilder_ == null) {
                  ensureTaintsIsMutable();
                  taints_.add(m);
                } else {
                  taintsBuilder_.addMessage(m);
                }
                break;
              } // case 26
            case 34:
              {
                com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ =
                    input.readMessage(
                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
                        extensionRegistry);
                internalGetMutableLabels()
                    .getMutableMap()
                    .put(labels__.getKey(), labels__.getValue());
                bitField0_ |= 0x00000008;
                break;
              } // case 34
            case 42:
              {
                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_ |= 0x00000010;
                break;
              } // case 42
            case 50:
              {
                iamInstanceProfile_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000020;
                break;
              } // case 50
            case 74:
              {
                input.readMessage(getSshConfigFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000080;
                break;
              } // case 74
            case 82:
              {
                java.lang.String s = input.readStringRequireUtf8();
                ensureSecurityGroupIdsIsMutable();
                securityGroupIds_.add(s);
                break;
              } // case 82
            case 90:
              {
                imageType_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000040;
                break;
              } // case 90
            case 98:
              {
                input.readMessage(getProxyConfigFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000200;
                break;
              } // case 98
            case 106:
              {
                input.readMessage(
                    getConfigEncryptionFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000400;
                break;
              } // case 106
            case 114:
              {
                input.readMessage(
                    getInstancePlacementFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000800;
                break;
              } // case 114
            case 122:
              {
                input.readMessage(
                    getAutoscalingMetricsCollectionFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00001000;
                break;
              } // case 122
            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 instanceType_ = "";
    /**
     *
     *
     * <pre>
     * Optional. The AWS instance type.
     * When unspecified, it uses a default based on the node pool's version.
     * </pre>
     *
     * <code>string instance_type = 1 [(.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 node pool's version.
     * </pre>
     *
     * <code>string instance_type = 1 [(.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 node pool's version.
     * </pre>
     *
     * <code>string instance_type = 1 [(.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_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The AWS instance type.
     * When unspecified, it uses a default based on the node pool's version.
     * </pre>
     *
     * <code>string instance_type = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearInstanceType() {
      instanceType_ = getDefaultInstance().getInstanceType();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The AWS instance type.
     * When unspecified, it uses a default based on the node pool's version.
     * </pre>
     *
     * <code>string instance_type = 1 [(.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_ |= 0x00000001;
      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. Template for the root volume provisioned for node pool nodes.
     * Volumes will be provisioned in the availability zone assigned
     * to the node pool subnet.
     * When unspecified, it defaults to 32 GiB with the GP2 volume type.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 2 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return Whether the rootVolume field is set.
     */
    public boolean hasRootVolume() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     *
     *
     * <pre>
     * Optional. Template for the root volume provisioned for node pool nodes.
     * Volumes will be provisioned in the availability zone assigned
     * to the node pool subnet.
     * When unspecified, it defaults to 32 GiB with the GP2 volume type.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 2 [(.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. Template for the root volume provisioned for node pool nodes.
     * Volumes will be provisioned in the availability zone assigned
     * to the node pool subnet.
     * When unspecified, it defaults to 32 GiB with the GP2 volume type.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 2 [(.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_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Template for the root volume provisioned for node pool nodes.
     * Volumes will be provisioned in the availability zone assigned
     * to the node pool subnet.
     * When unspecified, it defaults to 32 GiB with the GP2 volume type.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 2 [(.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_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Template for the root volume provisioned for node pool nodes.
     * Volumes will be provisioned in the availability zone assigned
     * to the node pool subnet.
     * When unspecified, it defaults to 32 GiB with the GP2 volume type.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 2 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder mergeRootVolume(com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate value) {
      if (rootVolumeBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)
            && rootVolume_ != null
            && rootVolume_
                != com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate.getDefaultInstance()) {
          getRootVolumeBuilder().mergeFrom(value);
        } else {
          rootVolume_ = value;
        }
      } else {
        rootVolumeBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Template for the root volume provisioned for node pool nodes.
     * Volumes will be provisioned in the availability zone assigned
     * to the node pool subnet.
     * When unspecified, it defaults to 32 GiB with the GP2 volume type.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 2 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder clearRootVolume() {
      bitField0_ = (bitField0_ & ~0x00000002);
      rootVolume_ = null;
      if (rootVolumeBuilder_ != null) {
        rootVolumeBuilder_.dispose();
        rootVolumeBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Template for the root volume provisioned for node pool nodes.
     * Volumes will be provisioned in the availability zone assigned
     * to the node pool subnet.
     * When unspecified, it defaults to 32 GiB with the GP2 volume type.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 2 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate.Builder getRootVolumeBuilder() {
      bitField0_ |= 0x00000002;
      onChanged();
      return getRootVolumeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Optional. Template for the root volume provisioned for node pool nodes.
     * Volumes will be provisioned in the availability zone assigned
     * to the node pool subnet.
     * When unspecified, it defaults to 32 GiB with the GP2 volume type.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 2 [(.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. Template for the root volume provisioned for node pool nodes.
     * Volumes will be provisioned in the availability zone assigned
     * to the node pool subnet.
     * When unspecified, it defaults to 32 GiB with the GP2 volume type.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 2 [(.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 java.util.List<com.google.cloud.gkemulticloud.v1.NodeTaint> taints_ =
        java.util.Collections.emptyList();

    private void ensureTaintsIsMutable() {
      if (!((bitField0_ & 0x00000004) != 0)) {
        taints_ = new java.util.ArrayList<com.google.cloud.gkemulticloud.v1.NodeTaint>(taints_);
        bitField0_ |= 0x00000004;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.gkemulticloud.v1.NodeTaint,
            com.google.cloud.gkemulticloud.v1.NodeTaint.Builder,
            com.google.cloud.gkemulticloud.v1.NodeTaintOrBuilder>
        taintsBuilder_;

    /**
     *
     *
     * <pre>
     * Optional. The initial taints assigned to nodes of this node pool.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public java.util.List<com.google.cloud.gkemulticloud.v1.NodeTaint> getTaintsList() {
      if (taintsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(taints_);
      } else {
        return taintsBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The initial taints assigned to nodes of this node pool.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public int getTaintsCount() {
      if (taintsBuilder_ == null) {
        return taints_.size();
      } else {
        return taintsBuilder_.getCount();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The initial taints assigned to nodes of this node pool.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.gkemulticloud.v1.NodeTaint getTaints(int index) {
      if (taintsBuilder_ == null) {
        return taints_.get(index);
      } else {
        return taintsBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The initial taints assigned to nodes of this node pool.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setTaints(int index, com.google.cloud.gkemulticloud.v1.NodeTaint value) {
      if (taintsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureTaintsIsMutable();
        taints_.set(index, value);
        onChanged();
      } else {
        taintsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The initial taints assigned to nodes of this node pool.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setTaints(
        int index, com.google.cloud.gkemulticloud.v1.NodeTaint.Builder builderForValue) {
      if (taintsBuilder_ == null) {
        ensureTaintsIsMutable();
        taints_.set(index, builderForValue.build());
        onChanged();
      } else {
        taintsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The initial taints assigned to nodes of this node pool.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder addTaints(com.google.cloud.gkemulticloud.v1.NodeTaint value) {
      if (taintsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureTaintsIsMutable();
        taints_.add(value);
        onChanged();
      } else {
        taintsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The initial taints assigned to nodes of this node pool.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder addTaints(int index, com.google.cloud.gkemulticloud.v1.NodeTaint value) {
      if (taintsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureTaintsIsMutable();
        taints_.add(index, value);
        onChanged();
      } else {
        taintsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The initial taints assigned to nodes of this node pool.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder addTaints(com.google.cloud.gkemulticloud.v1.NodeTaint.Builder builderForValue) {
      if (taintsBuilder_ == null) {
        ensureTaintsIsMutable();
        taints_.add(builderForValue.build());
        onChanged();
      } else {
        taintsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The initial taints assigned to nodes of this node pool.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder addTaints(
        int index, com.google.cloud.gkemulticloud.v1.NodeTaint.Builder builderForValue) {
      if (taintsBuilder_ == null) {
        ensureTaintsIsMutable();
        taints_.add(index, builderForValue.build());
        onChanged();
      } else {
        taintsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The initial taints assigned to nodes of this node pool.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder addAllTaints(
        java.lang.Iterable<? extends com.google.cloud.gkemulticloud.v1.NodeTaint> values) {
      if (taintsBuilder_ == null) {
        ensureTaintsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, taints_);
        onChanged();
      } else {
        taintsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The initial taints assigned to nodes of this node pool.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder clearTaints() {
      if (taintsBuilder_ == null) {
        taints_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
        onChanged();
      } else {
        taintsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The initial taints assigned to nodes of this node pool.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder removeTaints(int index) {
      if (taintsBuilder_ == null) {
        ensureTaintsIsMutable();
        taints_.remove(index);
        onChanged();
      } else {
        taintsBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The initial taints assigned to nodes of this node pool.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.gkemulticloud.v1.NodeTaint.Builder getTaintsBuilder(int index) {
      return getTaintsFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     * <pre>
     * Optional. The initial taints assigned to nodes of this node pool.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.gkemulticloud.v1.NodeTaintOrBuilder getTaintsOrBuilder(int index) {
      if (taintsBuilder_ == null) {
        return taints_.get(index);
      } else {
        return taintsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The initial taints assigned to nodes of this node pool.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public java.util.List<? extends com.google.cloud.gkemulticloud.v1.NodeTaintOrBuilder>
        getTaintsOrBuilderList() {
      if (taintsBuilder_ != null) {
        return taintsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(taints_);
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The initial taints assigned to nodes of this node pool.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.gkemulticloud.v1.NodeTaint.Builder addTaintsBuilder() {
      return getTaintsFieldBuilder()
          .addBuilder(com.google.cloud.gkemulticloud.v1.NodeTaint.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Optional. The initial taints assigned to nodes of this node pool.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.gkemulticloud.v1.NodeTaint.Builder addTaintsBuilder(int index) {
      return getTaintsFieldBuilder()
          .addBuilder(index, com.google.cloud.gkemulticloud.v1.NodeTaint.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Optional. The initial taints assigned to nodes of this node pool.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public java.util.List<com.google.cloud.gkemulticloud.v1.NodeTaint.Builder>
        getTaintsBuilderList() {
      return getTaintsFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.gkemulticloud.v1.NodeTaint,
            com.google.cloud.gkemulticloud.v1.NodeTaint.Builder,
            com.google.cloud.gkemulticloud.v1.NodeTaintOrBuilder>
        getTaintsFieldBuilder() {
      if (taintsBuilder_ == null) {
        taintsBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.gkemulticloud.v1.NodeTaint,
                com.google.cloud.gkemulticloud.v1.NodeTaint.Builder,
                com.google.cloud.gkemulticloud.v1.NodeTaintOrBuilder>(
                taints_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
        taints_ = null;
      }
      return taintsBuilder_;
    }

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

    private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() {
      if (labels_ == null) {
        return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
      }
      return labels_;
    }

    private com.google.protobuf.MapField<java.lang.String, java.lang.String>
        internalGetMutableLabels() {
      if (labels_ == null) {
        labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
      }
      if (!labels_.isMutable()) {
        labels_ = labels_.copy();
      }
      bitField0_ |= 0x00000008;
      onChanged();
      return labels_;
    }

    public int getLabelsCount() {
      return internalGetLabels().getMap().size();
    }
    /**
     *
     *
     * <pre>
     * Optional. The initial labels assigned to nodes of this node pool. An object
     * containing a list of "key": value pairs. Example: { "name": "wrench",
     * "mass": "1.3kg", "count": "3" }.
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    @java.lang.Override
    public boolean containsLabels(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      return internalGetLabels().getMap().containsKey(key);
    }
    /** Use {@link #getLabelsMap()} instead. */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.String> getLabels() {
      return getLabelsMap();
    }
    /**
     *
     *
     * <pre>
     * Optional. The initial labels assigned to nodes of this node pool. An object
     * containing a list of "key": value pairs. Example: { "name": "wrench",
     * "mass": "1.3kg", "count": "3" }.
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    @java.lang.Override
    public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {
      return internalGetLabels().getMap();
    }
    /**
     *
     *
     * <pre>
     * Optional. The initial labels assigned to nodes of this node pool. An object
     * containing a list of "key": value pairs. Example: { "name": "wrench",
     * "mass": "1.3kg", "count": "3" }.
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    @java.lang.Override
    public /* nullable */ java.lang.String getLabelsOrDefault(
        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 = internalGetLabels().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     *
     *
     * <pre>
     * Optional. The initial labels assigned to nodes of this node pool. An object
     * containing a list of "key": value pairs. Example: { "name": "wrench",
     * "mass": "1.3kg", "count": "3" }.
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    @java.lang.Override
    public java.lang.String getLabelsOrThrow(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    public Builder clearLabels() {
      bitField0_ = (bitField0_ & ~0x00000008);
      internalGetMutableLabels().getMutableMap().clear();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The initial labels assigned to nodes of this node pool. An object
     * containing a list of "key": value pairs. Example: { "name": "wrench",
     * "mass": "1.3kg", "count": "3" }.
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    public Builder removeLabels(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      internalGetMutableLabels().getMutableMap().remove(key);
      return this;
    }
    /** Use alternate mutation accessors instead. */
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.String> getMutableLabels() {
      bitField0_ |= 0x00000008;
      return internalGetMutableLabels().getMutableMap();
    }
    /**
     *
     *
     * <pre>
     * Optional. The initial labels assigned to nodes of this node pool. An object
     * containing a list of "key": value pairs. Example: { "name": "wrench",
     * "mass": "1.3kg", "count": "3" }.
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    public Builder putLabels(java.lang.String key, java.lang.String value) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      if (value == null) {
        throw new NullPointerException("map value");
      }
      internalGetMutableLabels().getMutableMap().put(key, value);
      bitField0_ |= 0x00000008;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The initial labels assigned to nodes of this node pool. An object
     * containing a list of "key": value pairs. Example: { "name": "wrench",
     * "mass": "1.3kg", "count": "3" }.
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    public Builder putAllLabels(java.util.Map<java.lang.String, java.lang.String> values) {
      internalGetMutableLabels().getMutableMap().putAll(values);
      bitField0_ |= 0x00000008;
      return this;
    }

    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_ |= 0x00000010;
      onChanged();
      return tags_;
    }

    public int getTagsCount() {
      return internalGetTags().getMap().size();
    }
    /**
     *
     *
     * <pre>
     * Optional. Key/value metadata to assign to each underlying AWS resource.
     * 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 = 5 [(.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. Key/value metadata to assign to each underlying AWS resource.
     * 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 = 5 [(.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. Key/value metadata to assign to each underlying AWS resource.
     * 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 = 5 [(.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. Key/value metadata to assign to each underlying AWS resource.
     * 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 = 5 [(.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_ & ~0x00000010);
      internalGetMutableTags().getMutableMap().clear();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Key/value metadata to assign to each underlying AWS resource.
     * 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 = 5 [(.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_ |= 0x00000010;
      return internalGetMutableTags().getMutableMap();
    }
    /**
     *
     *
     * <pre>
     * Optional. Key/value metadata to assign to each underlying AWS resource.
     * 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 = 5 [(.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_ |= 0x00000010;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Key/value metadata to assign to each underlying AWS resource.
     * 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 = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    public Builder putAllTags(java.util.Map<java.lang.String, java.lang.String> values) {
      internalGetMutableTags().getMutableMap().putAll(values);
      bitField0_ |= 0x00000010;
      return this;
    }

    private java.lang.Object iamInstanceProfile_ = "";
    /**
     *
     *
     * <pre>
     * Required. The name or ARN of the AWS IAM role assigned to nodes in the
     * pool.
     * </pre>
     *
     * <code>string iam_instance_profile = 6 [(.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 role assigned to nodes in the
     * pool.
     * </pre>
     *
     * <code>string iam_instance_profile = 6 [(.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 role assigned to nodes in the
     * pool.
     * </pre>
     *
     * <code>string iam_instance_profile = 6 [(.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 role assigned to nodes in the
     * pool.
     * </pre>
     *
     * <code>string iam_instance_profile = 6 [(.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 role assigned to nodes in the
     * pool.
     * </pre>
     *
     * <code>string iam_instance_profile = 6 [(.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 java.lang.Object imageType_ = "";
    /**
     *
     *
     * <pre>
     * Optional. The OS image type to use on node pool instances.
     * Can have a value of `ubuntu`, or `windows` if the cluster enables
     * the Windows node pool preview feature.
     * When unspecified, it defaults to `ubuntu`.
     * </pre>
     *
     * <code>string image_type = 11 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The imageType.
     */
    public java.lang.String getImageType() {
      java.lang.Object ref = imageType_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        imageType_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The OS image type to use on node pool instances.
     * Can have a value of `ubuntu`, or `windows` if the cluster enables
     * the Windows node pool preview feature.
     * When unspecified, it defaults to `ubuntu`.
     * </pre>
     *
     * <code>string image_type = 11 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The bytes for imageType.
     */
    public com.google.protobuf.ByteString getImageTypeBytes() {
      java.lang.Object ref = imageType_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        imageType_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The OS image type to use on node pool instances.
     * Can have a value of `ubuntu`, or `windows` if the cluster enables
     * the Windows node pool preview feature.
     * When unspecified, it defaults to `ubuntu`.
     * </pre>
     *
     * <code>string image_type = 11 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param value The imageType to set.
     * @return This builder for chaining.
     */
    public Builder setImageType(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      imageType_ = value;
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The OS image type to use on node pool instances.
     * Can have a value of `ubuntu`, or `windows` if the cluster enables
     * the Windows node pool preview feature.
     * When unspecified, it defaults to `ubuntu`.
     * </pre>
     *
     * <code>string image_type = 11 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearImageType() {
      imageType_ = getDefaultInstance().getImageType();
      bitField0_ = (bitField0_ & ~0x00000040);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The OS image type to use on node pool instances.
     * Can have a value of `ubuntu`, or `windows` if the cluster enables
     * the Windows node pool preview feature.
     * When unspecified, it defaults to `ubuntu`.
     * </pre>
     *
     * <code>string image_type = 11 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param value The bytes for imageType to set.
     * @return This builder for chaining.
     */
    public Builder setImageTypeBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      imageType_ = value;
      bitField0_ |= 0x00000040;
      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. The SSH configuration.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 9 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return Whether the sshConfig field is set.
     */
    public boolean hasSshConfig() {
      return ((bitField0_ & 0x00000080) != 0);
    }
    /**
     *
     *
     * <pre>
     * Optional. The SSH configuration.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 9 [(.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. The SSH configuration.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 9 [(.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_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The SSH configuration.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 9 [(.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_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The SSH configuration.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 9 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder mergeSshConfig(com.google.cloud.gkemulticloud.v1.AwsSshConfig value) {
      if (sshConfigBuilder_ == null) {
        if (((bitField0_ & 0x00000080) != 0)
            && sshConfig_ != null
            && sshConfig_ != com.google.cloud.gkemulticloud.v1.AwsSshConfig.getDefaultInstance()) {
          getSshConfigBuilder().mergeFrom(value);
        } else {
          sshConfig_ = value;
        }
      } else {
        sshConfigBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The SSH configuration.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 9 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder clearSshConfig() {
      bitField0_ = (bitField0_ & ~0x00000080);
      sshConfig_ = null;
      if (sshConfigBuilder_ != null) {
        sshConfigBuilder_.dispose();
        sshConfigBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The SSH configuration.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 9 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.gkemulticloud.v1.AwsSshConfig.Builder getSshConfigBuilder() {
      bitField0_ |= 0x00000080;
      onChanged();
      return getSshConfigFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Optional. The SSH configuration.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 9 [(.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. The SSH configuration.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 9 [(.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 securityGroupIds_ =
        com.google.protobuf.LazyStringArrayList.EMPTY;

    private void ensureSecurityGroupIdsIsMutable() {
      if (!((bitField0_ & 0x00000100) != 0)) {
        securityGroupIds_ = new com.google.protobuf.LazyStringArrayList(securityGroupIds_);
        bitField0_ |= 0x00000100;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The IDs of additional security groups to add to nodes in this
     * pool. The manager will automatically create security groups with minimum
     * rules needed for a functioning cluster.
     * </pre>
     *
     * <code>repeated string security_group_ids = 10 [(.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 nodes in this
     * pool. The manager will automatically create security groups with minimum
     * rules needed for a functioning cluster.
     * </pre>
     *
     * <code>repeated string security_group_ids = 10 [(.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 nodes in this
     * pool. The manager will automatically create security groups with minimum
     * rules needed for a functioning cluster.
     * </pre>
     *
     * <code>repeated string security_group_ids = 10 [(.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 nodes in this
     * pool. The manager will automatically create security groups with minimum
     * rules needed for a functioning cluster.
     * </pre>
     *
     * <code>repeated string security_group_ids = 10 [(.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 nodes in this
     * pool. The manager will automatically create security groups with minimum
     * rules needed for a functioning cluster.
     * </pre>
     *
     * <code>repeated string security_group_ids = 10 [(.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 nodes in this
     * pool. The manager will automatically create security groups with minimum
     * rules needed for a functioning cluster.
     * </pre>
     *
     * <code>repeated string security_group_ids = 10 [(.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 nodes in this
     * pool. The manager will automatically create security groups with minimum
     * rules needed for a functioning cluster.
     * </pre>
     *
     * <code>repeated string security_group_ids = 10 [(.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 nodes in this
     * pool. The manager will automatically create security groups with minimum
     * rules needed for a functioning cluster.
     * </pre>
     *
     * <code>repeated string security_group_ids = 10 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearSecurityGroupIds() {
      securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000100);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The IDs of additional security groups to add to nodes in this
     * pool. The manager will automatically create security groups with minimum
     * rules needed for a functioning cluster.
     * </pre>
     *
     * <code>repeated string security_group_ids = 10 [(.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 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 = 12 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return Whether the proxyConfig field is set.
     */
    public boolean hasProxyConfig() {
      return ((bitField0_ & 0x00000200) != 0);
    }
    /**
     *
     *
     * <pre>
     * Optional. Proxy configuration for outbound HTTP(S) traffic.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsProxyConfig proxy_config = 12 [(.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 = 12 [(.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_ |= 0x00000200;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Proxy configuration for outbound HTTP(S) traffic.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsProxyConfig proxy_config = 12 [(.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_ |= 0x00000200;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Proxy configuration for outbound HTTP(S) traffic.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsProxyConfig proxy_config = 12 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder mergeProxyConfig(com.google.cloud.gkemulticloud.v1.AwsProxyConfig value) {
      if (proxyConfigBuilder_ == null) {
        if (((bitField0_ & 0x00000200) != 0)
            && proxyConfig_ != null
            && proxyConfig_
                != com.google.cloud.gkemulticloud.v1.AwsProxyConfig.getDefaultInstance()) {
          getProxyConfigBuilder().mergeFrom(value);
        } else {
          proxyConfig_ = value;
        }
      } else {
        proxyConfigBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000200;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Proxy configuration for outbound HTTP(S) traffic.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsProxyConfig proxy_config = 12 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder clearProxyConfig() {
      bitField0_ = (bitField0_ & ~0x00000200);
      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 = 12 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.gkemulticloud.v1.AwsProxyConfig.Builder getProxyConfigBuilder() {
      bitField0_ |= 0x00000200;
      onChanged();
      return getProxyConfigFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Optional. Proxy configuration for outbound HTTP(S) traffic.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsProxyConfig proxy_config = 12 [(.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 = 12 [(.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 = 13 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     *
     * @return Whether the configEncryption field is set.
     */
    public boolean hasConfigEncryption() {
      return ((bitField0_ & 0x00000400) != 0);
    }
    /**
     *
     *
     * <pre>
     * Required. Config encryption for user data.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsConfigEncryption config_encryption = 13 [(.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 = 13 [(.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_ |= 0x00000400;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. Config encryption for user data.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsConfigEncryption config_encryption = 13 [(.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_ |= 0x00000400;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. Config encryption for user data.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsConfigEncryption config_encryption = 13 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    public Builder mergeConfigEncryption(
        com.google.cloud.gkemulticloud.v1.AwsConfigEncryption value) {
      if (configEncryptionBuilder_ == null) {
        if (((bitField0_ & 0x00000400) != 0)
            && configEncryption_ != null
            && configEncryption_
                != com.google.cloud.gkemulticloud.v1.AwsConfigEncryption.getDefaultInstance()) {
          getConfigEncryptionBuilder().mergeFrom(value);
        } else {
          configEncryption_ = value;
        }
      } else {
        configEncryptionBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000400;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. Config encryption for user data.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsConfigEncryption config_encryption = 13 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    public Builder clearConfigEncryption() {
      bitField0_ = (bitField0_ & ~0x00000400);
      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 = 13 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    public com.google.cloud.gkemulticloud.v1.AwsConfigEncryption.Builder
        getConfigEncryptionBuilder() {
      bitField0_ |= 0x00000400;
      onChanged();
      return getConfigEncryptionFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Required. Config encryption for user data.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsConfigEncryption config_encryption = 13 [(.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 = 13 [(.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. Placement related info for this node.
     * When unspecified, the VPC's default tenancy will be used.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 14 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return Whether the instancePlacement field is set.
     */
    public boolean hasInstancePlacement() {
      return ((bitField0_ & 0x00000800) != 0);
    }
    /**
     *
     *
     * <pre>
     * Optional. Placement related info for this node.
     * When unspecified, the VPC's default tenancy will be used.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 14 [(.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. Placement related info for this node.
     * When unspecified, the VPC's default tenancy will be used.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 14 [(.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_ |= 0x00000800;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Placement related info for this node.
     * When unspecified, the VPC's default tenancy will be used.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 14 [(.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_ |= 0x00000800;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Placement related info for this node.
     * When unspecified, the VPC's default tenancy will be used.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 14 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder mergeInstancePlacement(
        com.google.cloud.gkemulticloud.v1.AwsInstancePlacement value) {
      if (instancePlacementBuilder_ == null) {
        if (((bitField0_ & 0x00000800) != 0)
            && instancePlacement_ != null
            && instancePlacement_
                != com.google.cloud.gkemulticloud.v1.AwsInstancePlacement.getDefaultInstance()) {
          getInstancePlacementBuilder().mergeFrom(value);
        } else {
          instancePlacement_ = value;
        }
      } else {
        instancePlacementBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000800;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Placement related info for this node.
     * When unspecified, the VPC's default tenancy will be used.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 14 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder clearInstancePlacement() {
      bitField0_ = (bitField0_ & ~0x00000800);
      instancePlacement_ = null;
      if (instancePlacementBuilder_ != null) {
        instancePlacementBuilder_.dispose();
        instancePlacementBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Placement related info for this node.
     * When unspecified, the VPC's default tenancy will be used.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 14 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.gkemulticloud.v1.AwsInstancePlacement.Builder
        getInstancePlacementBuilder() {
      bitField0_ |= 0x00000800;
      onChanged();
      return getInstancePlacementFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Optional. Placement related info for this node.
     * When unspecified, the VPC's default tenancy will be used.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 14 [(.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. Placement related info for this node.
     * When unspecified, the VPC's default tenancy will be used.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 14 [(.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_;
    }

    private com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection
        autoscalingMetricsCollection_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection,
            com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection.Builder,
            com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollectionOrBuilder>
        autoscalingMetricsCollectionBuilder_;
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to CloudWatch metrics collection on the
     * Auto Scaling group of the node pool.
     * When unspecified, metrics collection is disabled.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return Whether the autoscalingMetricsCollection field is set.
     */
    public boolean hasAutoscalingMetricsCollection() {
      return ((bitField0_ & 0x00001000) != 0);
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to CloudWatch metrics collection on the
     * Auto Scaling group of the node pool.
     * When unspecified, metrics collection is disabled.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The autoscalingMetricsCollection.
     */
    public com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection
        getAutoscalingMetricsCollection() {
      if (autoscalingMetricsCollectionBuilder_ == null) {
        return autoscalingMetricsCollection_ == null
            ? com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection
                .getDefaultInstance()
            : autoscalingMetricsCollection_;
      } else {
        return autoscalingMetricsCollectionBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to CloudWatch metrics collection on the
     * Auto Scaling group of the node pool.
     * When unspecified, metrics collection is disabled.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setAutoscalingMetricsCollection(
        com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection value) {
      if (autoscalingMetricsCollectionBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        autoscalingMetricsCollection_ = value;
      } else {
        autoscalingMetricsCollectionBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00001000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to CloudWatch metrics collection on the
     * Auto Scaling group of the node pool.
     * When unspecified, metrics collection is disabled.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setAutoscalingMetricsCollection(
        com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection.Builder
            builderForValue) {
      if (autoscalingMetricsCollectionBuilder_ == null) {
        autoscalingMetricsCollection_ = builderForValue.build();
      } else {
        autoscalingMetricsCollectionBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00001000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to CloudWatch metrics collection on the
     * Auto Scaling group of the node pool.
     * When unspecified, metrics collection is disabled.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder mergeAutoscalingMetricsCollection(
        com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection value) {
      if (autoscalingMetricsCollectionBuilder_ == null) {
        if (((bitField0_ & 0x00001000) != 0)
            && autoscalingMetricsCollection_ != null
            && autoscalingMetricsCollection_
                != com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection
                    .getDefaultInstance()) {
          getAutoscalingMetricsCollectionBuilder().mergeFrom(value);
        } else {
          autoscalingMetricsCollection_ = value;
        }
      } else {
        autoscalingMetricsCollectionBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00001000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to CloudWatch metrics collection on the
     * Auto Scaling group of the node pool.
     * When unspecified, metrics collection is disabled.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder clearAutoscalingMetricsCollection() {
      bitField0_ = (bitField0_ & ~0x00001000);
      autoscalingMetricsCollection_ = null;
      if (autoscalingMetricsCollectionBuilder_ != null) {
        autoscalingMetricsCollectionBuilder_.dispose();
        autoscalingMetricsCollectionBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to CloudWatch metrics collection on the
     * Auto Scaling group of the node pool.
     * When unspecified, metrics collection is disabled.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection.Builder
        getAutoscalingMetricsCollectionBuilder() {
      bitField0_ |= 0x00001000;
      onChanged();
      return getAutoscalingMetricsCollectionFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to CloudWatch metrics collection on the
     * Auto Scaling group of the node pool.
     * When unspecified, metrics collection is disabled.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollectionOrBuilder
        getAutoscalingMetricsCollectionOrBuilder() {
      if (autoscalingMetricsCollectionBuilder_ != null) {
        return autoscalingMetricsCollectionBuilder_.getMessageOrBuilder();
      } else {
        return autoscalingMetricsCollection_ == null
            ? com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection
                .getDefaultInstance()
            : autoscalingMetricsCollection_;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to CloudWatch metrics collection on the
     * Auto Scaling group of the node pool.
     * When unspecified, metrics collection is disabled.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection,
            com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection.Builder,
            com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollectionOrBuilder>
        getAutoscalingMetricsCollectionFieldBuilder() {
      if (autoscalingMetricsCollectionBuilder_ == null) {
        autoscalingMetricsCollectionBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection,
                com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection.Builder,
                com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollectionOrBuilder>(
                getAutoscalingMetricsCollection(), getParentForChildren(), isClean());
        autoscalingMetricsCollection_ = null;
      }
      return autoscalingMetricsCollectionBuilder_;
    }

    @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.AwsNodeConfig)
  }

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

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

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

  private static final com.google.protobuf.Parser<AwsNodeConfig> PARSER =
      new com.google.protobuf.AbstractParser<AwsNodeConfig>() {
        @java.lang.Override
        public AwsNodeConfig 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<AwsNodeConfig> parser() {
    return PARSER;
  }

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

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