They were able to radio for help, according to the Associated Press.
The Associated Press cited Sheriff Alex Villanueva as saying that the 31-year-old female deputy and 24-year-old male deputy underwent surgery Saturday night.
In an early-morning tweet, Trump called for a forceful response to the incident. “Animals that must be hit hard!” he said.
Later Sunday morning, Trump tweeted of the officers: “If they die, fast trial death penalty for the killer. Only way to stop this!”
Biden also condemned the shooting.
“This cold-blooded shooting is unconscionable and the perpetrator must be brought to justice,” the former vice president tweeted Sunday morning. “Violence of any kind is wrong; those who commit it should be caught and punished. Jill and I are keeping the deputies and their loved ones in our hearts and praying for a full recovery.”
On Saturday, anti-police protesters gathered at the hospital where the deputies were being treated.
Authorities are still searching for the suspect and have blanketed the area around the shooting, according to the Associated Press.