Protocol buffer structure for Pubsub system