Pretty protobuf serialize and rpc implement