The phrase
"different legumes" refers to various types of edible plants that belong to the legume family. Legumes are plants that have seed pods and include common foods like beans, peas, lentils, and peanuts. So,
"different legumes" means different kinds of these plants that can be eaten.
Full definition