The law refers to foreign dogs attacking MY stock. However, if the attack is against MY dog or cat, shooting is no longer an option. The law is meant only to protect people and livestock. My dog and cats are on their own.
Not sure a rural Ohio solution will help you in California, but...
(A) Subject to divisions (A)(2) and (3) of section 955.261 of the Revised Code, a dog that is chasing or approaching in a menacing fashion or apparent attitude of attack, that attempts to bite or otherwise endanger, or that...