BEIJING  As a presidential candidate, Donald J. Trump talked about China almost solely in the context of trade, such as when he promised to slap punishing tariffs on cheap Chinese imports that he argued had ruined the lives of working-class Americans.