Inital source code for packing message from protobuffer.