syntax = "proto3"; package hbusc; message ProcInfo { string procID = 1; string name = 2; string label = 3; } message RegisterInfo { ProcInfo procInfo = 1; repeated string channel = 2; repeated string pubTopic = 3; repeated string subTopic = 4; } message RegisterInfoReply { ProcInfo procInfo = 1; //进程信息 map channelKey = 2; //预留 int32 heartbeatKey = 3; //心跳信息发送到的目的key int32 updateTopicKey = 4; //更新感兴趣主题的key,在其它进程中被绑定 int32 replyKey = 5; //申请到的本进程作为server用key int32 queryTopicKey = 6; } message TopicInfo { string topic = 1; string topicType = 2; } message TopicInfoReply { TopicInfo info = 1; int32 key = 2; } message HeartBeatInfo { string healthLevel = 1; // 健康等级 int32 fps = 2; // 处理帧率(dec解码帧率、sdk处理帧率) string warnInfo = 3; // 报警信息 string errorInfo = 4; // 错误信息 bytes otherInfo = 5; // 其他特有信息,如有需要就用这个 int32 otherInfoSize = 6; // 其他特有信息长度 ProcInfo procInfo = 7; //进程信息 } message MsgInfo { ProcInfo srcProc = 1; // 源进程基本信息 string msgType = 2; // 数据类型,可为请求、发布、订阅、应答等 string topic= 3; // 服务主题 int32 shmKey = 4; // 请求应答数据使用的key,其他数据不用,待确认 bytes body = 5; // 数据内容,二进制编码后的,需要确定编码类型并解码 int32 bodyLen = 6; // 数据长度 }