26.protobuf 数组输入

mac2024-04-11  35

syntax = "proto3"; package rpc_package; // define a service service AirRecognitionService { // define the interface and data type rpc SVMAirRecognition(MLAirRequest) returns (MLAirReply) {} rpc CNNAirRecognition(DLAirRequest) returns (DLAirReply) {} } // define the data type of request message MLAirRequest { int32 fs_rate=1; repeated float sig=2; } // define the data type of response message MLAirReply { string mlmessage = 1; } // define the data type of request message DLAirRequest { int32 fs_rate=1; repeated float sig=2; } // define the data type of response message DLAirReply { string dlmessage = 1; }

protobuf 目前只支持一维数组,二维、多维数组暂不支持!最TM恶心!

最新回复(0)