playlist4meta.proto 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. message ListChecksum {
  2. required int32 version = 1;
  3. optional bytes sha1 = 4;
  4. }
  5. message DownloadFormat {
  6. enum Codec {
  7. CODEC_UNKNOWN = 0;
  8. OGG_VORBIS = 1;
  9. FLAC = 2;
  10. MPEG_1_LAYER_3 = 3;
  11. }
  12. required Codec codec = 1;
  13. }
  14. enum ListAttributeKind {
  15. LIST_UNKNOWN = 0;
  16. LIST_NAME = 1;
  17. LIST_DESCRIPTION = 2;
  18. LIST_PICTURE = 3;
  19. LIST_COLLABORATIVE = 4;
  20. LIST_PL3_VERSION = 5;
  21. LIST_DELETED_BY_OWNER = 6;
  22. LIST_RESTRICTED_COLLABORATIVE = 7;
  23. }
  24. message ListAttributes {
  25. optional string name = 1;
  26. optional string description = 2;
  27. optional bytes picture = 3;
  28. optional bool collaborative = 4;
  29. optional string pl3_version = 5;
  30. optional bool deleted_by_owner = 6;
  31. optional bool restricted_collaborative = 7;
  32. }
  33. enum ItemAttributeKind {
  34. ITEM_UNKNOWN = 0;
  35. ITEM_ADDED_BY = 1;
  36. ITEM_TIMESTAMP = 2;
  37. ITEM_MESSAGE = 3;
  38. ITEM_SEEN = 4;
  39. ITEM_DOWNLOAD_COUNT = 5;
  40. ITEM_DOWNLOAD_FORMAT = 6;
  41. ITEM_SEVENDIGITAL_ID = 7;
  42. ITEM_SEVENDIGITAL_LEFT = 8;
  43. ITEM_SEEN_AT = 9;
  44. }
  45. message ItemAttributes {
  46. optional string added_by = 1;
  47. optional string message = 3;
  48. optional bool seen = 4;
  49. optional DownloadFormat download_format = 6;
  50. optional string sevendigital_id = 7;
  51. }
  52. message StringAttribute {
  53. required string key = 1;
  54. required string value = 2;
  55. }
  56. message StringAttributes {
  57. repeated StringAttribute attribute = 1;
  58. }