1 2 3 4 5 6 7 8 9
require "upb" symtab = upb.symtab() symtab:add_descriptorproto() for _, def in ipairs(symtab:getdefs(-1)) do print(def:name()) end