Chinese President Xi Jinping on Friday warned the world was entering an era of growing "unilateralism" and "protectionism," in comments at a major Asia-Pacific trade summit in Peru.