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

50 lines
964 B
Protocol Buffer

syntax = "proto3";
package alert;
//模型的可变的状态数据
//import "LineNetTrainOffsetDiagram.proto";
option java_package = "club.joylink.xiannccda.dto.protos";
option java_outer_classname = "NccAlertInfoMessageProto";
message NccAlertInfoMessage {
message Message {
string id = 1;
string level = 2;
string alert_time = 3;
int32 alert_tip_id = 4;
int32 line_id = 5;
string alert_object = 6;
AlertType alert_type = 7;
string locator_device_id = 8;
bool mock = 9;
}
enum AlertType {
UNKNOWN = 0;
//蓝显
BLUE_DISPLAY = 1;
//列车延误2分钟
TRAIN_DELAY_2 = 2;
//列车延误10分钟
TRAIN_DELAY_10 = 3;
//整侧站台门无关闭锁紧信号
PLATFORM_DOOR_WITHOUT_LOCKED_SIGNAL = 4;
//整侧站台门无法打开
PLATFORM_DOOR_CANNOT_OPEN = 5;
//整侧站台门无法关闭
PLATFORM_DOOR_CANNOT_CLOSE = 6;
}
repeated Message messages = 1;
}