To qualify for a protective order in California, you should be able to prove that you have been a victim of physical or psychological abuse, stalking, or other forms of harassment by the person against whom you are seeking the order.
You’ll be required to show up at one of the California courts (usually the Superior Court) and file a petition or complete the procedure online. If you cannot fill out the forms on your own, you can request the assistance of your family law or another attorney.
The judge will then review your case and decide whether to issue a TRO which can be effective for up to 21 days. After the hearing,  the order might be made permanent and last for several years or sometimes indefinitely. If a permanent order expires, the victim can seek an extension.