SAN FRANCISCO — It wasn’t always easy.

Diane Bellas, the soon-to-be retired public defender in Alameda County, struggled with shifting financial resources and internal tensions at various points throughout her 12-year tenure in the office. In 2008, things got particularly bad, as the county slashed funding for attorney and investigator positions, leaving the office unable to take on certain types of new work.