Government Code § 27705
CHAPTER 13. Public Defender
In counties of the first, second and third classes, the public defender shall devote all his time to the duties of his office and shall not engage in the practice of law except in the capacity of public defender.