structs.proto 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. uint64 modified_by = 12 [(gogoproto.customtype) = "github.com/syncthing/syncthing/lib/protocol.ShortID", (gogoproto.nullable) = false];
  26. bool deleted = 6;
  27. bool invalid = 7;
  28. bool no_permissions = 8;
  29. protocol.Vector version = 9 [(gogoproto.nullable) = false];
  30. int64 sequence = 10;
  31. string symlink_target = 17;
  32. }