A restraining order (including a personal protection order) is a civil action between citizens.
A "no-contact" bond condition can be imposed on a defendant during a pending criminal prosecution. It means that a defendant can not personally, or have a third-party contact, call, write, etc. the victim or any other party with whom the judge orders the defendant to have "no contact." This is a common bond condition for defendants charged with violent or assaultive crimes, and protects victims if the defendant is released from jail while the charge is pending. Like all other bond conditions (e.g, appearing at future court proceedings, not violating criminal laws, not leaving the state, etc.), any violation could cause the judge to raise or revoke the bond, in which case the defendant could remain in jail until the case is finished.
A judge has the discretion to issue (or not issue) any bond condition, as he sees fit. A "no-contact condition" stays in effect for the entire duration of the criminal case, or until the victim requests that it be removed or "lifted" (with the judge's approval). A "no-contact" provision can also be imposed at the sentencing as part of the conditions of probation.