Sylvain tried to flee but was detained by two employees who'd heard the robot's distress alarm.
Knightscope's vice president of marketing Stacy Dean Stephens told CNET the machine did exactly what it was designed to do.
"The 'assault' was detected and immediately reported," Stephens said.
"The alarms on the robot sounded, the suspect attempted to flee the scene and was detained by one of my colleagues and me until the Mountain View Police arrived."
Sylvain now faces prowling and public intoxication charges.
It's not the first time an independently operating robot has faced trouble in the real world.
A droid that set out to hitchhike across the US lasted two weeks before it was brutally vandalised in Philadelphia in 2015.
And a robotic shop assistant in Japan was kicked by a drunken man in the same year.