Any officer, employee or member of a board charged with the enforcement of this chapter, acting for such board in the discharge of his duties, shall not thereby render himself liable personally, and he is relieved from all personal liability for any damage that may accrue 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 because of such act performed by him in the enforcement of any provision of this chapter shall be defended by the county attorney until the final termination of the proceedings.