22 lines
333 B
Protocol Buffer
22 lines
333 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
import 'google/protobuf/empty.proto';
|
|
|
|
package library;
|
|
|
|
service Library {
|
|
rpc ListTracks(google.protobuf.Empty) returns (TrackList);
|
|
}
|
|
|
|
message TrackList {
|
|
repeated Track tracks = 1;
|
|
}
|
|
|
|
message Track {
|
|
string hash = 1;
|
|
string name = 2;
|
|
string artist_name = 3;
|
|
uint64 artist_id = 4;
|
|
uint64 duration = 5;
|
|
}
|