As used in this subdivision, "public official" means a person employed by a governmental agency who has the authority, as part of that position, to incarcerate, arrest, or deport another. The perpetrator does not actually have to be a public official.
Ca. Pen. Code § 287