Is it a ball or a hit by a pitch when a batter is hit by a ball that bounches?

It's a ball.