raft: protobuf messageType

#1127 

as a result, `MsgXXX` is exposed as public constant.
fixed. do you guys have any way to format it automatically?