31 lines
492 B
Protocol Buffer
Raw Normal View History

2021-09-23 15:49:10 +08:00
syntax = "proto3";
2021-11-19 12:18:46 +08:00
2021-09-23 15:49:10 +08:00
message Revision {
int64 base_rev_id = 1;
int64 rev_id = 2;
bytes delta_data = 3;
2021-09-23 15:49:10 +08:00
string md5 = 4;
string doc_id = 5;
2021-09-26 16:39:57 +08:00
RevType ty = 6;
2021-12-09 22:28:11 +08:00
string user_id = 7;
2021-09-26 16:39:57 +08:00
}
2021-12-22 18:53:52 +08:00
message RepeatedRevision {
repeated Revision items = 1;
}
2021-12-07 22:32:34 +08:00
message RevId {
int64 value = 1;
}
message RevisionRange {
string doc_id = 1;
2021-10-06 23:21:57 +08:00
int64 start = 2;
int64 end = 3;
}
2021-09-26 16:39:57 +08:00
enum RevType {
Local = 0;
Remote = 1;
2021-09-23 15:49:10 +08:00
}
2021-12-14 15:31:44 +08:00
enum RevState {
StateLocal = 0;
2021-12-22 18:53:52 +08:00
Ack = 1;
2021-12-14 15:31:44 +08:00
}