Any person who comes within the provisions of this chapter and who otherwise meets all standards imposed by law on a peace officer is a peace officer, and notwithstanding any other provision of law, no person other than those designated in this chapter is a peace officer. The restriction of peace officer functions of any public officer or employee shall not affect his or her status for purposes of retirement.
Ca. Pen. Code § 830