adding protobuf implemenation of the messages