1syntax = "proto3";
2
3option java_outer_classname = "MediaPlayerProto";
4
5package pandora;
6
7import "google/protobuf/empty.proto";
8
9
10service MediaPlayer {
11  rpc Play(google.protobuf.Empty) returns (google.protobuf.Empty);
12  rpc Stop(google.protobuf.Empty) returns (google.protobuf.Empty);
13  rpc Pause(google.protobuf.Empty) returns (google.protobuf.Empty);
14  rpc Rewind(google.protobuf.Empty) returns (google.protobuf.Empty);
15  rpc FastForward(google.protobuf.Empty) returns (google.protobuf.Empty);
16  rpc Forward(google.protobuf.Empty) returns (google.protobuf.Empty);
17  rpc Backward(google.protobuf.Empty) returns (google.protobuf.Empty);
18  rpc SetLargeMetadata(google.protobuf.Empty) returns (google.protobuf.Empty);
19  rpc UpdateQueue(google.protobuf.Empty) returns (google.protobuf.Empty);
20  rpc GetShuffleMode(google.protobuf.Empty) returns (GetShuffleModeResponse);
21  rpc SetShuffleMode(SetShuffleModeRequest) returns (google.protobuf.Empty);
22  rpc StartTestPlayback(google.protobuf.Empty) returns (google.protobuf.Empty);
23  rpc StopTestPlayback(google.protobuf.Empty) returns (google.protobuf.Empty);
24}
25
26enum ShuffleMode {
27  NONE = 0;
28  ALL = 1;
29  GROUP = 2;
30}
31
32message SetShuffleModeRequest {
33  ShuffleMode mode = 1;
34}
35
36message GetShuffleModeResponse {
37  ShuffleMode mode = 1;
38}
39