decode proto