1
0

structs.proto 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. syntax = "proto3";
  2. package db;
  3. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  4. import "github.com/syncthing/syncthing/lib/protocol/bep.proto";
  5. option (gogoproto.goproto_getters_all) = false;
  6. option (gogoproto.sizer_all) = false;
  7. option (gogoproto.protosizer_all) = true;
  8. message FileVersion {
  9. protocol.Vector version = 1 [(gogoproto.nullable) = false];
  10. bytes device = 2;
  11. }
  12. message VersionList {
  13. option (gogoproto.goproto_stringer) = false;
  14. repeated FileVersion versions = 1 [(gogoproto.nullable) = false];
  15. }
  16. // Must be the same as FileInfo but without the blocks field
  17. message FileInfoTruncated {
  18. option (gogoproto.goproto_stringer) = false;
  19. string name = 1;
  20. protocol.FileInfoType type = 2;
  21. int64 size = 3;
  22. uint32 permissions = 4;
  23. int64 modified_s = 5;
  24. int32 modified_ns = 11;
  25. bool deleted = 6;
  26. bool invalid = 7;
  27. bool no_permissions = 8;
  28. protocol.Vector version = 9 [(gogoproto.nullable) = false];
  29. int64 sequence = 10;
  30. }