Any department officer or employee, or member of the board of adjustments and appeals, charged with the enforcement of this chapter, acting for the county in the discharge of his duties, shall not thereby render himself personally liable, and is hereby relieved from all personal liability, for any damage that may occur to persons or property as a result of any act required or permitted in the discharge of his duties. Any suit brought against any officer or employee or member because of such act performed by him in the enforcement of any provision of this chapter shall be defended by the county until the final termination of the proceedings.