uploadstreammsg.proto 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. // Copyright 2015 gRPC authors.
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. option java_multiple_files = true;
  16. option java_package = "io.grpc.adc.uploadmsg";
  17. option java_outer_classname = "UploadMsgProto";
  18. option objc_class_prefix = "HLW";
  19. package iv;
  20. // The Upload service definition.
  21. service UploadStream {
  22. // Sends a Upload
  23. rpc upload (stream UploadRequestStream) returns (stream UploadReplyStream) {}
  24. rpc queryctrl (stream queryReqStream) returns (stream queryReplyStream) {}
  25. }
  26. // The request message containing the user's name.
  27. message UploadRequestStream {
  28. // string name = 1;
  29. // int nres; //0 no message 1 have message
  30. int32 id = 1;
  31. int64 ntime = 2;
  32. string strVIN = 3;
  33. string strqueryMD5 = 4;
  34. string strctrlMD5 = 5;
  35. bytes xdata = 6;
  36. bool bimportant = 7; //if 1, is important.
  37. int32 kepptime = 8; //If important keep this data before query ms.
  38. float fFrameRate = 9;
  39. int64 nSendTime = 10;
  40. int64 nLatency = 11;
  41. }
  42. // The response message containing the greetings
  43. message UploadReplyStream {
  44. int32 nres = 1; //0 no message 1 have ctrl message
  45. bytes xdata = 2;
  46. int32 nreqid = 3;
  47. int64 nreqSendTime = 4; //id and SendTime used for calculate latency.
  48. float framerate = 5;
  49. int64 npausetime = 6; //upload message in server pause time, calculate latency need substract this value.
  50. // string message = 1;
  51. }
  52. message queryReqStream {
  53. string strvin = 1;
  54. string strqueryMD5 = 2;
  55. int64 ntime = 3;
  56. string strctrlMD5 = 4;
  57. bytes xdata = 5;
  58. bool bimportant = 6; //if 1, is important.
  59. int32 kepptime = 7; //If important keep this data before ctrl ms. if -1 must send.
  60. int32 ntype = 8; //0 only query 1 ctrl.
  61. float nSuggestFrameRate = 9;
  62. }
  63. message queryReplyStream {
  64. int32 nres = 1; //0 not online 1 online -1 querMD5 error -2 ctrlMD5 error
  65. int32 id = 2;
  66. int64 ntime = 3;
  67. bytes xdata = 4;
  68. int64 nculatency = 5;
  69. float ncuFrameRage = 6;
  70. }