Generate constructors for messages.