// 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. float fFrameRate = 9; int64 nSendTime = 10; int64 nLatency = 11; } // The response message containing the greetings message UploadReplyStream { int32 nres = 1; //0 no message 1 have ctrl message bytes xdata = 2; int32 nreqid = 3; int64 nreqSendTime = 4; //id and SendTime used for calculate latency. float framerate = 5; int64 npausetime = 6; //upload message in server pause time, calculate latency need substract this value. // string message = 1; } message queryReqStream { string strvin = 1; string strqueryMD5 = 2; int64 ntime = 3; string strctrlMD5 = 4; bytes xdata = 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. float nSuggestFrameRate = 9; } message queryReplyStream { int32 nres = 1; //0 not online 1 online -1 querMD5 error -2 ctrlMD5 error int32 id = 2; int64 ntime = 3; bytes xdata = 4; int64 nculatency = 5; float ncuFrameRage = 6; }