Seperated out protobuf impl into wrapper classes. am: 2920754397
am: 85204bdd59

Change-Id: I0fd503ad5176efa6d16678e957a9c6a1d3a8510c