blob: 7bb6f218cce0af428e0ee8f9c2b7557211918531 [file] [log] [blame]
Alexander Afanasyev45355a52016-12-24 10:21:34 -08001syntax = "proto2";
2
Alexander Afanasyev433ecda2013-01-02 22:13:45 -08003message ActionItem
4{
5 enum ActionType
6 {
Zhenkai Zhu337e0732013-01-18 20:27:14 -08007 UPDATE = 0;
8 DELETE = 1;
Alexander Afanasyev433ecda2013-01-02 22:13:45 -08009 }
Zhenkai Zhu337e0732013-01-18 20:27:14 -080010 required ActionType action = 1;
Alexander Afanasyev433ecda2013-01-02 22:13:45 -080011
Zhenkai Zhu337e0732013-01-18 20:27:14 -080012 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 Afanasyev433ecda2013-01-02 22:13:45 -080017
Zhenkai Zhu337e0732013-01-18 20:27:14 -080018 optional uint32 mtime = 7;
19 optional uint32 mode = 8;
20 // optional uint32 atime = 9;
21 // optional uint32 ctime = 10;
Alexander Afanasyev433ecda2013-01-02 22:13:45 -080022
Zhenkai Zhu337e0732013-01-18 20:27:14 -080023 optional bytes parent_device_name = 11;
24 optional uint64 parent_seq_no = 12;
Alexander Afanasyev433ecda2013-01-02 22:13:45 -080025}