Jayant Satkar

Jayant Satkar

  • 1.6k
  • 130
  • 597

Google protocol buffers serialization

Apr 17 2017 5:12 AM
 ---Protofile
 
syntax = "proto2";
package Atos.ReaderCommunicator;
option csharp_namespace = "Atos.ReaderCommunicator";
message DataPacket
{
required uint32 readerId=1;
optional uint32 ack=2;// 0xAA
required uint32 cmdType=3;
optional uint32 configType=4;
repeated UploadUsers uploadusers=5;
repeated DownloadSwipes downloadSwipes=6;
optional string extraData=7;
optional uint32 subCmdType=8;
repeated Configuration cfg=9;
repeated ScsConfiguration scsCfg=10;
}
 
I have compiled this file and got class. But No idea how to use it.
 

Answers (2)