forked from google/rct-automation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
playlist.proto
41 lines (32 loc) · 1.07 KB
/
playlist.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import "playableitem.proto";
package automation;
message Playlist {
// For update requests: the playlist to update. In data responses:
// the item this describes.
optional int64 PlaylistID = 1;
// The name of the playlist.
optional string name = 2;
// The weight of the playlist for the selection of mainshow. We randomly
// select a playlist (when one is needed) using a function that guarantees
// each item will be picked with probability {weight}/{sum of all weights}
optional int64 weight = 3;
repeated int64 PlayableItemID = 4;
repeated PlayableItem items = 5;
optional int64 length = 6;
}
// a subset of Playlist (ensure field numbers match!) that can be
// sent on the wire as a merge request.
message PlaylistMergeRequest {
required int64 PlaylistID = 1;
optional string name = 2;
optional int64 weight = 3;
repeated int64 PlayableItemID = 4;
}
message Playlists {
repeated Playlist item = 1;
}
// We 'lock' certain playlists to require the existence of a playlist
// with their name.
message PlaylistLock {
optional string name = 1;
}