public Builder setMode(com.google.cloud.tpu.v2alpha1.AttachedDisk.DiskMode value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000002;
      mode_ = value.getNumber();
      onChanged();
      return this;
    }
<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>

@param value The mode to set.
@return This builder for chaining.
java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AttachedDisk.java