Google executives have told a parliamentary hearing the company will withdraw its search engine from Australia if a proposed code for published news proceeds without changes.