code: func (r ReadOnlyValue) ToIsolated() (out *isolated.ReadOnlyValue) {
  	switch r {
  	case NotSet:
  	case Writeable:
  		out = new(isolated.ReadOnlyValue)
  		*out = isolated.Writeable
  	case FilesReadOnly:
  		out = new(isolated.ReadOnlyValue)
  		*out = isolated.FilesReadOnly
  	case DirsReadOnly:
  		out = new(isolated.ReadOnlyValue)
  		*out = isolated.DirsReadOnly
  	default:
  		log.Printf("invalid ReadOnlyValue %d", r)
  	}
  	return
  }
docs: // ToIsolated can be used to convert ReadOnlyValue enum values to corresponding
  // isolated.ReadOnlyValue enum values. It returns nil on errors.