Set Requirement types in P4C

/*req_id, req_type */
req = Requirement()
req.set_id(req_id)

How to set the requirements field since there is no defined set_requirement_type?