In my code generator, I saw the default visibility is public, so all methods generated is public, although I customized myself template of setter. enter image description here
My template: enter image description here Now, I need public getter and protected setter. How can I do?