@java.lang.Override
  public com.google.cloud.tpu.v2alpha1.AttachedDisk.DiskMode getMode() {
    com.google.cloud.tpu.v2alpha1.AttachedDisk.DiskMode result =
        com.google.cloud.tpu.v2alpha1.AttachedDisk.DiskMode.forNumber(mode_);
    return result == null
        ? com.google.cloud.tpu.v2alpha1.AttachedDisk.DiskMode.UNRECOGNIZED
        : result;
  }
<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