Revert "Revert "add proto buf""

This reverts commit 14ea2a28411587b9da3d44133733d37951a4e06c.