public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory
              .GcePersistentDisk
          parseFrom(
              com.google.protobuf.CodedInputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }
<pre>
Optional. Whether the disk is read only. If true, the disk may be
shared by multiple VMs and
[source_snapshot][google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.source_snapshot]
must be set.
</pre>

<code>bool read_only = 4 [(.google.api.field_behavior) = OPTIONAL];</code>

@return The readOnly.
java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfig.java