Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package StockSubmitter;
- enum FileFormats
- {
- ANY = 0x8000;
- JPEG = 0x8001;
- MOV = 0x8002;
- EPS = 0x8003;
- WAV = 0x8004;
- MP4 = 0x8005;
- ZIPPED = 0x8006;
- }
- message Meta
- {
- required string json = 50;
- required string title = 51;
- required string descr = 52;
- repeated string stockCats = 53 ;
- repeated string keywords = 54;
- repeated string releases = 55;
- optional string ffmpegdata = 56; //output to stdout of the ffmpeg if it is MOV
- required FileFormats primFormat = 57;//should show primary format, for example EPS+JPEG - prim is EPS
- required uint32 jpegWidth = 58;
- required uint32 jpegHeight = 59;
- optional bool isSubmitted = 60;
- }
- //response with values to upload single file (eps or jpeg or zip or whatever)
- message UploadOneFile
- {
- required Meta meta = 70;
- required string jpegPath = 71; //should be original jpeg, which maybe used to resize for vectorstock or so
- required string localPath= 72; //prepared file path. May be same as jpegPath, or zip or eps
- }
- //request from client to server
- message RequestServer
- {
- oneof request {
- string uploadStockFileName = 1; //server should respond with uploadone valid field
- //todo: add more possible requests
- }
- }
- //response from server to client
- message ResponseOfServer
- {
- oneof response{
- UploadOneFile uploadone = 100;
- //todo: add more responses
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement