@java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
          return true;
        }
        if (!(obj
            instanceof
            com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory
                .GcePersistentDisk)) {
          return super.equals(obj);
        }
        com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk
            other =
                (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory
                        .GcePersistentDisk)
                    obj;

        if (!getDiskType().equals(other.getDiskType())) return false;
        if (!getSourceSnapshot().equals(other.getSourceSnapshot())) return false;
        if (!getSourceImage().equals(other.getSourceImage())) return false;
        if (getReadOnly() != other.getReadOnly()) return false;
        if (!getUnknownFields().equals(other.getUnknownFields())) return false;
        return true;
      }
<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