playlist4changes.proto 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. syntax = "proto2";
  2. import "playlist4ops.proto";
  3. import "playlist4meta.proto";
  4. import "playlist4content.proto";
  5. import "playlist4issues.proto";
  6. message ChangeInfo {
  7. optional string user = 0x1;
  8. optional int32 timestamp = 0x2;
  9. optional bool admin = 0x3;
  10. optional bool undo = 0x4;
  11. optional bool redo = 0x5;
  12. optional bool merge = 0x6;
  13. optional bool compressed = 0x7;
  14. optional bool migration = 0x8;
  15. }
  16. message Delta {
  17. optional bytes base_version = 0x1;
  18. repeated Op ops = 0x2;
  19. optional ChangeInfo info = 0x4;
  20. }
  21. message Merge {
  22. optional bytes base_version = 0x1;
  23. optional bytes merge_version = 0x2;
  24. optional ChangeInfo info = 0x4;
  25. }
  26. message ChangeSet {
  27. optional Kind kind = 0x1;
  28. enum Kind {
  29. KIND_UNKNOWN = 0x0;
  30. DELTA = 0x2;
  31. MERGE = 0x3;
  32. }
  33. optional Delta delta = 0x2;
  34. optional Merge merge = 0x3;
  35. }
  36. message RevisionTaggedChangeSet {
  37. optional bytes revision = 0x1;
  38. optional ChangeSet change_set = 0x2;
  39. }
  40. message Diff {
  41. optional bytes from_revision = 0x1;
  42. repeated Op ops = 0x2;
  43. optional bytes to_revision = 0x3;
  44. }
  45. message ListDump {
  46. optional bytes latestRevision = 0x1;
  47. optional int32 length = 0x2;
  48. optional ListAttributes attributes = 0x3;
  49. optional ListChecksum checksum = 0x4;
  50. optional ListItems contents = 0x5;
  51. repeated Delta pendingDeltas = 0x7;
  52. }
  53. message ListChanges {
  54. optional bytes baseRevision = 0x1;
  55. repeated Delta deltas = 0x2;
  56. optional bool wantResultingRevisions = 0x3;
  57. optional bool wantSyncResult = 0x4;
  58. optional ListDump dump = 0x5;
  59. repeated int32 nonces = 0x6;
  60. }
  61. message SelectedListContent {
  62. optional bytes revision = 0x1;
  63. optional int32 length = 0x2;
  64. optional ListAttributes attributes = 0x3;
  65. optional ListChecksum checksum = 0x4;
  66. optional ListItems contents = 0x5;
  67. optional Diff diff = 0x6;
  68. optional Diff syncResult = 0x7;
  69. repeated bytes resultingRevisions = 0x8;
  70. optional bool multipleHeads = 0x9;
  71. optional bool upToDate = 0xa;
  72. repeated ClientResolveAction resolveAction = 0xc;
  73. repeated ClientIssue issues = 0xd;
  74. repeated int32 nonces = 0xe;
  75. optional string owner_username =0x10;
  76. }