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

    if (!getSourceDisk().equals(other.getSourceDisk())) return false;
    if (mode_ != other.mode_) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<pre>
The mode in which to attach this disk.
If not specified, the default is READ_WRITE mode.
Only applicable to data_disks.
</pre>

<code>.google.cloud.tpu.v2alpha1.AttachedDisk.DiskMode mode = 4;</code>

@return The mode.
java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AttachedDisk.java