client res export use pb encode