xian-ncc-da-message/protos/trans.proto

51 lines
1.2 KiB
Protocol Buffer
Raw Normal View History

2023-06-12 16:07:28 +08:00
syntax = "proto3";
//向前端推送的数据定义
package trans;
import "device_status.proto";
option java_package = "club.joylink.xiannccda.dto.protos";
option java_outer_classname = "TransProto";
//线路集中站设备状态数据
message RtuDevicesStorage{
//线路号
int32 lineId = 1;
//集中站号
int32 rtuId = 2;
//true-集中站所有设备的状态;false-增量状态
bool all = 3;
//信号机
repeated state.Signal signal = 4;
//道岔
repeated state.Switch switch = 5;
//站台
repeated state.Platform platform = 6;
//轨道
repeated state.Track track =7;
//设备集中站
repeated state.Rtu rtu = 8;
//车站
repeated state.Station station = 9;
//方向设备
repeated state.Entry entry = 10;
//供电区段
repeated state.Scada scada = 11;
//防淹门
repeated state.WaterProofDoor waterProofDoor = 12;
//工作区
repeated state.WorkArea workArea = 13;
//区域自动驾驶
repeated state.Gama gama = 14;
}
//线路所有集中站设备状态
message LineDevicesStorage{
//线路号
int32 lineId = 1;
//true-线路所有设备的状态;false-增量状态
bool all = 2;
//线路中集中站设备状态
repeated RtuDevicesStorage storage = 3;
}