Implemented map->protobuf conversion