Add ability to serialize and output protobuf message in main.c