Alexander Afanasyev | 433ecda | 2013-01-02 22:13:45 -0800 | [diff] [blame] | 1 | message ActionItem |
| 2 | { |
| 3 | enum ActionType |
| 4 | { |
Zhenkai Zhu | 337e073 | 2013-01-18 20:27:14 -0800 | [diff] [blame] | 5 | UPDATE = 0; |
| 6 | DELETE = 1; |
Alexander Afanasyev | 433ecda | 2013-01-02 22:13:45 -0800 | [diff] [blame] | 7 | } |
Zhenkai Zhu | 337e073 | 2013-01-18 20:27:14 -0800 | [diff] [blame] | 8 | required ActionType action = 1; |
Alexander Afanasyev | 433ecda | 2013-01-02 22:13:45 -0800 | [diff] [blame] | 9 | |
Zhenkai Zhu | 337e073 | 2013-01-18 20:27:14 -0800 | [diff] [blame] | 10 | required string filename = 2; |
| 11 | required uint64 version = 3; |
| 12 | required uint32 timestamp = 4; |
| 13 | optional uint64 seg_num = 5; |
| 14 | optional bytes file_hash = 6; |
Alexander Afanasyev | 433ecda | 2013-01-02 22:13:45 -0800 | [diff] [blame] | 15 | |
Zhenkai Zhu | 337e073 | 2013-01-18 20:27:14 -0800 | [diff] [blame] | 16 | optional uint32 mtime = 7; |
| 17 | optional uint32 mode = 8; |
| 18 | // optional uint32 atime = 9; |
| 19 | // optional uint32 ctime = 10; |
Alexander Afanasyev | 433ecda | 2013-01-02 22:13:45 -0800 | [diff] [blame] | 20 | |
Zhenkai Zhu | 337e073 | 2013-01-18 20:27:14 -0800 | [diff] [blame] | 21 | optional bytes parent_device_name = 11; |
| 22 | optional uint64 parent_seq_no = 12; |
Alexander Afanasyev | 433ecda | 2013-01-02 22:13:45 -0800 | [diff] [blame] | 23 | } |