SHARE
TWEET

Untitled

a guest Aug 7th, 2017 125 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package tvguide;
  2.  
  3. option java_package = "com.acme.gwt";
  4. option java_outer_classname = "Entities";
  5.  
  6. message DateTime {
  7.   required int32 second = 1;
  8.   required int32 minute = 2;
  9.   required int32 hour = 3;
  10.   required int32 day = 4;
  11.   required int32 month = 5;
  12.   required int32 year = 6;
  13. }
  14.  
  15. message TvEpisode {
  16.   required int32 id = 1;
  17.   required int32 version = 2;
  18.   required string name = 3;
  19.   required int32 season = 4;
  20.   required int32 episodeNumber = 5;
  21.   repeated TvScheduledEpisode scheduledEpisodes = 6;
  22. }
  23.  
  24. message TvChannel {
  25.   required int32 id = 1;
  26.   required int32 version = 2;
  27.   required string name = 3;
  28.   required int32 channelNumber = 4;
  29. }
  30.  
  31. message TvAirTime {
  32.   required int32 id = 1;
  33.   required int32 version = 2;
  34.   required DateTime startDateTime = 3;
  35.   required int32 durationInSeconds = 4;
  36. }
  37.  
  38. message TvViewer {
  39.   required int32 id = 1;
  40.   required string name = 2;
  41.   required string email = 3;
  42.   required string salt = 4;
  43.   required string digest = 5;
  44. }
  45.  
  46. message TvShow {
  47.   required int32 id = 1;
  48.   required int32 version = 2;
  49.   required string name = 3;
  50.   required string description = 4;
  51.   repeated TvScheduledEpisode tvEpisode = 5;
  52. }
  53.  
  54. message TvScheduledEpisode {
  55.   required TvEpisode tvEpisode = 1;
  56.   required TvChannel tvChannel = 2;
  57.   required TvAirTime tvAirTime = 3;
  58. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top