raft: protobuf messageType

#1127 

as a result, `MsgXXX` is exposed as public constant.