Lens hoods are primarily designed to prevent unwanted stray light from entering the lens by extending and shading the end of the lens. In addition, since the end of the lens is extended, you also get the added benefit of some extra protection from accidental impact.
Dedicated lens hoods are designed to match the specific focal length of the lens it was designed for.
The Canon Lens Case LZ1324 is a soft double zippered lens pouch made to protect a Canon EF 28-300mm f/3.5-5.6L IS USM, EF 70-200mm f/2.8L IS USM, EF 70-200mm f/2.8L USM, EF 100-400mm f/4.5-5.6L IS USM, EF 180mm f/3.5L Macro USM Lens