Cal. Penal Code § 422.85
(a) In the case of any person who is convicted of any offense against the person or property of another individual, private institution, or public agency, committed because of the victim’s actual or perceived race, color, ethnicity, religion, nationality, country of origin, ancestry, disability, gender, gender identity, gender expression, or sexual orientation, including, but not limited to, offenses defined in Section 302, 423.2, 594.3, 11411, 11412, or 11413, or for any hate crime, the court, absent compelling circumstances stated on the record, shall make an order protecting the victim, or known immediate family or domestic partner of the victim, from further acts of violence, threats, stalking, or harassment by the defendant, including any stay-away conditions the court deems appropriate, and shall make obedience of that order a condition of the defendant’s probation. In these cases the court may also order that the defendant be required to do one or more of the following as a condition of probation: