William Shirley, King's Governor of Massachusetts