Pulsations of type IV radio bursts as an indicator of protonarility of solar flares