2016-07-04 03:40:29 -07:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package db;
|
|
|
|
|
|
|
|
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
|
|
|
|
import "github.com/syncthing/syncthing/lib/protocol/bep.proto";
|
|
|
|
|
|
|
|
option (gogoproto.goproto_getters_all) = false;
|
|
|
|
option (gogoproto.sizer_all) = false;
|
|
|
|
option (gogoproto.protosizer_all) = true;
|
|
|
|
|
|
|
|
message FileVersion {
|
|
|
|
protocol.Vector version = 1 [(gogoproto.nullable) = false];
|
|
|
|
bytes device = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message VersionList {
|
|
|
|
option (gogoproto.goproto_stringer) = false;
|
|
|
|
repeated FileVersion versions = 1 [(gogoproto.nullable) = false];
|
|
|
|
}
|
|
|
|
|
|
|
|
// Must be the same as FileInfo but without the blocks field
|
|
|
|
message FileInfoTruncated {
|
|
|
|
option (gogoproto.goproto_stringer) = false;
|
|
|
|
string name = 1;
|
|
|
|
protocol.FileInfoType type = 2;
|
|
|
|
int64 size = 3;
|
|
|
|
uint32 permissions = 4;
|
2016-08-06 06:05:59 -07:00
|
|
|
int64 modified_s = 5;
|
|
|
|
int32 modified_ns = 11;
|
2017-01-02 17:16:21 -07:00
|
|
|
uint64 modified_by = 12 [(gogoproto.customtype) = "github.com/syncthing/syncthing/lib/protocol.ShortID", (gogoproto.nullable) = false];
|
2016-07-04 03:40:29 -07:00
|
|
|
bool deleted = 6;
|
|
|
|
bool invalid = 7;
|
|
|
|
bool no_permissions = 8;
|
|
|
|
protocol.Vector version = 9 [(gogoproto.nullable) = false];
|
2016-07-29 12:54:24 -07:00
|
|
|
int64 sequence = 10;
|
2016-12-09 11:02:18 -07:00
|
|
|
string symlink_target = 17;
|
2016-07-04 03:40:29 -07:00
|
|
|
}
|