xian-ncc-da-message/protos/Device.proto
2023-06-09 14:47:04 +08:00

41 lines
732 B
Protocol Buffer
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

syntax = "proto3";
option java_package = "club.joylink.xiannccda.dto.protos";
option java_outer_classname = "DeviceProto";
message Device{
int32 lineId = 1;
int32 reportId = 2;
}
message DeviceDetail{
string deviceType = 1;
string deviceName = 2;
// int32 status = 3;
}
message Track{
Device device = 1;
DeviceDetail detail = 2;
//限速
float speedLimit = 3;
//限速类型
// 为1时CBTC限速
// 为2时联锁限速
// 为4时同时限速。
int32 limitType = 4;
}
message Platform{
Device device = 1;
DeviceDetail detail = 2;
//停站时间
int32 stopTime = 3;
}
message Switch{
Device device = 1;
DeviceDetail detail = 2;
//限速
float speedLimit = 3;
}