If it’s true that rioters are attacking with hammers, certainly the use of less-lethal force is justified. Do the police not have the right to self-defense that every other citizen has?
Another where a person was riding their bike away from a protest and got hauled into an anonymous van and held without cause.
Self defense is ok, these actions are not. One "protester" being violent does not warrant collective punishment of all/any protesters. It warrants defense from, and the arrest of, the violent ones.
The police in the United States are a paramilitary force, equipped with military gear, and in many cases with military training -- the only thing military thing they don't have is the uniform code of military justice, which forbids things like the use of chemical weaponry and war crimes.