Advertisement
Guest User

Untitled

a guest
Aug 30th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. package StockSubmitter;
  2.  
  3. enum FileFormats
  4. {
  5. ANY = 0x8000;
  6. JPEG = 0x8001;
  7. MOV = 0x8002;
  8. EPS = 0x8003;
  9. WAV = 0x8004;
  10. MP4 = 0x8005;
  11. ZIPPED = 0x8006;
  12. }
  13.  
  14. message Meta
  15. {
  16. required string json = 50;
  17. required string title = 51;
  18. required string descr = 52;
  19. repeated string stockCats = 53 ;
  20. repeated string keywords = 54;
  21. repeated string releases = 55;
  22. optional string ffmpegdata = 56; //output to stdout of the ffmpeg if it is MOV
  23. required FileFormats primFormat = 57;//should show primary format, for example EPS+JPEG - prim is EPS
  24. required uint32 jpegWidth = 58;
  25. required uint32 jpegHeight = 59;
  26. optional bool isSubmitted = 60;
  27. }
  28.  
  29. //response with values to upload single file (eps or jpeg or zip or whatever)
  30. message UploadOneFile
  31. {
  32. required Meta meta = 70;
  33. required string jpegPath = 71; //should be original jpeg, which maybe used to resize for vectorstock or so
  34. required string localPath= 72; //prepared file path. May be same as jpegPath, or zip or eps
  35. }
  36.  
  37. //request from client to server
  38. message RequestServer
  39. {
  40. oneof request {
  41. string uploadStockFileName = 1; //server should respond with uploadone valid field
  42. //todo: add more possible requests
  43. }
  44. }
  45.  
  46. //response from server to client
  47. message ResponseOfServer
  48. {
  49. oneof response{
  50. UploadOneFile uploadone = 100;
  51. //todo: add more responses
  52. }
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement