@java.lang.Override
      public int hashCode() {
        if (memoizedHashCode != 0) {
          return memoizedHashCode;
        }
        int hash = 41;
        hash = (19 * hash) + getDescriptor().hashCode();
        hash = (37 * hash) + DISK_TYPE_FIELD_NUMBER;
        hash = (53 * hash) + getDiskType().hashCode();
        hash = (37 * hash) + SOURCE_SNAPSHOT_FIELD_NUMBER;
        hash = (53 * hash) + getSourceSnapshot().hashCode();
        hash = (37 * hash) + SOURCE_IMAGE_FIELD_NUMBER;
        hash = (53 * hash) + getSourceImage().hashCode();
        hash = (37 * hash) + READ_ONLY_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReadOnly());
        hash = (29 * hash) + getUnknownFields().hashCode();
        memoizedHashCode = hash;
        return hash;
      }
<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