uploadstreammsg.proto 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. }
  39. // The response message containing the greetings
  40. message UploadReplyStream {
  41. int32 nres = 1; //0 no message 1 have ctrl message
  42. bytes xdata = 2;
  43. // string message = 1;
  44. }
  45. message queryReqStream {
  46. string strvin = 1;
  47. string strqueryMD5 = 2;
  48. int64 ntime = 3;
  49. string strctrlMD5 = 4;
  50. bytes data = 5;
  51. bool bimportant = 6; //if 1, is important.
  52. int32 kepptime = 7; //If important keep this data before ctrl ms. if -1 must send.
  53. int32 ntype = 8; //0 only query 1 ctrl.
  54. }
  55. message queryReplyStream {
  56. int32 nres = 1; //0 not online 1 online -1 querMD5 error -2 ctrlMD5 error
  57. int32 id = 2;
  58. int64 ntime = 3;
  59. bytes data = 4;
  60. }