code: def get_enum_raw_type(enum, msgs):
      
  
      for msg in msgs:
          for field in msg.fields:
              if  field.enum == enum.name:
                  return swift_types[field.type][0]
      return "Int"
docs: Search appropirate raw type for enums in messages fields