AppFlowy/rust-lib/flowy-document/src/protobuf/proto/revision.proto

23 lines
367 B
Protocol Buffer
Raw Normal View History

2021-09-23 07:49:10 +00:00
syntax = "proto3";
2021-09-23 09:50:28 +00:00
2021-10-02 13:35:06 +00:00
message RevId {
2021-10-04 09:47:21 +00:00
int64 value = 1;
2021-10-02 13:35:06 +00:00
}
2021-09-23 07:49:10 +00:00
message Revision {
int64 base_rev_id = 1;
int64 rev_id = 2;
bytes delta_data = 3;
2021-09-23 07:49:10 +00:00
string md5 = 4;
string doc_id = 5;
2021-09-26 08:39:57 +00:00
RevType ty = 6;
}
message RevisionRange {
string doc_id = 1;
int64 from_rev_id = 2;
int64 to_rev_id = 3;
}
2021-09-26 08:39:57 +00:00
enum RevType {
Local = 0;
Remote = 1;
2021-09-23 07:49:10 +00:00
}