Add generated code for a component that sends messages