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

42 lines
749 B
Protocol Buffer
Raw Normal View History

2023-06-27 10:48:04 +08:00
syntax = "proto3";
package state;
import "stationLayoutGraphics.proto";
option java_package = "club.joylink.xiannccda.dto.protos";
option java_outer_classname = "DeviceInfoProto";
// 区段
message Section {
2023-06-27 11:24:03 +08:00
string id = 1;
2023-06-27 10:48:04 +08:00
// 区段编码
2023-06-27 11:24:03 +08:00
string code = 2;
2023-06-27 10:48:04 +08:00
// 区段类型
2023-06-27 11:24:03 +08:00
graphicData.Section.SectionType type = 3;
2023-06-27 10:48:04 +08:00
2023-06-27 14:56:19 +08:00
// 公里标
2023-06-29 16:53:48 +08:00
repeated graphicData.KilometerSystem kilometerSystem = 4;
2023-06-27 10:48:04 +08:00
// 关联区段
2023-06-27 14:56:19 +08:00
repeated Section children = 5;
2023-06-29 16:53:48 +08:00
// 转换后的公里标数字
repeated int64 convertKilometer = 6;
2023-06-27 10:48:04 +08:00
}
// 道岔
message Switch {
2023-06-27 11:24:03 +08:00
string id = 1;
string code = 2;
2023-06-27 10:48:04 +08:00
2023-06-29 16:53:48 +08:00
// 公里标
repeated graphicData.KilometerSystem kilometerSystem = 3;
2023-06-27 10:48:04 +08:00
2023-06-29 16:53:48 +08:00
// 转换后的公里标数字
repeated int64 convertKilometer = 4;
2023-06-27 10:48:04 +08:00
}