add swift\'s protocol translation