Isometric or harmonic mappings of complete Riemannian manifolds