Zhenkai Zhu | 97e36bd | 2012-06-06 13:55:03 -0700 | [diff] [blame] | 1 | package Sync; |
| 2 | |
| 3 | message SyncState |
| 4 | { |
| 5 | required string name = 1; |
| 6 | enum ActionType |
| 7 | { |
| 8 | UPDATE = 0; |
| 9 | DELETE = 1; |
| 10 | OTHER = 2; |
| 11 | } |
| 12 | required ActionType type = 2; |
| 13 | message SeqNo |
| 14 | { |
| 15 | required uint32 seq = 1; |
| 16 | required uint32 session = 2; |
| 17 | } |
Zhenkai Zhu | 3cfdcb9 | 2012-06-06 15:20:10 -0700 | [diff] [blame^] | 18 | optional SeqNo seqno = 3; |
Zhenkai Zhu | 97e36bd | 2012-06-06 13:55:03 -0700 | [diff] [blame] | 19 | } |
| 20 | |
| 21 | message SyncStateMsg |
| 22 | { |
| 23 | repeated SyncState ss = 1; |
| 24 | } |