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

package com.google.cloud.tpu.v2alpha1;

/**
 *
 *
 * <pre>
 * A TPU instance.
 * </pre>
 *
 * Protobuf type {@code google.cloud.tpu.v2alpha1.Node}
 */
public final class Node extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.Node)
    NodeOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use Node.newBuilder() to construct.
  private Node(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private Node() {
    name_ = "";
    description_ = "";
    acceleratorType_ = "";
    state_ = 0;
    healthDescription_ = "";
    runtimeVersion_ = "";
    cidrBlock_ = "";
    networkEndpoints_ = java.util.Collections.emptyList();
    health_ = 0;
    tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    dataDisks_ = java.util.Collections.emptyList();
    apiVersion_ = 0;
    symptoms_ = java.util.Collections.emptyList();
    queuedResource_ = "";
  }

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

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

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.cloud.tpu.v2alpha1.CloudTpuProto
        .internal_static_google_cloud_tpu_v2alpha1_Node_descriptor;
  }

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

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.cloud.tpu.v2alpha1.CloudTpuProto
        .internal_static_google_cloud_tpu_v2alpha1_Node_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.cloud.tpu.v2alpha1.Node.class,
            com.google.cloud.tpu.v2alpha1.Node.Builder.class);
  }

  /**
   *
   *
   * <pre>
   * Represents the different states of a TPU node during its lifecycle.
   * </pre>
   *
   * Protobuf enum {@code google.cloud.tpu.v2alpha1.Node.State}
   */
  public enum State implements com.google.protobuf.ProtocolMessageEnum {
    /**
     *
     *
     * <pre>
     * TPU node state is not known/set.
     * </pre>
     *
     * <code>STATE_UNSPECIFIED = 0;</code>
     */
    STATE_UNSPECIFIED(0),
    /**
     *
     *
     * <pre>
     * TPU node is being created.
     * </pre>
     *
     * <code>CREATING = 1;</code>
     */
    CREATING(1),
    /**
     *
     *
     * <pre>
     * TPU node has been created.
     * </pre>
     *
     * <code>READY = 2;</code>
     */
    READY(2),
    /**
     *
     *
     * <pre>
     * TPU node is restarting.
     * </pre>
     *
     * <code>RESTARTING = 3;</code>
     */
    RESTARTING(3),
    /**
     *
     *
     * <pre>
     * TPU node is undergoing reimaging.
     * </pre>
     *
     * <code>REIMAGING = 4;</code>
     */
    REIMAGING(4),
    /**
     *
     *
     * <pre>
     * TPU node is being deleted.
     * </pre>
     *
     * <code>DELETING = 5;</code>
     */
    DELETING(5),
    /**
     *
     *
     * <pre>
     * TPU node is being repaired and may be unusable. Details can be
     * found in the 'help_description' field.
     * </pre>
     *
     * <code>REPAIRING = 6;</code>
     */
    REPAIRING(6),
    /**
     *
     *
     * <pre>
     * TPU node is stopped.
     * </pre>
     *
     * <code>STOPPED = 8;</code>
     */
    STOPPED(8),
    /**
     *
     *
     * <pre>
     * TPU node is currently stopping.
     * </pre>
     *
     * <code>STOPPING = 9;</code>
     */
    STOPPING(9),
    /**
     *
     *
     * <pre>
     * TPU node is currently starting.
     * </pre>
     *
     * <code>STARTING = 10;</code>
     */
    STARTING(10),
    /**
     *
     *
     * <pre>
     * TPU node has been preempted. Only applies to Preemptible TPU Nodes.
     * </pre>
     *
     * <code>PREEMPTED = 11;</code>
     */
    PREEMPTED(11),
    /**
     *
     *
     * <pre>
     * TPU node has been terminated due to maintenance or has reached the end of
     * its life cycle (for preemptible nodes).
     * </pre>
     *
     * <code>TERMINATED = 12;</code>
     */
    TERMINATED(12),
    /**
     *
     *
     * <pre>
     * TPU node is currently hiding.
     * </pre>
     *
     * <code>HIDING = 13;</code>
     */
    HIDING(13),
    /**
     *
     *
     * <pre>
     * TPU node has been hidden.
     * </pre>
     *
     * <code>HIDDEN = 14;</code>
     */
    HIDDEN(14),
    /**
     *
     *
     * <pre>
     * TPU node is currently unhiding.
     * </pre>
     *
     * <code>UNHIDING = 15;</code>
     */
    UNHIDING(15),
    UNRECOGNIZED(-1),
    ;

    /**
     *
     *
     * <pre>
     * TPU node state is not known/set.
     * </pre>
     *
     * <code>STATE_UNSPECIFIED = 0;</code>
     */
    public static final int STATE_UNSPECIFIED_VALUE = 0;
    /**
     *
     *
     * <pre>
     * TPU node is being created.
     * </pre>
     *
     * <code>CREATING = 1;</code>
     */
    public static final int CREATING_VALUE = 1;
    /**
     *
     *
     * <pre>
     * TPU node has been created.
     * </pre>
     *
     * <code>READY = 2;</code>
     */
    public static final int READY_VALUE = 2;
    /**
     *
     *
     * <pre>
     * TPU node is restarting.
     * </pre>
     *
     * <code>RESTARTING = 3;</code>
     */
    public static final int RESTARTING_VALUE = 3;
    /**
     *
     *
     * <pre>
     * TPU node is undergoing reimaging.
     * </pre>
     *
     * <code>REIMAGING = 4;</code>
     */
    public static final int REIMAGING_VALUE = 4;
    /**
     *
     *
     * <pre>
     * TPU node is being deleted.
     * </pre>
     *
     * <code>DELETING = 5;</code>
     */
    public static final int DELETING_VALUE = 5;
    /**
     *
     *
     * <pre>
     * TPU node is being repaired and may be unusable. Details can be
     * found in the 'help_description' field.
     * </pre>
     *
     * <code>REPAIRING = 6;</code>
     */
    public static final int REPAIRING_VALUE = 6;
    /**
     *
     *
     * <pre>
     * TPU node is stopped.
     * </pre>
     *
     * <code>STOPPED = 8;</code>
     */
    public static final int STOPPED_VALUE = 8;
    /**
     *
     *
     * <pre>
     * TPU node is currently stopping.
     * </pre>
     *
     * <code>STOPPING = 9;</code>
     */
    public static final int STOPPING_VALUE = 9;
    /**
     *
     *
     * <pre>
     * TPU node is currently starting.
     * </pre>
     *
     * <code>STARTING = 10;</code>
     */
    public static final int STARTING_VALUE = 10;
    /**
     *
     *
     * <pre>
     * TPU node has been preempted. Only applies to Preemptible TPU Nodes.
     * </pre>
     *
     * <code>PREEMPTED = 11;</code>
     */
    public static final int PREEMPTED_VALUE = 11;
    /**
     *
     *
     * <pre>
     * TPU node has been terminated due to maintenance or has reached the end of
     * its life cycle (for preemptible nodes).
     * </pre>
     *
     * <code>TERMINATED = 12;</code>
     */
    public static final int TERMINATED_VALUE = 12;
    /**
     *
     *
     * <pre>
     * TPU node is currently hiding.
     * </pre>
     *
     * <code>HIDING = 13;</code>
     */
    public static final int HIDING_VALUE = 13;
    /**
     *
     *
     * <pre>
     * TPU node has been hidden.
     * </pre>
     *
     * <code>HIDDEN = 14;</code>
     */
    public static final int HIDDEN_VALUE = 14;
    /**
     *
     *
     * <pre>
     * TPU node is currently unhiding.
     * </pre>
     *
     * <code>UNHIDING = 15;</code>
     */
    public static final int UNHIDING_VALUE = 15;

    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static State valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static State forNumber(int value) {
      switch (value) {
        case 0:
          return STATE_UNSPECIFIED;
        case 1:
          return CREATING;
        case 2:
          return READY;
        case 3:
          return RESTARTING;
        case 4:
          return REIMAGING;
        case 5:
          return DELETING;
        case 6:
          return REPAIRING;
        case 8:
          return STOPPED;
        case 9:
          return STOPPING;
        case 10:
          return STARTING;
        case 11:
          return PREEMPTED;
        case 12:
          return TERMINATED;
        case 13:
          return HIDING;
        case 14:
          return HIDDEN;
        case 15:
          return UNHIDING;
        default:
          return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<State> internalGetValueMap() {
      return internalValueMap;
    }

    private static final com.google.protobuf.Internal.EnumLiteMap<State> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap<State>() {
          public State findValueByNumber(int number) {
            return State.forNumber(number);
          }
        };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }

    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
      return getDescriptor();
    }

    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
      return com.google.cloud.tpu.v2alpha1.Node.getDescriptor().getEnumTypes().get(0);
    }

    private static final State[] VALUES = values();

    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private State(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:google.cloud.tpu.v2alpha1.Node.State)
  }

  /**
   *
   *
   * <pre>
   * Health defines the status of a TPU node as reported by
   * Health Monitor.
   * </pre>
   *
   * Protobuf enum {@code google.cloud.tpu.v2alpha1.Node.Health}
   */
  public enum Health implements com.google.protobuf.ProtocolMessageEnum {
    /**
     *
     *
     * <pre>
     * Health status is unknown: not initialized or failed to retrieve.
     * </pre>
     *
     * <code>HEALTH_UNSPECIFIED = 0;</code>
     */
    HEALTH_UNSPECIFIED(0),
    /**
     *
     *
     * <pre>
     * The resource is healthy.
     * </pre>
     *
     * <code>HEALTHY = 1;</code>
     */
    HEALTHY(1),
    /**
     *
     *
     * <pre>
     * The resource is unresponsive.
     * </pre>
     *
     * <code>TIMEOUT = 3;</code>
     */
    TIMEOUT(3),
    /**
     *
     *
     * <pre>
     * The in-guest ML stack is unhealthy.
     * </pre>
     *
     * <code>UNHEALTHY_TENSORFLOW = 4;</code>
     */
    UNHEALTHY_TENSORFLOW(4),
    /**
     *
     *
     * <pre>
     * The node is under maintenance/priority boost caused rescheduling and
     * will resume running once rescheduled.
     * </pre>
     *
     * <code>UNHEALTHY_MAINTENANCE = 5;</code>
     */
    UNHEALTHY_MAINTENANCE(5),
    UNRECOGNIZED(-1),
    ;

    /**
     *
     *
     * <pre>
     * Health status is unknown: not initialized or failed to retrieve.
     * </pre>
     *
     * <code>HEALTH_UNSPECIFIED = 0;</code>
     */
    public static final int HEALTH_UNSPECIFIED_VALUE = 0;
    /**
     *
     *
     * <pre>
     * The resource is healthy.
     * </pre>
     *
     * <code>HEALTHY = 1;</code>
     */
    public static final int HEALTHY_VALUE = 1;
    /**
     *
     *
     * <pre>
     * The resource is unresponsive.
     * </pre>
     *
     * <code>TIMEOUT = 3;</code>
     */
    public static final int TIMEOUT_VALUE = 3;
    /**
     *
     *
     * <pre>
     * The in-guest ML stack is unhealthy.
     * </pre>
     *
     * <code>UNHEALTHY_TENSORFLOW = 4;</code>
     */
    public static final int UNHEALTHY_TENSORFLOW_VALUE = 4;
    /**
     *
     *
     * <pre>
     * The node is under maintenance/priority boost caused rescheduling and
     * will resume running once rescheduled.
     * </pre>
     *
     * <code>UNHEALTHY_MAINTENANCE = 5;</code>
     */
    public static final int UNHEALTHY_MAINTENANCE_VALUE = 5;

    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static Health valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static Health forNumber(int value) {
      switch (value) {
        case 0:
          return HEALTH_UNSPECIFIED;
        case 1:
          return HEALTHY;
        case 3:
          return TIMEOUT;
        case 4:
          return UNHEALTHY_TENSORFLOW;
        case 5:
          return UNHEALTHY_MAINTENANCE;
        default:
          return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<Health> internalGetValueMap() {
      return internalValueMap;
    }

    private static final com.google.protobuf.Internal.EnumLiteMap<Health> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap<Health>() {
          public Health findValueByNumber(int number) {
            return Health.forNumber(number);
          }
        };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }

    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
      return getDescriptor();
    }

    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
      return com.google.cloud.tpu.v2alpha1.Node.getDescriptor().getEnumTypes().get(1);
    }

    private static final Health[] VALUES = values();

    public static Health valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private Health(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:google.cloud.tpu.v2alpha1.Node.Health)
  }

  /**
   *
   *
   * <pre>
   * TPU API Version.
   * </pre>
   *
   * Protobuf enum {@code google.cloud.tpu.v2alpha1.Node.ApiVersion}
   */
  public enum ApiVersion implements com.google.protobuf.ProtocolMessageEnum {
    /**
     *
     *
     * <pre>
     * API version is unknown.
     * </pre>
     *
     * <code>API_VERSION_UNSPECIFIED = 0;</code>
     */
    API_VERSION_UNSPECIFIED(0),
    /**
     *
     *
     * <pre>
     * TPU API V1Alpha1 version.
     * </pre>
     *
     * <code>V1_ALPHA1 = 1;</code>
     */
    V1_ALPHA1(1),
    /**
     *
     *
     * <pre>
     * TPU API V1 version.
     * </pre>
     *
     * <code>V1 = 2;</code>
     */
    V1(2),
    /**
     *
     *
     * <pre>
     * TPU API V2Alpha1 version.
     * </pre>
     *
     * <code>V2_ALPHA1 = 3;</code>
     */
    V2_ALPHA1(3),
    UNRECOGNIZED(-1),
    ;

    /**
     *
     *
     * <pre>
     * API version is unknown.
     * </pre>
     *
     * <code>API_VERSION_UNSPECIFIED = 0;</code>
     */
    public static final int API_VERSION_UNSPECIFIED_VALUE = 0;
    /**
     *
     *
     * <pre>
     * TPU API V1Alpha1 version.
     * </pre>
     *
     * <code>V1_ALPHA1 = 1;</code>
     */
    public static final int V1_ALPHA1_VALUE = 1;
    /**
     *
     *
     * <pre>
     * TPU API V1 version.
     * </pre>
     *
     * <code>V1 = 2;</code>
     */
    public static final int V1_VALUE = 2;
    /**
     *
     *
     * <pre>
     * TPU API V2Alpha1 version.
     * </pre>
     *
     * <code>V2_ALPHA1 = 3;</code>
     */
    public static final int V2_ALPHA1_VALUE = 3;

    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static ApiVersion valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static ApiVersion forNumber(int value) {
      switch (value) {
        case 0:
          return API_VERSION_UNSPECIFIED;
        case 1:
          return V1_ALPHA1;
        case 2:
          return V1;
        case 3:
          return V2_ALPHA1;
        default:
          return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<ApiVersion> internalGetValueMap() {
      return internalValueMap;
    }

    private static final com.google.protobuf.Internal.EnumLiteMap<ApiVersion> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap<ApiVersion>() {
          public ApiVersion findValueByNumber(int number) {
            return ApiVersion.forNumber(number);
          }
        };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }

    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
      return getDescriptor();
    }

    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
      return com.google.cloud.tpu.v2alpha1.Node.getDescriptor().getEnumTypes().get(2);
    }

    private static final ApiVersion[] VALUES = values();

    public static ApiVersion valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private ApiVersion(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:google.cloud.tpu.v2alpha1.Node.ApiVersion)
  }

  public static final int NAME_FIELD_NUMBER = 1;

  @SuppressWarnings("serial")
  private volatile java.lang.Object name_ = "";
  /**
   *
   *
   * <pre>
   * Output only. Immutable. The name of the TPU.
   * </pre>
   *
   * <code>
   * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
   * </code>
   *
   * @return The name.
   */
  @java.lang.Override
  public java.lang.String getName() {
    java.lang.Object ref = name_;
    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();
      name_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Output only. Immutable. The name of the TPU.
   * </pre>
   *
   * <code>
   * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
   * </code>
   *
   * @return The bytes for name.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getNameBytes() {
    java.lang.Object ref = name_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      name_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DESCRIPTION_FIELD_NUMBER = 3;

  @SuppressWarnings("serial")
  private volatile java.lang.Object description_ = "";
  /**
   *
   *
   * <pre>
   * The user-supplied description of the TPU. Maximum of 512 characters.
   * </pre>
   *
   * <code>string description = 3;</code>
   *
   * @return The description.
   */
  @java.lang.Override
  public java.lang.String getDescription() {
    java.lang.Object ref = description_;
    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();
      description_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The user-supplied description of the TPU. Maximum of 512 characters.
   * </pre>
   *
   * <code>string description = 3;</code>
   *
   * @return The bytes for description.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getDescriptionBytes() {
    java.lang.Object ref = description_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      description_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ACCELERATOR_TYPE_FIELD_NUMBER = 5;

  @SuppressWarnings("serial")
  private volatile java.lang.Object acceleratorType_ = "";
  /**
   *
   *
   * <pre>
   * The type of hardware accelerators associated with this node.
   * </pre>
   *
   * <code>string accelerator_type = 5;</code>
   *
   * @return The acceleratorType.
   */
  @java.lang.Override
  public java.lang.String getAcceleratorType() {
    java.lang.Object ref = acceleratorType_;
    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();
      acceleratorType_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The type of hardware accelerators associated with this node.
   * </pre>
   *
   * <code>string accelerator_type = 5;</code>
   *
   * @return The bytes for acceleratorType.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getAcceleratorTypeBytes() {
    java.lang.Object ref = acceleratorType_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      acceleratorType_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int STATE_FIELD_NUMBER = 9;
  private int state_ = 0;
  /**
   *
   *
   * <pre>
   * Output only. The current state for the TPU Node.
   * </pre>
   *
   * <code>
   * .google.cloud.tpu.v2alpha1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The enum numeric value on the wire for state.
   */
  @java.lang.Override
  public int getStateValue() {
    return state_;
  }
  /**
   *
   *
   * <pre>
   * Output only. The current state for the TPU Node.
   * </pre>
   *
   * <code>
   * .google.cloud.tpu.v2alpha1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The state.
   */
  @java.lang.Override
  public com.google.cloud.tpu.v2alpha1.Node.State getState() {
    com.google.cloud.tpu.v2alpha1.Node.State result =
        com.google.cloud.tpu.v2alpha1.Node.State.forNumber(state_);
    return result == null ? com.google.cloud.tpu.v2alpha1.Node.State.UNRECOGNIZED : result;
  }

  public static final int HEALTH_DESCRIPTION_FIELD_NUMBER = 10;

  @SuppressWarnings("serial")
  private volatile java.lang.Object healthDescription_ = "";
  /**
   *
   *
   * <pre>
   * Output only. If this field is populated, it contains a description of why
   * the TPU Node is unhealthy.
   * </pre>
   *
   * <code>string health_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The healthDescription.
   */
  @java.lang.Override
  public java.lang.String getHealthDescription() {
    java.lang.Object ref = healthDescription_;
    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();
      healthDescription_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Output only. If this field is populated, it contains a description of why
   * the TPU Node is unhealthy.
   * </pre>
   *
   * <code>string health_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The bytes for healthDescription.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getHealthDescriptionBytes() {
    java.lang.Object ref = healthDescription_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      healthDescription_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int RUNTIME_VERSION_FIELD_NUMBER = 11;

  @SuppressWarnings("serial")
  private volatile java.lang.Object runtimeVersion_ = "";
  /**
   *
   *
   * <pre>
   * Required. The runtime version running in the Node.
   * </pre>
   *
   * <code>string runtime_version = 11 [(.google.api.field_behavior) = REQUIRED];</code>
   *
   * @return The runtimeVersion.
   */
  @java.lang.Override
  public java.lang.String getRuntimeVersion() {
    java.lang.Object ref = runtimeVersion_;
    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();
      runtimeVersion_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Required. The runtime version running in the Node.
   * </pre>
   *
   * <code>string runtime_version = 11 [(.google.api.field_behavior) = REQUIRED];</code>
   *
   * @return The bytes for runtimeVersion.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getRuntimeVersionBytes() {
    java.lang.Object ref = runtimeVersion_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      runtimeVersion_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int NETWORK_CONFIG_FIELD_NUMBER = 36;
  private com.google.cloud.tpu.v2alpha1.NetworkConfig networkConfig_;
  /**
   *
   *
   * <pre>
   * Network configurations for the TPU node.
   * </pre>
   *
   * <code>.google.cloud.tpu.v2alpha1.NetworkConfig network_config = 36;</code>
   *
   * @return Whether the networkConfig field is set.
   */
  @java.lang.Override
  public boolean hasNetworkConfig() {
    return networkConfig_ != null;
  }
  /**
   *
   *
   * <pre>
   * Network configurations for the TPU node.
   * </pre>
   *
   * <code>.google.cloud.tpu.v2alpha1.NetworkConfig network_config = 36;</code>
   *
   * @return The networkConfig.
   */
  @java.lang.Override
  public com.google.cloud.tpu.v2alpha1.NetworkConfig getNetworkConfig() {
    return networkConfig_ == null
        ? com.google.cloud.tpu.v2alpha1.NetworkConfig.getDefaultInstance()
        : networkConfig_;
  }
  /**
   *
   *
   * <pre>
   * Network configurations for the TPU node.
   * </pre>
   *
   * <code>.google.cloud.tpu.v2alpha1.NetworkConfig network_config = 36;</code>
   */
  @java.lang.Override
  public com.google.cloud.tpu.v2alpha1.NetworkConfigOrBuilder getNetworkConfigOrBuilder() {
    return networkConfig_ == null
        ? com.google.cloud.tpu.v2alpha1.NetworkConfig.getDefaultInstance()
        : networkConfig_;
  }

  public static final int CIDR_BLOCK_FIELD_NUMBER = 13;

  @SuppressWarnings("serial")
  private volatile java.lang.Object cidrBlock_ = "";
  /**
   *
   *
   * <pre>
   * The CIDR block that the TPU node will use when selecting an IP address.
   * This CIDR block must be a /29 block; the Compute Engine networks API
   * forbids a smaller block, and using a larger block would be wasteful (a
   * node can only consume one IP address). Errors will occur if the CIDR block
   * has already been used for a currently existing TPU node, the CIDR block
   * conflicts with any subnetworks in the user's provided network, or the
   * provided network is peered with another network that is using that CIDR
   * block.
   * </pre>
   *
   * <code>string cidr_block = 13;</code>
   *
   * @return The cidrBlock.
   */
  @java.lang.Override
  public java.lang.String getCidrBlock() {
    java.lang.Object ref = cidrBlock_;
    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();
      cidrBlock_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The CIDR block that the TPU node will use when selecting an IP address.
   * This CIDR block must be a /29 block; the Compute Engine networks API
   * forbids a smaller block, and using a larger block would be wasteful (a
   * node can only consume one IP address). Errors will occur if the CIDR block
   * has already been used for a currently existing TPU node, the CIDR block
   * conflicts with any subnetworks in the user's provided network, or the
   * provided network is peered with another network that is using that CIDR
   * block.
   * </pre>
   *
   * <code>string cidr_block = 13;</code>
   *
   * @return The bytes for cidrBlock.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getCidrBlockBytes() {
    java.lang.Object ref = cidrBlock_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      cidrBlock_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 37;
  private com.google.cloud.tpu.v2alpha1.ServiceAccount serviceAccount_;
  /**
   *
   *
   * <pre>
   * The Google Cloud Platform Service Account to be used by the TPU node VMs.
   * If None is specified, the default compute service account will be used.
   * </pre>
   *
   * <code>.google.cloud.tpu.v2alpha1.ServiceAccount service_account = 37;</code>
   *
   * @return Whether the serviceAccount field is set.
   */
  @java.lang.Override
  public boolean hasServiceAccount() {
    return serviceAccount_ != null;
  }
  /**
   *
   *
   * <pre>
   * The Google Cloud Platform Service Account to be used by the TPU node VMs.
   * If None is specified, the default compute service account will be used.
   * </pre>
   *
   * <code>.google.cloud.tpu.v2alpha1.ServiceAccount service_account = 37;</code>
   *
   * @return The serviceAccount.
   */
  @java.lang.Override
  public com.google.cloud.tpu.v2alpha1.ServiceAccount getServiceAccount() {
    return serviceAccount_ == null
        ? com.google.cloud.tpu.v2alpha1.ServiceAccount.getDefaultInstance()
        : serviceAccount_;
  }
  /**
   *
   *
   * <pre>
   * The Google Cloud Platform Service Account to be used by the TPU node VMs.
   * If None is specified, the default compute service account will be used.
   * </pre>
   *
   * <code>.google.cloud.tpu.v2alpha1.ServiceAccount service_account = 37;</code>
   */
  @java.lang.Override
  public com.google.cloud.tpu.v2alpha1.ServiceAccountOrBuilder getServiceAccountOrBuilder() {
    return serviceAccount_ == null
        ? com.google.cloud.tpu.v2alpha1.ServiceAccount.getDefaultInstance()
        : serviceAccount_;
  }

  public static final int CREATE_TIME_FIELD_NUMBER = 16;
  private com.google.protobuf.Timestamp createTime_;
  /**
   *
   *
   * <pre>
   * Output only. The time when the node was created.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return Whether the createTime field is set.
   */
  @java.lang.Override
  public boolean hasCreateTime() {
    return createTime_ != null;
  }
  /**
   *
   *
   * <pre>
   * Output only. The time when the node was created.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The createTime.
   */
  @java.lang.Override
  public com.google.protobuf.Timestamp getCreateTime() {
    return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
  }
  /**
   *
   *
   * <pre>
   * Output only. The time when the node was created.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
  }

  public static final int SCHEDULING_CONFIG_FIELD_NUMBER = 17;
  private com.google.cloud.tpu.v2alpha1.SchedulingConfig schedulingConfig_;
  /**
   *
   *
   * <pre>
   * The scheduling options for this node.
   * </pre>
   *
   * <code>.google.cloud.tpu.v2alpha1.SchedulingConfig scheduling_config = 17;</code>
   *
   * @return Whether the schedulingConfig field is set.
   */
  @java.lang.Override
  public boolean hasSchedulingConfig() {
    return schedulingConfig_ != null;
  }
  /**
   *
   *
   * <pre>
   * The scheduling options for this node.
   * </pre>
   *
   * <code>.google.cloud.tpu.v2alpha1.SchedulingConfig scheduling_config = 17;</code>
   *
   * @return The schedulingConfig.
   */
  @java.lang.Override
  public com.google.cloud.tpu.v2alpha1.SchedulingConfig getSchedulingConfig() {
    return schedulingConfig_ == null
        ? com.google.cloud.tpu.v2alpha1.SchedulingConfig.getDefaultInstance()
        : schedulingConfig_;
  }
  /**
   *
   *
   * <pre>
   * The scheduling options for this node.
   * </pre>
   *
   * <code>.google.cloud.tpu.v2alpha1.SchedulingConfig scheduling_config = 17;</code>
   */
  @java.lang.Override
  public com.google.cloud.tpu.v2alpha1.SchedulingConfigOrBuilder getSchedulingConfigOrBuilder() {
    return schedulingConfig_ == null
        ? com.google.cloud.tpu.v2alpha1.SchedulingConfig.getDefaultInstance()
        : schedulingConfig_;
  }

  public static final int NETWORK_ENDPOINTS_FIELD_NUMBER = 21;

  @SuppressWarnings("serial")
  private java.util.List<com.google.cloud.tpu.v2alpha1.NetworkEndpoint> networkEndpoints_;
  /**
   *
   *
   * <pre>
   * Output only. The network endpoints where TPU workers can be accessed and
   * sent work. It is recommended that runtime clients of the node reach out
   * to the 0th entry in this map first.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public java.util.List<com.google.cloud.tpu.v2alpha1.NetworkEndpoint> getNetworkEndpointsList() {
    return networkEndpoints_;
  }
  /**
   *
   *
   * <pre>
   * Output only. The network endpoints where TPU workers can be accessed and
   * sent work. It is recommended that runtime clients of the node reach out
   * to the 0th entry in this map first.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public java.util.List<? extends com.google.cloud.tpu.v2alpha1.NetworkEndpointOrBuilder>
      getNetworkEndpointsOrBuilderList() {
    return networkEndpoints_;
  }
  /**
   *
   *
   * <pre>
   * Output only. The network endpoints where TPU workers can be accessed and
   * sent work. It is recommended that runtime clients of the node reach out
   * to the 0th entry in this map first.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public int getNetworkEndpointsCount() {
    return networkEndpoints_.size();
  }
  /**
   *
   *
   * <pre>
   * Output only. The network endpoints where TPU workers can be accessed and
   * sent work. It is recommended that runtime clients of the node reach out
   * to the 0th entry in this map first.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.tpu.v2alpha1.NetworkEndpoint getNetworkEndpoints(int index) {
    return networkEndpoints_.get(index);
  }
  /**
   *
   *
   * <pre>
   * Output only. The network endpoints where TPU workers can be accessed and
   * sent work. It is recommended that runtime clients of the node reach out
   * to the 0th entry in this map first.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.tpu.v2alpha1.NetworkEndpointOrBuilder getNetworkEndpointsOrBuilder(
      int index) {
    return networkEndpoints_.get(index);
  }

  public static final int HEALTH_FIELD_NUMBER = 22;
  private int health_ = 0;
  /**
   *
   *
   * <pre>
   * The health status of the TPU node.
   * </pre>
   *
   * <code>.google.cloud.tpu.v2alpha1.Node.Health health = 22;</code>
   *
   * @return The enum numeric value on the wire for health.
   */
  @java.lang.Override
  public int getHealthValue() {
    return health_;
  }
  /**
   *
   *
   * <pre>
   * The health status of the TPU node.
   * </pre>
   *
   * <code>.google.cloud.tpu.v2alpha1.Node.Health health = 22;</code>
   *
   * @return The health.
   */
  @java.lang.Override
  public com.google.cloud.tpu.v2alpha1.Node.Health getHealth() {
    com.google.cloud.tpu.v2alpha1.Node.Health result =
        com.google.cloud.tpu.v2alpha1.Node.Health.forNumber(health_);
    return result == null ? com.google.cloud.tpu.v2alpha1.Node.Health.UNRECOGNIZED : result;
  }

  public static final int LABELS_FIELD_NUMBER = 24;

  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.tpu.v2alpha1.CloudTpuProto
                .internal_static_google_cloud_tpu_v2alpha1_Node_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>
   * Resource labels to represent user-provided metadata.
   * </pre>
   *
   * <code>map&lt;string, string&gt; labels = 24;</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>
   * Resource labels to represent user-provided metadata.
   * </pre>
   *
   * <code>map&lt;string, string&gt; labels = 24;</code>
   */
  @java.lang.Override
  public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {
    return internalGetLabels().getMap();
  }
  /**
   *
   *
   * <pre>
   * Resource labels to represent user-provided metadata.
   * </pre>
   *
   * <code>map&lt;string, string&gt; labels = 24;</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>
   * Resource labels to represent user-provided metadata.
   * </pre>
   *
   * <code>map&lt;string, string&gt; labels = 24;</code>
   */
  @java.lang.Override
  public java.lang.String getLabelsOrThrow(java.lang.String key) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
    if (!map.containsKey(key)) {
      throw new java.lang.IllegalArgumentException();
    }
    return map.get(key);
  }

  public static final int METADATA_FIELD_NUMBER = 34;

  private static final class MetadataDefaultEntryHolder {
    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.tpu.v2alpha1.CloudTpuProto
                .internal_static_google_cloud_tpu_v2alpha1_Node_MetadataEntry_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> metadata_;

  private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetMetadata() {
    if (metadata_ == null) {
      return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry);
    }
    return metadata_;
  }

  public int getMetadataCount() {
    return internalGetMetadata().getMap().size();
  }
  /**
   *
   *
   * <pre>
   * Custom metadata to apply to the TPU Node.
   * Can set startup-script and shutdown-script
   * </pre>
   *
   * <code>map&lt;string, string&gt; metadata = 34;</code>
   */
  @java.lang.Override
  public boolean containsMetadata(java.lang.String key) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    return internalGetMetadata().getMap().containsKey(key);
  }
  /** Use {@link #getMetadataMap()} instead. */
  @java.lang.Override
  @java.lang.Deprecated
  public java.util.Map<java.lang.String, java.lang.String> getMetadata() {
    return getMetadataMap();
  }
  /**
   *
   *
   * <pre>
   * Custom metadata to apply to the TPU Node.
   * Can set startup-script and shutdown-script
   * </pre>
   *
   * <code>map&lt;string, string&gt; metadata = 34;</code>
   */
  @java.lang.Override
  public java.util.Map<java.lang.String, java.lang.String> getMetadataMap() {
    return internalGetMetadata().getMap();
  }
  /**
   *
   *
   * <pre>
   * Custom metadata to apply to the TPU Node.
   * Can set startup-script and shutdown-script
   * </pre>
   *
   * <code>map&lt;string, string&gt; metadata = 34;</code>
   */
  @java.lang.Override
  public /* nullable */ java.lang.String getMetadataOrDefault(
      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 = internalGetMetadata().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
  /**
   *
   *
   * <pre>
   * Custom metadata to apply to the TPU Node.
   * Can set startup-script and shutdown-script
   * </pre>
   *
   * <code>map&lt;string, string&gt; metadata = 34;</code>
   */
  @java.lang.Override
  public java.lang.String getMetadataOrThrow(java.lang.String key) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    java.util.Map<java.lang.String, java.lang.String> map = internalGetMetadata().getMap();
    if (!map.containsKey(key)) {
      throw new java.lang.IllegalArgumentException();
    }
    return map.get(key);
  }

  public static final int TAGS_FIELD_NUMBER = 40;

  @SuppressWarnings("serial")
  private com.google.protobuf.LazyStringList tags_;
  /**
   *
   *
   * <pre>
   * Tags to apply to the TPU Node. Tags are used to identify valid sources or
   * targets for network firewalls.
   * </pre>
   *
   * <code>repeated string tags = 40;</code>
   *
   * @return A list containing the tags.
   */
  public com.google.protobuf.ProtocolStringList getTagsList() {
    return tags_;
  }
  /**
   *
   *
   * <pre>
   * Tags to apply to the TPU Node. Tags are used to identify valid sources or
   * targets for network firewalls.
   * </pre>
   *
   * <code>repeated string tags = 40;</code>
   *
   * @return The count of tags.
   */
  public int getTagsCount() {
    return tags_.size();
  }
  /**
   *
   *
   * <pre>
   * Tags to apply to the TPU Node. Tags are used to identify valid sources or
   * targets for network firewalls.
   * </pre>
   *
   * <code>repeated string tags = 40;</code>
   *
   * @param index The index of the element to return.
   * @return The tags at the given index.
   */
  public java.lang.String getTags(int index) {
    return tags_.get(index);
  }
  /**
   *
   *
   * <pre>
   * Tags to apply to the TPU Node. Tags are used to identify valid sources or
   * targets for network firewalls.
   * </pre>
   *
   * <code>repeated string tags = 40;</code>
   *
   * @param index The index of the value to return.
   * @return The bytes of the tags at the given index.
   */
  public com.google.protobuf.ByteString getTagsBytes(int index) {
    return tags_.getByteString(index);
  }

  public static final int ID_FIELD_NUMBER = 33;
  private long id_ = 0L;
  /**
   *
   *
   * <pre>
   * Output only. The unique identifier for the TPU Node.
   * </pre>
   *
   * <code>int64 id = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The id.
   */
  @java.lang.Override
  public long getId() {
    return id_;
  }

  public static final int DATA_DISKS_FIELD_NUMBER = 41;

  @SuppressWarnings("serial")
  private java.util.List<com.google.cloud.tpu.v2alpha1.AttachedDisk> dataDisks_;
  /**
   *
   *
   * <pre>
   * The additional data disks for the Node.
   * </pre>
   *
   * <code>repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41;</code>
   */
  @java.lang.Override
  public java.util.List<com.google.cloud.tpu.v2alpha1.AttachedDisk> getDataDisksList() {
    return dataDisks_;
  }
  /**
   *
   *
   * <pre>
   * The additional data disks for the Node.
   * </pre>
   *
   * <code>repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.google.cloud.tpu.v2alpha1.AttachedDiskOrBuilder>
      getDataDisksOrBuilderList() {
    return dataDisks_;
  }
  /**
   *
   *
   * <pre>
   * The additional data disks for the Node.
   * </pre>
   *
   * <code>repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41;</code>
   */
  @java.lang.Override
  public int getDataDisksCount() {
    return dataDisks_.size();
  }
  /**
   *
   *
   * <pre>
   * The additional data disks for the Node.
   * </pre>
   *
   * <code>repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41;</code>
   */
  @java.lang.Override
  public com.google.cloud.tpu.v2alpha1.AttachedDisk getDataDisks(int index) {
    return dataDisks_.get(index);
  }
  /**
   *
   *
   * <pre>
   * The additional data disks for the Node.
   * </pre>
   *
   * <code>repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41;</code>
   */
  @java.lang.Override
  public com.google.cloud.tpu.v2alpha1.AttachedDiskOrBuilder getDataDisksOrBuilder(int index) {
    return dataDisks_.get(index);
  }

  public static final int API_VERSION_FIELD_NUMBER = 38;
  private int apiVersion_ = 0;
  /**
   *
   *
   * <pre>
   * Output only. The API version that created this Node.
   * </pre>
   *
   * <code>
   * .google.cloud.tpu.v2alpha1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The enum numeric value on the wire for apiVersion.
   */
  @java.lang.Override
  public int getApiVersionValue() {
    return apiVersion_;
  }
  /**
   *
   *
   * <pre>
   * Output only. The API version that created this Node.
   * </pre>
   *
   * <code>
   * .google.cloud.tpu.v2alpha1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The apiVersion.
   */
  @java.lang.Override
  public com.google.cloud.tpu.v2alpha1.Node.ApiVersion getApiVersion() {
    com.google.cloud.tpu.v2alpha1.Node.ApiVersion result =
        com.google.cloud.tpu.v2alpha1.Node.ApiVersion.forNumber(apiVersion_);
    return result == null ? com.google.cloud.tpu.v2alpha1.Node.ApiVersion.UNRECOGNIZED : result;
  }

  public static final int SYMPTOMS_FIELD_NUMBER = 39;

  @SuppressWarnings("serial")
  private java.util.List<com.google.cloud.tpu.v2alpha1.Symptom> symptoms_;
  /**
   *
   *
   * <pre>
   * Output only. The Symptoms that have occurred to the TPU Node.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public java.util.List<com.google.cloud.tpu.v2alpha1.Symptom> getSymptomsList() {
    return symptoms_;
  }
  /**
   *
   *
   * <pre>
   * Output only. The Symptoms that have occurred to the TPU Node.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public java.util.List<? extends com.google.cloud.tpu.v2alpha1.SymptomOrBuilder>
      getSymptomsOrBuilderList() {
    return symptoms_;
  }
  /**
   *
   *
   * <pre>
   * Output only. The Symptoms that have occurred to the TPU Node.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public int getSymptomsCount() {
    return symptoms_.size();
  }
  /**
   *
   *
   * <pre>
   * Output only. The Symptoms that have occurred to the TPU Node.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.tpu.v2alpha1.Symptom getSymptoms(int index) {
    return symptoms_.get(index);
  }
  /**
   *
   *
   * <pre>
   * Output only. The Symptoms that have occurred to the TPU Node.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.tpu.v2alpha1.SymptomOrBuilder getSymptomsOrBuilder(int index) {
    return symptoms_.get(index);
  }

  public static final int QUEUED_RESOURCE_FIELD_NUMBER = 43;

  @SuppressWarnings("serial")
  private volatile java.lang.Object queuedResource_ = "";
  /**
   *
   *
   * <pre>
   * Output only. The qualified name of the QueuedResource that requested this
   * Node.
   * </pre>
   *
   * <code>string queued_resource = 43 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The queuedResource.
   */
  @java.lang.Override
  public java.lang.String getQueuedResource() {
    java.lang.Object ref = queuedResource_;
    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();
      queuedResource_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Output only. The qualified name of the QueuedResource that requested this
   * Node.
   * </pre>
   *
   * <code>string queued_resource = 43 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The bytes for queuedResource.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getQueuedResourceBytes() {
    java.lang.Object ref = queuedResource_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      queuedResource_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ACCELERATOR_CONFIG_FIELD_NUMBER = 44;
  private com.google.cloud.tpu.v2alpha1.AcceleratorConfig acceleratorConfig_;
  /**
   *
   *
   * <pre>
   * The AccleratorConfig for the TPU Node.
   * </pre>
   *
   * <code>.google.cloud.tpu.v2alpha1.AcceleratorConfig accelerator_config = 44;</code>
   *
   * @return Whether the acceleratorConfig field is set.
   */
  @java.lang.Override
  public boolean hasAcceleratorConfig() {
    return acceleratorConfig_ != null;
  }
  /**
   *
   *
   * <pre>
   * The AccleratorConfig for the TPU Node.
   * </pre>
   *
   * <code>.google.cloud.tpu.v2alpha1.AcceleratorConfig accelerator_config = 44;</code>
   *
   * @return The acceleratorConfig.
   */
  @java.lang.Override
  public com.google.cloud.tpu.v2alpha1.AcceleratorConfig getAcceleratorConfig() {
    return acceleratorConfig_ == null
        ? com.google.cloud.tpu.v2alpha1.AcceleratorConfig.getDefaultInstance()
        : acceleratorConfig_;
  }
  /**
   *
   *
   * <pre>
   * The AccleratorConfig for the TPU Node.
   * </pre>
   *
   * <code>.google.cloud.tpu.v2alpha1.AcceleratorConfig accelerator_config = 44;</code>
   */
  @java.lang.Override
  public com.google.cloud.tpu.v2alpha1.AcceleratorConfigOrBuilder getAcceleratorConfigOrBuilder() {
    return acceleratorConfig_ == null
        ? com.google.cloud.tpu.v2alpha1.AcceleratorConfig.getDefaultInstance()
        : acceleratorConfig_;
  }

  public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER = 45;
  private com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig shieldedInstanceConfig_;
  /**
   *
   *
   * <pre>
   * Shielded Instance options.
   * </pre>
   *
   * <code>.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig shielded_instance_config = 45;</code>
   *
   * @return Whether the shieldedInstanceConfig field is set.
   */
  @java.lang.Override
  public boolean hasShieldedInstanceConfig() {
    return shieldedInstanceConfig_ != null;
  }
  /**
   *
   *
   * <pre>
   * Shielded Instance options.
   * </pre>
   *
   * <code>.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig shielded_instance_config = 45;</code>
   *
   * @return The shieldedInstanceConfig.
   */
  @java.lang.Override
  public com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig getShieldedInstanceConfig() {
    return shieldedInstanceConfig_ == null
        ? com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig.getDefaultInstance()
        : shieldedInstanceConfig_;
  }
  /**
   *
   *
   * <pre>
   * Shielded Instance options.
   * </pre>
   *
   * <code>.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig shielded_instance_config = 45;</code>
   */
  @java.lang.Override
  public com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfigOrBuilder
      getShieldedInstanceConfigOrBuilder() {
    return shieldedInstanceConfig_ == null
        ? com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig.getDefaultInstance()
        : shieldedInstanceConfig_;
  }

  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(name_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(acceleratorType_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, acceleratorType_);
    }
    if (state_ != com.google.cloud.tpu.v2alpha1.Node.State.STATE_UNSPECIFIED.getNumber()) {
      output.writeEnum(9, state_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(healthDescription_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, healthDescription_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(runtimeVersion_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, runtimeVersion_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cidrBlock_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 13, cidrBlock_);
    }
    if (createTime_ != null) {
      output.writeMessage(16, getCreateTime());
    }
    if (schedulingConfig_ != null) {
      output.writeMessage(17, getSchedulingConfig());
    }
    for (int i = 0; i < networkEndpoints_.size(); i++) {
      output.writeMessage(21, networkEndpoints_.get(i));
    }
    if (health_ != com.google.cloud.tpu.v2alpha1.Node.Health.HEALTH_UNSPECIFIED.getNumber()) {
      output.writeEnum(22, health_);
    }
    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 24);
    if (id_ != 0L) {
      output.writeInt64(33, id_);
    }
    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
        output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 34);
    if (networkConfig_ != null) {
      output.writeMessage(36, getNetworkConfig());
    }
    if (serviceAccount_ != null) {
      output.writeMessage(37, getServiceAccount());
    }
    if (apiVersion_
        != com.google.cloud.tpu.v2alpha1.Node.ApiVersion.API_VERSION_UNSPECIFIED.getNumber()) {
      output.writeEnum(38, apiVersion_);
    }
    for (int i = 0; i < symptoms_.size(); i++) {
      output.writeMessage(39, symptoms_.get(i));
    }
    for (int i = 0; i < tags_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 40, tags_.getRaw(i));
    }
    for (int i = 0; i < dataDisks_.size(); i++) {
      output.writeMessage(41, dataDisks_.get(i));
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queuedResource_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 43, queuedResource_);
    }
    if (acceleratorConfig_ != null) {
      output.writeMessage(44, getAcceleratorConfig());
    }
    if (shieldedInstanceConfig_ != null) {
      output.writeMessage(45, getShieldedInstanceConfig());
    }
    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(name_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(acceleratorType_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, acceleratorType_);
    }
    if (state_ != com.google.cloud.tpu.v2alpha1.Node.State.STATE_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, state_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(healthDescription_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, healthDescription_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(runtimeVersion_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, runtimeVersion_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cidrBlock_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, cidrBlock_);
    }
    if (createTime_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getCreateTime());
    }
    if (schedulingConfig_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getSchedulingConfig());
    }
    for (int i = 0; i < networkEndpoints_.size(); i++) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(21, networkEndpoints_.get(i));
    }
    if (health_ != com.google.cloud.tpu.v2alpha1.Node.Health.HEALTH_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(22, health_);
    }
    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(24, labels__);
    }
    if (id_ != 0L) {
      size += com.google.protobuf.CodedOutputStream.computeInt64Size(33, id_);
    }
    for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
        internalGetMetadata().getMap().entrySet()) {
      com.google.protobuf.MapEntry<java.lang.String, java.lang.String> metadata__ =
          MetadataDefaultEntryHolder.defaultEntry
              .newBuilderForType()
              .setKey(entry.getKey())
              .setValue(entry.getValue())
              .build();
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(34, metadata__);
    }
    if (networkConfig_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(36, getNetworkConfig());
    }
    if (serviceAccount_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(37, getServiceAccount());
    }
    if (apiVersion_
        != com.google.cloud.tpu.v2alpha1.Node.ApiVersion.API_VERSION_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(38, apiVersion_);
    }
    for (int i = 0; i < symptoms_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(39, symptoms_.get(i));
    }
    {
      int dataSize = 0;
      for (int i = 0; i < tags_.size(); i++) {
        dataSize += computeStringSizeNoTag(tags_.getRaw(i));
      }
      size += dataSize;
      size += 2 * getTagsList().size();
    }
    for (int i = 0; i < dataDisks_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(41, dataDisks_.get(i));
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queuedResource_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(43, queuedResource_);
    }
    if (acceleratorConfig_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(44, getAcceleratorConfig());
    }
    if (shieldedInstanceConfig_ != null) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(45, getShieldedInstanceConfig());
    }
    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.tpu.v2alpha1.Node)) {
      return super.equals(obj);
    }
    com.google.cloud.tpu.v2alpha1.Node other = (com.google.cloud.tpu.v2alpha1.Node) obj;

    if (!getName().equals(other.getName())) return false;
    if (!getDescription().equals(other.getDescription())) return false;
    if (!getAcceleratorType().equals(other.getAcceleratorType())) return false;
    if (state_ != other.state_) return false;
    if (!getHealthDescription().equals(other.getHealthDescription())) return false;
    if (!getRuntimeVersion().equals(other.getRuntimeVersion())) return false;
    if (hasNetworkConfig() != other.hasNetworkConfig()) return false;
    if (hasNetworkConfig()) {
      if (!getNetworkConfig().equals(other.getNetworkConfig())) return false;
    }
    if (!getCidrBlock().equals(other.getCidrBlock())) return false;
    if (hasServiceAccount() != other.hasServiceAccount()) return false;
    if (hasServiceAccount()) {
      if (!getServiceAccount().equals(other.getServiceAccount())) return false;
    }
    if (hasCreateTime() != other.hasCreateTime()) return false;
    if (hasCreateTime()) {
      if (!getCreateTime().equals(other.getCreateTime())) return false;
    }
    if (hasSchedulingConfig() != other.hasSchedulingConfig()) return false;
    if (hasSchedulingConfig()) {
      if (!getSchedulingConfig().equals(other.getSchedulingConfig())) return false;
    }
    if (!getNetworkEndpointsList().equals(other.getNetworkEndpointsList())) return false;
    if (health_ != other.health_) return false;
    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
    if (!internalGetMetadata().equals(other.internalGetMetadata())) return false;
    if (!getTagsList().equals(other.getTagsList())) return false;
    if (getId() != other.getId()) return false;
    if (!getDataDisksList().equals(other.getDataDisksList())) return false;
    if (apiVersion_ != other.apiVersion_) return false;
    if (!getSymptomsList().equals(other.getSymptomsList())) return false;
    if (!getQueuedResource().equals(other.getQueuedResource())) return false;
    if (hasAcceleratorConfig() != other.hasAcceleratorConfig()) return false;
    if (hasAcceleratorConfig()) {
      if (!getAcceleratorConfig().equals(other.getAcceleratorConfig())) return false;
    }
    if (hasShieldedInstanceConfig() != other.hasShieldedInstanceConfig()) return false;
    if (hasShieldedInstanceConfig()) {
      if (!getShieldedInstanceConfig().equals(other.getShieldedInstanceConfig())) 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) + NAME_FIELD_NUMBER;
    hash = (53 * hash) + getName().hashCode();
    hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
    hash = (53 * hash) + getDescription().hashCode();
    hash = (37 * hash) + ACCELERATOR_TYPE_FIELD_NUMBER;
    hash = (53 * hash) + getAcceleratorType().hashCode();
    hash = (37 * hash) + STATE_FIELD_NUMBER;
    hash = (53 * hash) + state_;
    hash = (37 * hash) + HEALTH_DESCRIPTION_FIELD_NUMBER;
    hash = (53 * hash) + getHealthDescription().hashCode();
    hash = (37 * hash) + RUNTIME_VERSION_FIELD_NUMBER;
    hash = (53 * hash) + getRuntimeVersion().hashCode();
    if (hasNetworkConfig()) {
      hash = (37 * hash) + NETWORK_CONFIG_FIELD_NUMBER;
      hash = (53 * hash) + getNetworkConfig().hashCode();
    }
    hash = (37 * hash) + CIDR_BLOCK_FIELD_NUMBER;
    hash = (53 * hash) + getCidrBlock().hashCode();
    if (hasServiceAccount()) {
      hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER;
      hash = (53 * hash) + getServiceAccount().hashCode();
    }
    if (hasCreateTime()) {
      hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getCreateTime().hashCode();
    }
    if (hasSchedulingConfig()) {
      hash = (37 * hash) + SCHEDULING_CONFIG_FIELD_NUMBER;
      hash = (53 * hash) + getSchedulingConfig().hashCode();
    }
    if (getNetworkEndpointsCount() > 0) {
      hash = (37 * hash) + NETWORK_ENDPOINTS_FIELD_NUMBER;
      hash = (53 * hash) + getNetworkEndpointsList().hashCode();
    }
    hash = (37 * hash) + HEALTH_FIELD_NUMBER;
    hash = (53 * hash) + health_;
    if (!internalGetLabels().getMap().isEmpty()) {
      hash = (37 * hash) + LABELS_FIELD_NUMBER;
      hash = (53 * hash) + internalGetLabels().hashCode();
    }
    if (!internalGetMetadata().getMap().isEmpty()) {
      hash = (37 * hash) + METADATA_FIELD_NUMBER;
      hash = (53 * hash) + internalGetMetadata().hashCode();
    }
    if (getTagsCount() > 0) {
      hash = (37 * hash) + TAGS_FIELD_NUMBER;
      hash = (53 * hash) + getTagsList().hashCode();
    }
    hash = (37 * hash) + ID_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getId());
    if (getDataDisksCount() > 0) {
      hash = (37 * hash) + DATA_DISKS_FIELD_NUMBER;
      hash = (53 * hash) + getDataDisksList().hashCode();
    }
    hash = (37 * hash) + API_VERSION_FIELD_NUMBER;
    hash = (53 * hash) + apiVersion_;
    if (getSymptomsCount() > 0) {
      hash = (37 * hash) + SYMPTOMS_FIELD_NUMBER;
      hash = (53 * hash) + getSymptomsList().hashCode();
    }
    hash = (37 * hash) + QUEUED_RESOURCE_FIELD_NUMBER;
    hash = (53 * hash) + getQueuedResource().hashCode();
    if (hasAcceleratorConfig()) {
      hash = (37 * hash) + ACCELERATOR_CONFIG_FIELD_NUMBER;
      hash = (53 * hash) + getAcceleratorConfig().hashCode();
    }
    if (hasShieldedInstanceConfig()) {
      hash = (37 * hash) + SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER;
      hash = (53 * hash) + getShieldedInstanceConfig().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.cloud.tpu.v2alpha1.Node parseFrom(java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

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

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

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

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

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

  public static com.google.cloud.tpu.v2alpha1.Node 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.tpu.v2alpha1.Node parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.tpu.v2alpha1.Node 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.tpu.v2alpha1.Node 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>
   * A TPU instance.
   * </pre>
   *
   * Protobuf type {@code google.cloud.tpu.v2alpha1.Node}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.Node)
      com.google.cloud.tpu.v2alpha1.NodeOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.tpu.v2alpha1.CloudTpuProto
          .internal_static_google_cloud_tpu_v2alpha1_Node_descriptor;
    }

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

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

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.tpu.v2alpha1.CloudTpuProto
          .internal_static_google_cloud_tpu_v2alpha1_Node_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.tpu.v2alpha1.Node.class,
              com.google.cloud.tpu.v2alpha1.Node.Builder.class);
    }

    // Construct using com.google.cloud.tpu.v2alpha1.Node.newBuilder()
    private Builder() {}

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

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      name_ = "";
      description_ = "";
      acceleratorType_ = "";
      state_ = 0;
      healthDescription_ = "";
      runtimeVersion_ = "";
      networkConfig_ = null;
      if (networkConfigBuilder_ != null) {
        networkConfigBuilder_.dispose();
        networkConfigBuilder_ = null;
      }
      cidrBlock_ = "";
      serviceAccount_ = null;
      if (serviceAccountBuilder_ != null) {
        serviceAccountBuilder_.dispose();
        serviceAccountBuilder_ = null;
      }
      createTime_ = null;
      if (createTimeBuilder_ != null) {
        createTimeBuilder_.dispose();
        createTimeBuilder_ = null;
      }
      schedulingConfig_ = null;
      if (schedulingConfigBuilder_ != null) {
        schedulingConfigBuilder_.dispose();
        schedulingConfigBuilder_ = null;
      }
      if (networkEndpointsBuilder_ == null) {
        networkEndpoints_ = java.util.Collections.emptyList();
      } else {
        networkEndpoints_ = null;
        networkEndpointsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000800);
      health_ = 0;
      internalGetMutableLabels().clear();
      internalGetMutableMetadata().clear();
      tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00008000);
      id_ = 0L;
      if (dataDisksBuilder_ == null) {
        dataDisks_ = java.util.Collections.emptyList();
      } else {
        dataDisks_ = null;
        dataDisksBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00020000);
      apiVersion_ = 0;
      if (symptomsBuilder_ == null) {
        symptoms_ = java.util.Collections.emptyList();
      } else {
        symptoms_ = null;
        symptomsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00080000);
      queuedResource_ = "";
      acceleratorConfig_ = null;
      if (acceleratorConfigBuilder_ != null) {
        acceleratorConfigBuilder_.dispose();
        acceleratorConfigBuilder_ = null;
      }
      shieldedInstanceConfig_ = null;
      if (shieldedInstanceConfigBuilder_ != null) {
        shieldedInstanceConfigBuilder_.dispose();
        shieldedInstanceConfigBuilder_ = null;
      }
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.cloud.tpu.v2alpha1.CloudTpuProto
          .internal_static_google_cloud_tpu_v2alpha1_Node_descriptor;
    }

    @java.lang.Override
    public com.google.cloud.tpu.v2alpha1.Node getDefaultInstanceForType() {
      return com.google.cloud.tpu.v2alpha1.Node.getDefaultInstance();
    }

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

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

    private void buildPartialRepeatedFields(com.google.cloud.tpu.v2alpha1.Node result) {
      if (networkEndpointsBuilder_ == null) {
        if (((bitField0_ & 0x00000800) != 0)) {
          networkEndpoints_ = java.util.Collections.unmodifiableList(networkEndpoints_);
          bitField0_ = (bitField0_ & ~0x00000800);
        }
        result.networkEndpoints_ = networkEndpoints_;
      } else {
        result.networkEndpoints_ = networkEndpointsBuilder_.build();
      }
      if (((bitField0_ & 0x00008000) != 0)) {
        tags_ = tags_.getUnmodifiableView();
        bitField0_ = (bitField0_ & ~0x00008000);
      }
      result.tags_ = tags_;
      if (dataDisksBuilder_ == null) {
        if (((bitField0_ & 0x00020000) != 0)) {
          dataDisks_ = java.util.Collections.unmodifiableList(dataDisks_);
          bitField0_ = (bitField0_ & ~0x00020000);
        }
        result.dataDisks_ = dataDisks_;
      } else {
        result.dataDisks_ = dataDisksBuilder_.build();
      }
      if (symptomsBuilder_ == null) {
        if (((bitField0_ & 0x00080000) != 0)) {
          symptoms_ = java.util.Collections.unmodifiableList(symptoms_);
          bitField0_ = (bitField0_ & ~0x00080000);
        }
        result.symptoms_ = symptoms_;
      } else {
        result.symptoms_ = symptomsBuilder_.build();
      }
    }

    private void buildPartial0(com.google.cloud.tpu.v2alpha1.Node result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.name_ = name_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.description_ = description_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.acceleratorType_ = acceleratorType_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.state_ = state_;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.healthDescription_ = healthDescription_;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.runtimeVersion_ = runtimeVersion_;
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.networkConfig_ =
            networkConfigBuilder_ == null ? networkConfig_ : networkConfigBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000080) != 0)) {
        result.cidrBlock_ = cidrBlock_;
      }
      if (((from_bitField0_ & 0x00000100) != 0)) {
        result.serviceAccount_ =
            serviceAccountBuilder_ == null ? serviceAccount_ : serviceAccountBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000200) != 0)) {
        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000400) != 0)) {
        result.schedulingConfig_ =
            schedulingConfigBuilder_ == null ? schedulingConfig_ : schedulingConfigBuilder_.build();
      }
      if (((from_bitField0_ & 0x00001000) != 0)) {
        result.health_ = health_;
      }
      if (((from_bitField0_ & 0x00002000) != 0)) {
        result.labels_ = internalGetLabels();
        result.labels_.makeImmutable();
      }
      if (((from_bitField0_ & 0x00004000) != 0)) {
        result.metadata_ = internalGetMetadata();
        result.metadata_.makeImmutable();
      }
      if (((from_bitField0_ & 0x00010000) != 0)) {
        result.id_ = id_;
      }
      if (((from_bitField0_ & 0x00040000) != 0)) {
        result.apiVersion_ = apiVersion_;
      }
      if (((from_bitField0_ & 0x00100000) != 0)) {
        result.queuedResource_ = queuedResource_;
      }
      if (((from_bitField0_ & 0x00200000) != 0)) {
        result.acceleratorConfig_ =
            acceleratorConfigBuilder_ == null
                ? acceleratorConfig_
                : acceleratorConfigBuilder_.build();
      }
      if (((from_bitField0_ & 0x00400000) != 0)) {
        result.shieldedInstanceConfig_ =
            shieldedInstanceConfigBuilder_ == null
                ? shieldedInstanceConfig_
                : shieldedInstanceConfigBuilder_.build();
      }
    }

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

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

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

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

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

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

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

    public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.Node other) {
      if (other == com.google.cloud.tpu.v2alpha1.Node.getDefaultInstance()) return this;
      if (!other.getName().isEmpty()) {
        name_ = other.name_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (!other.getDescription().isEmpty()) {
        description_ = other.description_;
        bitField0_ |= 0x00000002;
        onChanged();
      }
      if (!other.getAcceleratorType().isEmpty()) {
        acceleratorType_ = other.acceleratorType_;
        bitField0_ |= 0x00000004;
        onChanged();
      }
      if (other.state_ != 0) {
        setStateValue(other.getStateValue());
      }
      if (!other.getHealthDescription().isEmpty()) {
        healthDescription_ = other.healthDescription_;
        bitField0_ |= 0x00000010;
        onChanged();
      }
      if (!other.getRuntimeVersion().isEmpty()) {
        runtimeVersion_ = other.runtimeVersion_;
        bitField0_ |= 0x00000020;
        onChanged();
      }
      if (other.hasNetworkConfig()) {
        mergeNetworkConfig(other.getNetworkConfig());
      }
      if (!other.getCidrBlock().isEmpty()) {
        cidrBlock_ = other.cidrBlock_;
        bitField0_ |= 0x00000080;
        onChanged();
      }
      if (other.hasServiceAccount()) {
        mergeServiceAccount(other.getServiceAccount());
      }
      if (other.hasCreateTime()) {
        mergeCreateTime(other.getCreateTime());
      }
      if (other.hasSchedulingConfig()) {
        mergeSchedulingConfig(other.getSchedulingConfig());
      }
      if (networkEndpointsBuilder_ == null) {
        if (!other.networkEndpoints_.isEmpty()) {
          if (networkEndpoints_.isEmpty()) {
            networkEndpoints_ = other.networkEndpoints_;
            bitField0_ = (bitField0_ & ~0x00000800);
          } else {
            ensureNetworkEndpointsIsMutable();
            networkEndpoints_.addAll(other.networkEndpoints_);
          }
          onChanged();
        }
      } else {
        if (!other.networkEndpoints_.isEmpty()) {
          if (networkEndpointsBuilder_.isEmpty()) {
            networkEndpointsBuilder_.dispose();
            networkEndpointsBuilder_ = null;
            networkEndpoints_ = other.networkEndpoints_;
            bitField0_ = (bitField0_ & ~0x00000800);
            networkEndpointsBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getNetworkEndpointsFieldBuilder()
                    : null;
          } else {
            networkEndpointsBuilder_.addAllMessages(other.networkEndpoints_);
          }
        }
      }
      if (other.health_ != 0) {
        setHealthValue(other.getHealthValue());
      }
      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
      bitField0_ |= 0x00002000;
      internalGetMutableMetadata().mergeFrom(other.internalGetMetadata());
      bitField0_ |= 0x00004000;
      if (!other.tags_.isEmpty()) {
        if (tags_.isEmpty()) {
          tags_ = other.tags_;
          bitField0_ = (bitField0_ & ~0x00008000);
        } else {
          ensureTagsIsMutable();
          tags_.addAll(other.tags_);
        }
        onChanged();
      }
      if (other.getId() != 0L) {
        setId(other.getId());
      }
      if (dataDisksBuilder_ == null) {
        if (!other.dataDisks_.isEmpty()) {
          if (dataDisks_.isEmpty()) {
            dataDisks_ = other.dataDisks_;
            bitField0_ = (bitField0_ & ~0x00020000);
          } else {
            ensureDataDisksIsMutable();
            dataDisks_.addAll(other.dataDisks_);
          }
          onChanged();
        }
      } else {
        if (!other.dataDisks_.isEmpty()) {
          if (dataDisksBuilder_.isEmpty()) {
            dataDisksBuilder_.dispose();
            dataDisksBuilder_ = null;
            dataDisks_ = other.dataDisks_;
            bitField0_ = (bitField0_ & ~0x00020000);
            dataDisksBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getDataDisksFieldBuilder()
                    : null;
          } else {
            dataDisksBuilder_.addAllMessages(other.dataDisks_);
          }
        }
      }
      if (other.apiVersion_ != 0) {
        setApiVersionValue(other.getApiVersionValue());
      }
      if (symptomsBuilder_ == null) {
        if (!other.symptoms_.isEmpty()) {
          if (symptoms_.isEmpty()) {
            symptoms_ = other.symptoms_;
            bitField0_ = (bitField0_ & ~0x00080000);
          } else {
            ensureSymptomsIsMutable();
            symptoms_.addAll(other.symptoms_);
          }
          onChanged();
        }
      } else {
        if (!other.symptoms_.isEmpty()) {
          if (symptomsBuilder_.isEmpty()) {
            symptomsBuilder_.dispose();
            symptomsBuilder_ = null;
            symptoms_ = other.symptoms_;
            bitField0_ = (bitField0_ & ~0x00080000);
            symptomsBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getSymptomsFieldBuilder()
                    : null;
          } else {
            symptomsBuilder_.addAllMessages(other.symptoms_);
          }
        }
      }
      if (!other.getQueuedResource().isEmpty()) {
        queuedResource_ = other.queuedResource_;
        bitField0_ |= 0x00100000;
        onChanged();
      }
      if (other.hasAcceleratorConfig()) {
        mergeAcceleratorConfig(other.getAcceleratorConfig());
      }
      if (other.hasShieldedInstanceConfig()) {
        mergeShieldedInstanceConfig(other.getShieldedInstanceConfig());
      }
      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:
              {
                name_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
            case 26:
              {
                description_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000002;
                break;
              } // case 26
            case 42:
              {
                acceleratorType_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000004;
                break;
              } // case 42
            case 72:
              {
                state_ = input.readEnum();
                bitField0_ |= 0x00000008;
                break;
              } // case 72
            case 82:
              {
                healthDescription_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000010;
                break;
              } // case 82
            case 90:
              {
                runtimeVersion_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000020;
                break;
              } // case 90
            case 106:
              {
                cidrBlock_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000080;
                break;
              } // case 106
            case 130:
              {
                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000200;
                break;
              } // case 130
            case 138:
              {
                input.readMessage(
                    getSchedulingConfigFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000400;
                break;
              } // case 138
            case 170:
              {
                com.google.cloud.tpu.v2alpha1.NetworkEndpoint m =
                    input.readMessage(
                        com.google.cloud.tpu.v2alpha1.NetworkEndpoint.parser(), extensionRegistry);
                if (networkEndpointsBuilder_ == null) {
                  ensureNetworkEndpointsIsMutable();
                  networkEndpoints_.add(m);
                } else {
                  networkEndpointsBuilder_.addMessage(m);
                }
                break;
              } // case 170
            case 176:
              {
                health_ = input.readEnum();
                bitField0_ |= 0x00001000;
                break;
              } // case 176
            case 194:
              {
                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_ |= 0x00002000;
                break;
              } // case 194
            case 264:
              {
                id_ = input.readInt64();
                bitField0_ |= 0x00010000;
                break;
              } // case 264
            case 274:
              {
                com.google.protobuf.MapEntry<java.lang.String, java.lang.String> metadata__ =
                    input.readMessage(
                        MetadataDefaultEntryHolder.defaultEntry.getParserForType(),
                        extensionRegistry);
                internalGetMutableMetadata()
                    .getMutableMap()
                    .put(metadata__.getKey(), metadata__.getValue());
                bitField0_ |= 0x00004000;
                break;
              } // case 274
            case 290:
              {
                input.readMessage(getNetworkConfigFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000040;
                break;
              } // case 290
            case 298:
              {
                input.readMessage(getServiceAccountFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000100;
                break;
              } // case 298
            case 304:
              {
                apiVersion_ = input.readEnum();
                bitField0_ |= 0x00040000;
                break;
              } // case 304
            case 314:
              {
                com.google.cloud.tpu.v2alpha1.Symptom m =
                    input.readMessage(
                        com.google.cloud.tpu.v2alpha1.Symptom.parser(), extensionRegistry);
                if (symptomsBuilder_ == null) {
                  ensureSymptomsIsMutable();
                  symptoms_.add(m);
                } else {
                  symptomsBuilder_.addMessage(m);
                }
                break;
              } // case 314
            case 322:
              {
                java.lang.String s = input.readStringRequireUtf8();
                ensureTagsIsMutable();
                tags_.add(s);
                break;
              } // case 322
            case 330:
              {
                com.google.cloud.tpu.v2alpha1.AttachedDisk m =
                    input.readMessage(
                        com.google.cloud.tpu.v2alpha1.AttachedDisk.parser(), extensionRegistry);
                if (dataDisksBuilder_ == null) {
                  ensureDataDisksIsMutable();
                  dataDisks_.add(m);
                } else {
                  dataDisksBuilder_.addMessage(m);
                }
                break;
              } // case 330
            case 346:
              {
                queuedResource_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00100000;
                break;
              } // case 346
            case 354:
              {
                input.readMessage(
                    getAcceleratorConfigFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00200000;
                break;
              } // case 354
            case 362:
              {
                input.readMessage(
                    getShieldedInstanceConfigFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00400000;
                break;
              } // case 362
            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 name_ = "";
    /**
     *
     *
     * <pre>
     * Output only. Immutable. The name of the TPU.
     * </pre>
     *
     * <code>
     * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
     * </code>
     *
     * @return The name.
     */
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        name_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Immutable. The name of the TPU.
     * </pre>
     *
     * <code>
     * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
     * </code>
     *
     * @return The bytes for name.
     */
    public com.google.protobuf.ByteString getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Immutable. The name of the TPU.
     * </pre>
     *
     * <code>
     * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
     * </code>
     *
     * @param value The name to set.
     * @return This builder for chaining.
     */
    public Builder setName(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      name_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Immutable. The name of the TPU.
     * </pre>
     *
     * <code>
     * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearName() {
      name_ = getDefaultInstance().getName();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Immutable. The name of the TPU.
     * </pre>
     *
     * <code>
     * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
     * </code>
     *
     * @param value The bytes for name to set.
     * @return This builder for chaining.
     */
    public Builder setNameBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      name_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    private java.lang.Object description_ = "";
    /**
     *
     *
     * <pre>
     * The user-supplied description of the TPU. Maximum of 512 characters.
     * </pre>
     *
     * <code>string description = 3;</code>
     *
     * @return The description.
     */
    public java.lang.String getDescription() {
      java.lang.Object ref = description_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        description_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The user-supplied description of the TPU. Maximum of 512 characters.
     * </pre>
     *
     * <code>string description = 3;</code>
     *
     * @return The bytes for description.
     */
    public com.google.protobuf.ByteString getDescriptionBytes() {
      java.lang.Object ref = description_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        description_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The user-supplied description of the TPU. Maximum of 512 characters.
     * </pre>
     *
     * <code>string description = 3;</code>
     *
     * @param value The description to set.
     * @return This builder for chaining.
     */
    public Builder setDescription(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      description_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The user-supplied description of the TPU. Maximum of 512 characters.
     * </pre>
     *
     * <code>string description = 3;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearDescription() {
      description_ = getDefaultInstance().getDescription();
      bitField0_ = (bitField0_ & ~0x00000002);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The user-supplied description of the TPU. Maximum of 512 characters.
     * </pre>
     *
     * <code>string description = 3;</code>
     *
     * @param value The bytes for description to set.
     * @return This builder for chaining.
     */
    public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      description_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }

    private java.lang.Object acceleratorType_ = "";
    /**
     *
     *
     * <pre>
     * The type of hardware accelerators associated with this node.
     * </pre>
     *
     * <code>string accelerator_type = 5;</code>
     *
     * @return The acceleratorType.
     */
    public java.lang.String getAcceleratorType() {
      java.lang.Object ref = acceleratorType_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        acceleratorType_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The type of hardware accelerators associated with this node.
     * </pre>
     *
     * <code>string accelerator_type = 5;</code>
     *
     * @return The bytes for acceleratorType.
     */
    public com.google.protobuf.ByteString getAcceleratorTypeBytes() {
      java.lang.Object ref = acceleratorType_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        acceleratorType_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The type of hardware accelerators associated with this node.
     * </pre>
     *
     * <code>string accelerator_type = 5;</code>
     *
     * @param value The acceleratorType to set.
     * @return This builder for chaining.
     */
    public Builder setAcceleratorType(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      acceleratorType_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The type of hardware accelerators associated with this node.
     * </pre>
     *
     * <code>string accelerator_type = 5;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearAcceleratorType() {
      acceleratorType_ = getDefaultInstance().getAcceleratorType();
      bitField0_ = (bitField0_ & ~0x00000004);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The type of hardware accelerators associated with this node.
     * </pre>
     *
     * <code>string accelerator_type = 5;</code>
     *
     * @param value The bytes for acceleratorType to set.
     * @return This builder for chaining.
     */
    public Builder setAcceleratorTypeBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      acceleratorType_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }

    private int state_ = 0;
    /**
     *
     *
     * <pre>
     * Output only. The current state for the TPU Node.
     * </pre>
     *
     * <code>
     * .google.cloud.tpu.v2alpha1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The enum numeric value on the wire for state.
     */
    @java.lang.Override
    public int getStateValue() {
      return state_;
    }
    /**
     *
     *
     * <pre>
     * Output only. The current state for the TPU Node.
     * </pre>
     *
     * <code>
     * .google.cloud.tpu.v2alpha1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @param value The enum numeric value on the wire for state to set.
     * @return This builder for chaining.
     */
    public Builder setStateValue(int value) {
      state_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The current state for the TPU Node.
     * </pre>
     *
     * <code>
     * .google.cloud.tpu.v2alpha1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The state.
     */
    @java.lang.Override
    public com.google.cloud.tpu.v2alpha1.Node.State getState() {
      com.google.cloud.tpu.v2alpha1.Node.State result =
          com.google.cloud.tpu.v2alpha1.Node.State.forNumber(state_);
      return result == null ? com.google.cloud.tpu.v2alpha1.Node.State.UNRECOGNIZED : result;
    }
    /**
     *
     *
     * <pre>
     * Output only. The current state for the TPU Node.
     * </pre>
     *
     * <code>
     * .google.cloud.tpu.v2alpha1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @param value The state to set.
     * @return This builder for chaining.
     */
    public Builder setState(com.google.cloud.tpu.v2alpha1.Node.State value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000008;
      state_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The current state for the TPU Node.
     * </pre>
     *
     * <code>
     * .google.cloud.tpu.v2alpha1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearState() {
      bitField0_ = (bitField0_ & ~0x00000008);
      state_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object healthDescription_ = "";
    /**
     *
     *
     * <pre>
     * Output only. If this field is populated, it contains a description of why
     * the TPU Node is unhealthy.
     * </pre>
     *
     * <code>string health_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The healthDescription.
     */
    public java.lang.String getHealthDescription() {
      java.lang.Object ref = healthDescription_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        healthDescription_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. If this field is populated, it contains a description of why
     * the TPU Node is unhealthy.
     * </pre>
     *
     * <code>string health_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The bytes for healthDescription.
     */
    public com.google.protobuf.ByteString getHealthDescriptionBytes() {
      java.lang.Object ref = healthDescription_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        healthDescription_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. If this field is populated, it contains a description of why
     * the TPU Node is unhealthy.
     * </pre>
     *
     * <code>string health_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The healthDescription to set.
     * @return This builder for chaining.
     */
    public Builder setHealthDescription(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      healthDescription_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. If this field is populated, it contains a description of why
     * the TPU Node is unhealthy.
     * </pre>
     *
     * <code>string health_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearHealthDescription() {
      healthDescription_ = getDefaultInstance().getHealthDescription();
      bitField0_ = (bitField0_ & ~0x00000010);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. If this field is populated, it contains a description of why
     * the TPU Node is unhealthy.
     * </pre>
     *
     * <code>string health_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The bytes for healthDescription to set.
     * @return This builder for chaining.
     */
    public Builder setHealthDescriptionBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      healthDescription_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }

    private java.lang.Object runtimeVersion_ = "";
    /**
     *
     *
     * <pre>
     * Required. The runtime version running in the Node.
     * </pre>
     *
     * <code>string runtime_version = 11 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return The runtimeVersion.
     */
    public java.lang.String getRuntimeVersion() {
      java.lang.Object ref = runtimeVersion_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        runtimeVersion_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. The runtime version running in the Node.
     * </pre>
     *
     * <code>string runtime_version = 11 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return The bytes for runtimeVersion.
     */
    public com.google.protobuf.ByteString getRuntimeVersionBytes() {
      java.lang.Object ref = runtimeVersion_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        runtimeVersion_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. The runtime version running in the Node.
     * </pre>
     *
     * <code>string runtime_version = 11 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @param value The runtimeVersion to set.
     * @return This builder for chaining.
     */
    public Builder setRuntimeVersion(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      runtimeVersion_ = value;
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. The runtime version running in the Node.
     * </pre>
     *
     * <code>string runtime_version = 11 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearRuntimeVersion() {
      runtimeVersion_ = getDefaultInstance().getRuntimeVersion();
      bitField0_ = (bitField0_ & ~0x00000020);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. The runtime version running in the Node.
     * </pre>
     *
     * <code>string runtime_version = 11 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @param value The bytes for runtimeVersion to set.
     * @return This builder for chaining.
     */
    public Builder setRuntimeVersionBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      runtimeVersion_ = value;
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }

    private com.google.cloud.tpu.v2alpha1.NetworkConfig networkConfig_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.tpu.v2alpha1.NetworkConfig,
            com.google.cloud.tpu.v2alpha1.NetworkConfig.Builder,
            com.google.cloud.tpu.v2alpha1.NetworkConfigOrBuilder>
        networkConfigBuilder_;
    /**
     *
     *
     * <pre>
     * Network configurations for the TPU node.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.NetworkConfig network_config = 36;</code>
     *
     * @return Whether the networkConfig field is set.
     */
    public boolean hasNetworkConfig() {
      return ((bitField0_ & 0x00000040) != 0);
    }
    /**
     *
     *
     * <pre>
     * Network configurations for the TPU node.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.NetworkConfig network_config = 36;</code>
     *
     * @return The networkConfig.
     */
    public com.google.cloud.tpu.v2alpha1.NetworkConfig getNetworkConfig() {
      if (networkConfigBuilder_ == null) {
        return networkConfig_ == null
            ? com.google.cloud.tpu.v2alpha1.NetworkConfig.getDefaultInstance()
            : networkConfig_;
      } else {
        return networkConfigBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Network configurations for the TPU node.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.NetworkConfig network_config = 36;</code>
     */
    public Builder setNetworkConfig(com.google.cloud.tpu.v2alpha1.NetworkConfig value) {
      if (networkConfigBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        networkConfig_ = value;
      } else {
        networkConfigBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Network configurations for the TPU node.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.NetworkConfig network_config = 36;</code>
     */
    public Builder setNetworkConfig(
        com.google.cloud.tpu.v2alpha1.NetworkConfig.Builder builderForValue) {
      if (networkConfigBuilder_ == null) {
        networkConfig_ = builderForValue.build();
      } else {
        networkConfigBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Network configurations for the TPU node.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.NetworkConfig network_config = 36;</code>
     */
    public Builder mergeNetworkConfig(com.google.cloud.tpu.v2alpha1.NetworkConfig value) {
      if (networkConfigBuilder_ == null) {
        if (((bitField0_ & 0x00000040) != 0)
            && networkConfig_ != null
            && networkConfig_ != com.google.cloud.tpu.v2alpha1.NetworkConfig.getDefaultInstance()) {
          getNetworkConfigBuilder().mergeFrom(value);
        } else {
          networkConfig_ = value;
        }
      } else {
        networkConfigBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Network configurations for the TPU node.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.NetworkConfig network_config = 36;</code>
     */
    public Builder clearNetworkConfig() {
      bitField0_ = (bitField0_ & ~0x00000040);
      networkConfig_ = null;
      if (networkConfigBuilder_ != null) {
        networkConfigBuilder_.dispose();
        networkConfigBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Network configurations for the TPU node.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.NetworkConfig network_config = 36;</code>
     */
    public com.google.cloud.tpu.v2alpha1.NetworkConfig.Builder getNetworkConfigBuilder() {
      bitField0_ |= 0x00000040;
      onChanged();
      return getNetworkConfigFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Network configurations for the TPU node.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.NetworkConfig network_config = 36;</code>
     */
    public com.google.cloud.tpu.v2alpha1.NetworkConfigOrBuilder getNetworkConfigOrBuilder() {
      if (networkConfigBuilder_ != null) {
        return networkConfigBuilder_.getMessageOrBuilder();
      } else {
        return networkConfig_ == null
            ? com.google.cloud.tpu.v2alpha1.NetworkConfig.getDefaultInstance()
            : networkConfig_;
      }
    }
    /**
     *
     *
     * <pre>
     * Network configurations for the TPU node.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.NetworkConfig network_config = 36;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.tpu.v2alpha1.NetworkConfig,
            com.google.cloud.tpu.v2alpha1.NetworkConfig.Builder,
            com.google.cloud.tpu.v2alpha1.NetworkConfigOrBuilder>
        getNetworkConfigFieldBuilder() {
      if (networkConfigBuilder_ == null) {
        networkConfigBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.tpu.v2alpha1.NetworkConfig,
                com.google.cloud.tpu.v2alpha1.NetworkConfig.Builder,
                com.google.cloud.tpu.v2alpha1.NetworkConfigOrBuilder>(
                getNetworkConfig(), getParentForChildren(), isClean());
        networkConfig_ = null;
      }
      return networkConfigBuilder_;
    }

    private java.lang.Object cidrBlock_ = "";
    /**
     *
     *
     * <pre>
     * The CIDR block that the TPU node will use when selecting an IP address.
     * This CIDR block must be a /29 block; the Compute Engine networks API
     * forbids a smaller block, and using a larger block would be wasteful (a
     * node can only consume one IP address). Errors will occur if the CIDR block
     * has already been used for a currently existing TPU node, the CIDR block
     * conflicts with any subnetworks in the user's provided network, or the
     * provided network is peered with another network that is using that CIDR
     * block.
     * </pre>
     *
     * <code>string cidr_block = 13;</code>
     *
     * @return The cidrBlock.
     */
    public java.lang.String getCidrBlock() {
      java.lang.Object ref = cidrBlock_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        cidrBlock_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The CIDR block that the TPU node will use when selecting an IP address.
     * This CIDR block must be a /29 block; the Compute Engine networks API
     * forbids a smaller block, and using a larger block would be wasteful (a
     * node can only consume one IP address). Errors will occur if the CIDR block
     * has already been used for a currently existing TPU node, the CIDR block
     * conflicts with any subnetworks in the user's provided network, or the
     * provided network is peered with another network that is using that CIDR
     * block.
     * </pre>
     *
     * <code>string cidr_block = 13;</code>
     *
     * @return The bytes for cidrBlock.
     */
    public com.google.protobuf.ByteString getCidrBlockBytes() {
      java.lang.Object ref = cidrBlock_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        cidrBlock_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The CIDR block that the TPU node will use when selecting an IP address.
     * This CIDR block must be a /29 block; the Compute Engine networks API
     * forbids a smaller block, and using a larger block would be wasteful (a
     * node can only consume one IP address). Errors will occur if the CIDR block
     * has already been used for a currently existing TPU node, the CIDR block
     * conflicts with any subnetworks in the user's provided network, or the
     * provided network is peered with another network that is using that CIDR
     * block.
     * </pre>
     *
     * <code>string cidr_block = 13;</code>
     *
     * @param value The cidrBlock to set.
     * @return This builder for chaining.
     */
    public Builder setCidrBlock(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      cidrBlock_ = value;
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The CIDR block that the TPU node will use when selecting an IP address.
     * This CIDR block must be a /29 block; the Compute Engine networks API
     * forbids a smaller block, and using a larger block would be wasteful (a
     * node can only consume one IP address). Errors will occur if the CIDR block
     * has already been used for a currently existing TPU node, the CIDR block
     * conflicts with any subnetworks in the user's provided network, or the
     * provided network is peered with another network that is using that CIDR
     * block.
     * </pre>
     *
     * <code>string cidr_block = 13;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearCidrBlock() {
      cidrBlock_ = getDefaultInstance().getCidrBlock();
      bitField0_ = (bitField0_ & ~0x00000080);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The CIDR block that the TPU node will use when selecting an IP address.
     * This CIDR block must be a /29 block; the Compute Engine networks API
     * forbids a smaller block, and using a larger block would be wasteful (a
     * node can only consume one IP address). Errors will occur if the CIDR block
     * has already been used for a currently existing TPU node, the CIDR block
     * conflicts with any subnetworks in the user's provided network, or the
     * provided network is peered with another network that is using that CIDR
     * block.
     * </pre>
     *
     * <code>string cidr_block = 13;</code>
     *
     * @param value The bytes for cidrBlock to set.
     * @return This builder for chaining.
     */
    public Builder setCidrBlockBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      cidrBlock_ = value;
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }

    private com.google.cloud.tpu.v2alpha1.ServiceAccount serviceAccount_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.tpu.v2alpha1.ServiceAccount,
            com.google.cloud.tpu.v2alpha1.ServiceAccount.Builder,
            com.google.cloud.tpu.v2alpha1.ServiceAccountOrBuilder>
        serviceAccountBuilder_;
    /**
     *
     *
     * <pre>
     * The Google Cloud Platform Service Account to be used by the TPU node VMs.
     * If None is specified, the default compute service account will be used.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.ServiceAccount service_account = 37;</code>
     *
     * @return Whether the serviceAccount field is set.
     */
    public boolean hasServiceAccount() {
      return ((bitField0_ & 0x00000100) != 0);
    }
    /**
     *
     *
     * <pre>
     * The Google Cloud Platform Service Account to be used by the TPU node VMs.
     * If None is specified, the default compute service account will be used.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.ServiceAccount service_account = 37;</code>
     *
     * @return The serviceAccount.
     */
    public com.google.cloud.tpu.v2alpha1.ServiceAccount getServiceAccount() {
      if (serviceAccountBuilder_ == null) {
        return serviceAccount_ == null
            ? com.google.cloud.tpu.v2alpha1.ServiceAccount.getDefaultInstance()
            : serviceAccount_;
      } else {
        return serviceAccountBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * The Google Cloud Platform Service Account to be used by the TPU node VMs.
     * If None is specified, the default compute service account will be used.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.ServiceAccount service_account = 37;</code>
     */
    public Builder setServiceAccount(com.google.cloud.tpu.v2alpha1.ServiceAccount value) {
      if (serviceAccountBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        serviceAccount_ = value;
      } else {
        serviceAccountBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The Google Cloud Platform Service Account to be used by the TPU node VMs.
     * If None is specified, the default compute service account will be used.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.ServiceAccount service_account = 37;</code>
     */
    public Builder setServiceAccount(
        com.google.cloud.tpu.v2alpha1.ServiceAccount.Builder builderForValue) {
      if (serviceAccountBuilder_ == null) {
        serviceAccount_ = builderForValue.build();
      } else {
        serviceAccountBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The Google Cloud Platform Service Account to be used by the TPU node VMs.
     * If None is specified, the default compute service account will be used.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.ServiceAccount service_account = 37;</code>
     */
    public Builder mergeServiceAccount(com.google.cloud.tpu.v2alpha1.ServiceAccount value) {
      if (serviceAccountBuilder_ == null) {
        if (((bitField0_ & 0x00000100) != 0)
            && serviceAccount_ != null
            && serviceAccount_
                != com.google.cloud.tpu.v2alpha1.ServiceAccount.getDefaultInstance()) {
          getServiceAccountBuilder().mergeFrom(value);
        } else {
          serviceAccount_ = value;
        }
      } else {
        serviceAccountBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The Google Cloud Platform Service Account to be used by the TPU node VMs.
     * If None is specified, the default compute service account will be used.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.ServiceAccount service_account = 37;</code>
     */
    public Builder clearServiceAccount() {
      bitField0_ = (bitField0_ & ~0x00000100);
      serviceAccount_ = null;
      if (serviceAccountBuilder_ != null) {
        serviceAccountBuilder_.dispose();
        serviceAccountBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The Google Cloud Platform Service Account to be used by the TPU node VMs.
     * If None is specified, the default compute service account will be used.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.ServiceAccount service_account = 37;</code>
     */
    public com.google.cloud.tpu.v2alpha1.ServiceAccount.Builder getServiceAccountBuilder() {
      bitField0_ |= 0x00000100;
      onChanged();
      return getServiceAccountFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * The Google Cloud Platform Service Account to be used by the TPU node VMs.
     * If None is specified, the default compute service account will be used.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.ServiceAccount service_account = 37;</code>
     */
    public com.google.cloud.tpu.v2alpha1.ServiceAccountOrBuilder getServiceAccountOrBuilder() {
      if (serviceAccountBuilder_ != null) {
        return serviceAccountBuilder_.getMessageOrBuilder();
      } else {
        return serviceAccount_ == null
            ? com.google.cloud.tpu.v2alpha1.ServiceAccount.getDefaultInstance()
            : serviceAccount_;
      }
    }
    /**
     *
     *
     * <pre>
     * The Google Cloud Platform Service Account to be used by the TPU node VMs.
     * If None is specified, the default compute service account will be used.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.ServiceAccount service_account = 37;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.tpu.v2alpha1.ServiceAccount,
            com.google.cloud.tpu.v2alpha1.ServiceAccount.Builder,
            com.google.cloud.tpu.v2alpha1.ServiceAccountOrBuilder>
        getServiceAccountFieldBuilder() {
      if (serviceAccountBuilder_ == null) {
        serviceAccountBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.tpu.v2alpha1.ServiceAccount,
                com.google.cloud.tpu.v2alpha1.ServiceAccount.Builder,
                com.google.cloud.tpu.v2alpha1.ServiceAccountOrBuilder>(
                getServiceAccount(), getParentForChildren(), isClean());
        serviceAccount_ = null;
      }
      return serviceAccountBuilder_;
    }

    private com.google.protobuf.Timestamp createTime_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        createTimeBuilder_;
    /**
     *
     *
     * <pre>
     * Output only. The time when the node was created.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return Whether the createTime field is set.
     */
    public boolean hasCreateTime() {
      return ((bitField0_ & 0x00000200) != 0);
    }
    /**
     *
     *
     * <pre>
     * Output only. The time when the node was created.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The createTime.
     */
    public com.google.protobuf.Timestamp getCreateTime() {
      if (createTimeBuilder_ == null) {
        return createTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : createTime_;
      } else {
        return createTimeBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The time when the node was created.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setCreateTime(com.google.protobuf.Timestamp value) {
      if (createTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        createTime_ = value;
      } else {
        createTimeBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000200;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The time when the node was created.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
      if (createTimeBuilder_ == null) {
        createTime_ = builderForValue.build();
      } else {
        createTimeBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000200;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The time when the node was created.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
      if (createTimeBuilder_ == null) {
        if (((bitField0_ & 0x00000200) != 0)
            && createTime_ != null
            && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
          getCreateTimeBuilder().mergeFrom(value);
        } else {
          createTime_ = value;
        }
      } else {
        createTimeBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000200;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The time when the node was created.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearCreateTime() {
      bitField0_ = (bitField0_ & ~0x00000200);
      createTime_ = null;
      if (createTimeBuilder_ != null) {
        createTimeBuilder_.dispose();
        createTimeBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The time when the node was created.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
      bitField0_ |= 0x00000200;
      onChanged();
      return getCreateTimeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Output only. The time when the node was created.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
      if (createTimeBuilder_ != null) {
        return createTimeBuilder_.getMessageOrBuilder();
      } else {
        return createTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : createTime_;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The time when the node was created.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        getCreateTimeFieldBuilder() {
      if (createTimeBuilder_ == null) {
        createTimeBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.protobuf.Timestamp,
                com.google.protobuf.Timestamp.Builder,
                com.google.protobuf.TimestampOrBuilder>(
                getCreateTime(), getParentForChildren(), isClean());
        createTime_ = null;
      }
      return createTimeBuilder_;
    }

    private com.google.cloud.tpu.v2alpha1.SchedulingConfig schedulingConfig_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.tpu.v2alpha1.SchedulingConfig,
            com.google.cloud.tpu.v2alpha1.SchedulingConfig.Builder,
            com.google.cloud.tpu.v2alpha1.SchedulingConfigOrBuilder>
        schedulingConfigBuilder_;
    /**
     *
     *
     * <pre>
     * The scheduling options for this node.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.SchedulingConfig scheduling_config = 17;</code>
     *
     * @return Whether the schedulingConfig field is set.
     */
    public boolean hasSchedulingConfig() {
      return ((bitField0_ & 0x00000400) != 0);
    }
    /**
     *
     *
     * <pre>
     * The scheduling options for this node.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.SchedulingConfig scheduling_config = 17;</code>
     *
     * @return The schedulingConfig.
     */
    public com.google.cloud.tpu.v2alpha1.SchedulingConfig getSchedulingConfig() {
      if (schedulingConfigBuilder_ == null) {
        return schedulingConfig_ == null
            ? com.google.cloud.tpu.v2alpha1.SchedulingConfig.getDefaultInstance()
            : schedulingConfig_;
      } else {
        return schedulingConfigBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * The scheduling options for this node.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.SchedulingConfig scheduling_config = 17;</code>
     */
    public Builder setSchedulingConfig(com.google.cloud.tpu.v2alpha1.SchedulingConfig value) {
      if (schedulingConfigBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        schedulingConfig_ = value;
      } else {
        schedulingConfigBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000400;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The scheduling options for this node.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.SchedulingConfig scheduling_config = 17;</code>
     */
    public Builder setSchedulingConfig(
        com.google.cloud.tpu.v2alpha1.SchedulingConfig.Builder builderForValue) {
      if (schedulingConfigBuilder_ == null) {
        schedulingConfig_ = builderForValue.build();
      } else {
        schedulingConfigBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000400;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The scheduling options for this node.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.SchedulingConfig scheduling_config = 17;</code>
     */
    public Builder mergeSchedulingConfig(com.google.cloud.tpu.v2alpha1.SchedulingConfig value) {
      if (schedulingConfigBuilder_ == null) {
        if (((bitField0_ & 0x00000400) != 0)
            && schedulingConfig_ != null
            && schedulingConfig_
                != com.google.cloud.tpu.v2alpha1.SchedulingConfig.getDefaultInstance()) {
          getSchedulingConfigBuilder().mergeFrom(value);
        } else {
          schedulingConfig_ = value;
        }
      } else {
        schedulingConfigBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000400;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The scheduling options for this node.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.SchedulingConfig scheduling_config = 17;</code>
     */
    public Builder clearSchedulingConfig() {
      bitField0_ = (bitField0_ & ~0x00000400);
      schedulingConfig_ = null;
      if (schedulingConfigBuilder_ != null) {
        schedulingConfigBuilder_.dispose();
        schedulingConfigBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The scheduling options for this node.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.SchedulingConfig scheduling_config = 17;</code>
     */
    public com.google.cloud.tpu.v2alpha1.SchedulingConfig.Builder getSchedulingConfigBuilder() {
      bitField0_ |= 0x00000400;
      onChanged();
      return getSchedulingConfigFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * The scheduling options for this node.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.SchedulingConfig scheduling_config = 17;</code>
     */
    public com.google.cloud.tpu.v2alpha1.SchedulingConfigOrBuilder getSchedulingConfigOrBuilder() {
      if (schedulingConfigBuilder_ != null) {
        return schedulingConfigBuilder_.getMessageOrBuilder();
      } else {
        return schedulingConfig_ == null
            ? com.google.cloud.tpu.v2alpha1.SchedulingConfig.getDefaultInstance()
            : schedulingConfig_;
      }
    }
    /**
     *
     *
     * <pre>
     * The scheduling options for this node.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.SchedulingConfig scheduling_config = 17;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.tpu.v2alpha1.SchedulingConfig,
            com.google.cloud.tpu.v2alpha1.SchedulingConfig.Builder,
            com.google.cloud.tpu.v2alpha1.SchedulingConfigOrBuilder>
        getSchedulingConfigFieldBuilder() {
      if (schedulingConfigBuilder_ == null) {
        schedulingConfigBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.tpu.v2alpha1.SchedulingConfig,
                com.google.cloud.tpu.v2alpha1.SchedulingConfig.Builder,
                com.google.cloud.tpu.v2alpha1.SchedulingConfigOrBuilder>(
                getSchedulingConfig(), getParentForChildren(), isClean());
        schedulingConfig_ = null;
      }
      return schedulingConfigBuilder_;
    }

    private java.util.List<com.google.cloud.tpu.v2alpha1.NetworkEndpoint> networkEndpoints_ =
        java.util.Collections.emptyList();

    private void ensureNetworkEndpointsIsMutable() {
      if (!((bitField0_ & 0x00000800) != 0)) {
        networkEndpoints_ =
            new java.util.ArrayList<com.google.cloud.tpu.v2alpha1.NetworkEndpoint>(
                networkEndpoints_);
        bitField0_ |= 0x00000800;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.tpu.v2alpha1.NetworkEndpoint,
            com.google.cloud.tpu.v2alpha1.NetworkEndpoint.Builder,
            com.google.cloud.tpu.v2alpha1.NetworkEndpointOrBuilder>
        networkEndpointsBuilder_;

    /**
     *
     *
     * <pre>
     * Output only. The network endpoints where TPU workers can be accessed and
     * sent work. It is recommended that runtime clients of the node reach out
     * to the 0th entry in this map first.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public java.util.List<com.google.cloud.tpu.v2alpha1.NetworkEndpoint> getNetworkEndpointsList() {
      if (networkEndpointsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(networkEndpoints_);
      } else {
        return networkEndpointsBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The network endpoints where TPU workers can be accessed and
     * sent work. It is recommended that runtime clients of the node reach out
     * to the 0th entry in this map first.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public int getNetworkEndpointsCount() {
      if (networkEndpointsBuilder_ == null) {
        return networkEndpoints_.size();
      } else {
        return networkEndpointsBuilder_.getCount();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The network endpoints where TPU workers can be accessed and
     * sent work. It is recommended that runtime clients of the node reach out
     * to the 0th entry in this map first.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.tpu.v2alpha1.NetworkEndpoint getNetworkEndpoints(int index) {
      if (networkEndpointsBuilder_ == null) {
        return networkEndpoints_.get(index);
      } else {
        return networkEndpointsBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The network endpoints where TPU workers can be accessed and
     * sent work. It is recommended that runtime clients of the node reach out
     * to the 0th entry in this map first.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setNetworkEndpoints(
        int index, com.google.cloud.tpu.v2alpha1.NetworkEndpoint value) {
      if (networkEndpointsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureNetworkEndpointsIsMutable();
        networkEndpoints_.set(index, value);
        onChanged();
      } else {
        networkEndpointsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The network endpoints where TPU workers can be accessed and
     * sent work. It is recommended that runtime clients of the node reach out
     * to the 0th entry in this map first.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setNetworkEndpoints(
        int index, com.google.cloud.tpu.v2alpha1.NetworkEndpoint.Builder builderForValue) {
      if (networkEndpointsBuilder_ == null) {
        ensureNetworkEndpointsIsMutable();
        networkEndpoints_.set(index, builderForValue.build());
        onChanged();
      } else {
        networkEndpointsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The network endpoints where TPU workers can be accessed and
     * sent work. It is recommended that runtime clients of the node reach out
     * to the 0th entry in this map first.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder addNetworkEndpoints(com.google.cloud.tpu.v2alpha1.NetworkEndpoint value) {
      if (networkEndpointsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureNetworkEndpointsIsMutable();
        networkEndpoints_.add(value);
        onChanged();
      } else {
        networkEndpointsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The network endpoints where TPU workers can be accessed and
     * sent work. It is recommended that runtime clients of the node reach out
     * to the 0th entry in this map first.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder addNetworkEndpoints(
        int index, com.google.cloud.tpu.v2alpha1.NetworkEndpoint value) {
      if (networkEndpointsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureNetworkEndpointsIsMutable();
        networkEndpoints_.add(index, value);
        onChanged();
      } else {
        networkEndpointsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The network endpoints where TPU workers can be accessed and
     * sent work. It is recommended that runtime clients of the node reach out
     * to the 0th entry in this map first.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder addNetworkEndpoints(
        com.google.cloud.tpu.v2alpha1.NetworkEndpoint.Builder builderForValue) {
      if (networkEndpointsBuilder_ == null) {
        ensureNetworkEndpointsIsMutable();
        networkEndpoints_.add(builderForValue.build());
        onChanged();
      } else {
        networkEndpointsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The network endpoints where TPU workers can be accessed and
     * sent work. It is recommended that runtime clients of the node reach out
     * to the 0th entry in this map first.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder addNetworkEndpoints(
        int index, com.google.cloud.tpu.v2alpha1.NetworkEndpoint.Builder builderForValue) {
      if (networkEndpointsBuilder_ == null) {
        ensureNetworkEndpointsIsMutable();
        networkEndpoints_.add(index, builderForValue.build());
        onChanged();
      } else {
        networkEndpointsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The network endpoints where TPU workers can be accessed and
     * sent work. It is recommended that runtime clients of the node reach out
     * to the 0th entry in this map first.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder addAllNetworkEndpoints(
        java.lang.Iterable<? extends com.google.cloud.tpu.v2alpha1.NetworkEndpoint> values) {
      if (networkEndpointsBuilder_ == null) {
        ensureNetworkEndpointsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networkEndpoints_);
        onChanged();
      } else {
        networkEndpointsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The network endpoints where TPU workers can be accessed and
     * sent work. It is recommended that runtime clients of the node reach out
     * to the 0th entry in this map first.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearNetworkEndpoints() {
      if (networkEndpointsBuilder_ == null) {
        networkEndpoints_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000800);
        onChanged();
      } else {
        networkEndpointsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The network endpoints where TPU workers can be accessed and
     * sent work. It is recommended that runtime clients of the node reach out
     * to the 0th entry in this map first.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder removeNetworkEndpoints(int index) {
      if (networkEndpointsBuilder_ == null) {
        ensureNetworkEndpointsIsMutable();
        networkEndpoints_.remove(index);
        onChanged();
      } else {
        networkEndpointsBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The network endpoints where TPU workers can be accessed and
     * sent work. It is recommended that runtime clients of the node reach out
     * to the 0th entry in this map first.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.tpu.v2alpha1.NetworkEndpoint.Builder getNetworkEndpointsBuilder(
        int index) {
      return getNetworkEndpointsFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     * <pre>
     * Output only. The network endpoints where TPU workers can be accessed and
     * sent work. It is recommended that runtime clients of the node reach out
     * to the 0th entry in this map first.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.tpu.v2alpha1.NetworkEndpointOrBuilder getNetworkEndpointsOrBuilder(
        int index) {
      if (networkEndpointsBuilder_ == null) {
        return networkEndpoints_.get(index);
      } else {
        return networkEndpointsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The network endpoints where TPU workers can be accessed and
     * sent work. It is recommended that runtime clients of the node reach out
     * to the 0th entry in this map first.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public java.util.List<? extends com.google.cloud.tpu.v2alpha1.NetworkEndpointOrBuilder>
        getNetworkEndpointsOrBuilderList() {
      if (networkEndpointsBuilder_ != null) {
        return networkEndpointsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(networkEndpoints_);
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The network endpoints where TPU workers can be accessed and
     * sent work. It is recommended that runtime clients of the node reach out
     * to the 0th entry in this map first.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.tpu.v2alpha1.NetworkEndpoint.Builder addNetworkEndpointsBuilder() {
      return getNetworkEndpointsFieldBuilder()
          .addBuilder(com.google.cloud.tpu.v2alpha1.NetworkEndpoint.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Output only. The network endpoints where TPU workers can be accessed and
     * sent work. It is recommended that runtime clients of the node reach out
     * to the 0th entry in this map first.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.tpu.v2alpha1.NetworkEndpoint.Builder addNetworkEndpointsBuilder(
        int index) {
      return getNetworkEndpointsFieldBuilder()
          .addBuilder(index, com.google.cloud.tpu.v2alpha1.NetworkEndpoint.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Output only. The network endpoints where TPU workers can be accessed and
     * sent work. It is recommended that runtime clients of the node reach out
     * to the 0th entry in this map first.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public java.util.List<com.google.cloud.tpu.v2alpha1.NetworkEndpoint.Builder>
        getNetworkEndpointsBuilderList() {
      return getNetworkEndpointsFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.tpu.v2alpha1.NetworkEndpoint,
            com.google.cloud.tpu.v2alpha1.NetworkEndpoint.Builder,
            com.google.cloud.tpu.v2alpha1.NetworkEndpointOrBuilder>
        getNetworkEndpointsFieldBuilder() {
      if (networkEndpointsBuilder_ == null) {
        networkEndpointsBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.tpu.v2alpha1.NetworkEndpoint,
                com.google.cloud.tpu.v2alpha1.NetworkEndpoint.Builder,
                com.google.cloud.tpu.v2alpha1.NetworkEndpointOrBuilder>(
                networkEndpoints_,
                ((bitField0_ & 0x00000800) != 0),
                getParentForChildren(),
                isClean());
        networkEndpoints_ = null;
      }
      return networkEndpointsBuilder_;
    }

    private int health_ = 0;
    /**
     *
     *
     * <pre>
     * The health status of the TPU node.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.Node.Health health = 22;</code>
     *
     * @return The enum numeric value on the wire for health.
     */
    @java.lang.Override
    public int getHealthValue() {
      return health_;
    }
    /**
     *
     *
     * <pre>
     * The health status of the TPU node.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.Node.Health health = 22;</code>
     *
     * @param value The enum numeric value on the wire for health to set.
     * @return This builder for chaining.
     */
    public Builder setHealthValue(int value) {
      health_ = value;
      bitField0_ |= 0x00001000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The health status of the TPU node.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.Node.Health health = 22;</code>
     *
     * @return The health.
     */
    @java.lang.Override
    public com.google.cloud.tpu.v2alpha1.Node.Health getHealth() {
      com.google.cloud.tpu.v2alpha1.Node.Health result =
          com.google.cloud.tpu.v2alpha1.Node.Health.forNumber(health_);
      return result == null ? com.google.cloud.tpu.v2alpha1.Node.Health.UNRECOGNIZED : result;
    }
    /**
     *
     *
     * <pre>
     * The health status of the TPU node.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.Node.Health health = 22;</code>
     *
     * @param value The health to set.
     * @return This builder for chaining.
     */
    public Builder setHealth(com.google.cloud.tpu.v2alpha1.Node.Health value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00001000;
      health_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The health status of the TPU node.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.Node.Health health = 22;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearHealth() {
      bitField0_ = (bitField0_ & ~0x00001000);
      health_ = 0;
      onChanged();
      return this;
    }

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

    public int getLabelsCount() {
      return internalGetLabels().getMap().size();
    }
    /**
     *
     *
     * <pre>
     * Resource labels to represent user-provided metadata.
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 24;</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>
     * Resource labels to represent user-provided metadata.
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 24;</code>
     */
    @java.lang.Override
    public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {
      return internalGetLabels().getMap();
    }
    /**
     *
     *
     * <pre>
     * Resource labels to represent user-provided metadata.
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 24;</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>
     * Resource labels to represent user-provided metadata.
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 24;</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_ & ~0x00002000);
      internalGetMutableLabels().getMutableMap().clear();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Resource labels to represent user-provided metadata.
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 24;</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_ |= 0x00002000;
      return internalGetMutableLabels().getMutableMap();
    }
    /**
     *
     *
     * <pre>
     * Resource labels to represent user-provided metadata.
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 24;</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_ |= 0x00002000;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Resource labels to represent user-provided metadata.
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 24;</code>
     */
    public Builder putAllLabels(java.util.Map<java.lang.String, java.lang.String> values) {
      internalGetMutableLabels().getMutableMap().putAll(values);
      bitField0_ |= 0x00002000;
      return this;
    }

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

    private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetMetadata() {
      if (metadata_ == null) {
        return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry);
      }
      return metadata_;
    }

    private com.google.protobuf.MapField<java.lang.String, java.lang.String>
        internalGetMutableMetadata() {
      if (metadata_ == null) {
        metadata_ =
            com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry);
      }
      if (!metadata_.isMutable()) {
        metadata_ = metadata_.copy();
      }
      bitField0_ |= 0x00004000;
      onChanged();
      return metadata_;
    }

    public int getMetadataCount() {
      return internalGetMetadata().getMap().size();
    }
    /**
     *
     *
     * <pre>
     * Custom metadata to apply to the TPU Node.
     * Can set startup-script and shutdown-script
     * </pre>
     *
     * <code>map&lt;string, string&gt; metadata = 34;</code>
     */
    @java.lang.Override
    public boolean containsMetadata(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      return internalGetMetadata().getMap().containsKey(key);
    }
    /** Use {@link #getMetadataMap()} instead. */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.String> getMetadata() {
      return getMetadataMap();
    }
    /**
     *
     *
     * <pre>
     * Custom metadata to apply to the TPU Node.
     * Can set startup-script and shutdown-script
     * </pre>
     *
     * <code>map&lt;string, string&gt; metadata = 34;</code>
     */
    @java.lang.Override
    public java.util.Map<java.lang.String, java.lang.String> getMetadataMap() {
      return internalGetMetadata().getMap();
    }
    /**
     *
     *
     * <pre>
     * Custom metadata to apply to the TPU Node.
     * Can set startup-script and shutdown-script
     * </pre>
     *
     * <code>map&lt;string, string&gt; metadata = 34;</code>
     */
    @java.lang.Override
    public /* nullable */ java.lang.String getMetadataOrDefault(
        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 = internalGetMetadata().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     *
     *
     * <pre>
     * Custom metadata to apply to the TPU Node.
     * Can set startup-script and shutdown-script
     * </pre>
     *
     * <code>map&lt;string, string&gt; metadata = 34;</code>
     */
    @java.lang.Override
    public java.lang.String getMetadataOrThrow(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      java.util.Map<java.lang.String, java.lang.String> map = internalGetMetadata().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    public Builder clearMetadata() {
      bitField0_ = (bitField0_ & ~0x00004000);
      internalGetMutableMetadata().getMutableMap().clear();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Custom metadata to apply to the TPU Node.
     * Can set startup-script and shutdown-script
     * </pre>
     *
     * <code>map&lt;string, string&gt; metadata = 34;</code>
     */
    public Builder removeMetadata(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      internalGetMutableMetadata().getMutableMap().remove(key);
      return this;
    }
    /** Use alternate mutation accessors instead. */
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.String> getMutableMetadata() {
      bitField0_ |= 0x00004000;
      return internalGetMutableMetadata().getMutableMap();
    }
    /**
     *
     *
     * <pre>
     * Custom metadata to apply to the TPU Node.
     * Can set startup-script and shutdown-script
     * </pre>
     *
     * <code>map&lt;string, string&gt; metadata = 34;</code>
     */
    public Builder putMetadata(java.lang.String key, java.lang.String value) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      if (value == null) {
        throw new NullPointerException("map value");
      }
      internalGetMutableMetadata().getMutableMap().put(key, value);
      bitField0_ |= 0x00004000;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Custom metadata to apply to the TPU Node.
     * Can set startup-script and shutdown-script
     * </pre>
     *
     * <code>map&lt;string, string&gt; metadata = 34;</code>
     */
    public Builder putAllMetadata(java.util.Map<java.lang.String, java.lang.String> values) {
      internalGetMutableMetadata().getMutableMap().putAll(values);
      bitField0_ |= 0x00004000;
      return this;
    }

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

    private void ensureTagsIsMutable() {
      if (!((bitField0_ & 0x00008000) != 0)) {
        tags_ = new com.google.protobuf.LazyStringArrayList(tags_);
        bitField0_ |= 0x00008000;
      }
    }
    /**
     *
     *
     * <pre>
     * Tags to apply to the TPU Node. Tags are used to identify valid sources or
     * targets for network firewalls.
     * </pre>
     *
     * <code>repeated string tags = 40;</code>
     *
     * @return A list containing the tags.
     */
    public com.google.protobuf.ProtocolStringList getTagsList() {
      return tags_.getUnmodifiableView();
    }
    /**
     *
     *
     * <pre>
     * Tags to apply to the TPU Node. Tags are used to identify valid sources or
     * targets for network firewalls.
     * </pre>
     *
     * <code>repeated string tags = 40;</code>
     *
     * @return The count of tags.
     */
    public int getTagsCount() {
      return tags_.size();
    }
    /**
     *
     *
     * <pre>
     * Tags to apply to the TPU Node. Tags are used to identify valid sources or
     * targets for network firewalls.
     * </pre>
     *
     * <code>repeated string tags = 40;</code>
     *
     * @param index The index of the element to return.
     * @return The tags at the given index.
     */
    public java.lang.String getTags(int index) {
      return tags_.get(index);
    }
    /**
     *
     *
     * <pre>
     * Tags to apply to the TPU Node. Tags are used to identify valid sources or
     * targets for network firewalls.
     * </pre>
     *
     * <code>repeated string tags = 40;</code>
     *
     * @param index The index of the value to return.
     * @return The bytes of the tags at the given index.
     */
    public com.google.protobuf.ByteString getTagsBytes(int index) {
      return tags_.getByteString(index);
    }
    /**
     *
     *
     * <pre>
     * Tags to apply to the TPU Node. Tags are used to identify valid sources or
     * targets for network firewalls.
     * </pre>
     *
     * <code>repeated string tags = 40;</code>
     *
     * @param index The index to set the value at.
     * @param value The tags to set.
     * @return This builder for chaining.
     */
    public Builder setTags(int index, java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureTagsIsMutable();
      tags_.set(index, value);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Tags to apply to the TPU Node. Tags are used to identify valid sources or
     * targets for network firewalls.
     * </pre>
     *
     * <code>repeated string tags = 40;</code>
     *
     * @param value The tags to add.
     * @return This builder for chaining.
     */
    public Builder addTags(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureTagsIsMutable();
      tags_.add(value);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Tags to apply to the TPU Node. Tags are used to identify valid sources or
     * targets for network firewalls.
     * </pre>
     *
     * <code>repeated string tags = 40;</code>
     *
     * @param values The tags to add.
     * @return This builder for chaining.
     */
    public Builder addAllTags(java.lang.Iterable<java.lang.String> values) {
      ensureTagsIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Tags to apply to the TPU Node. Tags are used to identify valid sources or
     * targets for network firewalls.
     * </pre>
     *
     * <code>repeated string tags = 40;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearTags() {
      tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00008000);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Tags to apply to the TPU Node. Tags are used to identify valid sources or
     * targets for network firewalls.
     * </pre>
     *
     * <code>repeated string tags = 40;</code>
     *
     * @param value The bytes of the tags to add.
     * @return This builder for chaining.
     */
    public Builder addTagsBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      ensureTagsIsMutable();
      tags_.add(value);
      onChanged();
      return this;
    }

    private long id_;
    /**
     *
     *
     * <pre>
     * Output only. The unique identifier for the TPU Node.
     * </pre>
     *
     * <code>int64 id = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The id.
     */
    @java.lang.Override
    public long getId() {
      return id_;
    }
    /**
     *
     *
     * <pre>
     * Output only. The unique identifier for the TPU Node.
     * </pre>
     *
     * <code>int64 id = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The id to set.
     * @return This builder for chaining.
     */
    public Builder setId(long value) {

      id_ = value;
      bitField0_ |= 0x00010000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The unique identifier for the TPU Node.
     * </pre>
     *
     * <code>int64 id = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearId() {
      bitField0_ = (bitField0_ & ~0x00010000);
      id_ = 0L;
      onChanged();
      return this;
    }

    private java.util.List<com.google.cloud.tpu.v2alpha1.AttachedDisk> dataDisks_ =
        java.util.Collections.emptyList();

    private void ensureDataDisksIsMutable() {
      if (!((bitField0_ & 0x00020000) != 0)) {
        dataDisks_ =
            new java.util.ArrayList<com.google.cloud.tpu.v2alpha1.AttachedDisk>(dataDisks_);
        bitField0_ |= 0x00020000;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.tpu.v2alpha1.AttachedDisk,
            com.google.cloud.tpu.v2alpha1.AttachedDisk.Builder,
            com.google.cloud.tpu.v2alpha1.AttachedDiskOrBuilder>
        dataDisksBuilder_;

    /**
     *
     *
     * <pre>
     * The additional data disks for the Node.
     * </pre>
     *
     * <code>repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41;</code>
     */
    public java.util.List<com.google.cloud.tpu.v2alpha1.AttachedDisk> getDataDisksList() {
      if (dataDisksBuilder_ == null) {
        return java.util.Collections.unmodifiableList(dataDisks_);
      } else {
        return dataDisksBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     * <pre>
     * The additional data disks for the Node.
     * </pre>
     *
     * <code>repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41;</code>
     */
    public int getDataDisksCount() {
      if (dataDisksBuilder_ == null) {
        return dataDisks_.size();
      } else {
        return dataDisksBuilder_.getCount();
      }
    }
    /**
     *
     *
     * <pre>
     * The additional data disks for the Node.
     * </pre>
     *
     * <code>repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41;</code>
     */
    public com.google.cloud.tpu.v2alpha1.AttachedDisk getDataDisks(int index) {
      if (dataDisksBuilder_ == null) {
        return dataDisks_.get(index);
      } else {
        return dataDisksBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     * <pre>
     * The additional data disks for the Node.
     * </pre>
     *
     * <code>repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41;</code>
     */
    public Builder setDataDisks(int index, com.google.cloud.tpu.v2alpha1.AttachedDisk value) {
      if (dataDisksBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDataDisksIsMutable();
        dataDisks_.set(index, value);
        onChanged();
      } else {
        dataDisksBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The additional data disks for the Node.
     * </pre>
     *
     * <code>repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41;</code>
     */
    public Builder setDataDisks(
        int index, com.google.cloud.tpu.v2alpha1.AttachedDisk.Builder builderForValue) {
      if (dataDisksBuilder_ == null) {
        ensureDataDisksIsMutable();
        dataDisks_.set(index, builderForValue.build());
        onChanged();
      } else {
        dataDisksBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The additional data disks for the Node.
     * </pre>
     *
     * <code>repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41;</code>
     */
    public Builder addDataDisks(com.google.cloud.tpu.v2alpha1.AttachedDisk value) {
      if (dataDisksBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDataDisksIsMutable();
        dataDisks_.add(value);
        onChanged();
      } else {
        dataDisksBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The additional data disks for the Node.
     * </pre>
     *
     * <code>repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41;</code>
     */
    public Builder addDataDisks(int index, com.google.cloud.tpu.v2alpha1.AttachedDisk value) {
      if (dataDisksBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDataDisksIsMutable();
        dataDisks_.add(index, value);
        onChanged();
      } else {
        dataDisksBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The additional data disks for the Node.
     * </pre>
     *
     * <code>repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41;</code>
     */
    public Builder addDataDisks(
        com.google.cloud.tpu.v2alpha1.AttachedDisk.Builder builderForValue) {
      if (dataDisksBuilder_ == null) {
        ensureDataDisksIsMutable();
        dataDisks_.add(builderForValue.build());
        onChanged();
      } else {
        dataDisksBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The additional data disks for the Node.
     * </pre>
     *
     * <code>repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41;</code>
     */
    public Builder addDataDisks(
        int index, com.google.cloud.tpu.v2alpha1.AttachedDisk.Builder builderForValue) {
      if (dataDisksBuilder_ == null) {
        ensureDataDisksIsMutable();
        dataDisks_.add(index, builderForValue.build());
        onChanged();
      } else {
        dataDisksBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The additional data disks for the Node.
     * </pre>
     *
     * <code>repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41;</code>
     */
    public Builder addAllDataDisks(
        java.lang.Iterable<? extends com.google.cloud.tpu.v2alpha1.AttachedDisk> values) {
      if (dataDisksBuilder_ == null) {
        ensureDataDisksIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataDisks_);
        onChanged();
      } else {
        dataDisksBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The additional data disks for the Node.
     * </pre>
     *
     * <code>repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41;</code>
     */
    public Builder clearDataDisks() {
      if (dataDisksBuilder_ == null) {
        dataDisks_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00020000);
        onChanged();
      } else {
        dataDisksBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The additional data disks for the Node.
     * </pre>
     *
     * <code>repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41;</code>
     */
    public Builder removeDataDisks(int index) {
      if (dataDisksBuilder_ == null) {
        ensureDataDisksIsMutable();
        dataDisks_.remove(index);
        onChanged();
      } else {
        dataDisksBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The additional data disks for the Node.
     * </pre>
     *
     * <code>repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41;</code>
     */
    public com.google.cloud.tpu.v2alpha1.AttachedDisk.Builder getDataDisksBuilder(int index) {
      return getDataDisksFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     * <pre>
     * The additional data disks for the Node.
     * </pre>
     *
     * <code>repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41;</code>
     */
    public com.google.cloud.tpu.v2alpha1.AttachedDiskOrBuilder getDataDisksOrBuilder(int index) {
      if (dataDisksBuilder_ == null) {
        return dataDisks_.get(index);
      } else {
        return dataDisksBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     * <pre>
     * The additional data disks for the Node.
     * </pre>
     *
     * <code>repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41;</code>
     */
    public java.util.List<? extends com.google.cloud.tpu.v2alpha1.AttachedDiskOrBuilder>
        getDataDisksOrBuilderList() {
      if (dataDisksBuilder_ != null) {
        return dataDisksBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(dataDisks_);
      }
    }
    /**
     *
     *
     * <pre>
     * The additional data disks for the Node.
     * </pre>
     *
     * <code>repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41;</code>
     */
    public com.google.cloud.tpu.v2alpha1.AttachedDisk.Builder addDataDisksBuilder() {
      return getDataDisksFieldBuilder()
          .addBuilder(com.google.cloud.tpu.v2alpha1.AttachedDisk.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * The additional data disks for the Node.
     * </pre>
     *
     * <code>repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41;</code>
     */
    public com.google.cloud.tpu.v2alpha1.AttachedDisk.Builder addDataDisksBuilder(int index) {
      return getDataDisksFieldBuilder()
          .addBuilder(index, com.google.cloud.tpu.v2alpha1.AttachedDisk.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * The additional data disks for the Node.
     * </pre>
     *
     * <code>repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41;</code>
     */
    public java.util.List<com.google.cloud.tpu.v2alpha1.AttachedDisk.Builder>
        getDataDisksBuilderList() {
      return getDataDisksFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.tpu.v2alpha1.AttachedDisk,
            com.google.cloud.tpu.v2alpha1.AttachedDisk.Builder,
            com.google.cloud.tpu.v2alpha1.AttachedDiskOrBuilder>
        getDataDisksFieldBuilder() {
      if (dataDisksBuilder_ == null) {
        dataDisksBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.tpu.v2alpha1.AttachedDisk,
                com.google.cloud.tpu.v2alpha1.AttachedDisk.Builder,
                com.google.cloud.tpu.v2alpha1.AttachedDiskOrBuilder>(
                dataDisks_, ((bitField0_ & 0x00020000) != 0), getParentForChildren(), isClean());
        dataDisks_ = null;
      }
      return dataDisksBuilder_;
    }

    private int apiVersion_ = 0;
    /**
     *
     *
     * <pre>
     * Output only. The API version that created this Node.
     * </pre>
     *
     * <code>
     * .google.cloud.tpu.v2alpha1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The enum numeric value on the wire for apiVersion.
     */
    @java.lang.Override
    public int getApiVersionValue() {
      return apiVersion_;
    }
    /**
     *
     *
     * <pre>
     * Output only. The API version that created this Node.
     * </pre>
     *
     * <code>
     * .google.cloud.tpu.v2alpha1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @param value The enum numeric value on the wire for apiVersion to set.
     * @return This builder for chaining.
     */
    public Builder setApiVersionValue(int value) {
      apiVersion_ = value;
      bitField0_ |= 0x00040000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The API version that created this Node.
     * </pre>
     *
     * <code>
     * .google.cloud.tpu.v2alpha1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The apiVersion.
     */
    @java.lang.Override
    public com.google.cloud.tpu.v2alpha1.Node.ApiVersion getApiVersion() {
      com.google.cloud.tpu.v2alpha1.Node.ApiVersion result =
          com.google.cloud.tpu.v2alpha1.Node.ApiVersion.forNumber(apiVersion_);
      return result == null ? com.google.cloud.tpu.v2alpha1.Node.ApiVersion.UNRECOGNIZED : result;
    }
    /**
     *
     *
     * <pre>
     * Output only. The API version that created this Node.
     * </pre>
     *
     * <code>
     * .google.cloud.tpu.v2alpha1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @param value The apiVersion to set.
     * @return This builder for chaining.
     */
    public Builder setApiVersion(com.google.cloud.tpu.v2alpha1.Node.ApiVersion value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00040000;
      apiVersion_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The API version that created this Node.
     * </pre>
     *
     * <code>
     * .google.cloud.tpu.v2alpha1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearApiVersion() {
      bitField0_ = (bitField0_ & ~0x00040000);
      apiVersion_ = 0;
      onChanged();
      return this;
    }

    private java.util.List<com.google.cloud.tpu.v2alpha1.Symptom> symptoms_ =
        java.util.Collections.emptyList();

    private void ensureSymptomsIsMutable() {
      if (!((bitField0_ & 0x00080000) != 0)) {
        symptoms_ = new java.util.ArrayList<com.google.cloud.tpu.v2alpha1.Symptom>(symptoms_);
        bitField0_ |= 0x00080000;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.tpu.v2alpha1.Symptom,
            com.google.cloud.tpu.v2alpha1.Symptom.Builder,
            com.google.cloud.tpu.v2alpha1.SymptomOrBuilder>
        symptomsBuilder_;

    /**
     *
     *
     * <pre>
     * Output only. The Symptoms that have occurred to the TPU Node.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public java.util.List<com.google.cloud.tpu.v2alpha1.Symptom> getSymptomsList() {
      if (symptomsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(symptoms_);
      } else {
        return symptomsBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The Symptoms that have occurred to the TPU Node.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public int getSymptomsCount() {
      if (symptomsBuilder_ == null) {
        return symptoms_.size();
      } else {
        return symptomsBuilder_.getCount();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The Symptoms that have occurred to the TPU Node.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.tpu.v2alpha1.Symptom getSymptoms(int index) {
      if (symptomsBuilder_ == null) {
        return symptoms_.get(index);
      } else {
        return symptomsBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The Symptoms that have occurred to the TPU Node.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setSymptoms(int index, com.google.cloud.tpu.v2alpha1.Symptom value) {
      if (symptomsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureSymptomsIsMutable();
        symptoms_.set(index, value);
        onChanged();
      } else {
        symptomsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The Symptoms that have occurred to the TPU Node.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setSymptoms(
        int index, com.google.cloud.tpu.v2alpha1.Symptom.Builder builderForValue) {
      if (symptomsBuilder_ == null) {
        ensureSymptomsIsMutable();
        symptoms_.set(index, builderForValue.build());
        onChanged();
      } else {
        symptomsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The Symptoms that have occurred to the TPU Node.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder addSymptoms(com.google.cloud.tpu.v2alpha1.Symptom value) {
      if (symptomsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureSymptomsIsMutable();
        symptoms_.add(value);
        onChanged();
      } else {
        symptomsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The Symptoms that have occurred to the TPU Node.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder addSymptoms(int index, com.google.cloud.tpu.v2alpha1.Symptom value) {
      if (symptomsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureSymptomsIsMutable();
        symptoms_.add(index, value);
        onChanged();
      } else {
        symptomsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The Symptoms that have occurred to the TPU Node.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder addSymptoms(com.google.cloud.tpu.v2alpha1.Symptom.Builder builderForValue) {
      if (symptomsBuilder_ == null) {
        ensureSymptomsIsMutable();
        symptoms_.add(builderForValue.build());
        onChanged();
      } else {
        symptomsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The Symptoms that have occurred to the TPU Node.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder addSymptoms(
        int index, com.google.cloud.tpu.v2alpha1.Symptom.Builder builderForValue) {
      if (symptomsBuilder_ == null) {
        ensureSymptomsIsMutable();
        symptoms_.add(index, builderForValue.build());
        onChanged();
      } else {
        symptomsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The Symptoms that have occurred to the TPU Node.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder addAllSymptoms(
        java.lang.Iterable<? extends com.google.cloud.tpu.v2alpha1.Symptom> values) {
      if (symptomsBuilder_ == null) {
        ensureSymptomsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, symptoms_);
        onChanged();
      } else {
        symptomsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The Symptoms that have occurred to the TPU Node.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearSymptoms() {
      if (symptomsBuilder_ == null) {
        symptoms_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00080000);
        onChanged();
      } else {
        symptomsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The Symptoms that have occurred to the TPU Node.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder removeSymptoms(int index) {
      if (symptomsBuilder_ == null) {
        ensureSymptomsIsMutable();
        symptoms_.remove(index);
        onChanged();
      } else {
        symptomsBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The Symptoms that have occurred to the TPU Node.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.tpu.v2alpha1.Symptom.Builder getSymptomsBuilder(int index) {
      return getSymptomsFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     * <pre>
     * Output only. The Symptoms that have occurred to the TPU Node.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.tpu.v2alpha1.SymptomOrBuilder getSymptomsOrBuilder(int index) {
      if (symptomsBuilder_ == null) {
        return symptoms_.get(index);
      } else {
        return symptomsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The Symptoms that have occurred to the TPU Node.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public java.util.List<? extends com.google.cloud.tpu.v2alpha1.SymptomOrBuilder>
        getSymptomsOrBuilderList() {
      if (symptomsBuilder_ != null) {
        return symptomsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(symptoms_);
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The Symptoms that have occurred to the TPU Node.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.tpu.v2alpha1.Symptom.Builder addSymptomsBuilder() {
      return getSymptomsFieldBuilder()
          .addBuilder(com.google.cloud.tpu.v2alpha1.Symptom.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Output only. The Symptoms that have occurred to the TPU Node.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.tpu.v2alpha1.Symptom.Builder addSymptomsBuilder(int index) {
      return getSymptomsFieldBuilder()
          .addBuilder(index, com.google.cloud.tpu.v2alpha1.Symptom.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Output only. The Symptoms that have occurred to the TPU Node.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public java.util.List<com.google.cloud.tpu.v2alpha1.Symptom.Builder> getSymptomsBuilderList() {
      return getSymptomsFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.tpu.v2alpha1.Symptom,
            com.google.cloud.tpu.v2alpha1.Symptom.Builder,
            com.google.cloud.tpu.v2alpha1.SymptomOrBuilder>
        getSymptomsFieldBuilder() {
      if (symptomsBuilder_ == null) {
        symptomsBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.tpu.v2alpha1.Symptom,
                com.google.cloud.tpu.v2alpha1.Symptom.Builder,
                com.google.cloud.tpu.v2alpha1.SymptomOrBuilder>(
                symptoms_, ((bitField0_ & 0x00080000) != 0), getParentForChildren(), isClean());
        symptoms_ = null;
      }
      return symptomsBuilder_;
    }

    private java.lang.Object queuedResource_ = "";
    /**
     *
     *
     * <pre>
     * Output only. The qualified name of the QueuedResource that requested this
     * Node.
     * </pre>
     *
     * <code>string queued_resource = 43 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The queuedResource.
     */
    public java.lang.String getQueuedResource() {
      java.lang.Object ref = queuedResource_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        queuedResource_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The qualified name of the QueuedResource that requested this
     * Node.
     * </pre>
     *
     * <code>string queued_resource = 43 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The bytes for queuedResource.
     */
    public com.google.protobuf.ByteString getQueuedResourceBytes() {
      java.lang.Object ref = queuedResource_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        queuedResource_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The qualified name of the QueuedResource that requested this
     * Node.
     * </pre>
     *
     * <code>string queued_resource = 43 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The queuedResource to set.
     * @return This builder for chaining.
     */
    public Builder setQueuedResource(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      queuedResource_ = value;
      bitField0_ |= 0x00100000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The qualified name of the QueuedResource that requested this
     * Node.
     * </pre>
     *
     * <code>string queued_resource = 43 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearQueuedResource() {
      queuedResource_ = getDefaultInstance().getQueuedResource();
      bitField0_ = (bitField0_ & ~0x00100000);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The qualified name of the QueuedResource that requested this
     * Node.
     * </pre>
     *
     * <code>string queued_resource = 43 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The bytes for queuedResource to set.
     * @return This builder for chaining.
     */
    public Builder setQueuedResourceBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      queuedResource_ = value;
      bitField0_ |= 0x00100000;
      onChanged();
      return this;
    }

    private com.google.cloud.tpu.v2alpha1.AcceleratorConfig acceleratorConfig_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.tpu.v2alpha1.AcceleratorConfig,
            com.google.cloud.tpu.v2alpha1.AcceleratorConfig.Builder,
            com.google.cloud.tpu.v2alpha1.AcceleratorConfigOrBuilder>
        acceleratorConfigBuilder_;
    /**
     *
     *
     * <pre>
     * The AccleratorConfig for the TPU Node.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.AcceleratorConfig accelerator_config = 44;</code>
     *
     * @return Whether the acceleratorConfig field is set.
     */
    public boolean hasAcceleratorConfig() {
      return ((bitField0_ & 0x00200000) != 0);
    }
    /**
     *
     *
     * <pre>
     * The AccleratorConfig for the TPU Node.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.AcceleratorConfig accelerator_config = 44;</code>
     *
     * @return The acceleratorConfig.
     */
    public com.google.cloud.tpu.v2alpha1.AcceleratorConfig getAcceleratorConfig() {
      if (acceleratorConfigBuilder_ == null) {
        return acceleratorConfig_ == null
            ? com.google.cloud.tpu.v2alpha1.AcceleratorConfig.getDefaultInstance()
            : acceleratorConfig_;
      } else {
        return acceleratorConfigBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * The AccleratorConfig for the TPU Node.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.AcceleratorConfig accelerator_config = 44;</code>
     */
    public Builder setAcceleratorConfig(com.google.cloud.tpu.v2alpha1.AcceleratorConfig value) {
      if (acceleratorConfigBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        acceleratorConfig_ = value;
      } else {
        acceleratorConfigBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00200000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The AccleratorConfig for the TPU Node.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.AcceleratorConfig accelerator_config = 44;</code>
     */
    public Builder setAcceleratorConfig(
        com.google.cloud.tpu.v2alpha1.AcceleratorConfig.Builder builderForValue) {
      if (acceleratorConfigBuilder_ == null) {
        acceleratorConfig_ = builderForValue.build();
      } else {
        acceleratorConfigBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00200000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The AccleratorConfig for the TPU Node.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.AcceleratorConfig accelerator_config = 44;</code>
     */
    public Builder mergeAcceleratorConfig(com.google.cloud.tpu.v2alpha1.AcceleratorConfig value) {
      if (acceleratorConfigBuilder_ == null) {
        if (((bitField0_ & 0x00200000) != 0)
            && acceleratorConfig_ != null
            && acceleratorConfig_
                != com.google.cloud.tpu.v2alpha1.AcceleratorConfig.getDefaultInstance()) {
          getAcceleratorConfigBuilder().mergeFrom(value);
        } else {
          acceleratorConfig_ = value;
        }
      } else {
        acceleratorConfigBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00200000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The AccleratorConfig for the TPU Node.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.AcceleratorConfig accelerator_config = 44;</code>
     */
    public Builder clearAcceleratorConfig() {
      bitField0_ = (bitField0_ & ~0x00200000);
      acceleratorConfig_ = null;
      if (acceleratorConfigBuilder_ != null) {
        acceleratorConfigBuilder_.dispose();
        acceleratorConfigBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The AccleratorConfig for the TPU Node.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.AcceleratorConfig accelerator_config = 44;</code>
     */
    public com.google.cloud.tpu.v2alpha1.AcceleratorConfig.Builder getAcceleratorConfigBuilder() {
      bitField0_ |= 0x00200000;
      onChanged();
      return getAcceleratorConfigFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * The AccleratorConfig for the TPU Node.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.AcceleratorConfig accelerator_config = 44;</code>
     */
    public com.google.cloud.tpu.v2alpha1.AcceleratorConfigOrBuilder
        getAcceleratorConfigOrBuilder() {
      if (acceleratorConfigBuilder_ != null) {
        return acceleratorConfigBuilder_.getMessageOrBuilder();
      } else {
        return acceleratorConfig_ == null
            ? com.google.cloud.tpu.v2alpha1.AcceleratorConfig.getDefaultInstance()
            : acceleratorConfig_;
      }
    }
    /**
     *
     *
     * <pre>
     * The AccleratorConfig for the TPU Node.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.AcceleratorConfig accelerator_config = 44;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.tpu.v2alpha1.AcceleratorConfig,
            com.google.cloud.tpu.v2alpha1.AcceleratorConfig.Builder,
            com.google.cloud.tpu.v2alpha1.AcceleratorConfigOrBuilder>
        getAcceleratorConfigFieldBuilder() {
      if (acceleratorConfigBuilder_ == null) {
        acceleratorConfigBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.tpu.v2alpha1.AcceleratorConfig,
                com.google.cloud.tpu.v2alpha1.AcceleratorConfig.Builder,
                com.google.cloud.tpu.v2alpha1.AcceleratorConfigOrBuilder>(
                getAcceleratorConfig(), getParentForChildren(), isClean());
        acceleratorConfig_ = null;
      }
      return acceleratorConfigBuilder_;
    }

    private com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig shieldedInstanceConfig_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig,
            com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig.Builder,
            com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfigOrBuilder>
        shieldedInstanceConfigBuilder_;
    /**
     *
     *
     * <pre>
     * Shielded Instance options.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig shielded_instance_config = 45;</code>
     *
     * @return Whether the shieldedInstanceConfig field is set.
     */
    public boolean hasShieldedInstanceConfig() {
      return ((bitField0_ & 0x00400000) != 0);
    }
    /**
     *
     *
     * <pre>
     * Shielded Instance options.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig shielded_instance_config = 45;</code>
     *
     * @return The shieldedInstanceConfig.
     */
    public com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig getShieldedInstanceConfig() {
      if (shieldedInstanceConfigBuilder_ == null) {
        return shieldedInstanceConfig_ == null
            ? com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig.getDefaultInstance()
            : shieldedInstanceConfig_;
      } else {
        return shieldedInstanceConfigBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Shielded Instance options.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig shielded_instance_config = 45;</code>
     */
    public Builder setShieldedInstanceConfig(
        com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig value) {
      if (shieldedInstanceConfigBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        shieldedInstanceConfig_ = value;
      } else {
        shieldedInstanceConfigBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00400000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Shielded Instance options.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig shielded_instance_config = 45;</code>
     */
    public Builder setShieldedInstanceConfig(
        com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig.Builder builderForValue) {
      if (shieldedInstanceConfigBuilder_ == null) {
        shieldedInstanceConfig_ = builderForValue.build();
      } else {
        shieldedInstanceConfigBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00400000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Shielded Instance options.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig shielded_instance_config = 45;</code>
     */
    public Builder mergeShieldedInstanceConfig(
        com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig value) {
      if (shieldedInstanceConfigBuilder_ == null) {
        if (((bitField0_ & 0x00400000) != 0)
            && shieldedInstanceConfig_ != null
            && shieldedInstanceConfig_
                != com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig.getDefaultInstance()) {
          getShieldedInstanceConfigBuilder().mergeFrom(value);
        } else {
          shieldedInstanceConfig_ = value;
        }
      } else {
        shieldedInstanceConfigBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00400000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Shielded Instance options.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig shielded_instance_config = 45;</code>
     */
    public Builder clearShieldedInstanceConfig() {
      bitField0_ = (bitField0_ & ~0x00400000);
      shieldedInstanceConfig_ = null;
      if (shieldedInstanceConfigBuilder_ != null) {
        shieldedInstanceConfigBuilder_.dispose();
        shieldedInstanceConfigBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Shielded Instance options.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig shielded_instance_config = 45;</code>
     */
    public com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig.Builder
        getShieldedInstanceConfigBuilder() {
      bitField0_ |= 0x00400000;
      onChanged();
      return getShieldedInstanceConfigFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Shielded Instance options.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig shielded_instance_config = 45;</code>
     */
    public com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfigOrBuilder
        getShieldedInstanceConfigOrBuilder() {
      if (shieldedInstanceConfigBuilder_ != null) {
        return shieldedInstanceConfigBuilder_.getMessageOrBuilder();
      } else {
        return shieldedInstanceConfig_ == null
            ? com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig.getDefaultInstance()
            : shieldedInstanceConfig_;
      }
    }
    /**
     *
     *
     * <pre>
     * Shielded Instance options.
     * </pre>
     *
     * <code>.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig shielded_instance_config = 45;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig,
            com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig.Builder,
            com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfigOrBuilder>
        getShieldedInstanceConfigFieldBuilder() {
      if (shieldedInstanceConfigBuilder_ == null) {
        shieldedInstanceConfigBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig,
                com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig.Builder,
                com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfigOrBuilder>(
                getShieldedInstanceConfig(), getParentForChildren(), isClean());
        shieldedInstanceConfig_ = null;
      }
      return shieldedInstanceConfigBuilder_;
    }

    @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.tpu.v2alpha1.Node)
  }

  // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.Node)
  private static final com.google.cloud.tpu.v2alpha1.Node DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.Node();
  }

  public static com.google.cloud.tpu.v2alpha1.Node getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

  @java.lang.Override
  public com.google.cloud.tpu.v2alpha1.Node getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
