Cal. Water Code § 11127
The department shall be regarded as performing a governmental function in carrying out the provisions of this part.