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