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

46 lines
859 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-30 09:25:28 +08:00
graphicData.KilometerSystem switchKilometerSystem = 3;
int64 switchConvertKilometer = 4;
// 关联道岔的公里标
repeated graphicData.KilometerSystem kilometerSystem = 5;
2023-06-27 10:48:04 +08:00
2023-06-29 16:53:48 +08:00
// 转换后的公里标数字
2023-06-30 09:25:28 +08:00
repeated int64 convertKilometer = 6;
2023-06-27 10:48:04 +08:00
}