Alexander Afanasyev | 45355a5 | 2016-12-24 10:21:34 -0800 | [diff] [blame] | 1 | syntax = "proto2"; |
| 2 | |
Alexander Afanasyev | 6f70a0f | 2013-01-02 20:44:09 -0800 | [diff] [blame] | 3 | message SyncState |
| 4 | { |
Alexander Afanasyev | d09871f | 2013-01-04 22:36:37 -0800 | [diff] [blame] | 5 | required bytes name = 1; |
Alexander Afanasyev | 6f70a0f | 2013-01-02 20:44:09 -0800 | [diff] [blame] | 6 | |
| 7 | enum ActionType |
| 8 | { |
| 9 | UPDATE = 0; |
| 10 | DELETE = 1; |
| 11 | } |
| 12 | required ActionType type = 2; |
| 13 | |
| 14 | optional uint64 seq = 3; |
Zhenkai Zhu | e851b95 | 2013-01-13 22:29:57 -0800 | [diff] [blame] | 15 | optional bytes locator = 4; |
Zhenkai Zhu | 085aae7 | 2013-01-17 21:09:01 -0800 | [diff] [blame] | 16 | optional uint64 old_seq = 5; |
Alexander Afanasyev | 6f70a0f | 2013-01-02 20:44:09 -0800 | [diff] [blame] | 17 | } |
| 18 | |
| 19 | message SyncStateMsg |
| 20 | { |
| 21 | repeated SyncState state = 1; |
| 22 | } |