CA Govt Code § 75030.5 (2021)
2021 California Code|Government Code - GOV|TITLE 8 - THE ORGANIZATION AND GOVERNMENT OF COURTS|CHAPTER 11 - Judges Retirement Law|ARTICLE 2 - Retirement for Service|Section 75030.5.

75030.5.  Any judge who first becomes a judge on or after May 1, 1962, and who has served as an elected state constitutional officer before becoming a judge, or any judge who first became a judge prior to that date who has served as a constitutional officer or as a public legal officer before becoming a judge, has a right to elect, by written election filed with the Judges’ Retirement System at any time prior to retirement, to make contributions pursuant to this section for, and receive credit in this system as, service for all or any part of the time the judge served as that officer, excluding any period of time for which the judge is receiving, or is entitled to receive, a retirement allowance from any other public retirement system.As used in this chapter, the term “elected state constitutional officer” means the holder of the office of Member of the Senate or Assembly, Governor, Lieutenant Governor, Secretary of State, Controller, Treasurer, Attorney General, Superintendent of Public Instruction, or member of the State Board of Equalization.As used in this chapter, the term “constitutional officer” means the holder of an office created by the California Constitution, and “public legal officer” means the holder of any legal office of the state or any agency of the state or of any county or city in the state who is paid a salary or other fixed regular compensation and who is admitted and licensed to practice law in the State of California during the time of holding the office and whose principal duties in the office are legal in nature, such as the Attorney General, Legislative Counsel, Commissioner of Business Oversight, a district attorney, county counsel, city attorney, city prosecutor, public defender, or a deputy of any such office, or a secretary to the Governor whose duties include the hearing of extradition matters, admitted and licensed to practice law in the State of California during the time of holding the office and whose principal duties in the office are legal in nature.Every judge electing to receive credit for service pursuant to this section shall at the time of filing the judge’s election, and as a condition to receiving that credit, pay into the Judges’ Retirement Fund a sum equal to the amount which would have been deducted from the judge’s salary and paid into that fund pursuant to Section 75102 had the judge been a judge during the time for which the judge elects to receive credit for service, computed by applying the rates of deduction applicable to judges’ salaries during that time to the rate of salary the judge actually received during the first year as a judge, plus interest at 3 percent a year, to the date of the judge’s payment, upon the amounts of the deductions and from the respective dates they would have been paid had the judge been a judge during the time for which the judge elects to receive credit for service. The amount and interest shall be determined by the Judges’ Retirement System in accordance with this section. Funds transferred to the Judges’ Retirement Fund pursuant to Section 9356.5 shall be deducted from the payment. Any funds so transferred which are in excess of the amount required by this section shall be refunded to the judge.This section shall not apply to any person who, on or after January 1, 1986, first becomes or continues as an elected state constitutional officer, in a term which commences on or after January 1, 1986.(Amended by Stats. 2019, Ch. 143, Sec. 68. (SB 251) Effective January 1, 2020.)