12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- // Copyright 2015 gRPC authors.
- //
- // Licensed under the Apache License, Version 2.0 (the "License");
- // you may not use this file except in compliance with the License.
- // You may obtain a copy of the License at
- //
- // http://www.apache.org/licenses/LICENSE-2.0
- //
- // Unless required by applicable law or agreed to in writing, software
- // distributed under the License is distributed on an "AS IS" BASIS,
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- // See the License for the specific language governing permissions and
- // limitations under the License.
- syntax = "proto3";
- option java_multiple_files = true;
- option java_package = "io.grpc.adc.uploadmsg";
- option java_outer_classname = "UploadMsgProto";
- option objc_class_prefix = "HLW";
- package iv;
- // The Upload service definition.
- service UploadStream {
- // Sends a Upload
- rpc upload (stream UploadRequestStream) returns (stream UploadReplyStream) {}
- rpc queryctrl (stream queryReqStream) returns (stream queryReplyStream) {}
-
- }
- // The request message containing the user's name.
- message UploadRequestStream {
- // string name = 1;
- // int nres; //0 no message 1 have message
- int32 id = 1;
- int64 ntime = 2;
- string strVIN = 3;
- string strqueryMD5 = 4;
- string strctrlMD5 = 5;
- bytes xdata = 6;
- bool bimportant = 7; //if 1, is important.
- int32 kepptime = 8; //If important keep this data before query ms.
- }
- // The response message containing the greetings
- message UploadReplyStream {
- int32 nres = 1; //0 no message 1 have ctrl message
- bytes xdata = 2;
- // string message = 1;
- }
- message queryReqStream {
- string strvin = 1;
- string strqueryMD5 = 2;
- int64 ntime = 3;
- string strctrlMD5 = 4;
- bytes data = 5;
- bool bimportant = 6; //if 1, is important.
- int32 kepptime = 7; //If important keep this data before ctrl ms. if -1 must send.
- int32 ntype = 8; //0 only query 1 ctrl.
- }
- message queryReplyStream {
- int32 nres = 1; //0 not online 1 online -1 querMD5 error -2 ctrlMD5 error
- int32 id = 2;
- int64 ntime = 3;
- bytes data = 4;
- }
|