@java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mountPath_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mountPath_);
      }
      if (directoryTypeCase_ == 2) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                2,
                (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory
                        .GceRegionalPersistentDisk)
                    directoryType_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }
<pre>
Optional. Location of this directory in the running workstation.
</pre>

<code>string mount_path = 1 [(.google.api.field_behavior) = OPTIONAL];</code>

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