Added util to parse proto to hash_map.

Change-Id: I19175aa08e5da43ad7024395666733c1edd60c34