syntax = "proto3"; import "google/protobuf/wrappers.proto"; option java_package = "com.mediamanager.protocol.messages"; option java_outer_classname = "TrackMessages"; package mediamanager.messages; message Track{ int32 id = 1; int32 track_number = 2; string title = 3; int32 duration = 4; string filepath = 5; int32 fk_disc_id = 6; int32 fk_composer_id = 7; int32 fk_bitdepth_id = 8; int32 fk_bitrate_id = 9; int32 fk_samplingrate_id = 10; } message CreateTrackRequest { int32 track_number = 1; string title = 2; google.protobuf.Int32Value duration = 3; string filepath = 4; int32 fk_disc_id = 5; google.protobuf.Int32Value fk_composer_id = 6; google.protobuf.Int32Value fk_bitdepth_id = 7; google.protobuf.Int32Value fk_bitrate_id = 8; google.protobuf.Int32Value fk_samplingrate_id = 9; } message CreateTrackResponse { Track track = 1; } message GetTracksRequest { } message GetTracksResponse { repeated Track tracks = 1; } message GetTrackByIdRequest { int32 id = 1; } message GetTrackByIdResponse { Track track = 1; } message UpdateTrackRequest { int32 id = 1; google.protobuf.Int32Value track_number = 2; string title = 3; google.protobuf.Int32Value duration = 4; string filepath = 5; google.protobuf.Int32Value fk_disc_id = 6; google.protobuf.Int32Value fk_composer_id = 7; google.protobuf.Int32Value fk_bitdepth_id = 8; google.protobuf.Int32Value fk_bitrate_id = 9; google.protobuf.Int32Value fk_samplingrate_id = 10; } message UpdateTrackResponse { Track track = 1; } message DeleteTrackRequest { int32 id = 1; } message DeleteTrackResponse { bool success = 1; string message = 2; }