/*
 * Copyright 2023 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/azure_resources.proto

package com.google.cloud.gkemulticloud.v1;

/**
 *
 *
 * <pre>
 * Parameters that describe the configuration of all node machines
 * on a given node pool.
 * </pre>
 *
 * Protobuf type {@code google.cloud.gkemulticloud.v1.AzureNodeConfig}
 */
public final class AzureNodeConfig extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AzureNodeConfig)
    AzureNodeConfigOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use AzureNodeConfig.newBuilder() to construct.
  private AzureNodeConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private AzureNodeConfig() {
    vmSize_ = "";
    imageType_ = "";
    taints_ = java.util.Collections.emptyList();
  }

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

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

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

  public static final int VM_SIZE_FIELD_NUMBER = 1;

  @SuppressWarnings("serial")
  private volatile java.lang.Object vmSize_ = "";
  /**
   *
   *
   * <pre>
   * Optional. The Azure VM size name. Example: `Standard_DS2_v2`.
   *
   * See [Supported VM
   * sizes](/anthos/clusters/docs/azure/reference/supported-vms) for options.
   *
   * When unspecified, it defaults to `Standard_DS2_v2`.
   * </pre>
   *
   * <code>string vm_size = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The vmSize.
   */
  @java.lang.Override
  public java.lang.String getVmSize() {
    java.lang.Object ref = vmSize_;
    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();
      vmSize_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Optional. The Azure VM size name. Example: `Standard_DS2_v2`.
   *
   * See [Supported VM
   * sizes](/anthos/clusters/docs/azure/reference/supported-vms) for options.
   *
   * When unspecified, it defaults to `Standard_DS2_v2`.
   * </pre>
   *
   * <code>string vm_size = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The bytes for vmSize.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getVmSizeBytes() {
    java.lang.Object ref = vmSize_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      vmSize_ = 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.AzureDiskTemplate rootVolume_;
  /**
   *
   *
   * <pre>
   * Optional. Configuration related to the root volume provisioned for each
   * node pool machine.
   *
   * When unspecified, it defaults to a 32-GiB Azure Disk.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AzureDiskTemplate 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. Configuration related to the root volume provisioned for each
   * node pool machine.
   *
   * When unspecified, it defaults to a 32-GiB Azure Disk.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AzureDiskTemplate root_volume = 2 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return The rootVolume.
   */
  @java.lang.Override
  public com.google.cloud.gkemulticloud.v1.AzureDiskTemplate getRootVolume() {
    return rootVolume_ == null
        ? com.google.cloud.gkemulticloud.v1.AzureDiskTemplate.getDefaultInstance()
        : rootVolume_;
  }
  /**
   *
   *
   * <pre>
   * Optional. Configuration related to the root volume provisioned for each
   * node pool machine.
   *
   * When unspecified, it defaults to a 32-GiB Azure Disk.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AzureDiskTemplate root_volume = 2 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.gkemulticloud.v1.AzureDiskTemplateOrBuilder getRootVolumeOrBuilder() {
    return rootVolume_ == null
        ? com.google.cloud.gkemulticloud.v1.AzureDiskTemplate.getDefaultInstance()
        : rootVolume_;
  }

  public static final int TAGS_FIELD_NUMBER = 3;

  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.AzureResourcesProto
                .internal_static_google_cloud_gkemulticloud_v1_AzureNodeConfig_TagsEntry_descriptor,
            com.google.protobuf.WireFormat.FieldType.STRING,
            "",
            com.google.protobuf.WireFormat.FieldType.STRING,
            "");
  }

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

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

  public int getTagsCount() {
    return internalGetTags().getMap().size();
  }
  /**
   *
   *
   * <pre>
   * Optional. A set of tags to apply to all underlying Azure resources for this
   * node pool. This currently only includes Virtual Machine Scale Sets.
   *
   * 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 = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
   */
  @java.lang.Override
  public boolean containsTags(java.lang.String key) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    return internalGetTags().getMap().containsKey(key);
  }
  /** Use {@link #getTagsMap()} instead. */
  @java.lang.Override
  @java.lang.Deprecated
  public java.util.Map<java.lang.String, java.lang.String> getTags() {
    return getTagsMap();
  }
  /**
   *
   *
   * <pre>
   * Optional. A set of tags to apply to all underlying Azure resources for this
   * node pool. This currently only includes Virtual Machine Scale Sets.
   *
   * 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 = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
   */
  @java.lang.Override
  public java.util.Map<java.lang.String, java.lang.String> getTagsMap() {
    return internalGetTags().getMap();
  }
  /**
   *
   *
   * <pre>
   * Optional. A set of tags to apply to all underlying Azure resources for this
   * node pool. This currently only includes Virtual Machine Scale Sets.
   *
   * 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 = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
   */
  @java.lang.Override
  public /* nullable */ java.lang.String getTagsOrDefault(
      java.lang.String key,
      /* nullable */
      java.lang.String defaultValue) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    java.util.Map<java.lang.String, java.lang.String> map = internalGetTags().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
  /**
   *
   *
   * <pre>
   * Optional. A set of tags to apply to all underlying Azure resources for this
   * node pool. This currently only includes Virtual Machine Scale Sets.
   *
   * 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 = 3 [(.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 IMAGE_TYPE_FIELD_NUMBER = 8;

  @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 = 8 [(.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 = 8 [(.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 = 7;
  private com.google.cloud.gkemulticloud.v1.AzureSshConfig sshConfig_;
  /**
   *
   *
   * <pre>
   * Required. SSH configuration for how to access the node pool machines.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AzureSshConfig ssh_config = 7 [(.google.api.field_behavior) = REQUIRED];
   * </code>
   *
   * @return Whether the sshConfig field is set.
   */
  @java.lang.Override
  public boolean hasSshConfig() {
    return sshConfig_ != null;
  }
  /**
   *
   *
   * <pre>
   * Required. SSH configuration for how to access the node pool machines.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AzureSshConfig ssh_config = 7 [(.google.api.field_behavior) = REQUIRED];
   * </code>
   *
   * @return The sshConfig.
   */
  @java.lang.Override
  public com.google.cloud.gkemulticloud.v1.AzureSshConfig getSshConfig() {
    return sshConfig_ == null
        ? com.google.cloud.gkemulticloud.v1.AzureSshConfig.getDefaultInstance()
        : sshConfig_;
  }
  /**
   *
   *
   * <pre>
   * Required. SSH configuration for how to access the node pool machines.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AzureSshConfig ssh_config = 7 [(.google.api.field_behavior) = REQUIRED];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.gkemulticloud.v1.AzureSshConfigOrBuilder getSshConfigOrBuilder() {
    return sshConfig_ == null
        ? com.google.cloud.gkemulticloud.v1.AzureSshConfig.getDefaultInstance()
        : sshConfig_;
  }

  public static final int PROXY_CONFIG_FIELD_NUMBER = 9;
  private com.google.cloud.gkemulticloud.v1.AzureProxyConfig proxyConfig_;
  /**
   *
   *
   * <pre>
   * Optional. Proxy configuration for outbound HTTP(S) traffic.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AzureProxyConfig proxy_config = 9 [(.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.AzureProxyConfig proxy_config = 9 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return The proxyConfig.
   */
  @java.lang.Override
  public com.google.cloud.gkemulticloud.v1.AzureProxyConfig getProxyConfig() {
    return proxyConfig_ == null
        ? com.google.cloud.gkemulticloud.v1.AzureProxyConfig.getDefaultInstance()
        : proxyConfig_;
  }
  /**
   *
   *
   * <pre>
   * Optional. Proxy configuration for outbound HTTP(S) traffic.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AzureProxyConfig proxy_config = 9 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.gkemulticloud.v1.AzureProxyConfigOrBuilder getProxyConfigOrBuilder() {
    return proxyConfig_ == null
        ? com.google.cloud.gkemulticloud.v1.AzureProxyConfig.getDefaultInstance()
        : proxyConfig_;
  }

  public static final int CONFIG_ENCRYPTION_FIELD_NUMBER = 12;
  private com.google.cloud.gkemulticloud.v1.AzureConfigEncryption configEncryption_;
  /**
   *
   *
   * <pre>
   * Optional. Configuration related to vm config encryption.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AzureConfigEncryption config_encryption = 12 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return Whether the configEncryption field is set.
   */
  @java.lang.Override
  public boolean hasConfigEncryption() {
    return configEncryption_ != null;
  }
  /**
   *
   *
   * <pre>
   * Optional. Configuration related to vm config encryption.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AzureConfigEncryption config_encryption = 12 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return The configEncryption.
   */
  @java.lang.Override
  public com.google.cloud.gkemulticloud.v1.AzureConfigEncryption getConfigEncryption() {
    return configEncryption_ == null
        ? com.google.cloud.gkemulticloud.v1.AzureConfigEncryption.getDefaultInstance()
        : configEncryption_;
  }
  /**
   *
   *
   * <pre>
   * Optional. Configuration related to vm config encryption.
   * </pre>
   *
   * <code>
   * .google.cloud.gkemulticloud.v1.AzureConfigEncryption config_encryption = 12 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.gkemulticloud.v1.AzureConfigEncryptionOrBuilder
      getConfigEncryptionOrBuilder() {
    return configEncryption_ == null
        ? com.google.cloud.gkemulticloud.v1.AzureConfigEncryption.getDefaultInstance()
        : configEncryption_;
  }

  public static final int TAINTS_FIELD_NUMBER = 10;

  @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 = 10 [(.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 = 10 [(.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 = 10 [(.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 = 10 [(.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 = 10 [(.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 = 11;

  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.AzureResourcesProto
                .internal_static_google_cloud_gkemulticloud_v1_AzureNodeConfig_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 = 11 [(.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 = 11 [(.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 = 11 [(.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 = 11 [(.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);
  }

  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(vmSize_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, vmSize_);
    }
    if (rootVolume_ != null) {
      output.writeMessage(2, getRootVolume());
    }
    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
        output, internalGetTags(), TagsDefaultEntryHolder.defaultEntry, 3);
    if (sshConfig_ != null) {
      output.writeMessage(7, getSshConfig());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageType_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, imageType_);
    }
    if (proxyConfig_ != null) {
      output.writeMessage(9, getProxyConfig());
    }
    for (int i = 0; i < taints_.size(); i++) {
      output.writeMessage(10, taints_.get(i));
    }
    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 11);
    if (configEncryption_ != null) {
      output.writeMessage(12, getConfigEncryption());
    }
    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(vmSize_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, vmSize_);
    }
    if (rootVolume_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRootVolume());
    }
    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(3, tags__);
    }
    if (sshConfig_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSshConfig());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageType_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, imageType_);
    }
    if (proxyConfig_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getProxyConfig());
    }
    for (int i = 0; i < taints_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, 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(11, labels__);
    }
    if (configEncryption_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getConfigEncryption());
    }
    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.AzureNodeConfig)) {
      return super.equals(obj);
    }
    com.google.cloud.gkemulticloud.v1.AzureNodeConfig other =
        (com.google.cloud.gkemulticloud.v1.AzureNodeConfig) obj;

    if (!getVmSize().equals(other.getVmSize())) return false;
    if (hasRootVolume() != other.hasRootVolume()) return false;
    if (hasRootVolume()) {
      if (!getRootVolume().equals(other.getRootVolume())) return false;
    }
    if (!internalGetTags().equals(other.internalGetTags())) 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 (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 (!getTaintsList().equals(other.getTaintsList())) return false;
    if (!internalGetLabels().equals(other.internalGetLabels())) 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) + VM_SIZE_FIELD_NUMBER;
    hash = (53 * hash) + getVmSize().hashCode();
    if (hasRootVolume()) {
      hash = (37 * hash) + ROOT_VOLUME_FIELD_NUMBER;
      hash = (53 * hash) + getRootVolume().hashCode();
    }
    if (!internalGetTags().getMap().isEmpty()) {
      hash = (37 * hash) + TAGS_FIELD_NUMBER;
      hash = (53 * hash) + internalGetTags().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 (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 (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();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

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

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

  public static com.google.cloud.gkemulticloud.v1.AzureNodeConfig 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.AzureNodeConfig 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.AzureNodeConfig 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.AzureNodeConfig 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 configuration of all node machines
   * on a given node pool.
   * </pre>
   *
   * Protobuf type {@code google.cloud.gkemulticloud.v1.AzureNodeConfig}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.gkemulticloud.v1.AzureNodeConfig)
      com.google.cloud.gkemulticloud.v1.AzureNodeConfigOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.gkemulticloud.v1.AzureResourcesProto
          .internal_static_google_cloud_gkemulticloud_v1_AzureNodeConfig_descriptor;
    }

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

    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
      switch (number) {
        case 3:
          return internalGetMutableTags();
        case 11:
          return internalGetMutableLabels();
        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.AzureResourcesProto
          .internal_static_google_cloud_gkemulticloud_v1_AzureNodeConfig_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.gkemulticloud.v1.AzureNodeConfig.class,
              com.google.cloud.gkemulticloud.v1.AzureNodeConfig.Builder.class);
    }

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

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

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      vmSize_ = "";
      rootVolume_ = null;
      if (rootVolumeBuilder_ != null) {
        rootVolumeBuilder_.dispose();
        rootVolumeBuilder_ = null;
      }
      internalGetMutableTags().clear();
      imageType_ = "";
      sshConfig_ = null;
      if (sshConfigBuilder_ != null) {
        sshConfigBuilder_.dispose();
        sshConfigBuilder_ = null;
      }
      proxyConfig_ = null;
      if (proxyConfigBuilder_ != null) {
        proxyConfigBuilder_.dispose();
        proxyConfigBuilder_ = null;
      }
      configEncryption_ = null;
      if (configEncryptionBuilder_ != null) {
        configEncryptionBuilder_.dispose();
        configEncryptionBuilder_ = null;
      }
      if (taintsBuilder_ == null) {
        taints_ = java.util.Collections.emptyList();
      } else {
        taints_ = null;
        taintsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000080);
      internalGetMutableLabels().clear();
      return this;
    }

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

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

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

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

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

    private void buildPartial0(com.google.cloud.gkemulticloud.v1.AzureNodeConfig result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.vmSize_ = vmSize_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.rootVolume_ = rootVolumeBuilder_ == null ? rootVolume_ : rootVolumeBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.tags_ = internalGetTags();
        result.tags_.makeImmutable();
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.imageType_ = imageType_;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.sshConfig_ = sshConfigBuilder_ == null ? sshConfig_ : sshConfigBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.proxyConfig_ =
            proxyConfigBuilder_ == null ? proxyConfig_ : proxyConfigBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.configEncryption_ =
            configEncryptionBuilder_ == null ? configEncryption_ : configEncryptionBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000100) != 0)) {
        result.labels_ = internalGetLabels();
        result.labels_.makeImmutable();
      }
    }

    @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.AzureNodeConfig) {
        return mergeFrom((com.google.cloud.gkemulticloud.v1.AzureNodeConfig) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.cloud.gkemulticloud.v1.AzureNodeConfig other) {
      if (other == com.google.cloud.gkemulticloud.v1.AzureNodeConfig.getDefaultInstance())
        return this;
      if (!other.getVmSize().isEmpty()) {
        vmSize_ = other.vmSize_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (other.hasRootVolume()) {
        mergeRootVolume(other.getRootVolume());
      }
      internalGetMutableTags().mergeFrom(other.internalGetTags());
      bitField0_ |= 0x00000004;
      if (!other.getImageType().isEmpty()) {
        imageType_ = other.imageType_;
        bitField0_ |= 0x00000008;
        onChanged();
      }
      if (other.hasSshConfig()) {
        mergeSshConfig(other.getSshConfig());
      }
      if (other.hasProxyConfig()) {
        mergeProxyConfig(other.getProxyConfig());
      }
      if (other.hasConfigEncryption()) {
        mergeConfigEncryption(other.getConfigEncryption());
      }
      if (taintsBuilder_ == null) {
        if (!other.taints_.isEmpty()) {
          if (taints_.isEmpty()) {
            taints_ = other.taints_;
            bitField0_ = (bitField0_ & ~0x00000080);
          } else {
            ensureTaintsIsMutable();
            taints_.addAll(other.taints_);
          }
          onChanged();
        }
      } else {
        if (!other.taints_.isEmpty()) {
          if (taintsBuilder_.isEmpty()) {
            taintsBuilder_.dispose();
            taintsBuilder_ = null;
            taints_ = other.taints_;
            bitField0_ = (bitField0_ & ~0x00000080);
            taintsBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getTaintsFieldBuilder()
                    : null;
          } else {
            taintsBuilder_.addAllMessages(other.taints_);
          }
        }
      }
      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
      bitField0_ |= 0x00000100;
      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:
              {
                vmSize_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
            case 18:
              {
                input.readMessage(getRootVolumeFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000002;
                break;
              } // case 18
            case 26:
              {
                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_ |= 0x00000004;
                break;
              } // case 26
            case 58:
              {
                input.readMessage(getSshConfigFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000010;
                break;
              } // case 58
            case 66:
              {
                imageType_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000008;
                break;
              } // case 66
            case 74:
              {
                input.readMessage(getProxyConfigFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000020;
                break;
              } // case 74
            case 82:
              {
                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 82
            case 90:
              {
                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_ |= 0x00000100;
                break;
              } // case 90
            case 98:
              {
                input.readMessage(
                    getConfigEncryptionFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000040;
                break;
              } // case 98
            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 vmSize_ = "";
    /**
     *
     *
     * <pre>
     * Optional. The Azure VM size name. Example: `Standard_DS2_v2`.
     *
     * See [Supported VM
     * sizes](/anthos/clusters/docs/azure/reference/supported-vms) for options.
     *
     * When unspecified, it defaults to `Standard_DS2_v2`.
     * </pre>
     *
     * <code>string vm_size = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The vmSize.
     */
    public java.lang.String getVmSize() {
      java.lang.Object ref = vmSize_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        vmSize_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The Azure VM size name. Example: `Standard_DS2_v2`.
     *
     * See [Supported VM
     * sizes](/anthos/clusters/docs/azure/reference/supported-vms) for options.
     *
     * When unspecified, it defaults to `Standard_DS2_v2`.
     * </pre>
     *
     * <code>string vm_size = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The bytes for vmSize.
     */
    public com.google.protobuf.ByteString getVmSizeBytes() {
      java.lang.Object ref = vmSize_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        vmSize_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The Azure VM size name. Example: `Standard_DS2_v2`.
     *
     * See [Supported VM
     * sizes](/anthos/clusters/docs/azure/reference/supported-vms) for options.
     *
     * When unspecified, it defaults to `Standard_DS2_v2`.
     * </pre>
     *
     * <code>string vm_size = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param value The vmSize to set.
     * @return This builder for chaining.
     */
    public Builder setVmSize(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      vmSize_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The Azure VM size name. Example: `Standard_DS2_v2`.
     *
     * See [Supported VM
     * sizes](/anthos/clusters/docs/azure/reference/supported-vms) for options.
     *
     * When unspecified, it defaults to `Standard_DS2_v2`.
     * </pre>
     *
     * <code>string vm_size = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearVmSize() {
      vmSize_ = getDefaultInstance().getVmSize();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The Azure VM size name. Example: `Standard_DS2_v2`.
     *
     * See [Supported VM
     * sizes](/anthos/clusters/docs/azure/reference/supported-vms) for options.
     *
     * When unspecified, it defaults to `Standard_DS2_v2`.
     * </pre>
     *
     * <code>string vm_size = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param value The bytes for vmSize to set.
     * @return This builder for chaining.
     */
    public Builder setVmSizeBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      vmSize_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    private com.google.cloud.gkemulticloud.v1.AzureDiskTemplate rootVolume_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.gkemulticloud.v1.AzureDiskTemplate,
            com.google.cloud.gkemulticloud.v1.AzureDiskTemplate.Builder,
            com.google.cloud.gkemulticloud.v1.AzureDiskTemplateOrBuilder>
        rootVolumeBuilder_;
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to the root volume provisioned for each
     * node pool machine.
     *
     * When unspecified, it defaults to a 32-GiB Azure Disk.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AzureDiskTemplate 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. Configuration related to the root volume provisioned for each
     * node pool machine.
     *
     * When unspecified, it defaults to a 32-GiB Azure Disk.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AzureDiskTemplate root_volume = 2 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The rootVolume.
     */
    public com.google.cloud.gkemulticloud.v1.AzureDiskTemplate getRootVolume() {
      if (rootVolumeBuilder_ == null) {
        return rootVolume_ == null
            ? com.google.cloud.gkemulticloud.v1.AzureDiskTemplate.getDefaultInstance()
            : rootVolume_;
      } else {
        return rootVolumeBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to the root volume provisioned for each
     * node pool machine.
     *
     * When unspecified, it defaults to a 32-GiB Azure Disk.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AzureDiskTemplate root_volume = 2 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setRootVolume(com.google.cloud.gkemulticloud.v1.AzureDiskTemplate value) {
      if (rootVolumeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        rootVolume_ = value;
      } else {
        rootVolumeBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to the root volume provisioned for each
     * node pool machine.
     *
     * When unspecified, it defaults to a 32-GiB Azure Disk.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AzureDiskTemplate root_volume = 2 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setRootVolume(
        com.google.cloud.gkemulticloud.v1.AzureDiskTemplate.Builder builderForValue) {
      if (rootVolumeBuilder_ == null) {
        rootVolume_ = builderForValue.build();
      } else {
        rootVolumeBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to the root volume provisioned for each
     * node pool machine.
     *
     * When unspecified, it defaults to a 32-GiB Azure Disk.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AzureDiskTemplate root_volume = 2 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder mergeRootVolume(com.google.cloud.gkemulticloud.v1.AzureDiskTemplate value) {
      if (rootVolumeBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)
            && rootVolume_ != null
            && rootVolume_
                != com.google.cloud.gkemulticloud.v1.AzureDiskTemplate.getDefaultInstance()) {
          getRootVolumeBuilder().mergeFrom(value);
        } else {
          rootVolume_ = value;
        }
      } else {
        rootVolumeBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to the root volume provisioned for each
     * node pool machine.
     *
     * When unspecified, it defaults to a 32-GiB Azure Disk.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AzureDiskTemplate 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. Configuration related to the root volume provisioned for each
     * node pool machine.
     *
     * When unspecified, it defaults to a 32-GiB Azure Disk.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AzureDiskTemplate root_volume = 2 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.gkemulticloud.v1.AzureDiskTemplate.Builder getRootVolumeBuilder() {
      bitField0_ |= 0x00000002;
      onChanged();
      return getRootVolumeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to the root volume provisioned for each
     * node pool machine.
     *
     * When unspecified, it defaults to a 32-GiB Azure Disk.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AzureDiskTemplate root_volume = 2 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.gkemulticloud.v1.AzureDiskTemplateOrBuilder getRootVolumeOrBuilder() {
      if (rootVolumeBuilder_ != null) {
        return rootVolumeBuilder_.getMessageOrBuilder();
      } else {
        return rootVolume_ == null
            ? com.google.cloud.gkemulticloud.v1.AzureDiskTemplate.getDefaultInstance()
            : rootVolume_;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to the root volume provisioned for each
     * node pool machine.
     *
     * When unspecified, it defaults to a 32-GiB Azure Disk.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AzureDiskTemplate root_volume = 2 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.gkemulticloud.v1.AzureDiskTemplate,
            com.google.cloud.gkemulticloud.v1.AzureDiskTemplate.Builder,
            com.google.cloud.gkemulticloud.v1.AzureDiskTemplateOrBuilder>
        getRootVolumeFieldBuilder() {
      if (rootVolumeBuilder_ == null) {
        rootVolumeBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.gkemulticloud.v1.AzureDiskTemplate,
                com.google.cloud.gkemulticloud.v1.AzureDiskTemplate.Builder,
                com.google.cloud.gkemulticloud.v1.AzureDiskTemplateOrBuilder>(
                getRootVolume(), getParentForChildren(), isClean());
        rootVolume_ = null;
      }
      return rootVolumeBuilder_;
    }

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

    public int getTagsCount() {
      return internalGetTags().getMap().size();
    }
    /**
     *
     *
     * <pre>
     * Optional. A set of tags to apply to all underlying Azure resources for this
     * node pool. This currently only includes Virtual Machine Scale Sets.
     *
     * 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 = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    @java.lang.Override
    public boolean containsTags(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      return internalGetTags().getMap().containsKey(key);
    }
    /** Use {@link #getTagsMap()} instead. */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.String> getTags() {
      return getTagsMap();
    }
    /**
     *
     *
     * <pre>
     * Optional. A set of tags to apply to all underlying Azure resources for this
     * node pool. This currently only includes Virtual Machine Scale Sets.
     *
     * 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 = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    @java.lang.Override
    public java.util.Map<java.lang.String, java.lang.String> getTagsMap() {
      return internalGetTags().getMap();
    }
    /**
     *
     *
     * <pre>
     * Optional. A set of tags to apply to all underlying Azure resources for this
     * node pool. This currently only includes Virtual Machine Scale Sets.
     *
     * 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 = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    @java.lang.Override
    public /* nullable */ java.lang.String getTagsOrDefault(
        java.lang.String key,
        /* nullable */
        java.lang.String defaultValue) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      java.util.Map<java.lang.String, java.lang.String> map = internalGetTags().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     *
     *
     * <pre>
     * Optional. A set of tags to apply to all underlying Azure resources for this
     * node pool. This currently only includes Virtual Machine Scale Sets.
     *
     * 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 = 3 [(.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_ & ~0x00000004);
      internalGetMutableTags().getMutableMap().clear();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. A set of tags to apply to all underlying Azure resources for this
     * node pool. This currently only includes Virtual Machine Scale Sets.
     *
     * 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 = 3 [(.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_ |= 0x00000004;
      return internalGetMutableTags().getMutableMap();
    }
    /**
     *
     *
     * <pre>
     * Optional. A set of tags to apply to all underlying Azure resources for this
     * node pool. This currently only includes Virtual Machine Scale Sets.
     *
     * 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 = 3 [(.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_ |= 0x00000004;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. A set of tags to apply to all underlying Azure resources for this
     * node pool. This currently only includes Virtual Machine Scale Sets.
     *
     * 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 = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    public Builder putAllTags(java.util.Map<java.lang.String, java.lang.String> values) {
      internalGetMutableTags().getMutableMap().putAll(values);
      bitField0_ |= 0x00000004;
      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 = 8 [(.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 = 8 [(.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 = 8 [(.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_ |= 0x00000008;
      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 = 8 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearImageType() {
      imageType_ = getDefaultInstance().getImageType();
      bitField0_ = (bitField0_ & ~0x00000008);
      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 = 8 [(.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_ |= 0x00000008;
      onChanged();
      return this;
    }

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

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

    private com.google.cloud.gkemulticloud.v1.AzureConfigEncryption configEncryption_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.gkemulticloud.v1.AzureConfigEncryption,
            com.google.cloud.gkemulticloud.v1.AzureConfigEncryption.Builder,
            com.google.cloud.gkemulticloud.v1.AzureConfigEncryptionOrBuilder>
        configEncryptionBuilder_;
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to vm config encryption.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AzureConfigEncryption config_encryption = 12 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return Whether the configEncryption field is set.
     */
    public boolean hasConfigEncryption() {
      return ((bitField0_ & 0x00000040) != 0);
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to vm config encryption.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AzureConfigEncryption config_encryption = 12 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The configEncryption.
     */
    public com.google.cloud.gkemulticloud.v1.AzureConfigEncryption getConfigEncryption() {
      if (configEncryptionBuilder_ == null) {
        return configEncryption_ == null
            ? com.google.cloud.gkemulticloud.v1.AzureConfigEncryption.getDefaultInstance()
            : configEncryption_;
      } else {
        return configEncryptionBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to vm config encryption.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AzureConfigEncryption config_encryption = 12 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setConfigEncryption(
        com.google.cloud.gkemulticloud.v1.AzureConfigEncryption value) {
      if (configEncryptionBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        configEncryption_ = value;
      } else {
        configEncryptionBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to vm config encryption.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AzureConfigEncryption config_encryption = 12 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setConfigEncryption(
        com.google.cloud.gkemulticloud.v1.AzureConfigEncryption.Builder builderForValue) {
      if (configEncryptionBuilder_ == null) {
        configEncryption_ = builderForValue.build();
      } else {
        configEncryptionBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to vm config encryption.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AzureConfigEncryption config_encryption = 12 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder mergeConfigEncryption(
        com.google.cloud.gkemulticloud.v1.AzureConfigEncryption value) {
      if (configEncryptionBuilder_ == null) {
        if (((bitField0_ & 0x00000040) != 0)
            && configEncryption_ != null
            && configEncryption_
                != com.google.cloud.gkemulticloud.v1.AzureConfigEncryption.getDefaultInstance()) {
          getConfigEncryptionBuilder().mergeFrom(value);
        } else {
          configEncryption_ = value;
        }
      } else {
        configEncryptionBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to vm config encryption.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AzureConfigEncryption config_encryption = 12 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder clearConfigEncryption() {
      bitField0_ = (bitField0_ & ~0x00000040);
      configEncryption_ = null;
      if (configEncryptionBuilder_ != null) {
        configEncryptionBuilder_.dispose();
        configEncryptionBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to vm config encryption.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AzureConfigEncryption config_encryption = 12 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.gkemulticloud.v1.AzureConfigEncryption.Builder
        getConfigEncryptionBuilder() {
      bitField0_ |= 0x00000040;
      onChanged();
      return getConfigEncryptionFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to vm config encryption.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AzureConfigEncryption config_encryption = 12 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.gkemulticloud.v1.AzureConfigEncryptionOrBuilder
        getConfigEncryptionOrBuilder() {
      if (configEncryptionBuilder_ != null) {
        return configEncryptionBuilder_.getMessageOrBuilder();
      } else {
        return configEncryption_ == null
            ? com.google.cloud.gkemulticloud.v1.AzureConfigEncryption.getDefaultInstance()
            : configEncryption_;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration related to vm config encryption.
     * </pre>
     *
     * <code>
     * .google.cloud.gkemulticloud.v1.AzureConfigEncryption config_encryption = 12 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.gkemulticloud.v1.AzureConfigEncryption,
            com.google.cloud.gkemulticloud.v1.AzureConfigEncryption.Builder,
            com.google.cloud.gkemulticloud.v1.AzureConfigEncryptionOrBuilder>
        getConfigEncryptionFieldBuilder() {
      if (configEncryptionBuilder_ == null) {
        configEncryptionBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.gkemulticloud.v1.AzureConfigEncryption,
                com.google.cloud.gkemulticloud.v1.AzureConfigEncryption.Builder,
                com.google.cloud.gkemulticloud.v1.AzureConfigEncryptionOrBuilder>(
                getConfigEncryption(), getParentForChildren(), isClean());
        configEncryption_ = null;
      }
      return configEncryptionBuilder_;
    }

    private java.util.List<com.google.cloud.gkemulticloud.v1.NodeTaint> taints_ =
        java.util.Collections.emptyList();

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

    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 = 10 [(.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 = 10 [(.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 = 10 [(.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 = 10 [(.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 = 10 [(.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 = 10 [(.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 = 10 [(.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 = 10 [(.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 = 10 [(.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 = 10 [(.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 = 10 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder clearTaints() {
      if (taintsBuilder_ == null) {
        taints_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000080);
        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 = 10 [(.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 = 10 [(.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 = 10 [(.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 = 10 [(.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 = 10 [(.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 = 10 [(.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 = 10 [(.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_ & 0x00000080) != 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_ |= 0x00000100;
      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 = 11 [(.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 = 11 [(.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 = 11 [(.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 = 11 [(.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_ & ~0x00000100);
      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 = 11 [(.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_ |= 0x00000100;
      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 = 11 [(.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_ |= 0x00000100;
      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 = 11 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    public Builder putAllLabels(java.util.Map<java.lang.String, java.lang.String> values) {
      internalGetMutableLabels().getMutableMap().putAll(values);
      bitField0_ |= 0x00000100;
      return this;
    }

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

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

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

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

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

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

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