# playlist.proto

## PlaylistProto

| label | name | type | number |
| ----- | ---- | ---- | ------ |
| optional | id | string | 1 |
| optional | name | string | 2 |
| optional | description | string | 3 |
| optional | userId | string | 4 |
| optional | mood | string | 5 |
| optional | playbackTime | int32 | 6 |
| repeated | tracks | PlaylistTrackProto | 7 |
| optional | stat | PlaylistStatProto | 8 |
| repeated | thumbnails | PlaylistThumbnailProto | 9 |
| optional | thumbnailType | int32 | 10 |
| optional | publishedAt | int64 | 11 |
| optional | isEssential | bool | 12 |
| optional | createdAt | int64 | 13 |
| optional | updatedAt | int64 | 14 |
| optional | cachedAt | int64 | 15 |
| optional | isPublic | bool | 16 |
| optional | isDeleted | bool | 17 |
| optional | isUnlimited | bool | 18 |
| optional | isRanking | bool | 19 |


## MyPlaylistProto

| label | name | type | number |
| ----- | ---- | ---- | ------ |
| optional | id | string | 1 |
| repeated | tracks | PlaylistTrackProto | 2 |
| repeated | thumbnails | PlaylistThumbnailProto | 3 |
| optional | thumbnailType | int32 | 4 |
| optional | isUnlimited | bool | 10 |
| optional | publishedAt | int64 | 11 |
| optional | updatedAt | int64 | 12 |
| optional | isEssential | bool | 13 |
| optional | isPublic | bool | 14 |
| optional | active | bool | 15 |


## PlaylistTrackProto

| label | name | type | number |
| ----- | ---- | ---- | ------ |
| optional | id | string | 1 |
| optional | thumbnail | int32 | 2 |
| optional | arrow | string | 3 |


## PlaylistStatProto

| label | name | type | number |
| ----- | ---- | ---- | ------ |
| optional | favorited | int32 | 1 |
| optional | played | int64 | 2 |
| optional | tracks | int32 | 3 |


## PlaylistThumbnailProto

| label | name | type | number |
| ----- | ---- | ---- | ------ |
| optional | id | string | 1 |
| optional | version | int64 | 2 |
| optional | isDeleted | bool | 15 |


## CreatePlaylistProto

| label | name | type | number |
| ----- | ---- | ---- | ------ |
| optional | name | string | 1 |
| optional | description | string | 2 |
| optional | mood | string | 3 |
| repeated | tracks | PlaylistTrackProto | 4 |
| optional | isPublic | bool | 15 |


## OfficialPlaylisterPlaylistProto

| label | name | type | number |
| ----- | ---- | ---- | ------ |
| optional | id | string | 1 |
| optional | userId | string | 2 |
| optional | description | string | 3 |


