Nucleation of superconductivity in finite metallic multilayers: Effect of the symmetry