/*
 * 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/v1/cloud_tpu.proto

package com.google.cloud.tpu.v1;

/**
 *
 *
 * <pre>
 * A TPU instance.
 * </pre>
 *
 * Protobuf type {@code google.cloud.tpu.v1.Node}
 */
public final class Node extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.tpu.v1.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_ = "";
    ipAddress_ = "";
    port_ = "";
    state_ = 0;
    healthDescription_ = "";
    tensorflowVersion_ = "";
    network_ = "";
    cidrBlock_ = "";
    serviceAccount_ = "";
    networkEndpoints_ = java.util.Collections.emptyList();
    health_ = 0;
    apiVersion_ = 0;
    symptoms_ = java.util.Collections.emptyList();
  }

  @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.v1.CloudTpuProto
        .internal_static_google_cloud_tpu_v1_Node_descriptor;
  }

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

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

  /**
   *
   *
   * <pre>
   * Represents the different states of a TPU node during its lifecycle.
   * </pre>
   *
   * Protobuf enum {@code google.cloud.tpu.v1.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.v1.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.v1.Node.State)
  }

  /**
   *
   *
   * <pre>
   * Health defines the status of a TPU node as reported by
   * Health Monitor.
   * </pre>
   *
   * Protobuf enum {@code google.cloud.tpu.v1.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 unhealthy.
     * </pre>
     *
     * <code>DEPRECATED_UNHEALTHY = 2;</code>
     */
    DEPRECATED_UNHEALTHY(2),
    /**
     *
     *
     * <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 unhealthy.
     * </pre>
     *
     * <code>DEPRECATED_UNHEALTHY = 2;</code>
     */
    public static final int DEPRECATED_UNHEALTHY_VALUE = 2;
    /**
     *
     *
     * <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 2:
          return DEPRECATED_UNHEALTHY;
        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.v1.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.v1.Node.Health)
  }

  /**
   *
   *
   * <pre>
   * TPU API Version.
   * </pre>
   *
   * Protobuf enum {@code google.cloud.tpu.v1.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.v1.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.v1.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) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
   * </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) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
   * </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>
   * Required. The type of hardware accelerators associated with this node.
   * </pre>
   *
   * <code>string accelerator_type = 5 [(.google.api.field_behavior) = REQUIRED];</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>
   * Required. The type of hardware accelerators associated with this node.
   * </pre>
   *
   * <code>string accelerator_type = 5 [(.google.api.field_behavior) = REQUIRED];</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 IP_ADDRESS_FIELD_NUMBER = 8;

  @SuppressWarnings("serial")
  private volatile java.lang.Object ipAddress_ = "";
  /**
   *
   *
   * <pre>
   * Output only. DEPRECATED! Use network_endpoints instead.
   * The network address for the TPU Node as visible to Compute Engine
   * instances.
   * </pre>
   *
   * <code>string ip_address = 8 [deprecated = true];</code>
   *
   * @deprecated google.cloud.tpu.v1.Node.ip_address is deprecated. See
   *     google/cloud/tpu/v1/cloud_tpu.proto;l=279
   * @return The ipAddress.
   */
  @java.lang.Override
  @java.lang.Deprecated
  public java.lang.String getIpAddress() {
    java.lang.Object ref = ipAddress_;
    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();
      ipAddress_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Output only. DEPRECATED! Use network_endpoints instead.
   * The network address for the TPU Node as visible to Compute Engine
   * instances.
   * </pre>
   *
   * <code>string ip_address = 8 [deprecated = true];</code>
   *
   * @deprecated google.cloud.tpu.v1.Node.ip_address is deprecated. See
   *     google/cloud/tpu/v1/cloud_tpu.proto;l=279
   * @return The bytes for ipAddress.
   */
  @java.lang.Override
  @java.lang.Deprecated
  public com.google.protobuf.ByteString getIpAddressBytes() {
    java.lang.Object ref = ipAddress_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      ipAddress_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PORT_FIELD_NUMBER = 14;

  @SuppressWarnings("serial")
  private volatile java.lang.Object port_ = "";
  /**
   *
   *
   * <pre>
   * Output only. DEPRECATED! Use network_endpoints instead.
   * The network port for the TPU Node as visible to Compute Engine instances.
   * </pre>
   *
   * <code>string port = 14 [deprecated = true];</code>
   *
   * @deprecated google.cloud.tpu.v1.Node.port is deprecated. See
   *     google/cloud/tpu/v1/cloud_tpu.proto;l=283
   * @return The port.
   */
  @java.lang.Override
  @java.lang.Deprecated
  public java.lang.String getPort() {
    java.lang.Object ref = port_;
    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();
      port_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Output only. DEPRECATED! Use network_endpoints instead.
   * The network port for the TPU Node as visible to Compute Engine instances.
   * </pre>
   *
   * <code>string port = 14 [deprecated = true];</code>
   *
   * @deprecated google.cloud.tpu.v1.Node.port is deprecated. See
   *     google/cloud/tpu/v1/cloud_tpu.proto;l=283
   * @return The bytes for port.
   */
  @java.lang.Override
  @java.lang.Deprecated
  public com.google.protobuf.ByteString getPortBytes() {
    java.lang.Object ref = port_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      port_ = 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.v1.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.v1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The state.
   */
  @java.lang.Override
  public com.google.cloud.tpu.v1.Node.State getState() {
    com.google.cloud.tpu.v1.Node.State result =
        com.google.cloud.tpu.v1.Node.State.forNumber(state_);
    return result == null ? com.google.cloud.tpu.v1.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 TENSORFLOW_VERSION_FIELD_NUMBER = 11;

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

  public static final int NETWORK_FIELD_NUMBER = 12;

  @SuppressWarnings("serial")
  private volatile java.lang.Object network_ = "";
  /**
   *
   *
   * <pre>
   * The name of a network they wish to peer the TPU node to. It must be a
   * preexisting Compute Engine network inside of the project on which this API
   * has been activated. If none is provided, "default" will be used.
   * </pre>
   *
   * <code>string network = 12;</code>
   *
   * @return The network.
   */
  @java.lang.Override
  public java.lang.String getNetwork() {
    java.lang.Object ref = network_;
    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();
      network_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The name of a network they wish to peer the TPU node to. It must be a
   * preexisting Compute Engine network inside of the project on which this API
   * has been activated. If none is provided, "default" will be used.
   * </pre>
   *
   * <code>string network = 12;</code>
   *
   * @return The bytes for network.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getNetworkBytes() {
    java.lang.Object ref = network_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      network_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  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 = 15;

  @SuppressWarnings("serial")
  private volatile java.lang.Object serviceAccount_ = "";
  /**
   *
   *
   * <pre>
   * Output only. The service account used to run the tensor flow services
   * within the node. To share resources, including Google Cloud Storage data,
   * with the Tensorflow job running in the Node, this account must have
   * permissions to that data.
   * </pre>
   *
   * <code>string service_account = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The serviceAccount.
   */
  @java.lang.Override
  public java.lang.String getServiceAccount() {
    java.lang.Object ref = serviceAccount_;
    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();
      serviceAccount_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Output only. The service account used to run the tensor flow services
   * within the node. To share resources, including Google Cloud Storage data,
   * with the Tensorflow job running in the Node, this account must have
   * permissions to that data.
   * </pre>
   *
   * <code>string service_account = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The bytes for serviceAccount.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getServiceAccountBytes() {
    java.lang.Object ref = serviceAccount_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      serviceAccount_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  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.v1.SchedulingConfig schedulingConfig_;
  /**
   *
   *
   * <pre>
   * The scheduling options for this node.
   * </pre>
   *
   * <code>.google.cloud.tpu.v1.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.v1.SchedulingConfig scheduling_config = 17;</code>
   *
   * @return The schedulingConfig.
   */
  @java.lang.Override
  public com.google.cloud.tpu.v1.SchedulingConfig getSchedulingConfig() {
    return schedulingConfig_ == null
        ? com.google.cloud.tpu.v1.SchedulingConfig.getDefaultInstance()
        : schedulingConfig_;
  }
  /**
   *
   *
   * <pre>
   * The scheduling options for this node.
   * </pre>
   *
   * <code>.google.cloud.tpu.v1.SchedulingConfig scheduling_config = 17;</code>
   */
  @java.lang.Override
  public com.google.cloud.tpu.v1.SchedulingConfigOrBuilder getSchedulingConfigOrBuilder() {
    return schedulingConfig_ == null
        ? com.google.cloud.tpu.v1.SchedulingConfig.getDefaultInstance()
        : schedulingConfig_;
  }

  public static final int NETWORK_ENDPOINTS_FIELD_NUMBER = 21;

  @SuppressWarnings("serial")
  private java.util.List<com.google.cloud.tpu.v1.NetworkEndpoint> networkEndpoints_;
  /**
   *
   *
   * <pre>
   * Output only. The network endpoints where TPU workers can be accessed and
   * sent work. It is recommended that Tensorflow clients of the node reach out
   * to the 0th entry in this map first.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public java.util.List<com.google.cloud.tpu.v1.NetworkEndpoint> getNetworkEndpointsList() {
    return networkEndpoints_;
  }
  /**
   *
   *
   * <pre>
   * Output only. The network endpoints where TPU workers can be accessed and
   * sent work. It is recommended that Tensorflow clients of the node reach out
   * to the 0th entry in this map first.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public java.util.List<? extends com.google.cloud.tpu.v1.NetworkEndpointOrBuilder>
      getNetworkEndpointsOrBuilderList() {
    return networkEndpoints_;
  }
  /**
   *
   *
   * <pre>
   * Output only. The network endpoints where TPU workers can be accessed and
   * sent work. It is recommended that Tensorflow clients of the node reach out
   * to the 0th entry in this map first.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.tpu.v1.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 Tensorflow clients of the node reach out
   * to the 0th entry in this map first.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.tpu.v1.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 Tensorflow clients of the node reach out
   * to the 0th entry in this map first.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.tpu.v1.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.v1.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.v1.Node.Health health = 22;</code>
   *
   * @return The health.
   */
  @java.lang.Override
  public com.google.cloud.tpu.v1.Node.Health getHealth() {
    com.google.cloud.tpu.v1.Node.Health result =
        com.google.cloud.tpu.v1.Node.Health.forNumber(health_);
    return result == null ? com.google.cloud.tpu.v1.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.v1.CloudTpuProto
                .internal_static_google_cloud_tpu_v1_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 USE_SERVICE_NETWORKING_FIELD_NUMBER = 27;
  private boolean useServiceNetworking_ = false;
  /**
   *
   *
   * <pre>
   * Whether the VPC peering for the node is set up through Service Networking
   * API. The VPC Peering should be set up before provisioning the node.
   * If this field is set, cidr_block field should not be specified. If the
   * network, that you want to peer the TPU Node to, is Shared VPC networks,
   * the node must be created with this this field enabled.
   * </pre>
   *
   * <code>bool use_service_networking = 27;</code>
   *
   * @return The useServiceNetworking.
   */
  @java.lang.Override
  public boolean getUseServiceNetworking() {
    return useServiceNetworking_;
  }

  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.v1.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.v1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The apiVersion.
   */
  @java.lang.Override
  public com.google.cloud.tpu.v1.Node.ApiVersion getApiVersion() {
    com.google.cloud.tpu.v1.Node.ApiVersion result =
        com.google.cloud.tpu.v1.Node.ApiVersion.forNumber(apiVersion_);
    return result == null ? com.google.cloud.tpu.v1.Node.ApiVersion.UNRECOGNIZED : result;
  }

  public static final int SYMPTOMS_FIELD_NUMBER = 39;

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

  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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, ipAddress_);
    }
    if (state_ != com.google.cloud.tpu.v1.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(tensorflowVersion_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, tensorflowVersion_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 12, network_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cidrBlock_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 13, cidrBlock_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(port_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 14, port_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 15, serviceAccount_);
    }
    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.v1.Node.Health.HEALTH_UNSPECIFIED.getNumber()) {
      output.writeEnum(22, health_);
    }
    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 24);
    if (useServiceNetworking_ != false) {
      output.writeBool(27, useServiceNetworking_);
    }
    if (apiVersion_
        != com.google.cloud.tpu.v1.Node.ApiVersion.API_VERSION_UNSPECIFIED.getNumber()) {
      output.writeEnum(38, apiVersion_);
    }
    for (int i = 0; i < symptoms_.size(); i++) {
      output.writeMessage(39, symptoms_.get(i));
    }
    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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, ipAddress_);
    }
    if (state_ != com.google.cloud.tpu.v1.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(tensorflowVersion_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, tensorflowVersion_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, network_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cidrBlock_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, cidrBlock_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(port_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, port_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, serviceAccount_);
    }
    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.v1.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 (useServiceNetworking_ != false) {
      size += com.google.protobuf.CodedOutputStream.computeBoolSize(27, useServiceNetworking_);
    }
    if (apiVersion_
        != com.google.cloud.tpu.v1.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));
    }
    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.v1.Node)) {
      return super.equals(obj);
    }
    com.google.cloud.tpu.v1.Node other = (com.google.cloud.tpu.v1.Node) obj;

    if (!getName().equals(other.getName())) return false;
    if (!getDescription().equals(other.getDescription())) return false;
    if (!getAcceleratorType().equals(other.getAcceleratorType())) return false;
    if (!getIpAddress().equals(other.getIpAddress())) return false;
    if (!getPort().equals(other.getPort())) return false;
    if (state_ != other.state_) return false;
    if (!getHealthDescription().equals(other.getHealthDescription())) return false;
    if (!getTensorflowVersion().equals(other.getTensorflowVersion())) return false;
    if (!getNetwork().equals(other.getNetwork())) return false;
    if (!getCidrBlock().equals(other.getCidrBlock())) return false;
    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 (getUseServiceNetworking() != other.getUseServiceNetworking()) return false;
    if (apiVersion_ != other.apiVersion_) return false;
    if (!getSymptomsList().equals(other.getSymptomsList())) 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) + IP_ADDRESS_FIELD_NUMBER;
    hash = (53 * hash) + getIpAddress().hashCode();
    hash = (37 * hash) + PORT_FIELD_NUMBER;
    hash = (53 * hash) + getPort().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) + TENSORFLOW_VERSION_FIELD_NUMBER;
    hash = (53 * hash) + getTensorflowVersion().hashCode();
    hash = (37 * hash) + NETWORK_FIELD_NUMBER;
    hash = (53 * hash) + getNetwork().hashCode();
    hash = (37 * hash) + CIDR_BLOCK_FIELD_NUMBER;
    hash = (53 * hash) + getCidrBlock().hashCode();
    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();
    }
    hash = (37 * hash) + USE_SERVICE_NETWORKING_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseServiceNetworking());
    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 = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

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

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

  public static com.google.cloud.tpu.v1.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.v1.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.v1.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.v1.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.v1.Node}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v1.Node)
      com.google.cloud.tpu.v1.NodeOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.tpu.v1.CloudTpuProto
          .internal_static_google_cloud_tpu_v1_Node_descriptor;
    }

    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMapField(int number) {
      switch (number) {
        case 24:
          return internalGetLabels();
        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();
        default:
          throw new RuntimeException("Invalid map field number: " + number);
      }
    }

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

    // Construct using com.google.cloud.tpu.v1.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_ = "";
      ipAddress_ = "";
      port_ = "";
      state_ = 0;
      healthDescription_ = "";
      tensorflowVersion_ = "";
      network_ = "";
      cidrBlock_ = "";
      serviceAccount_ = "";
      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_ & ~0x00002000);
      health_ = 0;
      internalGetMutableLabels().clear();
      useServiceNetworking_ = false;
      apiVersion_ = 0;
      if (symptomsBuilder_ == null) {
        symptoms_ = java.util.Collections.emptyList();
      } else {
        symptoms_ = null;
        symptomsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00040000);
      return this;
    }

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

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

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

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

    private void buildPartialRepeatedFields(com.google.cloud.tpu.v1.Node result) {
      if (networkEndpointsBuilder_ == null) {
        if (((bitField0_ & 0x00002000) != 0)) {
          networkEndpoints_ = java.util.Collections.unmodifiableList(networkEndpoints_);
          bitField0_ = (bitField0_ & ~0x00002000);
        }
        result.networkEndpoints_ = networkEndpoints_;
      } else {
        result.networkEndpoints_ = networkEndpointsBuilder_.build();
      }
      if (symptomsBuilder_ == null) {
        if (((bitField0_ & 0x00040000) != 0)) {
          symptoms_ = java.util.Collections.unmodifiableList(symptoms_);
          bitField0_ = (bitField0_ & ~0x00040000);
        }
        result.symptoms_ = symptoms_;
      } else {
        result.symptoms_ = symptomsBuilder_.build();
      }
    }

    private void buildPartial0(com.google.cloud.tpu.v1.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.ipAddress_ = ipAddress_;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.port_ = port_;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.state_ = state_;
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.healthDescription_ = healthDescription_;
      }
      if (((from_bitField0_ & 0x00000080) != 0)) {
        result.tensorflowVersion_ = tensorflowVersion_;
      }
      if (((from_bitField0_ & 0x00000100) != 0)) {
        result.network_ = network_;
      }
      if (((from_bitField0_ & 0x00000200) != 0)) {
        result.cidrBlock_ = cidrBlock_;
      }
      if (((from_bitField0_ & 0x00000400) != 0)) {
        result.serviceAccount_ = serviceAccount_;
      }
      if (((from_bitField0_ & 0x00000800) != 0)) {
        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
      }
      if (((from_bitField0_ & 0x00001000) != 0)) {
        result.schedulingConfig_ =
            schedulingConfigBuilder_ == null ? schedulingConfig_ : schedulingConfigBuilder_.build();
      }
      if (((from_bitField0_ & 0x00004000) != 0)) {
        result.health_ = health_;
      }
      if (((from_bitField0_ & 0x00008000) != 0)) {
        result.labels_ = internalGetLabels();
        result.labels_.makeImmutable();
      }
      if (((from_bitField0_ & 0x00010000) != 0)) {
        result.useServiceNetworking_ = useServiceNetworking_;
      }
      if (((from_bitField0_ & 0x00020000) != 0)) {
        result.apiVersion_ = apiVersion_;
      }
    }

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

    public Builder mergeFrom(com.google.cloud.tpu.v1.Node other) {
      if (other == com.google.cloud.tpu.v1.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.getIpAddress().isEmpty()) {
        ipAddress_ = other.ipAddress_;
        bitField0_ |= 0x00000008;
        onChanged();
      }
      if (!other.getPort().isEmpty()) {
        port_ = other.port_;
        bitField0_ |= 0x00000010;
        onChanged();
      }
      if (other.state_ != 0) {
        setStateValue(other.getStateValue());
      }
      if (!other.getHealthDescription().isEmpty()) {
        healthDescription_ = other.healthDescription_;
        bitField0_ |= 0x00000040;
        onChanged();
      }
      if (!other.getTensorflowVersion().isEmpty()) {
        tensorflowVersion_ = other.tensorflowVersion_;
        bitField0_ |= 0x00000080;
        onChanged();
      }
      if (!other.getNetwork().isEmpty()) {
        network_ = other.network_;
        bitField0_ |= 0x00000100;
        onChanged();
      }
      if (!other.getCidrBlock().isEmpty()) {
        cidrBlock_ = other.cidrBlock_;
        bitField0_ |= 0x00000200;
        onChanged();
      }
      if (!other.getServiceAccount().isEmpty()) {
        serviceAccount_ = other.serviceAccount_;
        bitField0_ |= 0x00000400;
        onChanged();
      }
      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_ & ~0x00002000);
          } else {
            ensureNetworkEndpointsIsMutable();
            networkEndpoints_.addAll(other.networkEndpoints_);
          }
          onChanged();
        }
      } else {
        if (!other.networkEndpoints_.isEmpty()) {
          if (networkEndpointsBuilder_.isEmpty()) {
            networkEndpointsBuilder_.dispose();
            networkEndpointsBuilder_ = null;
            networkEndpoints_ = other.networkEndpoints_;
            bitField0_ = (bitField0_ & ~0x00002000);
            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_ |= 0x00008000;
      if (other.getUseServiceNetworking() != false) {
        setUseServiceNetworking(other.getUseServiceNetworking());
      }
      if (other.apiVersion_ != 0) {
        setApiVersionValue(other.getApiVersionValue());
      }
      if (symptomsBuilder_ == null) {
        if (!other.symptoms_.isEmpty()) {
          if (symptoms_.isEmpty()) {
            symptoms_ = other.symptoms_;
            bitField0_ = (bitField0_ & ~0x00040000);
          } else {
            ensureSymptomsIsMutable();
            symptoms_.addAll(other.symptoms_);
          }
          onChanged();
        }
      } else {
        if (!other.symptoms_.isEmpty()) {
          if (symptomsBuilder_.isEmpty()) {
            symptomsBuilder_.dispose();
            symptomsBuilder_ = null;
            symptoms_ = other.symptoms_;
            bitField0_ = (bitField0_ & ~0x00040000);
            symptomsBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getSymptomsFieldBuilder()
                    : null;
          } else {
            symptomsBuilder_.addAllMessages(other.symptoms_);
          }
        }
      }
      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 66:
              {
                ipAddress_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000008;
                break;
              } // case 66
            case 72:
              {
                state_ = input.readEnum();
                bitField0_ |= 0x00000020;
                break;
              } // case 72
            case 82:
              {
                healthDescription_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000040;
                break;
              } // case 82
            case 90:
              {
                tensorflowVersion_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000080;
                break;
              } // case 90
            case 98:
              {
                network_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000100;
                break;
              } // case 98
            case 106:
              {
                cidrBlock_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000200;
                break;
              } // case 106
            case 114:
              {
                port_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000010;
                break;
              } // case 114
            case 122:
              {
                serviceAccount_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000400;
                break;
              } // case 122
            case 130:
              {
                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000800;
                break;
              } // case 130
            case 138:
              {
                input.readMessage(
                    getSchedulingConfigFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00001000;
                break;
              } // case 138
            case 170:
              {
                com.google.cloud.tpu.v1.NetworkEndpoint m =
                    input.readMessage(
                        com.google.cloud.tpu.v1.NetworkEndpoint.parser(), extensionRegistry);
                if (networkEndpointsBuilder_ == null) {
                  ensureNetworkEndpointsIsMutable();
                  networkEndpoints_.add(m);
                } else {
                  networkEndpointsBuilder_.addMessage(m);
                }
                break;
              } // case 170
            case 176:
              {
                health_ = input.readEnum();
                bitField0_ |= 0x00004000;
                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_ |= 0x00008000;
                break;
              } // case 194
            case 216:
              {
                useServiceNetworking_ = input.readBool();
                bitField0_ |= 0x00010000;
                break;
              } // case 216
            case 304:
              {
                apiVersion_ = input.readEnum();
                bitField0_ |= 0x00020000;
                break;
              } // case 304
            case 314:
              {
                com.google.cloud.tpu.v1.Symptom m =
                    input.readMessage(com.google.cloud.tpu.v1.Symptom.parser(), extensionRegistry);
                if (symptomsBuilder_ == null) {
                  ensureSymptomsIsMutable();
                  symptoms_.add(m);
                } else {
                  symptomsBuilder_.addMessage(m);
                }
                break;
              } // case 314
            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) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
     * </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) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
     * </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) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
     * </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) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
     * </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) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
     * </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>
     * Required. The type of hardware accelerators associated with this node.
     * </pre>
     *
     * <code>string accelerator_type = 5 [(.google.api.field_behavior) = REQUIRED];</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>
     * Required. The type of hardware accelerators associated with this node.
     * </pre>
     *
     * <code>string accelerator_type = 5 [(.google.api.field_behavior) = REQUIRED];</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>
     * Required. The type of hardware accelerators associated with this node.
     * </pre>
     *
     * <code>string accelerator_type = 5 [(.google.api.field_behavior) = REQUIRED];</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>
     * Required. The type of hardware accelerators associated with this node.
     * </pre>
     *
     * <code>string accelerator_type = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearAcceleratorType() {
      acceleratorType_ = getDefaultInstance().getAcceleratorType();
      bitField0_ = (bitField0_ & ~0x00000004);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. The type of hardware accelerators associated with this node.
     * </pre>
     *
     * <code>string accelerator_type = 5 [(.google.api.field_behavior) = REQUIRED];</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 java.lang.Object ipAddress_ = "";
    /**
     *
     *
     * <pre>
     * Output only. DEPRECATED! Use network_endpoints instead.
     * The network address for the TPU Node as visible to Compute Engine
     * instances.
     * </pre>
     *
     * <code>string ip_address = 8 [deprecated = true];</code>
     *
     * @deprecated google.cloud.tpu.v1.Node.ip_address is deprecated. See
     *     google/cloud/tpu/v1/cloud_tpu.proto;l=279
     * @return The ipAddress.
     */
    @java.lang.Deprecated
    public java.lang.String getIpAddress() {
      java.lang.Object ref = ipAddress_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        ipAddress_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. DEPRECATED! Use network_endpoints instead.
     * The network address for the TPU Node as visible to Compute Engine
     * instances.
     * </pre>
     *
     * <code>string ip_address = 8 [deprecated = true];</code>
     *
     * @deprecated google.cloud.tpu.v1.Node.ip_address is deprecated. See
     *     google/cloud/tpu/v1/cloud_tpu.proto;l=279
     * @return The bytes for ipAddress.
     */
    @java.lang.Deprecated
    public com.google.protobuf.ByteString getIpAddressBytes() {
      java.lang.Object ref = ipAddress_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        ipAddress_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. DEPRECATED! Use network_endpoints instead.
     * The network address for the TPU Node as visible to Compute Engine
     * instances.
     * </pre>
     *
     * <code>string ip_address = 8 [deprecated = true];</code>
     *
     * @deprecated google.cloud.tpu.v1.Node.ip_address is deprecated. See
     *     google/cloud/tpu/v1/cloud_tpu.proto;l=279
     * @param value The ipAddress to set.
     * @return This builder for chaining.
     */
    @java.lang.Deprecated
    public Builder setIpAddress(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ipAddress_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. DEPRECATED! Use network_endpoints instead.
     * The network address for the TPU Node as visible to Compute Engine
     * instances.
     * </pre>
     *
     * <code>string ip_address = 8 [deprecated = true];</code>
     *
     * @deprecated google.cloud.tpu.v1.Node.ip_address is deprecated. See
     *     google/cloud/tpu/v1/cloud_tpu.proto;l=279
     * @return This builder for chaining.
     */
    @java.lang.Deprecated
    public Builder clearIpAddress() {
      ipAddress_ = getDefaultInstance().getIpAddress();
      bitField0_ = (bitField0_ & ~0x00000008);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. DEPRECATED! Use network_endpoints instead.
     * The network address for the TPU Node as visible to Compute Engine
     * instances.
     * </pre>
     *
     * <code>string ip_address = 8 [deprecated = true];</code>
     *
     * @deprecated google.cloud.tpu.v1.Node.ip_address is deprecated. See
     *     google/cloud/tpu/v1/cloud_tpu.proto;l=279
     * @param value The bytes for ipAddress to set.
     * @return This builder for chaining.
     */
    @java.lang.Deprecated
    public Builder setIpAddressBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      ipAddress_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }

    private java.lang.Object port_ = "";
    /**
     *
     *
     * <pre>
     * Output only. DEPRECATED! Use network_endpoints instead.
     * The network port for the TPU Node as visible to Compute Engine instances.
     * </pre>
     *
     * <code>string port = 14 [deprecated = true];</code>
     *
     * @deprecated google.cloud.tpu.v1.Node.port is deprecated. See
     *     google/cloud/tpu/v1/cloud_tpu.proto;l=283
     * @return The port.
     */
    @java.lang.Deprecated
    public java.lang.String getPort() {
      java.lang.Object ref = port_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        port_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. DEPRECATED! Use network_endpoints instead.
     * The network port for the TPU Node as visible to Compute Engine instances.
     * </pre>
     *
     * <code>string port = 14 [deprecated = true];</code>
     *
     * @deprecated google.cloud.tpu.v1.Node.port is deprecated. See
     *     google/cloud/tpu/v1/cloud_tpu.proto;l=283
     * @return The bytes for port.
     */
    @java.lang.Deprecated
    public com.google.protobuf.ByteString getPortBytes() {
      java.lang.Object ref = port_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        port_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. DEPRECATED! Use network_endpoints instead.
     * The network port for the TPU Node as visible to Compute Engine instances.
     * </pre>
     *
     * <code>string port = 14 [deprecated = true];</code>
     *
     * @deprecated google.cloud.tpu.v1.Node.port is deprecated. See
     *     google/cloud/tpu/v1/cloud_tpu.proto;l=283
     * @param value The port to set.
     * @return This builder for chaining.
     */
    @java.lang.Deprecated
    public Builder setPort(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      port_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. DEPRECATED! Use network_endpoints instead.
     * The network port for the TPU Node as visible to Compute Engine instances.
     * </pre>
     *
     * <code>string port = 14 [deprecated = true];</code>
     *
     * @deprecated google.cloud.tpu.v1.Node.port is deprecated. See
     *     google/cloud/tpu/v1/cloud_tpu.proto;l=283
     * @return This builder for chaining.
     */
    @java.lang.Deprecated
    public Builder clearPort() {
      port_ = getDefaultInstance().getPort();
      bitField0_ = (bitField0_ & ~0x00000010);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. DEPRECATED! Use network_endpoints instead.
     * The network port for the TPU Node as visible to Compute Engine instances.
     * </pre>
     *
     * <code>string port = 14 [deprecated = true];</code>
     *
     * @deprecated google.cloud.tpu.v1.Node.port is deprecated. See
     *     google/cloud/tpu/v1/cloud_tpu.proto;l=283
     * @param value The bytes for port to set.
     * @return This builder for chaining.
     */
    @java.lang.Deprecated
    public Builder setPortBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      port_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }

    private int state_ = 0;
    /**
     *
     *
     * <pre>
     * Output only. The current state for the TPU Node.
     * </pre>
     *
     * <code>.google.cloud.tpu.v1.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.v1.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_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The current state for the TPU Node.
     * </pre>
     *
     * <code>.google.cloud.tpu.v1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The state.
     */
    @java.lang.Override
    public com.google.cloud.tpu.v1.Node.State getState() {
      com.google.cloud.tpu.v1.Node.State result =
          com.google.cloud.tpu.v1.Node.State.forNumber(state_);
      return result == null ? com.google.cloud.tpu.v1.Node.State.UNRECOGNIZED : result;
    }
    /**
     *
     *
     * <pre>
     * Output only. The current state for the TPU Node.
     * </pre>
     *
     * <code>.google.cloud.tpu.v1.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.v1.Node.State value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000020;
      state_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The current state for the TPU Node.
     * </pre>
     *
     * <code>.google.cloud.tpu.v1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearState() {
      bitField0_ = (bitField0_ & ~0x00000020);
      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_ |= 0x00000040;
      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_ & ~0x00000040);
      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_ |= 0x00000040;
      onChanged();
      return this;
    }

    private java.lang.Object tensorflowVersion_ = "";
    /**
     *
     *
     * <pre>
     * Required. The version of Tensorflow running in the Node.
     * </pre>
     *
     * <code>string tensorflow_version = 11 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return The tensorflowVersion.
     */
    public java.lang.String getTensorflowVersion() {
      java.lang.Object ref = tensorflowVersion_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        tensorflowVersion_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. The version of Tensorflow running in the Node.
     * </pre>
     *
     * <code>string tensorflow_version = 11 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return The bytes for tensorflowVersion.
     */
    public com.google.protobuf.ByteString getTensorflowVersionBytes() {
      java.lang.Object ref = tensorflowVersion_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        tensorflowVersion_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. The version of Tensorflow running in the Node.
     * </pre>
     *
     * <code>string tensorflow_version = 11 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @param value The tensorflowVersion to set.
     * @return This builder for chaining.
     */
    public Builder setTensorflowVersion(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      tensorflowVersion_ = value;
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. The version of Tensorflow running in the Node.
     * </pre>
     *
     * <code>string tensorflow_version = 11 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearTensorflowVersion() {
      tensorflowVersion_ = getDefaultInstance().getTensorflowVersion();
      bitField0_ = (bitField0_ & ~0x00000080);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. The version of Tensorflow running in the Node.
     * </pre>
     *
     * <code>string tensorflow_version = 11 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @param value The bytes for tensorflowVersion to set.
     * @return This builder for chaining.
     */
    public Builder setTensorflowVersionBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      tensorflowVersion_ = value;
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }

    private java.lang.Object network_ = "";
    /**
     *
     *
     * <pre>
     * The name of a network they wish to peer the TPU node to. It must be a
     * preexisting Compute Engine network inside of the project on which this API
     * has been activated. If none is provided, "default" will be used.
     * </pre>
     *
     * <code>string network = 12;</code>
     *
     * @return The network.
     */
    public java.lang.String getNetwork() {
      java.lang.Object ref = network_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        network_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The name of a network they wish to peer the TPU node to. It must be a
     * preexisting Compute Engine network inside of the project on which this API
     * has been activated. If none is provided, "default" will be used.
     * </pre>
     *
     * <code>string network = 12;</code>
     *
     * @return The bytes for network.
     */
    public com.google.protobuf.ByteString getNetworkBytes() {
      java.lang.Object ref = network_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        network_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The name of a network they wish to peer the TPU node to. It must be a
     * preexisting Compute Engine network inside of the project on which this API
     * has been activated. If none is provided, "default" will be used.
     * </pre>
     *
     * <code>string network = 12;</code>
     *
     * @param value The network to set.
     * @return This builder for chaining.
     */
    public Builder setNetwork(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      network_ = value;
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The name of a network they wish to peer the TPU node to. It must be a
     * preexisting Compute Engine network inside of the project on which this API
     * has been activated. If none is provided, "default" will be used.
     * </pre>
     *
     * <code>string network = 12;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearNetwork() {
      network_ = getDefaultInstance().getNetwork();
      bitField0_ = (bitField0_ & ~0x00000100);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The name of a network they wish to peer the TPU node to. It must be a
     * preexisting Compute Engine network inside of the project on which this API
     * has been activated. If none is provided, "default" will be used.
     * </pre>
     *
     * <code>string network = 12;</code>
     *
     * @param value The bytes for network to set.
     * @return This builder for chaining.
     */
    public Builder setNetworkBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      network_ = value;
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }

    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_ |= 0x00000200;
      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_ & ~0x00000200);
      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_ |= 0x00000200;
      onChanged();
      return this;
    }

    private java.lang.Object serviceAccount_ = "";
    /**
     *
     *
     * <pre>
     * Output only. The service account used to run the tensor flow services
     * within the node. To share resources, including Google Cloud Storage data,
     * with the Tensorflow job running in the Node, this account must have
     * permissions to that data.
     * </pre>
     *
     * <code>string service_account = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The serviceAccount.
     */
    public java.lang.String getServiceAccount() {
      java.lang.Object ref = serviceAccount_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        serviceAccount_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The service account used to run the tensor flow services
     * within the node. To share resources, including Google Cloud Storage data,
     * with the Tensorflow job running in the Node, this account must have
     * permissions to that data.
     * </pre>
     *
     * <code>string service_account = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The bytes for serviceAccount.
     */
    public com.google.protobuf.ByteString getServiceAccountBytes() {
      java.lang.Object ref = serviceAccount_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        serviceAccount_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The service account used to run the tensor flow services
     * within the node. To share resources, including Google Cloud Storage data,
     * with the Tensorflow job running in the Node, this account must have
     * permissions to that data.
     * </pre>
     *
     * <code>string service_account = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The serviceAccount to set.
     * @return This builder for chaining.
     */
    public Builder setServiceAccount(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      serviceAccount_ = value;
      bitField0_ |= 0x00000400;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The service account used to run the tensor flow services
     * within the node. To share resources, including Google Cloud Storage data,
     * with the Tensorflow job running in the Node, this account must have
     * permissions to that data.
     * </pre>
     *
     * <code>string service_account = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearServiceAccount() {
      serviceAccount_ = getDefaultInstance().getServiceAccount();
      bitField0_ = (bitField0_ & ~0x00000400);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The service account used to run the tensor flow services
     * within the node. To share resources, including Google Cloud Storage data,
     * with the Tensorflow job running in the Node, this account must have
     * permissions to that data.
     * </pre>
     *
     * <code>string service_account = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The bytes for serviceAccount to set.
     * @return This builder for chaining.
     */
    public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      serviceAccount_ = value;
      bitField0_ |= 0x00000400;
      onChanged();
      return this;
    }

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

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

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

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

    /**
     *
     *
     * <pre>
     * Output only. The network endpoints where TPU workers can be accessed and
     * sent work. It is recommended that Tensorflow clients of the node reach out
     * to the 0th entry in this map first.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public java.util.List<com.google.cloud.tpu.v1.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 Tensorflow clients of the node reach out
     * to the 0th entry in this map first.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v1.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 Tensorflow clients of the node reach out
     * to the 0th entry in this map first.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.tpu.v1.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 Tensorflow clients of the node reach out
     * to the 0th entry in this map first.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setNetworkEndpoints(int index, com.google.cloud.tpu.v1.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 Tensorflow clients of the node reach out
     * to the 0th entry in this map first.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setNetworkEndpoints(
        int index, com.google.cloud.tpu.v1.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 Tensorflow clients of the node reach out
     * to the 0th entry in this map first.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder addNetworkEndpoints(com.google.cloud.tpu.v1.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 Tensorflow clients of the node reach out
     * to the 0th entry in this map first.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder addNetworkEndpoints(int index, com.google.cloud.tpu.v1.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 Tensorflow clients of the node reach out
     * to the 0th entry in this map first.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder addNetworkEndpoints(
        com.google.cloud.tpu.v1.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 Tensorflow clients of the node reach out
     * to the 0th entry in this map first.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder addNetworkEndpoints(
        int index, com.google.cloud.tpu.v1.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 Tensorflow clients of the node reach out
     * to the 0th entry in this map first.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder addAllNetworkEndpoints(
        java.lang.Iterable<? extends com.google.cloud.tpu.v1.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 Tensorflow clients of the node reach out
     * to the 0th entry in this map first.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearNetworkEndpoints() {
      if (networkEndpointsBuilder_ == null) {
        networkEndpoints_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00002000);
        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 Tensorflow clients of the node reach out
     * to the 0th entry in this map first.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v1.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 Tensorflow clients of the node reach out
     * to the 0th entry in this map first.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.tpu.v1.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 Tensorflow clients of the node reach out
     * to the 0th entry in this map first.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.tpu.v1.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 Tensorflow clients of the node reach out
     * to the 0th entry in this map first.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public java.util.List<? extends com.google.cloud.tpu.v1.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 Tensorflow clients of the node reach out
     * to the 0th entry in this map first.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.tpu.v1.NetworkEndpoint.Builder addNetworkEndpointsBuilder() {
      return getNetworkEndpointsFieldBuilder()
          .addBuilder(com.google.cloud.tpu.v1.NetworkEndpoint.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Output only. The network endpoints where TPU workers can be accessed and
     * sent work. It is recommended that Tensorflow clients of the node reach out
     * to the 0th entry in this map first.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.tpu.v1.NetworkEndpoint.Builder addNetworkEndpointsBuilder(int index) {
      return getNetworkEndpointsFieldBuilder()
          .addBuilder(index, com.google.cloud.tpu.v1.NetworkEndpoint.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Output only. The network endpoints where TPU workers can be accessed and
     * sent work. It is recommended that Tensorflow clients of the node reach out
     * to the 0th entry in this map first.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public java.util.List<com.google.cloud.tpu.v1.NetworkEndpoint.Builder>
        getNetworkEndpointsBuilderList() {
      return getNetworkEndpointsFieldBuilder().getBuilderList();
    }

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

    private int health_ = 0;
    /**
     *
     *
     * <pre>
     * The health status of the TPU node.
     * </pre>
     *
     * <code>.google.cloud.tpu.v1.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.v1.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_ |= 0x00004000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The health status of the TPU node.
     * </pre>
     *
     * <code>.google.cloud.tpu.v1.Node.Health health = 22;</code>
     *
     * @return The health.
     */
    @java.lang.Override
    public com.google.cloud.tpu.v1.Node.Health getHealth() {
      com.google.cloud.tpu.v1.Node.Health result =
          com.google.cloud.tpu.v1.Node.Health.forNumber(health_);
      return result == null ? com.google.cloud.tpu.v1.Node.Health.UNRECOGNIZED : result;
    }
    /**
     *
     *
     * <pre>
     * The health status of the TPU node.
     * </pre>
     *
     * <code>.google.cloud.tpu.v1.Node.Health health = 22;</code>
     *
     * @param value The health to set.
     * @return This builder for chaining.
     */
    public Builder setHealth(com.google.cloud.tpu.v1.Node.Health value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00004000;
      health_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The health status of the TPU node.
     * </pre>
     *
     * <code>.google.cloud.tpu.v1.Node.Health health = 22;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearHealth() {
      bitField0_ = (bitField0_ & ~0x00004000);
      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_ |= 0x00008000;
      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_ & ~0x00008000);
      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_ |= 0x00008000;
      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_ |= 0x00008000;
      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_ |= 0x00008000;
      return this;
    }

    private boolean useServiceNetworking_;
    /**
     *
     *
     * <pre>
     * Whether the VPC peering for the node is set up through Service Networking
     * API. The VPC Peering should be set up before provisioning the node.
     * If this field is set, cidr_block field should not be specified. If the
     * network, that you want to peer the TPU Node to, is Shared VPC networks,
     * the node must be created with this this field enabled.
     * </pre>
     *
     * <code>bool use_service_networking = 27;</code>
     *
     * @return The useServiceNetworking.
     */
    @java.lang.Override
    public boolean getUseServiceNetworking() {
      return useServiceNetworking_;
    }
    /**
     *
     *
     * <pre>
     * Whether the VPC peering for the node is set up through Service Networking
     * API. The VPC Peering should be set up before provisioning the node.
     * If this field is set, cidr_block field should not be specified. If the
     * network, that you want to peer the TPU Node to, is Shared VPC networks,
     * the node must be created with this this field enabled.
     * </pre>
     *
     * <code>bool use_service_networking = 27;</code>
     *
     * @param value The useServiceNetworking to set.
     * @return This builder for chaining.
     */
    public Builder setUseServiceNetworking(boolean value) {

      useServiceNetworking_ = value;
      bitField0_ |= 0x00010000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Whether the VPC peering for the node is set up through Service Networking
     * API. The VPC Peering should be set up before provisioning the node.
     * If this field is set, cidr_block field should not be specified. If the
     * network, that you want to peer the TPU Node to, is Shared VPC networks,
     * the node must be created with this this field enabled.
     * </pre>
     *
     * <code>bool use_service_networking = 27;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearUseServiceNetworking() {
      bitField0_ = (bitField0_ & ~0x00010000);
      useServiceNetworking_ = false;
      onChanged();
      return this;
    }

    private int apiVersion_ = 0;
    /**
     *
     *
     * <pre>
     * Output only. The API version that created this Node.
     * </pre>
     *
     * <code>
     * .google.cloud.tpu.v1.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.v1.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_ |= 0x00020000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The API version that created this Node.
     * </pre>
     *
     * <code>
     * .google.cloud.tpu.v1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The apiVersion.
     */
    @java.lang.Override
    public com.google.cloud.tpu.v1.Node.ApiVersion getApiVersion() {
      com.google.cloud.tpu.v1.Node.ApiVersion result =
          com.google.cloud.tpu.v1.Node.ApiVersion.forNumber(apiVersion_);
      return result == null ? com.google.cloud.tpu.v1.Node.ApiVersion.UNRECOGNIZED : result;
    }
    /**
     *
     *
     * <pre>
     * Output only. The API version that created this Node.
     * </pre>
     *
     * <code>
     * .google.cloud.tpu.v1.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.v1.Node.ApiVersion value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00020000;
      apiVersion_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The API version that created this Node.
     * </pre>
     *
     * <code>
     * .google.cloud.tpu.v1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearApiVersion() {
      bitField0_ = (bitField0_ & ~0x00020000);
      apiVersion_ = 0;
      onChanged();
      return this;
    }

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

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

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

    /**
     *
     *
     * <pre>
     * Output only. The Symptoms that have occurred to the TPU Node.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public java.util.List<com.google.cloud.tpu.v1.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.v1.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.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.tpu.v1.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.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setSymptoms(int index, com.google.cloud.tpu.v1.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.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setSymptoms(int index, com.google.cloud.tpu.v1.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.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder addSymptoms(com.google.cloud.tpu.v1.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.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder addSymptoms(int index, com.google.cloud.tpu.v1.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.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder addSymptoms(com.google.cloud.tpu.v1.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.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder addSymptoms(int index, com.google.cloud.tpu.v1.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.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder addAllSymptoms(
        java.lang.Iterable<? extends com.google.cloud.tpu.v1.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.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearSymptoms() {
      if (symptomsBuilder_ == null) {
        symptoms_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00040000);
        onChanged();
      } else {
        symptomsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The Symptoms that have occurred to the TPU Node.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v1.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.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.tpu.v1.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.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.tpu.v1.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.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public java.util.List<? extends com.google.cloud.tpu.v1.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.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.tpu.v1.Symptom.Builder addSymptomsBuilder() {
      return getSymptomsFieldBuilder()
          .addBuilder(com.google.cloud.tpu.v1.Symptom.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Output only. The Symptoms that have occurred to the TPU Node.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.tpu.v1.Symptom.Builder addSymptomsBuilder(int index) {
      return getSymptomsFieldBuilder()
          .addBuilder(index, com.google.cloud.tpu.v1.Symptom.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Output only. The Symptoms that have occurred to the TPU Node.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public java.util.List<com.google.cloud.tpu.v1.Symptom.Builder> getSymptomsBuilderList() {
      return getSymptomsFieldBuilder().getBuilderList();
    }

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

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

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

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

  public static com.google.cloud.tpu.v1.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.v1.Node getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
