From 172d3b977b330531438590200fb3dcc9cf3282eb Mon Sep 17 00:00:00 2001 From: tiger_zhou Date: Fri, 22 Dec 2023 10:05:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=93=9D=E6=98=BE=E5=91=8A=E8=AD=A6=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ats/warn/AllLineBlueAlertListener.java | 1 + .../xiannccda/ats/warn/BlueAlertListener.java | 1 + .../ats/warn/BuleDisplayMonitoringTask.java | 97 +- .../dto/protos/LayoutGraphicsProto.java | 4778 ++++++++++++++++- .../mock/message/occ/MockOccServer.java | 61 +- .../device/DeviceStatusCheckTest.java | 37 + 6 files changed, 4790 insertions(+), 185 deletions(-) diff --git a/src/main/java/club/joylink/xiannccda/ats/warn/AllLineBlueAlertListener.java b/src/main/java/club/joylink/xiannccda/ats/warn/AllLineBlueAlertListener.java index 2218340..c088507 100644 --- a/src/main/java/club/joylink/xiannccda/ats/warn/AllLineBlueAlertListener.java +++ b/src/main/java/club/joylink/xiannccda/ats/warn/AllLineBlueAlertListener.java @@ -18,6 +18,7 @@ import org.springframework.stereotype.Component; //@Component @Slf4j +@Deprecated public class AllLineBlueAlertListener implements AlertSourceEventListener { @Autowired diff --git a/src/main/java/club/joylink/xiannccda/ats/warn/BlueAlertListener.java b/src/main/java/club/joylink/xiannccda/ats/warn/BlueAlertListener.java index ce7a170..5454199 100644 --- a/src/main/java/club/joylink/xiannccda/ats/warn/BlueAlertListener.java +++ b/src/main/java/club/joylink/xiannccda/ats/warn/BlueAlertListener.java @@ -33,6 +33,7 @@ import org.springframework.stereotype.Component; //@Component @Slf4j +@Deprecated public class BlueAlertListener implements AlertSourceEventListener { diff --git a/src/main/java/club/joylink/xiannccda/ats/warn/BuleDisplayMonitoringTask.java b/src/main/java/club/joylink/xiannccda/ats/warn/BuleDisplayMonitoringTask.java index 36d93e8..fcf7313 100644 --- a/src/main/java/club/joylink/xiannccda/ats/warn/BuleDisplayMonitoringTask.java +++ b/src/main/java/club/joylink/xiannccda/ats/warn/BuleDisplayMonitoringTask.java @@ -11,6 +11,7 @@ import club.joylink.xiannccda.ats.message.collect.datasource.DeviceStatusData; import club.joylink.xiannccda.dto.protos.AlertConstProto.AlertType; import club.joylink.xiannccda.dto.protos.DeviceStatusProto; import club.joylink.xiannccda.dto.protos.DeviceStatusProto.Rtu; +import club.joylink.xiannccda.dto.protos.LayoutGraphicsProto; import club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Station; import club.joylink.xiannccda.service.AlertInfoService; import club.joylink.xiannccda.service.config.DeviceGuardConfigService; @@ -19,19 +20,20 @@ import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; import com.google.common.base.Strings; import com.google.common.collect.Lists; import com.google.protobuf.GeneratedMessageV3; -import com.google.protobuf.GeneratedMessageV3.Builder; +import java.time.LocalDateTime; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.List; import java.util.Map; -import java.util.Map.Entry; +import java.util.Objects; import java.util.Optional; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.function.Function; import java.util.stream.Collectors; import java.util.stream.Stream; +import lombok.Getter; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springframework.stereotype.Component; @@ -40,17 +42,15 @@ import org.springframework.stereotype.Component; @Slf4j public class BuleDisplayMonitoringTask implements AlertMonitoringTask { - private final DeviceGuardConfigService configService; private final AlertInfoService alertInfoService; - public BuleDisplayMonitoringTask(DeviceGuardConfigService configService, AlertInfoService alertInfoService) { - this.configService = configService; + public BuleDisplayMonitoringTask(AlertInfoService alertInfoService) { + this.alertInfoService = alertInfoService; } private final AlertManager alertManager = AlertManager.getDefault(); - private final static Map> CONTROL_STATION_MAPER = new ConcurrentHashMap<>(); @Override public String getName() { @@ -71,17 +71,17 @@ public class BuleDisplayMonitoringTask implements AlertMonitoringTask { return builderMap; } - private List findRtuBuild(Map builderMap) { - List collectRtuList = Lists.newArrayList(); - - for (Builder value : builderMap.values()) { - if (value instanceof DeviceStatusProto.Rtu.Builder rtu) { - Station station = findAllStation(rtu.getLineId(), rtu.getId()); - Optional alertInfoMostOptional = this.alertInfoService.findAreaDevice(AlertType.BLUE_DISPLAY, AlertDeviceType.DEVICE_TYPE_RTU, station.getCommon().getId(), rtu.getLineId()); - collectRtuList.add(new RtuWarnVO(rtu, station, alertInfoMostOptional)); + private List findRtuBuild(Integer lineId, Map builderMap) { + List collectRtuList2 = Lists.newArrayList(); + List allRtuArea = this.alertInfoService.findDevice2(AlertType.BLUE_DISPLAY, AlertDeviceType.DEVICE_TYPE_RTU, lineId); + for (AreaConfigVO areaConfigVO : allRtuArea) { + for (Integer data : areaConfigVO.getDatas()) { + LayoutGraphicsProto.Station station = LineGraphicDataRepository.getDeviceByCode(lineId, data.toString(), LayoutGraphicsProto.Station.class); + DeviceStatusProto.Rtu.Builder rtuBuild = (Rtu.Builder) builderMap.get(station.getCode()); + collectRtuList2.add(new RtuWarnVO(rtuBuild, station, areaConfigVO)); } } - return collectRtuList; + return collectRtuList2; } @Override @@ -90,66 +90,51 @@ public class BuleDisplayMonitoringTask implements AlertMonitoringTask { for (String lineIdStr : allLineSet) { Integer lineId = Integer.parseInt(lineIdStr); Map builderMap = this.findRtuDeviceSource(lineIdStr); - List collectRtuList = this.findRtuBuild(builderMap); - List allRtuArea = this.alertInfoService.findDevice2(AlertType.BLUE_DISPLAY, AlertDeviceType.DEVICE_TYPE_RTU, lineId); - Map> rtuVOMapList = collectRtuList.stream().collect(Collectors.groupingBy(d -> d.rtu.getRtuId())); - if (rtuVOMapList.keySet().size() != allRtuArea.size()) { - for (Entry> listEntry : rtuVOMapList.entrySet()) { - Optional rwVO = listEntry.getValue().stream().filter(d -> d.rtu.getIpRtuStusDown()).findAny(); + List collectRtuList = this.findRtuBuild(lineId, builderMap); + Map> rtuVOMapList = collectRtuList.stream().collect(Collectors.groupingBy(d -> d.areaConfigVO.getId())); + int interLockCount = rtuVOMapList.keySet().size(); + List allShutdownList = rtuVOMapList.values().stream().map(Collection::stream).map(ls -> ls.anyMatch(r -> Objects.nonNull(r.rtu) && r.rtu.getIpRtuStusDown())).toList(); + if (allShutdownList.size() == interLockCount && allShutdownList.stream().allMatch(d -> d)) { + if (alertManager.putAlterDevice(lineId, ALL_BULE_DISPLAY_NAME, "All")) { - boolean allOnLine = listEntry.getValue().stream().noneMatch(d -> d.rtu.getIpRtuStusDown()); + NccAlertInfo alertInfo = this.alertInfoService.createAlert2(null, AlertType.BLUE_DISPLAY, lineId, LocalDateTime.now(), "全线蓝线", null, + AlertDeviceType.DEVICE_TYPE_RTU, false); + alertManager.emit(alertInfo); + } + } else { + for (List rwvVOist : rtuVOMapList.values()) { + Optional rwVO = rwvVOist.stream().filter(d -> Objects.nonNull(d.rtu) && d.rtu.getIpRtuStusDown()).findAny(); if (rwVO.isPresent()) { RtuWarnVO rtuVO = rwVO.get(); - if (alertManager.putAlterDevice(lineId, this.getName(), String.valueOf(rtuVO.rtu.getRtuId()))) { - String alertInfoMostName = rtuVO.areaConfigVO.map(AreaConfigVO::getAreaName).orElse(String.format("%s 集中站中断连接 ", rtuVO.station.getName())); - NccAlertInfo alertInfo = this.alertInfoService.createAlert2(rtuVO.areaConfigVO, AlertType.BLUE_DISPLAY, rtuVO.rtu, alertInfoMostName, String.valueOf(rtuVO.station.getCommon().getId()), - AlertDeviceType.DEVICE_TYPE_RTU, - false); + if (alertManager.putAlterDevice(lineId, this.getName(), rtuVO.areaConfigVO.getAreaName())) { + String alertInfoMostName = rtuVO.areaConfigVO.getAreaName(); + NccAlertInfo alertInfo = this.alertInfoService.createAlert2(rtuVO.areaConfigVO.getId(), AlertType.BLUE_DISPLAY, rtuVO.rtu, alertInfoMostName, + rtuVO.station.getCommon().getId(), + AlertDeviceType.DEVICE_TYPE_RTU, false); alertManager.emit(alertInfo); } - } else if (allOnLine) { - DeviceStatusProto.Rtu.Builder rtu = listEntry.getValue().get(0).rtu; - alertManager.removeAlterDevice(rtu.getLineId(), this.getName(), String.valueOf(rtu.getRtuId())); - alertManager.removeAlterDevice(rtu.getLineId(), ALL_BULE_DISPLAY_NAME, "All"); + } else { + alertManager.removeAlterDevice(lineId, this.getName(), rwvVOist.get(0).areaConfigVO.getAreaName()); + alertManager.removeAlterDevice(lineId, ALL_BULE_DISPLAY_NAME, "All"); } } - } else if (alertManager.putAlterDevice(lineId, ALL_BULE_DISPLAY_NAME, "All")) { - NccAlertInfo alertInfo = this.alertInfoService.createAlert2(Optional.empty(), AlertType.BLUE_DISPLAY, collectRtuList.get(0).rtu, "全线蓝线", null, - AlertDeviceType.DEVICE_TYPE_RTU, - false); - alertManager.emit(alertInfo); } - } } - private static synchronized Station findAllStation(int lineId, String rtuId) { - if (CollectionUtils.isEmpty(CONTROL_STATION_MAPER)) { - Stream stream = LineGraphicDataRepository.getDevices(lineId, Station.class); - Collection stationList = stream.filter(Station::getConcentrationStations) - .collect(Collectors.toMap(d -> d.getCommon().getId(), Function.identity(), (o1, o2) -> o2)).values(); - CONTROL_STATION_MAPER.put(lineId, new ArrayList<>(stationList)); - } - List stationList = CONTROL_STATION_MAPER.get(lineId); - if (CollectionUtils.isEmpty(stationList)) { - return null; - } - String rtuName = Strings.padStart(rtuId, 2, '0'); - Optional optionalStation = stationList.stream().filter(d -> StringUtils.equalsIgnoreCase(d.getCode(), rtuName)).findAny(); - return optionalStation.orElse(null); - } - - private static class RtuWarnVO { + @Getter + public static class RtuWarnVO { DeviceStatusProto.Rtu.Builder rtu; Station station; - Optional areaConfigVO; + AreaConfigVO areaConfigVO; - public RtuWarnVO(Rtu.Builder rtu, Station station, Optional areaConfigVO) { + public RtuWarnVO(Rtu.Builder rtu, Station station, AreaConfigVO areaConfigVO) { this.rtu = rtu; this.station = station; this.areaConfigVO = areaConfigVO; } } + } diff --git a/src/main/java/club/joylink/xiannccda/dto/protos/LayoutGraphicsProto.java b/src/main/java/club/joylink/xiannccda/dto/protos/LayoutGraphicsProto.java index 70a9b37..8e9f176 100644 --- a/src/main/java/club/joylink/xiannccda/dto/protos/LayoutGraphicsProto.java +++ b/src/main/java/club/joylink/xiannccda/dto/protos/LayoutGraphicsProto.java @@ -464,6 +464,50 @@ public final class LayoutGraphicsProto { */ club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.LogicSectionOrBuilder getLogicSectionsOrBuilder( int index); + + /** + *
+     * 集中区分割线
+     * 
+ * + * repeated .graphicData.ConcentrationDividingLine concentrationDividingLines = 20; + */ + java.util.List + getConcentrationDividingLinesList(); + /** + *
+     * 集中区分割线
+     * 
+ * + * repeated .graphicData.ConcentrationDividingLine concentrationDividingLines = 20; + */ + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine getConcentrationDividingLines(int index); + /** + *
+     * 集中区分割线
+     * 
+ * + * repeated .graphicData.ConcentrationDividingLine concentrationDividingLines = 20; + */ + int getConcentrationDividingLinesCount(); + /** + *
+     * 集中区分割线
+     * 
+ * + * repeated .graphicData.ConcentrationDividingLine concentrationDividingLines = 20; + */ + java.util.List + getConcentrationDividingLinesOrBuilderList(); + /** + *
+     * 集中区分割线
+     * 
+ * + * repeated .graphicData.ConcentrationDividingLine concentrationDividingLines = 20; + */ + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLineOrBuilder getConcentrationDividingLinesOrBuilder( + int index); } /** * Protobuf type {@code graphicData.RtssGraphicStorage} @@ -496,6 +540,7 @@ public final class LayoutGraphicsProto { axleCountings_ = java.util.Collections.emptyList(); separators_ = java.util.Collections.emptyList(); logicSections_ = java.util.Collections.emptyList(); + concentrationDividingLines_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -1282,6 +1327,67 @@ public final class LayoutGraphicsProto { return logicSections_.get(index); } + public static final int CONCENTRATIONDIVIDINGLINES_FIELD_NUMBER = 20; + @SuppressWarnings("serial") + private java.util.List concentrationDividingLines_; + /** + *
+     * 集中区分割线
+     * 
+ * + * repeated .graphicData.ConcentrationDividingLine concentrationDividingLines = 20; + */ + @java.lang.Override + public java.util.List getConcentrationDividingLinesList() { + return concentrationDividingLines_; + } + /** + *
+     * 集中区分割线
+     * 
+ * + * repeated .graphicData.ConcentrationDividingLine concentrationDividingLines = 20; + */ + @java.lang.Override + public java.util.List + getConcentrationDividingLinesOrBuilderList() { + return concentrationDividingLines_; + } + /** + *
+     * 集中区分割线
+     * 
+ * + * repeated .graphicData.ConcentrationDividingLine concentrationDividingLines = 20; + */ + @java.lang.Override + public int getConcentrationDividingLinesCount() { + return concentrationDividingLines_.size(); + } + /** + *
+     * 集中区分割线
+     * 
+ * + * repeated .graphicData.ConcentrationDividingLine concentrationDividingLines = 20; + */ + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine getConcentrationDividingLines(int index) { + return concentrationDividingLines_.get(index); + } + /** + *
+     * 集中区分割线
+     * 
+ * + * repeated .graphicData.ConcentrationDividingLine concentrationDividingLines = 20; + */ + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLineOrBuilder getConcentrationDividingLinesOrBuilder( + int index) { + return concentrationDividingLines_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -1353,6 +1459,9 @@ public final class LayoutGraphicsProto { for (int i = 0; i < logicSections_.size(); i++) { output.writeMessage(19, logicSections_.get(i)); } + for (int i = 0; i < concentrationDividingLines_.size(); i++) { + output.writeMessage(20, concentrationDividingLines_.get(i)); + } getUnknownFields().writeTo(output); } @@ -1438,6 +1547,10 @@ public final class LayoutGraphicsProto { size += com.google.protobuf.CodedOutputStream .computeMessageSize(19, logicSections_.get(i)); } + for (int i = 0; i < concentrationDividingLines_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(20, concentrationDividingLines_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1494,6 +1607,8 @@ public final class LayoutGraphicsProto { .equals(other.getSeparatorsList())) return false; if (!getLogicSectionsList() .equals(other.getLogicSectionsList())) return false; + if (!getConcentrationDividingLinesList() + .equals(other.getConcentrationDividingLinesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1581,6 +1696,10 @@ public final class LayoutGraphicsProto { hash = (37 * hash) + LOGICSECTIONS_FIELD_NUMBER; hash = (53 * hash) + getLogicSectionsList().hashCode(); } + if (getConcentrationDividingLinesCount() > 0) { + hash = (37 * hash) + CONCENTRATIONDIVIDINGLINES_FIELD_NUMBER; + hash = (53 * hash) + getConcentrationDividingLinesList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1843,6 +1962,13 @@ public final class LayoutGraphicsProto { logicSectionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00040000); + if (concentrationDividingLinesBuilder_ == null) { + concentrationDividingLines_ = java.util.Collections.emptyList(); + } else { + concentrationDividingLines_ = null; + concentrationDividingLinesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00080000); return this; } @@ -2038,6 +2164,15 @@ public final class LayoutGraphicsProto { } else { result.logicSections_ = logicSectionsBuilder_.build(); } + if (concentrationDividingLinesBuilder_ == null) { + if (((bitField0_ & 0x00080000) != 0)) { + concentrationDividingLines_ = java.util.Collections.unmodifiableList(concentrationDividingLines_); + bitField0_ = (bitField0_ & ~0x00080000); + } + result.concentrationDividingLines_ = concentrationDividingLines_; + } else { + result.concentrationDividingLines_ = concentrationDividingLinesBuilder_.build(); + } } private void buildPartial0(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RtssGraphicStorage result) { @@ -2532,6 +2667,32 @@ public final class LayoutGraphicsProto { } } } + if (concentrationDividingLinesBuilder_ == null) { + if (!other.concentrationDividingLines_.isEmpty()) { + if (concentrationDividingLines_.isEmpty()) { + concentrationDividingLines_ = other.concentrationDividingLines_; + bitField0_ = (bitField0_ & ~0x00080000); + } else { + ensureConcentrationDividingLinesIsMutable(); + concentrationDividingLines_.addAll(other.concentrationDividingLines_); + } + onChanged(); + } + } else { + if (!other.concentrationDividingLines_.isEmpty()) { + if (concentrationDividingLinesBuilder_.isEmpty()) { + concentrationDividingLinesBuilder_.dispose(); + concentrationDividingLinesBuilder_ = null; + concentrationDividingLines_ = other.concentrationDividingLines_; + bitField0_ = (bitField0_ & ~0x00080000); + concentrationDividingLinesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConcentrationDividingLinesFieldBuilder() : null; + } else { + concentrationDividingLinesBuilder_.addAllMessages(other.concentrationDividingLines_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2799,6 +2960,19 @@ public final class LayoutGraphicsProto { } break; } // case 154 + case 162: { + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine m = + input.readMessage( + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine.parser(), + extensionRegistry); + if (concentrationDividingLinesBuilder_ == null) { + ensureConcentrationDividingLinesIsMutable(); + concentrationDividingLines_.add(m); + } else { + concentrationDividingLinesBuilder_.addMessage(m); + } + break; + } // case 162 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -7254,6 +7428,318 @@ public final class LayoutGraphicsProto { } return logicSectionsBuilder_; } + + private java.util.List concentrationDividingLines_ = + java.util.Collections.emptyList(); + private void ensureConcentrationDividingLinesIsMutable() { + if (!((bitField0_ & 0x00080000) != 0)) { + concentrationDividingLines_ = new java.util.ArrayList(concentrationDividingLines_); + bitField0_ |= 0x00080000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine.Builder, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLineOrBuilder> concentrationDividingLinesBuilder_; + + /** + *
+       * 集中区分割线
+       * 
+ * + * repeated .graphicData.ConcentrationDividingLine concentrationDividingLines = 20; + */ + public java.util.List getConcentrationDividingLinesList() { + if (concentrationDividingLinesBuilder_ == null) { + return java.util.Collections.unmodifiableList(concentrationDividingLines_); + } else { + return concentrationDividingLinesBuilder_.getMessageList(); + } + } + /** + *
+       * 集中区分割线
+       * 
+ * + * repeated .graphicData.ConcentrationDividingLine concentrationDividingLines = 20; + */ + public int getConcentrationDividingLinesCount() { + if (concentrationDividingLinesBuilder_ == null) { + return concentrationDividingLines_.size(); + } else { + return concentrationDividingLinesBuilder_.getCount(); + } + } + /** + *
+       * 集中区分割线
+       * 
+ * + * repeated .graphicData.ConcentrationDividingLine concentrationDividingLines = 20; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine getConcentrationDividingLines(int index) { + if (concentrationDividingLinesBuilder_ == null) { + return concentrationDividingLines_.get(index); + } else { + return concentrationDividingLinesBuilder_.getMessage(index); + } + } + /** + *
+       * 集中区分割线
+       * 
+ * + * repeated .graphicData.ConcentrationDividingLine concentrationDividingLines = 20; + */ + public Builder setConcentrationDividingLines( + int index, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine value) { + if (concentrationDividingLinesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConcentrationDividingLinesIsMutable(); + concentrationDividingLines_.set(index, value); + onChanged(); + } else { + concentrationDividingLinesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * 集中区分割线
+       * 
+ * + * repeated .graphicData.ConcentrationDividingLine concentrationDividingLines = 20; + */ + public Builder setConcentrationDividingLines( + int index, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine.Builder builderForValue) { + if (concentrationDividingLinesBuilder_ == null) { + ensureConcentrationDividingLinesIsMutable(); + concentrationDividingLines_.set(index, builderForValue.build()); + onChanged(); + } else { + concentrationDividingLinesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * 集中区分割线
+       * 
+ * + * repeated .graphicData.ConcentrationDividingLine concentrationDividingLines = 20; + */ + public Builder addConcentrationDividingLines(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine value) { + if (concentrationDividingLinesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConcentrationDividingLinesIsMutable(); + concentrationDividingLines_.add(value); + onChanged(); + } else { + concentrationDividingLinesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * 集中区分割线
+       * 
+ * + * repeated .graphicData.ConcentrationDividingLine concentrationDividingLines = 20; + */ + public Builder addConcentrationDividingLines( + int index, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine value) { + if (concentrationDividingLinesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConcentrationDividingLinesIsMutable(); + concentrationDividingLines_.add(index, value); + onChanged(); + } else { + concentrationDividingLinesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * 集中区分割线
+       * 
+ * + * repeated .graphicData.ConcentrationDividingLine concentrationDividingLines = 20; + */ + public Builder addConcentrationDividingLines( + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine.Builder builderForValue) { + if (concentrationDividingLinesBuilder_ == null) { + ensureConcentrationDividingLinesIsMutable(); + concentrationDividingLines_.add(builderForValue.build()); + onChanged(); + } else { + concentrationDividingLinesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * 集中区分割线
+       * 
+ * + * repeated .graphicData.ConcentrationDividingLine concentrationDividingLines = 20; + */ + public Builder addConcentrationDividingLines( + int index, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine.Builder builderForValue) { + if (concentrationDividingLinesBuilder_ == null) { + ensureConcentrationDividingLinesIsMutable(); + concentrationDividingLines_.add(index, builderForValue.build()); + onChanged(); + } else { + concentrationDividingLinesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * 集中区分割线
+       * 
+ * + * repeated .graphicData.ConcentrationDividingLine concentrationDividingLines = 20; + */ + public Builder addAllConcentrationDividingLines( + java.lang.Iterable values) { + if (concentrationDividingLinesBuilder_ == null) { + ensureConcentrationDividingLinesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, concentrationDividingLines_); + onChanged(); + } else { + concentrationDividingLinesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * 集中区分割线
+       * 
+ * + * repeated .graphicData.ConcentrationDividingLine concentrationDividingLines = 20; + */ + public Builder clearConcentrationDividingLines() { + if (concentrationDividingLinesBuilder_ == null) { + concentrationDividingLines_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00080000); + onChanged(); + } else { + concentrationDividingLinesBuilder_.clear(); + } + return this; + } + /** + *
+       * 集中区分割线
+       * 
+ * + * repeated .graphicData.ConcentrationDividingLine concentrationDividingLines = 20; + */ + public Builder removeConcentrationDividingLines(int index) { + if (concentrationDividingLinesBuilder_ == null) { + ensureConcentrationDividingLinesIsMutable(); + concentrationDividingLines_.remove(index); + onChanged(); + } else { + concentrationDividingLinesBuilder_.remove(index); + } + return this; + } + /** + *
+       * 集中区分割线
+       * 
+ * + * repeated .graphicData.ConcentrationDividingLine concentrationDividingLines = 20; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine.Builder getConcentrationDividingLinesBuilder( + int index) { + return getConcentrationDividingLinesFieldBuilder().getBuilder(index); + } + /** + *
+       * 集中区分割线
+       * 
+ * + * repeated .graphicData.ConcentrationDividingLine concentrationDividingLines = 20; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLineOrBuilder getConcentrationDividingLinesOrBuilder( + int index) { + if (concentrationDividingLinesBuilder_ == null) { + return concentrationDividingLines_.get(index); } else { + return concentrationDividingLinesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * 集中区分割线
+       * 
+ * + * repeated .graphicData.ConcentrationDividingLine concentrationDividingLines = 20; + */ + public java.util.List + getConcentrationDividingLinesOrBuilderList() { + if (concentrationDividingLinesBuilder_ != null) { + return concentrationDividingLinesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(concentrationDividingLines_); + } + } + /** + *
+       * 集中区分割线
+       * 
+ * + * repeated .graphicData.ConcentrationDividingLine concentrationDividingLines = 20; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine.Builder addConcentrationDividingLinesBuilder() { + return getConcentrationDividingLinesFieldBuilder().addBuilder( + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine.getDefaultInstance()); + } + /** + *
+       * 集中区分割线
+       * 
+ * + * repeated .graphicData.ConcentrationDividingLine concentrationDividingLines = 20; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine.Builder addConcentrationDividingLinesBuilder( + int index) { + return getConcentrationDividingLinesFieldBuilder().addBuilder( + index, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine.getDefaultInstance()); + } + /** + *
+       * 集中区分割线
+       * 
+ * + * repeated .graphicData.ConcentrationDividingLine concentrationDividingLines = 20; + */ + public java.util.List + getConcentrationDividingLinesBuilderList() { + return getConcentrationDividingLinesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine.Builder, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLineOrBuilder> + getConcentrationDividingLinesFieldBuilder() { + if (concentrationDividingLinesBuilder_ == null) { + concentrationDividingLinesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine.Builder, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLineOrBuilder>( + concentrationDividingLines_, + ((bitField0_ & 0x00080000) != 0), + getParentForChildren(), + isClean()); + concentrationDividingLines_ = null; + } + return concentrationDividingLinesBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -16935,6 +17421,3143 @@ public final class LayoutGraphicsProto { } + public interface ConcentrationDividingLineOrBuilder extends + // @@protoc_insertion_point(interface_extends:graphicData.ConcentrationDividingLine) + com.google.protobuf.MessageOrBuilder { + + /** + * .graphicData.CommonInfo common = 1; + * @return Whether the common field is set. + */ + boolean hasCommon(); + /** + * .graphicData.CommonInfo common = 1; + * @return The common. + */ + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo getCommon(); + /** + * .graphicData.CommonInfo common = 1; + */ + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfoOrBuilder getCommonOrBuilder(); + + /** + *
+     * 编号
+     * 
+ * + * string code = 2; + * @return The code. + */ + java.lang.String getCode(); + /** + *
+     * 编号
+     * 
+ * + * string code = 2; + * @return The bytes for code. + */ + com.google.protobuf.ByteString + getCodeBytes(); + + /** + *
+     * 点列表
+     * 
+ * + * repeated .graphicData.Point points = 3; + */ + java.util.List + getPointsList(); + /** + *
+     * 点列表
+     * 
+ * + * repeated .graphicData.Point points = 3; + */ + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Point getPoints(int index); + /** + *
+     * 点列表
+     * 
+ * + * repeated .graphicData.Point points = 3; + */ + int getPointsCount(); + /** + *
+     * 点列表
+     * 
+ * + * repeated .graphicData.Point points = 3; + */ + java.util.List + getPointsOrBuilderList(); + /** + *
+     * 点列表
+     * 
+ * + * repeated .graphicData.Point points = 3; + */ + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PointOrBuilder getPointsOrBuilder( + int index); + + /** + *
+     *左边关联的集中站id
+     * 
+ * + * string oldrefLeftStationId = 4; + * @return The oldrefLeftStationId. + */ + java.lang.String getOldrefLeftStationId(); + /** + *
+     *左边关联的集中站id
+     * 
+ * + * string oldrefLeftStationId = 4; + * @return The bytes for oldrefLeftStationId. + */ + com.google.protobuf.ByteString + getOldrefLeftStationIdBytes(); + + /** + *
+     *右边关联的集中站id
+     * 
+ * + * string oldrefRightStationId = 5; + * @return The oldrefRightStationId. + */ + java.lang.String getOldrefRightStationId(); + /** + *
+     *右边关联的集中站id
+     * 
+ * + * string oldrefRightStationId = 5; + * @return The bytes for oldrefRightStationId. + */ + com.google.protobuf.ByteString + getOldrefRightStationIdBytes(); + + /** + *
+     * 集中区分割线与区段的交点
+     * 
+ * + * repeated .graphicData.NodeConWithSec nodeConWithSecs = 6; + */ + java.util.List + getNodeConWithSecsList(); + /** + *
+     * 集中区分割线与区段的交点
+     * 
+ * + * repeated .graphicData.NodeConWithSec nodeConWithSecs = 6; + */ + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec getNodeConWithSecs(int index); + /** + *
+     * 集中区分割线与区段的交点
+     * 
+ * + * repeated .graphicData.NodeConWithSec nodeConWithSecs = 6; + */ + int getNodeConWithSecsCount(); + /** + *
+     * 集中区分割线与区段的交点
+     * 
+ * + * repeated .graphicData.NodeConWithSec nodeConWithSecs = 6; + */ + java.util.List + getNodeConWithSecsOrBuilderList(); + /** + *
+     * 集中区分割线与区段的交点
+     * 
+ * + * repeated .graphicData.NodeConWithSec nodeConWithSecs = 6; + */ + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSecOrBuilder getNodeConWithSecsOrBuilder( + int index); + + /** + *
+     *集中区分割线绘制在其它线的边界处
+     * 
+ * + * bool isOtherLineConcentrationDividingLine = 7; + * @return The isOtherLineConcentrationDividingLine. + */ + boolean getIsOtherLineConcentrationDividingLine(); + + /** + *
+     *左边关联的集中站id
+     * 
+ * + * uint32 refLeftStationId = 8; + * @return The refLeftStationId. + */ + int getRefLeftStationId(); + + /** + *
+     *右边关联的集中站id
+     * 
+ * + * uint32 refRightStationId = 9; + * @return The refRightStationId. + */ + int getRefRightStationId(); + } + /** + * Protobuf type {@code graphicData.ConcentrationDividingLine} + */ + public static final class ConcentrationDividingLine extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:graphicData.ConcentrationDividingLine) + ConcentrationDividingLineOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConcentrationDividingLine.newBuilder() to construct. + private ConcentrationDividingLine(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ConcentrationDividingLine() { + code_ = ""; + points_ = java.util.Collections.emptyList(); + oldrefLeftStationId_ = ""; + oldrefRightStationId_ = ""; + nodeConWithSecs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ConcentrationDividingLine(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.internal_static_graphicData_ConcentrationDividingLine_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.internal_static_graphicData_ConcentrationDividingLine_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine.class, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine.Builder.class); + } + + public static final int COMMON_FIELD_NUMBER = 1; + private club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo common_; + /** + * .graphicData.CommonInfo common = 1; + * @return Whether the common field is set. + */ + @java.lang.Override + public boolean hasCommon() { + return common_ != null; + } + /** + * .graphicData.CommonInfo common = 1; + * @return The common. + */ + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo getCommon() { + return common_ == null ? club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo.getDefaultInstance() : common_; + } + /** + * .graphicData.CommonInfo common = 1; + */ + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfoOrBuilder getCommonOrBuilder() { + return common_ == null ? club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo.getDefaultInstance() : common_; + } + + public static final int CODE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object code_ = ""; + /** + *
+     * 编号
+     * 
+ * + * string code = 2; + * @return The code. + */ + @java.lang.Override + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } + } + /** + *
+     * 编号
+     * 
+ * + * string code = 2; + * @return The bytes for code. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POINTS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private java.util.List points_; + /** + *
+     * 点列表
+     * 
+ * + * repeated .graphicData.Point points = 3; + */ + @java.lang.Override + public java.util.List getPointsList() { + return points_; + } + /** + *
+     * 点列表
+     * 
+ * + * repeated .graphicData.Point points = 3; + */ + @java.lang.Override + public java.util.List + getPointsOrBuilderList() { + return points_; + } + /** + *
+     * 点列表
+     * 
+ * + * repeated .graphicData.Point points = 3; + */ + @java.lang.Override + public int getPointsCount() { + return points_.size(); + } + /** + *
+     * 点列表
+     * 
+ * + * repeated .graphicData.Point points = 3; + */ + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Point getPoints(int index) { + return points_.get(index); + } + /** + *
+     * 点列表
+     * 
+ * + * repeated .graphicData.Point points = 3; + */ + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PointOrBuilder getPointsOrBuilder( + int index) { + return points_.get(index); + } + + public static final int OLDREFLEFTSTATIONID_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object oldrefLeftStationId_ = ""; + /** + *
+     *左边关联的集中站id
+     * 
+ * + * string oldrefLeftStationId = 4; + * @return The oldrefLeftStationId. + */ + @java.lang.Override + public java.lang.String getOldrefLeftStationId() { + java.lang.Object ref = oldrefLeftStationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + oldrefLeftStationId_ = s; + return s; + } + } + /** + *
+     *左边关联的集中站id
+     * 
+ * + * string oldrefLeftStationId = 4; + * @return The bytes for oldrefLeftStationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOldrefLeftStationIdBytes() { + java.lang.Object ref = oldrefLeftStationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + oldrefLeftStationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OLDREFRIGHTSTATIONID_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object oldrefRightStationId_ = ""; + /** + *
+     *右边关联的集中站id
+     * 
+ * + * string oldrefRightStationId = 5; + * @return The oldrefRightStationId. + */ + @java.lang.Override + public java.lang.String getOldrefRightStationId() { + java.lang.Object ref = oldrefRightStationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + oldrefRightStationId_ = s; + return s; + } + } + /** + *
+     *右边关联的集中站id
+     * 
+ * + * string oldrefRightStationId = 5; + * @return The bytes for oldrefRightStationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOldrefRightStationIdBytes() { + java.lang.Object ref = oldrefRightStationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + oldrefRightStationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODECONWITHSECS_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private java.util.List nodeConWithSecs_; + /** + *
+     * 集中区分割线与区段的交点
+     * 
+ * + * repeated .graphicData.NodeConWithSec nodeConWithSecs = 6; + */ + @java.lang.Override + public java.util.List getNodeConWithSecsList() { + return nodeConWithSecs_; + } + /** + *
+     * 集中区分割线与区段的交点
+     * 
+ * + * repeated .graphicData.NodeConWithSec nodeConWithSecs = 6; + */ + @java.lang.Override + public java.util.List + getNodeConWithSecsOrBuilderList() { + return nodeConWithSecs_; + } + /** + *
+     * 集中区分割线与区段的交点
+     * 
+ * + * repeated .graphicData.NodeConWithSec nodeConWithSecs = 6; + */ + @java.lang.Override + public int getNodeConWithSecsCount() { + return nodeConWithSecs_.size(); + } + /** + *
+     * 集中区分割线与区段的交点
+     * 
+ * + * repeated .graphicData.NodeConWithSec nodeConWithSecs = 6; + */ + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec getNodeConWithSecs(int index) { + return nodeConWithSecs_.get(index); + } + /** + *
+     * 集中区分割线与区段的交点
+     * 
+ * + * repeated .graphicData.NodeConWithSec nodeConWithSecs = 6; + */ + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSecOrBuilder getNodeConWithSecsOrBuilder( + int index) { + return nodeConWithSecs_.get(index); + } + + public static final int ISOTHERLINECONCENTRATIONDIVIDINGLINE_FIELD_NUMBER = 7; + private boolean isOtherLineConcentrationDividingLine_ = false; + /** + *
+     *集中区分割线绘制在其它线的边界处
+     * 
+ * + * bool isOtherLineConcentrationDividingLine = 7; + * @return The isOtherLineConcentrationDividingLine. + */ + @java.lang.Override + public boolean getIsOtherLineConcentrationDividingLine() { + return isOtherLineConcentrationDividingLine_; + } + + public static final int REFLEFTSTATIONID_FIELD_NUMBER = 8; + private int refLeftStationId_ = 0; + /** + *
+     *左边关联的集中站id
+     * 
+ * + * uint32 refLeftStationId = 8; + * @return The refLeftStationId. + */ + @java.lang.Override + public int getRefLeftStationId() { + return refLeftStationId_; + } + + public static final int REFRIGHTSTATIONID_FIELD_NUMBER = 9; + private int refRightStationId_ = 0; + /** + *
+     *右边关联的集中站id
+     * 
+ * + * uint32 refRightStationId = 9; + * @return The refRightStationId. + */ + @java.lang.Override + public int getRefRightStationId() { + return refRightStationId_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (common_ != null) { + output.writeMessage(1, getCommon()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, code_); + } + for (int i = 0; i < points_.size(); i++) { + output.writeMessage(3, points_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oldrefLeftStationId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, oldrefLeftStationId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oldrefRightStationId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, oldrefRightStationId_); + } + for (int i = 0; i < nodeConWithSecs_.size(); i++) { + output.writeMessage(6, nodeConWithSecs_.get(i)); + } + if (isOtherLineConcentrationDividingLine_ != false) { + output.writeBool(7, isOtherLineConcentrationDividingLine_); + } + if (refLeftStationId_ != 0) { + output.writeUInt32(8, refLeftStationId_); + } + if (refRightStationId_ != 0) { + output.writeUInt32(9, refRightStationId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (common_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCommon()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, code_); + } + for (int i = 0; i < points_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, points_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oldrefLeftStationId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, oldrefLeftStationId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oldrefRightStationId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, oldrefRightStationId_); + } + for (int i = 0; i < nodeConWithSecs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, nodeConWithSecs_.get(i)); + } + if (isOtherLineConcentrationDividingLine_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, isOtherLineConcentrationDividingLine_); + } + if (refLeftStationId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(8, refLeftStationId_); + } + if (refRightStationId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(9, refRightStationId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine)) { + return super.equals(obj); + } + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine other = (club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine) obj; + + if (hasCommon() != other.hasCommon()) return false; + if (hasCommon()) { + if (!getCommon() + .equals(other.getCommon())) return false; + } + if (!getCode() + .equals(other.getCode())) return false; + if (!getPointsList() + .equals(other.getPointsList())) return false; + if (!getOldrefLeftStationId() + .equals(other.getOldrefLeftStationId())) return false; + if (!getOldrefRightStationId() + .equals(other.getOldrefRightStationId())) return false; + if (!getNodeConWithSecsList() + .equals(other.getNodeConWithSecsList())) return false; + if (getIsOtherLineConcentrationDividingLine() + != other.getIsOtherLineConcentrationDividingLine()) return false; + if (getRefLeftStationId() + != other.getRefLeftStationId()) return false; + if (getRefRightStationId() + != other.getRefRightStationId()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCommon()) { + hash = (37 * hash) + COMMON_FIELD_NUMBER; + hash = (53 * hash) + getCommon().hashCode(); + } + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode().hashCode(); + if (getPointsCount() > 0) { + hash = (37 * hash) + POINTS_FIELD_NUMBER; + hash = (53 * hash) + getPointsList().hashCode(); + } + hash = (37 * hash) + OLDREFLEFTSTATIONID_FIELD_NUMBER; + hash = (53 * hash) + getOldrefLeftStationId().hashCode(); + hash = (37 * hash) + OLDREFRIGHTSTATIONID_FIELD_NUMBER; + hash = (53 * hash) + getOldrefRightStationId().hashCode(); + if (getNodeConWithSecsCount() > 0) { + hash = (37 * hash) + NODECONWITHSECS_FIELD_NUMBER; + hash = (53 * hash) + getNodeConWithSecsList().hashCode(); + } + hash = (37 * hash) + ISOTHERLINECONCENTRATIONDIVIDINGLINE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsOtherLineConcentrationDividingLine()); + hash = (37 * hash) + REFLEFTSTATIONID_FIELD_NUMBER; + hash = (53 * hash) + getRefLeftStationId(); + hash = (37 * hash) + REFRIGHTSTATIONID_FIELD_NUMBER; + hash = (53 * hash) + getRefRightStationId(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code graphicData.ConcentrationDividingLine} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:graphicData.ConcentrationDividingLine) + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLineOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.internal_static_graphicData_ConcentrationDividingLine_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.internal_static_graphicData_ConcentrationDividingLine_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine.class, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine.Builder.class); + } + + // Construct using club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + common_ = null; + if (commonBuilder_ != null) { + commonBuilder_.dispose(); + commonBuilder_ = null; + } + code_ = ""; + if (pointsBuilder_ == null) { + points_ = java.util.Collections.emptyList(); + } else { + points_ = null; + pointsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + oldrefLeftStationId_ = ""; + oldrefRightStationId_ = ""; + if (nodeConWithSecsBuilder_ == null) { + nodeConWithSecs_ = java.util.Collections.emptyList(); + } else { + nodeConWithSecs_ = null; + nodeConWithSecsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + isOtherLineConcentrationDividingLine_ = false; + refLeftStationId_ = 0; + refRightStationId_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.internal_static_graphicData_ConcentrationDividingLine_descriptor; + } + + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine getDefaultInstanceForType() { + return club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine.getDefaultInstance(); + } + + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine build() { + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine buildPartial() { + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine result = new club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine result) { + if (pointsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + points_ = java.util.Collections.unmodifiableList(points_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.points_ = points_; + } else { + result.points_ = pointsBuilder_.build(); + } + if (nodeConWithSecsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + nodeConWithSecs_ = java.util.Collections.unmodifiableList(nodeConWithSecs_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.nodeConWithSecs_ = nodeConWithSecs_; + } else { + result.nodeConWithSecs_ = nodeConWithSecsBuilder_.build(); + } + } + + private void buildPartial0(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.common_ = commonBuilder_ == null + ? common_ + : commonBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.code_ = code_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.oldrefLeftStationId_ = oldrefLeftStationId_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.oldrefRightStationId_ = oldrefRightStationId_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.isOtherLineConcentrationDividingLine_ = isOtherLineConcentrationDividingLine_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.refLeftStationId_ = refLeftStationId_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.refRightStationId_ = refRightStationId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine) { + return mergeFrom((club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine other) { + if (other == club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine.getDefaultInstance()) return this; + if (other.hasCommon()) { + mergeCommon(other.getCommon()); + } + if (!other.getCode().isEmpty()) { + code_ = other.code_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (pointsBuilder_ == null) { + if (!other.points_.isEmpty()) { + if (points_.isEmpty()) { + points_ = other.points_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensurePointsIsMutable(); + points_.addAll(other.points_); + } + onChanged(); + } + } else { + if (!other.points_.isEmpty()) { + if (pointsBuilder_.isEmpty()) { + pointsBuilder_.dispose(); + pointsBuilder_ = null; + points_ = other.points_; + bitField0_ = (bitField0_ & ~0x00000004); + pointsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPointsFieldBuilder() : null; + } else { + pointsBuilder_.addAllMessages(other.points_); + } + } + } + if (!other.getOldrefLeftStationId().isEmpty()) { + oldrefLeftStationId_ = other.oldrefLeftStationId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOldrefRightStationId().isEmpty()) { + oldrefRightStationId_ = other.oldrefRightStationId_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (nodeConWithSecsBuilder_ == null) { + if (!other.nodeConWithSecs_.isEmpty()) { + if (nodeConWithSecs_.isEmpty()) { + nodeConWithSecs_ = other.nodeConWithSecs_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureNodeConWithSecsIsMutable(); + nodeConWithSecs_.addAll(other.nodeConWithSecs_); + } + onChanged(); + } + } else { + if (!other.nodeConWithSecs_.isEmpty()) { + if (nodeConWithSecsBuilder_.isEmpty()) { + nodeConWithSecsBuilder_.dispose(); + nodeConWithSecsBuilder_ = null; + nodeConWithSecs_ = other.nodeConWithSecs_; + bitField0_ = (bitField0_ & ~0x00000020); + nodeConWithSecsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNodeConWithSecsFieldBuilder() : null; + } else { + nodeConWithSecsBuilder_.addAllMessages(other.nodeConWithSecs_); + } + } + } + if (other.getIsOtherLineConcentrationDividingLine() != false) { + setIsOtherLineConcentrationDividingLine(other.getIsOtherLineConcentrationDividingLine()); + } + if (other.getRefLeftStationId() != 0) { + setRefLeftStationId(other.getRefLeftStationId()); + } + if (other.getRefRightStationId() != 0) { + setRefRightStationId(other.getRefRightStationId()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getCommonFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + code_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Point m = + input.readMessage( + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Point.parser(), + extensionRegistry); + if (pointsBuilder_ == null) { + ensurePointsIsMutable(); + points_.add(m); + } else { + pointsBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: { + oldrefLeftStationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + oldrefRightStationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec m = + input.readMessage( + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec.parser(), + extensionRegistry); + if (nodeConWithSecsBuilder_ == null) { + ensureNodeConWithSecsIsMutable(); + nodeConWithSecs_.add(m); + } else { + nodeConWithSecsBuilder_.addMessage(m); + } + break; + } // case 50 + case 56: { + isOtherLineConcentrationDividingLine_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: { + refLeftStationId_ = input.readUInt32(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: { + refRightStationId_ = input.readUInt32(); + bitField0_ |= 0x00000100; + break; + } // case 72 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo common_; + private com.google.protobuf.SingleFieldBuilderV3< + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo.Builder, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfoOrBuilder> commonBuilder_; + /** + * .graphicData.CommonInfo common = 1; + * @return Whether the common field is set. + */ + public boolean hasCommon() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .graphicData.CommonInfo common = 1; + * @return The common. + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo getCommon() { + if (commonBuilder_ == null) { + return common_ == null ? club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo.getDefaultInstance() : common_; + } else { + return commonBuilder_.getMessage(); + } + } + /** + * .graphicData.CommonInfo common = 1; + */ + public Builder setCommon(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo value) { + if (commonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + common_ = value; + } else { + commonBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .graphicData.CommonInfo common = 1; + */ + public Builder setCommon( + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo.Builder builderForValue) { + if (commonBuilder_ == null) { + common_ = builderForValue.build(); + } else { + commonBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .graphicData.CommonInfo common = 1; + */ + public Builder mergeCommon(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo value) { + if (commonBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + common_ != null && + common_ != club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo.getDefaultInstance()) { + getCommonBuilder().mergeFrom(value); + } else { + common_ = value; + } + } else { + commonBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .graphicData.CommonInfo common = 1; + */ + public Builder clearCommon() { + bitField0_ = (bitField0_ & ~0x00000001); + common_ = null; + if (commonBuilder_ != null) { + commonBuilder_.dispose(); + commonBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .graphicData.CommonInfo common = 1; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo.Builder getCommonBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCommonFieldBuilder().getBuilder(); + } + /** + * .graphicData.CommonInfo common = 1; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfoOrBuilder getCommonOrBuilder() { + if (commonBuilder_ != null) { + return commonBuilder_.getMessageOrBuilder(); + } else { + return common_ == null ? + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo.getDefaultInstance() : common_; + } + } + /** + * .graphicData.CommonInfo common = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo.Builder, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfoOrBuilder> + getCommonFieldBuilder() { + if (commonBuilder_ == null) { + commonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo.Builder, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfoOrBuilder>( + getCommon(), + getParentForChildren(), + isClean()); + common_ = null; + } + return commonBuilder_; + } + + private java.lang.Object code_ = ""; + /** + *
+       * 编号
+       * 
+ * + * string code = 2; + * @return The code. + */ + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * 编号
+       * 
+ * + * string code = 2; + * @return The bytes for code. + */ + public com.google.protobuf.ByteString + getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * 编号
+       * 
+ * + * string code = 2; + * @param value The code to set. + * @return This builder for chaining. + */ + public Builder setCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + code_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * 编号
+       * 
+ * + * string code = 2; + * @return This builder for chaining. + */ + public Builder clearCode() { + code_ = getDefaultInstance().getCode(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * 编号
+       * 
+ * + * string code = 2; + * @param value The bytes for code to set. + * @return This builder for chaining. + */ + public Builder setCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + code_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List points_ = + java.util.Collections.emptyList(); + private void ensurePointsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + points_ = new java.util.ArrayList(points_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Point, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Point.Builder, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PointOrBuilder> pointsBuilder_; + + /** + *
+       * 点列表
+       * 
+ * + * repeated .graphicData.Point points = 3; + */ + public java.util.List getPointsList() { + if (pointsBuilder_ == null) { + return java.util.Collections.unmodifiableList(points_); + } else { + return pointsBuilder_.getMessageList(); + } + } + /** + *
+       * 点列表
+       * 
+ * + * repeated .graphicData.Point points = 3; + */ + public int getPointsCount() { + if (pointsBuilder_ == null) { + return points_.size(); + } else { + return pointsBuilder_.getCount(); + } + } + /** + *
+       * 点列表
+       * 
+ * + * repeated .graphicData.Point points = 3; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Point getPoints(int index) { + if (pointsBuilder_ == null) { + return points_.get(index); + } else { + return pointsBuilder_.getMessage(index); + } + } + /** + *
+       * 点列表
+       * 
+ * + * repeated .graphicData.Point points = 3; + */ + public Builder setPoints( + int index, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Point value) { + if (pointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePointsIsMutable(); + points_.set(index, value); + onChanged(); + } else { + pointsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * 点列表
+       * 
+ * + * repeated .graphicData.Point points = 3; + */ + public Builder setPoints( + int index, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Point.Builder builderForValue) { + if (pointsBuilder_ == null) { + ensurePointsIsMutable(); + points_.set(index, builderForValue.build()); + onChanged(); + } else { + pointsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * 点列表
+       * 
+ * + * repeated .graphicData.Point points = 3; + */ + public Builder addPoints(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Point value) { + if (pointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePointsIsMutable(); + points_.add(value); + onChanged(); + } else { + pointsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * 点列表
+       * 
+ * + * repeated .graphicData.Point points = 3; + */ + public Builder addPoints( + int index, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Point value) { + if (pointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePointsIsMutable(); + points_.add(index, value); + onChanged(); + } else { + pointsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * 点列表
+       * 
+ * + * repeated .graphicData.Point points = 3; + */ + public Builder addPoints( + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Point.Builder builderForValue) { + if (pointsBuilder_ == null) { + ensurePointsIsMutable(); + points_.add(builderForValue.build()); + onChanged(); + } else { + pointsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * 点列表
+       * 
+ * + * repeated .graphicData.Point points = 3; + */ + public Builder addPoints( + int index, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Point.Builder builderForValue) { + if (pointsBuilder_ == null) { + ensurePointsIsMutable(); + points_.add(index, builderForValue.build()); + onChanged(); + } else { + pointsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * 点列表
+       * 
+ * + * repeated .graphicData.Point points = 3; + */ + public Builder addAllPoints( + java.lang.Iterable values) { + if (pointsBuilder_ == null) { + ensurePointsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, points_); + onChanged(); + } else { + pointsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * 点列表
+       * 
+ * + * repeated .graphicData.Point points = 3; + */ + public Builder clearPoints() { + if (pointsBuilder_ == null) { + points_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + pointsBuilder_.clear(); + } + return this; + } + /** + *
+       * 点列表
+       * 
+ * + * repeated .graphicData.Point points = 3; + */ + public Builder removePoints(int index) { + if (pointsBuilder_ == null) { + ensurePointsIsMutable(); + points_.remove(index); + onChanged(); + } else { + pointsBuilder_.remove(index); + } + return this; + } + /** + *
+       * 点列表
+       * 
+ * + * repeated .graphicData.Point points = 3; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Point.Builder getPointsBuilder( + int index) { + return getPointsFieldBuilder().getBuilder(index); + } + /** + *
+       * 点列表
+       * 
+ * + * repeated .graphicData.Point points = 3; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PointOrBuilder getPointsOrBuilder( + int index) { + if (pointsBuilder_ == null) { + return points_.get(index); } else { + return pointsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * 点列表
+       * 
+ * + * repeated .graphicData.Point points = 3; + */ + public java.util.List + getPointsOrBuilderList() { + if (pointsBuilder_ != null) { + return pointsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(points_); + } + } + /** + *
+       * 点列表
+       * 
+ * + * repeated .graphicData.Point points = 3; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Point.Builder addPointsBuilder() { + return getPointsFieldBuilder().addBuilder( + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Point.getDefaultInstance()); + } + /** + *
+       * 点列表
+       * 
+ * + * repeated .graphicData.Point points = 3; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Point.Builder addPointsBuilder( + int index) { + return getPointsFieldBuilder().addBuilder( + index, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Point.getDefaultInstance()); + } + /** + *
+       * 点列表
+       * 
+ * + * repeated .graphicData.Point points = 3; + */ + public java.util.List + getPointsBuilderList() { + return getPointsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Point, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Point.Builder, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PointOrBuilder> + getPointsFieldBuilder() { + if (pointsBuilder_ == null) { + pointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Point, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Point.Builder, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PointOrBuilder>( + points_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + points_ = null; + } + return pointsBuilder_; + } + + private java.lang.Object oldrefLeftStationId_ = ""; + /** + *
+       *左边关联的集中站id
+       * 
+ * + * string oldrefLeftStationId = 4; + * @return The oldrefLeftStationId. + */ + public java.lang.String getOldrefLeftStationId() { + java.lang.Object ref = oldrefLeftStationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + oldrefLeftStationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       *左边关联的集中站id
+       * 
+ * + * string oldrefLeftStationId = 4; + * @return The bytes for oldrefLeftStationId. + */ + public com.google.protobuf.ByteString + getOldrefLeftStationIdBytes() { + java.lang.Object ref = oldrefLeftStationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + oldrefLeftStationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       *左边关联的集中站id
+       * 
+ * + * string oldrefLeftStationId = 4; + * @param value The oldrefLeftStationId to set. + * @return This builder for chaining. + */ + public Builder setOldrefLeftStationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + oldrefLeftStationId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       *左边关联的集中站id
+       * 
+ * + * string oldrefLeftStationId = 4; + * @return This builder for chaining. + */ + public Builder clearOldrefLeftStationId() { + oldrefLeftStationId_ = getDefaultInstance().getOldrefLeftStationId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+       *左边关联的集中站id
+       * 
+ * + * string oldrefLeftStationId = 4; + * @param value The bytes for oldrefLeftStationId to set. + * @return This builder for chaining. + */ + public Builder setOldrefLeftStationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + oldrefLeftStationId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object oldrefRightStationId_ = ""; + /** + *
+       *右边关联的集中站id
+       * 
+ * + * string oldrefRightStationId = 5; + * @return The oldrefRightStationId. + */ + public java.lang.String getOldrefRightStationId() { + java.lang.Object ref = oldrefRightStationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + oldrefRightStationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       *右边关联的集中站id
+       * 
+ * + * string oldrefRightStationId = 5; + * @return The bytes for oldrefRightStationId. + */ + public com.google.protobuf.ByteString + getOldrefRightStationIdBytes() { + java.lang.Object ref = oldrefRightStationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + oldrefRightStationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       *右边关联的集中站id
+       * 
+ * + * string oldrefRightStationId = 5; + * @param value The oldrefRightStationId to set. + * @return This builder for chaining. + */ + public Builder setOldrefRightStationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + oldrefRightStationId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       *右边关联的集中站id
+       * 
+ * + * string oldrefRightStationId = 5; + * @return This builder for chaining. + */ + public Builder clearOldrefRightStationId() { + oldrefRightStationId_ = getDefaultInstance().getOldrefRightStationId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+       *右边关联的集中站id
+       * 
+ * + * string oldrefRightStationId = 5; + * @param value The bytes for oldrefRightStationId to set. + * @return This builder for chaining. + */ + public Builder setOldrefRightStationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + oldrefRightStationId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.util.List nodeConWithSecs_ = + java.util.Collections.emptyList(); + private void ensureNodeConWithSecsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + nodeConWithSecs_ = new java.util.ArrayList(nodeConWithSecs_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec.Builder, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSecOrBuilder> nodeConWithSecsBuilder_; + + /** + *
+       * 集中区分割线与区段的交点
+       * 
+ * + * repeated .graphicData.NodeConWithSec nodeConWithSecs = 6; + */ + public java.util.List getNodeConWithSecsList() { + if (nodeConWithSecsBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodeConWithSecs_); + } else { + return nodeConWithSecsBuilder_.getMessageList(); + } + } + /** + *
+       * 集中区分割线与区段的交点
+       * 
+ * + * repeated .graphicData.NodeConWithSec nodeConWithSecs = 6; + */ + public int getNodeConWithSecsCount() { + if (nodeConWithSecsBuilder_ == null) { + return nodeConWithSecs_.size(); + } else { + return nodeConWithSecsBuilder_.getCount(); + } + } + /** + *
+       * 集中区分割线与区段的交点
+       * 
+ * + * repeated .graphicData.NodeConWithSec nodeConWithSecs = 6; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec getNodeConWithSecs(int index) { + if (nodeConWithSecsBuilder_ == null) { + return nodeConWithSecs_.get(index); + } else { + return nodeConWithSecsBuilder_.getMessage(index); + } + } + /** + *
+       * 集中区分割线与区段的交点
+       * 
+ * + * repeated .graphicData.NodeConWithSec nodeConWithSecs = 6; + */ + public Builder setNodeConWithSecs( + int index, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec value) { + if (nodeConWithSecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeConWithSecsIsMutable(); + nodeConWithSecs_.set(index, value); + onChanged(); + } else { + nodeConWithSecsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * 集中区分割线与区段的交点
+       * 
+ * + * repeated .graphicData.NodeConWithSec nodeConWithSecs = 6; + */ + public Builder setNodeConWithSecs( + int index, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec.Builder builderForValue) { + if (nodeConWithSecsBuilder_ == null) { + ensureNodeConWithSecsIsMutable(); + nodeConWithSecs_.set(index, builderForValue.build()); + onChanged(); + } else { + nodeConWithSecsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * 集中区分割线与区段的交点
+       * 
+ * + * repeated .graphicData.NodeConWithSec nodeConWithSecs = 6; + */ + public Builder addNodeConWithSecs(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec value) { + if (nodeConWithSecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeConWithSecsIsMutable(); + nodeConWithSecs_.add(value); + onChanged(); + } else { + nodeConWithSecsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * 集中区分割线与区段的交点
+       * 
+ * + * repeated .graphicData.NodeConWithSec nodeConWithSecs = 6; + */ + public Builder addNodeConWithSecs( + int index, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec value) { + if (nodeConWithSecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeConWithSecsIsMutable(); + nodeConWithSecs_.add(index, value); + onChanged(); + } else { + nodeConWithSecsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * 集中区分割线与区段的交点
+       * 
+ * + * repeated .graphicData.NodeConWithSec nodeConWithSecs = 6; + */ + public Builder addNodeConWithSecs( + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec.Builder builderForValue) { + if (nodeConWithSecsBuilder_ == null) { + ensureNodeConWithSecsIsMutable(); + nodeConWithSecs_.add(builderForValue.build()); + onChanged(); + } else { + nodeConWithSecsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * 集中区分割线与区段的交点
+       * 
+ * + * repeated .graphicData.NodeConWithSec nodeConWithSecs = 6; + */ + public Builder addNodeConWithSecs( + int index, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec.Builder builderForValue) { + if (nodeConWithSecsBuilder_ == null) { + ensureNodeConWithSecsIsMutable(); + nodeConWithSecs_.add(index, builderForValue.build()); + onChanged(); + } else { + nodeConWithSecsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * 集中区分割线与区段的交点
+       * 
+ * + * repeated .graphicData.NodeConWithSec nodeConWithSecs = 6; + */ + public Builder addAllNodeConWithSecs( + java.lang.Iterable values) { + if (nodeConWithSecsBuilder_ == null) { + ensureNodeConWithSecsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nodeConWithSecs_); + onChanged(); + } else { + nodeConWithSecsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * 集中区分割线与区段的交点
+       * 
+ * + * repeated .graphicData.NodeConWithSec nodeConWithSecs = 6; + */ + public Builder clearNodeConWithSecs() { + if (nodeConWithSecsBuilder_ == null) { + nodeConWithSecs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + nodeConWithSecsBuilder_.clear(); + } + return this; + } + /** + *
+       * 集中区分割线与区段的交点
+       * 
+ * + * repeated .graphicData.NodeConWithSec nodeConWithSecs = 6; + */ + public Builder removeNodeConWithSecs(int index) { + if (nodeConWithSecsBuilder_ == null) { + ensureNodeConWithSecsIsMutable(); + nodeConWithSecs_.remove(index); + onChanged(); + } else { + nodeConWithSecsBuilder_.remove(index); + } + return this; + } + /** + *
+       * 集中区分割线与区段的交点
+       * 
+ * + * repeated .graphicData.NodeConWithSec nodeConWithSecs = 6; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec.Builder getNodeConWithSecsBuilder( + int index) { + return getNodeConWithSecsFieldBuilder().getBuilder(index); + } + /** + *
+       * 集中区分割线与区段的交点
+       * 
+ * + * repeated .graphicData.NodeConWithSec nodeConWithSecs = 6; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSecOrBuilder getNodeConWithSecsOrBuilder( + int index) { + if (nodeConWithSecsBuilder_ == null) { + return nodeConWithSecs_.get(index); } else { + return nodeConWithSecsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * 集中区分割线与区段的交点
+       * 
+ * + * repeated .graphicData.NodeConWithSec nodeConWithSecs = 6; + */ + public java.util.List + getNodeConWithSecsOrBuilderList() { + if (nodeConWithSecsBuilder_ != null) { + return nodeConWithSecsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nodeConWithSecs_); + } + } + /** + *
+       * 集中区分割线与区段的交点
+       * 
+ * + * repeated .graphicData.NodeConWithSec nodeConWithSecs = 6; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec.Builder addNodeConWithSecsBuilder() { + return getNodeConWithSecsFieldBuilder().addBuilder( + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec.getDefaultInstance()); + } + /** + *
+       * 集中区分割线与区段的交点
+       * 
+ * + * repeated .graphicData.NodeConWithSec nodeConWithSecs = 6; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec.Builder addNodeConWithSecsBuilder( + int index) { + return getNodeConWithSecsFieldBuilder().addBuilder( + index, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec.getDefaultInstance()); + } + /** + *
+       * 集中区分割线与区段的交点
+       * 
+ * + * repeated .graphicData.NodeConWithSec nodeConWithSecs = 6; + */ + public java.util.List + getNodeConWithSecsBuilderList() { + return getNodeConWithSecsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec.Builder, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSecOrBuilder> + getNodeConWithSecsFieldBuilder() { + if (nodeConWithSecsBuilder_ == null) { + nodeConWithSecsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec.Builder, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSecOrBuilder>( + nodeConWithSecs_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + nodeConWithSecs_ = null; + } + return nodeConWithSecsBuilder_; + } + + private boolean isOtherLineConcentrationDividingLine_ ; + /** + *
+       *集中区分割线绘制在其它线的边界处
+       * 
+ * + * bool isOtherLineConcentrationDividingLine = 7; + * @return The isOtherLineConcentrationDividingLine. + */ + @java.lang.Override + public boolean getIsOtherLineConcentrationDividingLine() { + return isOtherLineConcentrationDividingLine_; + } + /** + *
+       *集中区分割线绘制在其它线的边界处
+       * 
+ * + * bool isOtherLineConcentrationDividingLine = 7; + * @param value The isOtherLineConcentrationDividingLine to set. + * @return This builder for chaining. + */ + public Builder setIsOtherLineConcentrationDividingLine(boolean value) { + + isOtherLineConcentrationDividingLine_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+       *集中区分割线绘制在其它线的边界处
+       * 
+ * + * bool isOtherLineConcentrationDividingLine = 7; + * @return This builder for chaining. + */ + public Builder clearIsOtherLineConcentrationDividingLine() { + bitField0_ = (bitField0_ & ~0x00000040); + isOtherLineConcentrationDividingLine_ = false; + onChanged(); + return this; + } + + private int refLeftStationId_ ; + /** + *
+       *左边关联的集中站id
+       * 
+ * + * uint32 refLeftStationId = 8; + * @return The refLeftStationId. + */ + @java.lang.Override + public int getRefLeftStationId() { + return refLeftStationId_; + } + /** + *
+       *左边关联的集中站id
+       * 
+ * + * uint32 refLeftStationId = 8; + * @param value The refLeftStationId to set. + * @return This builder for chaining. + */ + public Builder setRefLeftStationId(int value) { + + refLeftStationId_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+       *左边关联的集中站id
+       * 
+ * + * uint32 refLeftStationId = 8; + * @return This builder for chaining. + */ + public Builder clearRefLeftStationId() { + bitField0_ = (bitField0_ & ~0x00000080); + refLeftStationId_ = 0; + onChanged(); + return this; + } + + private int refRightStationId_ ; + /** + *
+       *右边关联的集中站id
+       * 
+ * + * uint32 refRightStationId = 9; + * @return The refRightStationId. + */ + @java.lang.Override + public int getRefRightStationId() { + return refRightStationId_; + } + /** + *
+       *右边关联的集中站id
+       * 
+ * + * uint32 refRightStationId = 9; + * @param value The refRightStationId to set. + * @return This builder for chaining. + */ + public Builder setRefRightStationId(int value) { + + refRightStationId_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+       *右边关联的集中站id
+       * 
+ * + * uint32 refRightStationId = 9; + * @return This builder for chaining. + */ + public Builder clearRefRightStationId() { + bitField0_ = (bitField0_ & ~0x00000100); + refRightStationId_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:graphicData.ConcentrationDividingLine) + } + + // @@protoc_insertion_point(class_scope:graphicData.ConcentrationDividingLine) + private static final club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine(); + } + + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConcentrationDividingLine parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.ConcentrationDividingLine getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeConWithSecOrBuilder extends + // @@protoc_insertion_point(interface_extends:graphicData.NodeConWithSec) + com.google.protobuf.MessageOrBuilder { + + /** + * .graphicData.RelatedRef leftSection = 1; + * @return Whether the leftSection field is set. + */ + boolean hasLeftSection(); + /** + * .graphicData.RelatedRef leftSection = 1; + * @return The leftSection. + */ + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef getLeftSection(); + /** + * .graphicData.RelatedRef leftSection = 1; + */ + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRefOrBuilder getLeftSectionOrBuilder(); + + /** + * .graphicData.RelatedRef rightSection = 2; + * @return Whether the rightSection field is set. + */ + boolean hasRightSection(); + /** + * .graphicData.RelatedRef rightSection = 2; + * @return The rightSection. + */ + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef getRightSection(); + /** + * .graphicData.RelatedRef rightSection = 2; + */ + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRefOrBuilder getRightSectionOrBuilder(); + } + /** + * Protobuf type {@code graphicData.NodeConWithSec} + */ + public static final class NodeConWithSec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:graphicData.NodeConWithSec) + NodeConWithSecOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeConWithSec.newBuilder() to construct. + private NodeConWithSec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeConWithSec() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NodeConWithSec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.internal_static_graphicData_NodeConWithSec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.internal_static_graphicData_NodeConWithSec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec.class, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec.Builder.class); + } + + public static final int LEFTSECTION_FIELD_NUMBER = 1; + private club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef leftSection_; + /** + * .graphicData.RelatedRef leftSection = 1; + * @return Whether the leftSection field is set. + */ + @java.lang.Override + public boolean hasLeftSection() { + return leftSection_ != null; + } + /** + * .graphicData.RelatedRef leftSection = 1; + * @return The leftSection. + */ + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef getLeftSection() { + return leftSection_ == null ? club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef.getDefaultInstance() : leftSection_; + } + /** + * .graphicData.RelatedRef leftSection = 1; + */ + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRefOrBuilder getLeftSectionOrBuilder() { + return leftSection_ == null ? club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef.getDefaultInstance() : leftSection_; + } + + public static final int RIGHTSECTION_FIELD_NUMBER = 2; + private club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef rightSection_; + /** + * .graphicData.RelatedRef rightSection = 2; + * @return Whether the rightSection field is set. + */ + @java.lang.Override + public boolean hasRightSection() { + return rightSection_ != null; + } + /** + * .graphicData.RelatedRef rightSection = 2; + * @return The rightSection. + */ + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef getRightSection() { + return rightSection_ == null ? club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef.getDefaultInstance() : rightSection_; + } + /** + * .graphicData.RelatedRef rightSection = 2; + */ + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRefOrBuilder getRightSectionOrBuilder() { + return rightSection_ == null ? club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef.getDefaultInstance() : rightSection_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (leftSection_ != null) { + output.writeMessage(1, getLeftSection()); + } + if (rightSection_ != null) { + output.writeMessage(2, getRightSection()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (leftSection_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getLeftSection()); + } + if (rightSection_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getRightSection()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec)) { + return super.equals(obj); + } + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec other = (club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec) obj; + + if (hasLeftSection() != other.hasLeftSection()) return false; + if (hasLeftSection()) { + if (!getLeftSection() + .equals(other.getLeftSection())) return false; + } + if (hasRightSection() != other.hasRightSection()) return false; + if (hasRightSection()) { + if (!getRightSection() + .equals(other.getRightSection())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasLeftSection()) { + hash = (37 * hash) + LEFTSECTION_FIELD_NUMBER; + hash = (53 * hash) + getLeftSection().hashCode(); + } + if (hasRightSection()) { + hash = (37 * hash) + RIGHTSECTION_FIELD_NUMBER; + hash = (53 * hash) + getRightSection().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code graphicData.NodeConWithSec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:graphicData.NodeConWithSec) + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.internal_static_graphicData_NodeConWithSec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.internal_static_graphicData_NodeConWithSec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec.class, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec.Builder.class); + } + + // Construct using club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + leftSection_ = null; + if (leftSectionBuilder_ != null) { + leftSectionBuilder_.dispose(); + leftSectionBuilder_ = null; + } + rightSection_ = null; + if (rightSectionBuilder_ != null) { + rightSectionBuilder_.dispose(); + rightSectionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.internal_static_graphicData_NodeConWithSec_descriptor; + } + + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec getDefaultInstanceForType() { + return club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec.getDefaultInstance(); + } + + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec build() { + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec buildPartial() { + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec result = new club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.leftSection_ = leftSectionBuilder_ == null + ? leftSection_ + : leftSectionBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rightSection_ = rightSectionBuilder_ == null + ? rightSection_ + : rightSectionBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec) { + return mergeFrom((club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec other) { + if (other == club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec.getDefaultInstance()) return this; + if (other.hasLeftSection()) { + mergeLeftSection(other.getLeftSection()); + } + if (other.hasRightSection()) { + mergeRightSection(other.getRightSection()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getLeftSectionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getRightSectionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef leftSection_; + private com.google.protobuf.SingleFieldBuilderV3< + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef.Builder, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRefOrBuilder> leftSectionBuilder_; + /** + * .graphicData.RelatedRef leftSection = 1; + * @return Whether the leftSection field is set. + */ + public boolean hasLeftSection() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .graphicData.RelatedRef leftSection = 1; + * @return The leftSection. + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef getLeftSection() { + if (leftSectionBuilder_ == null) { + return leftSection_ == null ? club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef.getDefaultInstance() : leftSection_; + } else { + return leftSectionBuilder_.getMessage(); + } + } + /** + * .graphicData.RelatedRef leftSection = 1; + */ + public Builder setLeftSection(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef value) { + if (leftSectionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + leftSection_ = value; + } else { + leftSectionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .graphicData.RelatedRef leftSection = 1; + */ + public Builder setLeftSection( + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef.Builder builderForValue) { + if (leftSectionBuilder_ == null) { + leftSection_ = builderForValue.build(); + } else { + leftSectionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .graphicData.RelatedRef leftSection = 1; + */ + public Builder mergeLeftSection(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef value) { + if (leftSectionBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + leftSection_ != null && + leftSection_ != club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef.getDefaultInstance()) { + getLeftSectionBuilder().mergeFrom(value); + } else { + leftSection_ = value; + } + } else { + leftSectionBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .graphicData.RelatedRef leftSection = 1; + */ + public Builder clearLeftSection() { + bitField0_ = (bitField0_ & ~0x00000001); + leftSection_ = null; + if (leftSectionBuilder_ != null) { + leftSectionBuilder_.dispose(); + leftSectionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .graphicData.RelatedRef leftSection = 1; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef.Builder getLeftSectionBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getLeftSectionFieldBuilder().getBuilder(); + } + /** + * .graphicData.RelatedRef leftSection = 1; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRefOrBuilder getLeftSectionOrBuilder() { + if (leftSectionBuilder_ != null) { + return leftSectionBuilder_.getMessageOrBuilder(); + } else { + return leftSection_ == null ? + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef.getDefaultInstance() : leftSection_; + } + } + /** + * .graphicData.RelatedRef leftSection = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef.Builder, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRefOrBuilder> + getLeftSectionFieldBuilder() { + if (leftSectionBuilder_ == null) { + leftSectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef.Builder, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRefOrBuilder>( + getLeftSection(), + getParentForChildren(), + isClean()); + leftSection_ = null; + } + return leftSectionBuilder_; + } + + private club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef rightSection_; + private com.google.protobuf.SingleFieldBuilderV3< + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef.Builder, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRefOrBuilder> rightSectionBuilder_; + /** + * .graphicData.RelatedRef rightSection = 2; + * @return Whether the rightSection field is set. + */ + public boolean hasRightSection() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .graphicData.RelatedRef rightSection = 2; + * @return The rightSection. + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef getRightSection() { + if (rightSectionBuilder_ == null) { + return rightSection_ == null ? club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef.getDefaultInstance() : rightSection_; + } else { + return rightSectionBuilder_.getMessage(); + } + } + /** + * .graphicData.RelatedRef rightSection = 2; + */ + public Builder setRightSection(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef value) { + if (rightSectionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rightSection_ = value; + } else { + rightSectionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .graphicData.RelatedRef rightSection = 2; + */ + public Builder setRightSection( + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef.Builder builderForValue) { + if (rightSectionBuilder_ == null) { + rightSection_ = builderForValue.build(); + } else { + rightSectionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .graphicData.RelatedRef rightSection = 2; + */ + public Builder mergeRightSection(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef value) { + if (rightSectionBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + rightSection_ != null && + rightSection_ != club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef.getDefaultInstance()) { + getRightSectionBuilder().mergeFrom(value); + } else { + rightSection_ = value; + } + } else { + rightSectionBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .graphicData.RelatedRef rightSection = 2; + */ + public Builder clearRightSection() { + bitField0_ = (bitField0_ & ~0x00000002); + rightSection_ = null; + if (rightSectionBuilder_ != null) { + rightSectionBuilder_.dispose(); + rightSectionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .graphicData.RelatedRef rightSection = 2; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef.Builder getRightSectionBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getRightSectionFieldBuilder().getBuilder(); + } + /** + * .graphicData.RelatedRef rightSection = 2; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRefOrBuilder getRightSectionOrBuilder() { + if (rightSectionBuilder_ != null) { + return rightSectionBuilder_.getMessageOrBuilder(); + } else { + return rightSection_ == null ? + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef.getDefaultInstance() : rightSection_; + } + } + /** + * .graphicData.RelatedRef rightSection = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef.Builder, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRefOrBuilder> + getRightSectionFieldBuilder() { + if (rightSectionBuilder_ == null) { + rightSectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef.Builder, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRefOrBuilder>( + getRightSection(), + getParentForChildren(), + isClean()); + rightSection_ = null; + } + return rightSectionBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:graphicData.NodeConWithSec) + } + + // @@protoc_insertion_point(class_scope:graphicData.NodeConWithSec) + private static final club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec(); + } + + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeConWithSec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.NodeConWithSec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + public interface PlatformOrBuilder extends // @@protoc_insertion_point(interface_extends:graphicData.Platform) com.google.protobuf.MessageOrBuilder { @@ -17065,6 +20688,16 @@ public final class LayoutGraphicsProto { * @return The refSectionId. */ int getRefSectionId(); + + /** + *
+     * 集中站Id
+     * 
+ * + * uint32 centralizedStationId = 11; + * @return The centralizedStationId. + */ + int getCentralizedStationId(); } /** * Protobuf type {@code graphicData.Platform} @@ -17371,6 +21004,21 @@ public final class LayoutGraphicsProto { return refSectionId_; } + public static final int CENTRALIZEDSTATIONID_FIELD_NUMBER = 11; + private int centralizedStationId_ = 0; + /** + *
+     * 集中站Id
+     * 
+ * + * uint32 centralizedStationId = 11; + * @return The centralizedStationId. + */ + @java.lang.Override + public int getCentralizedStationId() { + return centralizedStationId_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -17412,6 +21060,9 @@ public final class LayoutGraphicsProto { if (refSectionId_ != 0) { output.writeUInt32(10, refSectionId_); } + if (centralizedStationId_ != 0) { + output.writeUInt32(11, centralizedStationId_); + } getUnknownFields().writeTo(output); } @@ -17453,6 +21104,10 @@ public final class LayoutGraphicsProto { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(10, refSectionId_); } + if (centralizedStationId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(11, centralizedStationId_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -17489,6 +21144,8 @@ public final class LayoutGraphicsProto { != other.getRefStation()) return false; if (getRefSectionId() != other.getRefSectionId()) return false; + if (getCentralizedStationId() + != other.getCentralizedStationId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -17522,6 +21179,8 @@ public final class LayoutGraphicsProto { hash = (53 * hash) + getRefStation(); hash = (37 * hash) + REFSECTIONID_FIELD_NUMBER; hash = (53 * hash) + getRefSectionId(); + hash = (37 * hash) + CENTRALIZEDSTATIONID_FIELD_NUMBER; + hash = (53 * hash) + getCentralizedStationId(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -17666,6 +21325,7 @@ public final class LayoutGraphicsProto { oldrefSectionId_ = ""; refStation_ = 0; refSectionId_ = 0; + centralizedStationId_ = 0; return this; } @@ -17728,6 +21388,9 @@ public final class LayoutGraphicsProto { if (((from_bitField0_ & 0x00000100) != 0)) { result.refSectionId_ = refSectionId_; } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.centralizedStationId_ = centralizedStationId_; + } } @java.lang.Override @@ -17777,6 +21440,9 @@ public final class LayoutGraphicsProto { if (other.getRefSectionId() != 0) { setRefSectionId(other.getRefSectionId()); } + if (other.getCentralizedStationId() != 0) { + setCentralizedStationId(other.getCentralizedStationId()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -17850,6 +21516,11 @@ public final class LayoutGraphicsProto { bitField0_ |= 0x00000100; break; } // case 80 + case 88: { + centralizedStationId_ = input.readUInt32(); + bitField0_ |= 0x00000200; + break; + } // case 88 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -18509,6 +22180,50 @@ public final class LayoutGraphicsProto { onChanged(); return this; } + + private int centralizedStationId_ ; + /** + *
+       * 集中站Id
+       * 
+ * + * uint32 centralizedStationId = 11; + * @return The centralizedStationId. + */ + @java.lang.Override + public int getCentralizedStationId() { + return centralizedStationId_; + } + /** + *
+       * 集中站Id
+       * 
+ * + * uint32 centralizedStationId = 11; + * @param value The centralizedStationId to set. + * @return This builder for chaining. + */ + public Builder setCentralizedStationId(int value) { + + centralizedStationId_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+       * 集中站Id
+       * 
+ * + * uint32 centralizedStationId = 11; + * @return This builder for chaining. + */ + public Builder clearCentralizedStationId() { + bitField0_ = (bitField0_ & ~0x00000200); + centralizedStationId_ = 0; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -18662,6 +22377,35 @@ public final class LayoutGraphicsProto { */ com.google.protobuf.ByteString getNameBytes(); + + /** + *
+     * 如果是集中站——管理的车站-id
+     * 
+ * + * repeated uint32 manageStations = 8; + * @return A list containing the manageStations. + */ + java.util.List getManageStationsList(); + /** + *
+     * 如果是集中站——管理的车站-id
+     * 
+ * + * repeated uint32 manageStations = 8; + * @return The count of manageStations. + */ + int getManageStationsCount(); + /** + *
+     * 如果是集中站——管理的车站-id
+     * 
+ * + * repeated uint32 manageStations = 8; + * @param index The index of the element to return. + * @return The manageStations at the given index. + */ + int getManageStations(int index); } /** * Protobuf type {@code graphicData.Station} @@ -18678,6 +22422,7 @@ public final class LayoutGraphicsProto { private Station() { code_ = ""; name_ = ""; + manageStations_ = emptyIntList(); } @java.lang.Override @@ -18872,6 +22617,47 @@ public final class LayoutGraphicsProto { } } + public static final int MANAGESTATIONS_FIELD_NUMBER = 8; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList manageStations_; + /** + *
+     * 如果是集中站——管理的车站-id
+     * 
+ * + * repeated uint32 manageStations = 8; + * @return A list containing the manageStations. + */ + @java.lang.Override + public java.util.List + getManageStationsList() { + return manageStations_; + } + /** + *
+     * 如果是集中站——管理的车站-id
+     * 
+ * + * repeated uint32 manageStations = 8; + * @return The count of manageStations. + */ + public int getManageStationsCount() { + return manageStations_.size(); + } + /** + *
+     * 如果是集中站——管理的车站-id
+     * 
+ * + * repeated uint32 manageStations = 8; + * @param index The index of the element to return. + * @return The manageStations at the given index. + */ + public int getManageStations(int index) { + return manageStations_.getInt(index); + } + private int manageStationsMemoizedSerializedSize = -1; + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -18886,6 +22672,7 @@ public final class LayoutGraphicsProto { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); if (common_ != null) { output.writeMessage(1, getCommon()); } @@ -18904,6 +22691,13 @@ public final class LayoutGraphicsProto { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); } + if (getManageStationsList().size() > 0) { + output.writeUInt32NoTag(66); + output.writeUInt32NoTag(manageStationsMemoizedSerializedSize); + } + for (int i = 0; i < manageStations_.size(); i++) { + output.writeUInt32NoTag(manageStations_.getInt(i)); + } getUnknownFields().writeTo(output); } @@ -18935,6 +22729,20 @@ public final class LayoutGraphicsProto { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); } + { + int dataSize = 0; + for (int i = 0; i < manageStations_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(manageStations_.getInt(i)); + } + size += dataSize; + if (!getManageStationsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + manageStationsMemoizedSerializedSize = dataSize; + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -18968,6 +22776,8 @@ public final class LayoutGraphicsProto { } if (!getName() .equals(other.getName())) return false; + if (!getManageStationsList() + .equals(other.getManageStationsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -18997,6 +22807,10 @@ public final class LayoutGraphicsProto { } hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + if (getManageStationsCount() > 0) { + hash = (37 * hash) + MANAGESTATIONS_FIELD_NUMBER; + hash = (53 * hash) + getManageStationsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -19142,6 +22956,7 @@ public final class LayoutGraphicsProto { kilometerSystemBuilder_ = null; } name_ = ""; + manageStations_ = emptyIntList(); return this; } @@ -19168,11 +22983,20 @@ public final class LayoutGraphicsProto { @java.lang.Override public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Station buildPartial() { club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Station result = new club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Station(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } + private void buildPartialRepeatedFields(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Station result) { + if (((bitField0_ & 0x00000040) != 0)) { + manageStations_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.manageStations_ = manageStations_; + } + private void buildPartial0(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Station result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -19233,6 +23057,16 @@ public final class LayoutGraphicsProto { bitField0_ |= 0x00000020; onChanged(); } + if (!other.manageStations_.isEmpty()) { + if (manageStations_.isEmpty()) { + manageStations_ = other.manageStations_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureManageStationsIsMutable(); + manageStations_.addAll(other.manageStations_); + } + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -19293,6 +23127,22 @@ public final class LayoutGraphicsProto { bitField0_ |= 0x00000020; break; } // case 58 + case 64: { + int v = input.readUInt32(); + ensureManageStationsIsMutable(); + manageStations_.addInt(v); + break; + } // case 64 + case 66: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureManageStationsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + manageStations_.addInt(input.readUInt32()); + } + input.popLimit(limit); + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -19815,6 +23665,115 @@ public final class LayoutGraphicsProto { onChanged(); return this; } + + private com.google.protobuf.Internal.IntList manageStations_ = emptyIntList(); + private void ensureManageStationsIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + manageStations_ = mutableCopy(manageStations_); + bitField0_ |= 0x00000040; + } + } + /** + *
+       * 如果是集中站——管理的车站-id
+       * 
+ * + * repeated uint32 manageStations = 8; + * @return A list containing the manageStations. + */ + public java.util.List + getManageStationsList() { + return ((bitField0_ & 0x00000040) != 0) ? + java.util.Collections.unmodifiableList(manageStations_) : manageStations_; + } + /** + *
+       * 如果是集中站——管理的车站-id
+       * 
+ * + * repeated uint32 manageStations = 8; + * @return The count of manageStations. + */ + public int getManageStationsCount() { + return manageStations_.size(); + } + /** + *
+       * 如果是集中站——管理的车站-id
+       * 
+ * + * repeated uint32 manageStations = 8; + * @param index The index of the element to return. + * @return The manageStations at the given index. + */ + public int getManageStations(int index) { + return manageStations_.getInt(index); + } + /** + *
+       * 如果是集中站——管理的车站-id
+       * 
+ * + * repeated uint32 manageStations = 8; + * @param index The index to set the value at. + * @param value The manageStations to set. + * @return This builder for chaining. + */ + public Builder setManageStations( + int index, int value) { + + ensureManageStationsIsMutable(); + manageStations_.setInt(index, value); + onChanged(); + return this; + } + /** + *
+       * 如果是集中站——管理的车站-id
+       * 
+ * + * repeated uint32 manageStations = 8; + * @param value The manageStations to add. + * @return This builder for chaining. + */ + public Builder addManageStations(int value) { + + ensureManageStationsIsMutable(); + manageStations_.addInt(value); + onChanged(); + return this; + } + /** + *
+       * 如果是集中站——管理的车站-id
+       * 
+ * + * repeated uint32 manageStations = 8; + * @param values The manageStations to add. + * @return This builder for chaining. + */ + public Builder addAllManageStations( + java.lang.Iterable values) { + ensureManageStationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, manageStations_); + onChanged(); + return this; + } + /** + *
+       * 如果是集中站——管理的车站-id
+       * 
+ * + * repeated uint32 manageStations = 8; + * @return This builder for chaining. + */ + public Builder clearManageStations() { + manageStations_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -26061,6 +30020,16 @@ public final class LayoutGraphicsProto { */ club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.KilometerSystemOrBuilder getKilometerSystemOrBuilder( int index); + + /** + *
+     * 集中站Id
+     * 
+ * + * uint32 centralizedStationId = 14; + * @return The centralizedStationId. + */ + int getCentralizedStationId(); } /** * Protobuf type {@code graphicData.Turnout} @@ -26525,6 +30494,21 @@ public final class LayoutGraphicsProto { return kilometerSystem_.get(index); } + public static final int CENTRALIZEDSTATIONID_FIELD_NUMBER = 14; + private int centralizedStationId_ = 0; + /** + *
+     * 集中站Id
+     * 
+ * + * uint32 centralizedStationId = 14; + * @return The centralizedStationId. + */ + @java.lang.Override + public int getCentralizedStationId() { + return centralizedStationId_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -26566,6 +30550,9 @@ public final class LayoutGraphicsProto { for (int i = 0; i < kilometerSystem_.size(); i++) { output.writeMessage(13, kilometerSystem_.get(i)); } + if (centralizedStationId_ != 0) { + output.writeUInt32(14, centralizedStationId_); + } getUnknownFields().writeTo(output); } @@ -26610,6 +30597,10 @@ public final class LayoutGraphicsProto { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, kilometerSystem_.get(i)); } + if (centralizedStationId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(14, centralizedStationId_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -26655,6 +30646,8 @@ public final class LayoutGraphicsProto { } if (!getKilometerSystemList() .equals(other.getKilometerSystemList())) return false; + if (getCentralizedStationId() + != other.getCentralizedStationId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -26700,6 +30693,8 @@ public final class LayoutGraphicsProto { hash = (37 * hash) + KILOMETERSYSTEM_FIELD_NUMBER; hash = (53 * hash) + getKilometerSystemList().hashCode(); } + hash = (37 * hash) + CENTRALIZEDSTATIONID_FIELD_NUMBER; + hash = (53 * hash) + getCentralizedStationId(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -26880,6 +30875,7 @@ public final class LayoutGraphicsProto { kilometerSystemBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); + centralizedStationId_ = 0; return this; } @@ -26976,6 +30972,9 @@ public final class LayoutGraphicsProto { ? pcRef_ : pcRefBuilder_.build(); } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.centralizedStationId_ = centralizedStationId_; + } } @java.lang.Override @@ -27111,6 +31110,9 @@ public final class LayoutGraphicsProto { } } } + if (other.getCentralizedStationId() != 0) { + setCentralizedStationId(other.getCentralizedStationId()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -27222,6 +31224,11 @@ public final class LayoutGraphicsProto { } break; } // case 106 + case 112: { + centralizedStationId_ = input.readUInt32(); + bitField0_ |= 0x00000200; + break; + } // case 112 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -29142,6 +33149,50 @@ public final class LayoutGraphicsProto { } return kilometerSystemBuilder_; } + + private int centralizedStationId_ ; + /** + *
+       * 集中站Id
+       * 
+ * + * uint32 centralizedStationId = 14; + * @return The centralizedStationId. + */ + @java.lang.Override + public int getCentralizedStationId() { + return centralizedStationId_; + } + /** + *
+       * 集中站Id
+       * 
+ * + * uint32 centralizedStationId = 14; + * @param value The centralizedStationId to set. + * @return This builder for chaining. + */ + public Builder setCentralizedStationId(int value) { + + centralizedStationId_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+       * 集中站Id
+       * 
+ * + * uint32 centralizedStationId = 14; + * @return This builder for chaining. + */ + public Builder clearCentralizedStationId() { + bitField0_ = (bitField0_ & ~0x00000200); + centralizedStationId_ = 0; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -29865,6 +33916,43 @@ public final class LayoutGraphicsProto { * .graphicData.KilometerSystem kilometerSystem = 6; */ club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.KilometerSystemOrBuilder getKilometerSystemOrBuilder(); + + /** + *
+     * 关联设备(区段/道岔)
+     * 
+ * + * .graphicData.RelatedRef refDevice = 7; + * @return Whether the refDevice field is set. + */ + boolean hasRefDevice(); + /** + *
+     * 关联设备(区段/道岔)
+     * 
+ * + * .graphicData.RelatedRef refDevice = 7; + * @return The refDevice. + */ + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef getRefDevice(); + /** + *
+     * 关联设备(区段/道岔)
+     * 
+ * + * .graphicData.RelatedRef refDevice = 7; + */ + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRefOrBuilder getRefDeviceOrBuilder(); + + /** + *
+     * 集中站Id
+     * 
+ * + * uint32 centralizedStationId = 8; + * @return The centralizedStationId. + */ + int getCentralizedStationId(); } /** * Protobuf type {@code graphicData.Signal} @@ -30019,6 +34107,59 @@ public final class LayoutGraphicsProto { return kilometerSystem_ == null ? club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.KilometerSystem.getDefaultInstance() : kilometerSystem_; } + public static final int REFDEVICE_FIELD_NUMBER = 7; + private club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef refDevice_; + /** + *
+     * 关联设备(区段/道岔)
+     * 
+ * + * .graphicData.RelatedRef refDevice = 7; + * @return Whether the refDevice field is set. + */ + @java.lang.Override + public boolean hasRefDevice() { + return refDevice_ != null; + } + /** + *
+     * 关联设备(区段/道岔)
+     * 
+ * + * .graphicData.RelatedRef refDevice = 7; + * @return The refDevice. + */ + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef getRefDevice() { + return refDevice_ == null ? club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef.getDefaultInstance() : refDevice_; + } + /** + *
+     * 关联设备(区段/道岔)
+     * 
+ * + * .graphicData.RelatedRef refDevice = 7; + */ + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRefOrBuilder getRefDeviceOrBuilder() { + return refDevice_ == null ? club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef.getDefaultInstance() : refDevice_; + } + + public static final int CENTRALIZEDSTATIONID_FIELD_NUMBER = 8; + private int centralizedStationId_ = 0; + /** + *
+     * 集中站Id
+     * 
+ * + * uint32 centralizedStationId = 8; + * @return The centralizedStationId. + */ + @java.lang.Override + public int getCentralizedStationId() { + return centralizedStationId_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -30045,6 +34186,12 @@ public final class LayoutGraphicsProto { if (kilometerSystem_ != null) { output.writeMessage(6, getKilometerSystem()); } + if (refDevice_ != null) { + output.writeMessage(7, getRefDevice()); + } + if (centralizedStationId_ != 0) { + output.writeUInt32(8, centralizedStationId_); + } getUnknownFields().writeTo(output); } @@ -30069,6 +34216,14 @@ public final class LayoutGraphicsProto { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getKilometerSystem()); } + if (refDevice_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getRefDevice()); + } + if (centralizedStationId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(8, centralizedStationId_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -30098,6 +34253,13 @@ public final class LayoutGraphicsProto { if (!getKilometerSystem() .equals(other.getKilometerSystem())) return false; } + if (hasRefDevice() != other.hasRefDevice()) return false; + if (hasRefDevice()) { + if (!getRefDevice() + .equals(other.getRefDevice())) return false; + } + if (getCentralizedStationId() + != other.getCentralizedStationId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -30122,6 +34284,12 @@ public final class LayoutGraphicsProto { hash = (37 * hash) + KILOMETERSYSTEM_FIELD_NUMBER; hash = (53 * hash) + getKilometerSystem().hashCode(); } + if (hasRefDevice()) { + hash = (37 * hash) + REFDEVICE_FIELD_NUMBER; + hash = (53 * hash) + getRefDevice().hashCode(); + } + hash = (37 * hash) + CENTRALIZEDSTATIONID_FIELD_NUMBER; + hash = (53 * hash) + getCentralizedStationId(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -30265,6 +34433,12 @@ public final class LayoutGraphicsProto { kilometerSystemBuilder_.dispose(); kilometerSystemBuilder_ = null; } + refDevice_ = null; + if (refDeviceBuilder_ != null) { + refDeviceBuilder_.dispose(); + refDeviceBuilder_ = null; + } + centralizedStationId_ = 0; return this; } @@ -30314,6 +34488,14 @@ public final class LayoutGraphicsProto { ? kilometerSystem_ : kilometerSystemBuilder_.build(); } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.refDevice_ = refDeviceBuilder_ == null + ? refDevice_ + : refDeviceBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.centralizedStationId_ = centralizedStationId_; + } } @java.lang.Override @@ -30342,6 +34524,12 @@ public final class LayoutGraphicsProto { if (other.hasKilometerSystem()) { mergeKilometerSystem(other.getKilometerSystem()); } + if (other.hasRefDevice()) { + mergeRefDevice(other.getRefDevice()); + } + if (other.getCentralizedStationId() != 0) { + setCentralizedStationId(other.getCentralizedStationId()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -30392,6 +34580,18 @@ public final class LayoutGraphicsProto { bitField0_ |= 0x00000008; break; } // case 50 + case 58: { + input.readMessage( + getRefDeviceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 58 + case 64: { + centralizedStationId_ = input.readUInt32(); + bitField0_ |= 0x00000020; + break; + } // case 64 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -30795,6 +34995,205 @@ public final class LayoutGraphicsProto { } return kilometerSystemBuilder_; } + + private club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef refDevice_; + private com.google.protobuf.SingleFieldBuilderV3< + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef.Builder, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRefOrBuilder> refDeviceBuilder_; + /** + *
+       * 关联设备(区段/道岔)
+       * 
+ * + * .graphicData.RelatedRef refDevice = 7; + * @return Whether the refDevice field is set. + */ + public boolean hasRefDevice() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+       * 关联设备(区段/道岔)
+       * 
+ * + * .graphicData.RelatedRef refDevice = 7; + * @return The refDevice. + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef getRefDevice() { + if (refDeviceBuilder_ == null) { + return refDevice_ == null ? club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef.getDefaultInstance() : refDevice_; + } else { + return refDeviceBuilder_.getMessage(); + } + } + /** + *
+       * 关联设备(区段/道岔)
+       * 
+ * + * .graphicData.RelatedRef refDevice = 7; + */ + public Builder setRefDevice(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef value) { + if (refDeviceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + refDevice_ = value; + } else { + refDeviceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * 关联设备(区段/道岔)
+       * 
+ * + * .graphicData.RelatedRef refDevice = 7; + */ + public Builder setRefDevice( + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef.Builder builderForValue) { + if (refDeviceBuilder_ == null) { + refDevice_ = builderForValue.build(); + } else { + refDeviceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * 关联设备(区段/道岔)
+       * 
+ * + * .graphicData.RelatedRef refDevice = 7; + */ + public Builder mergeRefDevice(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef value) { + if (refDeviceBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + refDevice_ != null && + refDevice_ != club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef.getDefaultInstance()) { + getRefDeviceBuilder().mergeFrom(value); + } else { + refDevice_ = value; + } + } else { + refDeviceBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * 关联设备(区段/道岔)
+       * 
+ * + * .graphicData.RelatedRef refDevice = 7; + */ + public Builder clearRefDevice() { + bitField0_ = (bitField0_ & ~0x00000010); + refDevice_ = null; + if (refDeviceBuilder_ != null) { + refDeviceBuilder_.dispose(); + refDeviceBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * 关联设备(区段/道岔)
+       * 
+ * + * .graphicData.RelatedRef refDevice = 7; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef.Builder getRefDeviceBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getRefDeviceFieldBuilder().getBuilder(); + } + /** + *
+       * 关联设备(区段/道岔)
+       * 
+ * + * .graphicData.RelatedRef refDevice = 7; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRefOrBuilder getRefDeviceOrBuilder() { + if (refDeviceBuilder_ != null) { + return refDeviceBuilder_.getMessageOrBuilder(); + } else { + return refDevice_ == null ? + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef.getDefaultInstance() : refDevice_; + } + } + /** + *
+       * 关联设备(区段/道岔)
+       * 
+ * + * .graphicData.RelatedRef refDevice = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef.Builder, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRefOrBuilder> + getRefDeviceFieldBuilder() { + if (refDeviceBuilder_ == null) { + refDeviceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef.Builder, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRefOrBuilder>( + getRefDevice(), + getParentForChildren(), + isClean()); + refDevice_ = null; + } + return refDeviceBuilder_; + } + + private int centralizedStationId_ ; + /** + *
+       * 集中站Id
+       * 
+ * + * uint32 centralizedStationId = 8; + * @return The centralizedStationId. + */ + @java.lang.Override + public int getCentralizedStationId() { + return centralizedStationId_; + } + /** + *
+       * 集中站Id
+       * 
+ * + * uint32 centralizedStationId = 8; + * @param value The centralizedStationId to set. + * @return This builder for chaining. + */ + public Builder setCentralizedStationId(int value) { + + centralizedStationId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+       * 集中站Id
+       * 
+ * + * uint32 centralizedStationId = 8; + * @return This builder for chaining. + */ + public Builder clearCentralizedStationId() { + bitField0_ = (bitField0_ & ~0x00000020); + centralizedStationId_ = 0; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -34172,6 +38571,16 @@ public final class LayoutGraphicsProto { * @return The children at the given index. */ int getChildren(int index); + + /** + *
+     * 集中站Id
+     * 
+ * + * uint32 centralizedStationId = 12; + * @return The centralizedStationId. + */ + int getCentralizedStationId(); } /** *
@@ -34750,6 +39159,21 @@ public final class LayoutGraphicsProto {
     }
     private int childrenMemoizedSerializedSize = -1;
 
+    public static final int CENTRALIZEDSTATIONID_FIELD_NUMBER = 12;
+    private int centralizedStationId_ = 0;
+    /**
+     * 
+     * 集中站Id
+     * 
+ * + * uint32 centralizedStationId = 12; + * @return The centralizedStationId. + */ + @java.lang.Override + public int getCentralizedStationId() { + return centralizedStationId_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -34802,6 +39226,9 @@ public final class LayoutGraphicsProto { for (int i = 0; i < children_.size(); i++) { output.writeUInt32NoTag(children_.getInt(i)); } + if (centralizedStationId_ != 0) { + output.writeUInt32(12, centralizedStationId_); + } getUnknownFields().writeTo(output); } @@ -34871,6 +39298,10 @@ public final class LayoutGraphicsProto { } childrenMemoizedSerializedSize = dataSize; } + if (centralizedStationId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(12, centralizedStationId_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -34916,6 +39347,8 @@ public final class LayoutGraphicsProto { != other.getTurning()) return false; if (!getChildrenList() .equals(other.getChildrenList())) return false; + if (getCentralizedStationId() + != other.getCentralizedStationId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -34964,6 +39397,8 @@ public final class LayoutGraphicsProto { hash = (37 * hash) + CHILDREN_FIELD_NUMBER; hash = (53 * hash) + getChildrenList().hashCode(); } + hash = (37 * hash) + CENTRALIZEDSTATIONID_FIELD_NUMBER; + hash = (53 * hash) + getCentralizedStationId(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -35130,6 +39565,7 @@ public final class LayoutGraphicsProto { destinationCode_ = ""; turning_ = false; children_ = emptyIntList(); + centralizedStationId_ = 0; return this; } @@ -35216,6 +39652,9 @@ public final class LayoutGraphicsProto { if (((from_bitField0_ & 0x00000200) != 0)) { result.turning_ = turning_; } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.centralizedStationId_ = centralizedStationId_; + } } @java.lang.Override @@ -35311,6 +39750,9 @@ public final class LayoutGraphicsProto { } onChanged(); } + if (other.getCentralizedStationId() != 0) { + setCentralizedStationId(other.getCentralizedStationId()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -35419,6 +39861,11 @@ public final class LayoutGraphicsProto { input.popLimit(limit); break; } // case 90 + case 96: { + centralizedStationId_ = input.readUInt32(); + bitField0_ |= 0x00000800; + break; + } // case 96 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -36760,6 +41207,50 @@ public final class LayoutGraphicsProto { onChanged(); return this; } + + private int centralizedStationId_ ; + /** + *
+       * 集中站Id
+       * 
+ * + * uint32 centralizedStationId = 12; + * @return The centralizedStationId. + */ + @java.lang.Override + public int getCentralizedStationId() { + return centralizedStationId_; + } + /** + *
+       * 集中站Id
+       * 
+ * + * uint32 centralizedStationId = 12; + * @param value The centralizedStationId to set. + * @return This builder for chaining. + */ + public Builder setCentralizedStationId(int value) { + + centralizedStationId_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+       * 集中站Id
+       * 
+ * + * uint32 centralizedStationId = 12; + * @return This builder for chaining. + */ + public Builder clearCentralizedStationId() { + bitField0_ = (bitField0_ & ~0x00000800); + centralizedStationId_ = 0; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -42559,6 +47050,16 @@ public final class LayoutGraphicsProto { private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_graphicData_Polygon_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_graphicData_ConcentrationDividingLine_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_graphicData_ConcentrationDividingLine_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_graphicData_NodeConWithSec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_graphicData_NodeConWithSec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_graphicData_Platform_descriptor; private static final @@ -42659,7 +47160,7 @@ public final class LayoutGraphicsProto { static { java.lang.String[] descriptorData = { "\n\033stationLayoutGraphics.proto\022\013graphicDa" + - "ta\"\245\006\n\022RtssGraphicStorage\022#\n\006canvas\030\001 \001(" + + "ta\"\361\006\n\022RtssGraphicStorage\022#\n\006canvas\030\001 \001(" + "\0132\023.graphicData.Canvas\022 \n\005links\030\002 \003(\0132\021." + "graphicData.Link\022&\n\010iscsFans\030\003 \003(\0132\024.gra" + "phicData.IscsFan\022(\n\tPlatforms\030\004 \003(\0132\025.gr" + @@ -42679,111 +47180,128 @@ public final class LayoutGraphicsProto { "ngs\030\021 \003(\0132\031.graphicData.AxleCounting\022*\n\n" + "separators\030\022 \003(\0132\026.graphicData.Separator" + "\0220\n\rlogicSections\030\023 \003(\0132\031.graphicData.Lo" + - "gicSection\"s\n\006Canvas\022\r\n\005width\030\001 \001(\005\022\016\n\006h" + - "eight\030\002 \001(\005\022\027\n\017backgroundColor\030\003 \001(\t\0221\n\021" + - "viewportTransform\030\004 \001(\0132\026.graphicData.Tr" + - "ansform\"\035\n\005Point\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\"\210" + - "\001\n\tTransform\022$\n\010position\030\001 \001(\0132\022.graphic" + - "Data.Point\022!\n\005scale\030\002 \001(\0132\022.graphicData." + - "Point\022\020\n\010rotation\030\003 \001(\002\022 \n\004skew\030\004 \001(\0132\022." + - "graphicData.Point\"I\n\016ChildTransform\022\014\n\004n" + - "ame\030\001 \001(\t\022)\n\ttransform\030\002 \001(\0132\026.graphicDa" + - "ta.Transform\"\235\001\n\nCommonInfo\022\r\n\005oldid\030\001 \001" + - "(\t\022\023\n\013graphicType\030\002 \001(\t\022)\n\ttransform\030\003 \001" + - "(\0132\026.graphicData.Transform\0224\n\017childTrans" + - "forms\030\004 \003(\0132\033.graphicData.ChildTransform" + - "\022\n\n\002id\030\005 \001(\r\"\255\001\n\004Link\022\'\n\006common\030\001 \001(\0132\027." + - "graphicData.CommonInfo\022\014\n\004code\030\002 \001(\t\022\r\n\005" + - "curve\030\003 \001(\010\022\025\n\rsegmentsCount\030\004 \001(\005\022\021\n\tli" + - "neWidth\030\005 \001(\005\022\021\n\tlineColor\030\006 \001(\t\022\"\n\006poin" + - "ts\030\007 \003(\0132\022.graphicData.Point\"\265\001\n\004Rect\022\'\n" + - "\006common\030\001 \001(\0132\027.graphicData.CommonInfo\022\014" + - "\n\004code\030\002 \001(\t\022\021\n\tlineWidth\030\003 \001(\005\022\021\n\tlineC" + - "olor\030\004 \001(\t\022\r\n\005width\030\005 \001(\002\022\016\n\006height\030\006 \001(" + - "\002\022\016\n\006radius\030\007 \001(\005\022!\n\005point\030\010 \001(\0132\022.graph" + - "icData.Point\"\212\001\n\007Polygon\022\'\n\006common\030\001 \001(\013" + - "2\027.graphicData.CommonInfo\022\014\n\004code\030\002 \001(\t\022" + - "\021\n\tlineWidth\030\003 \001(\005\022\021\n\tlineColor\030\004 \001(\t\022\"\n" + - "\006points\030\005 \003(\0132\022.graphicData.Point\"\313\001\n\010Pl" + + "gicSection\022J\n\032concentrationDividingLines" + + "\030\024 \003(\0132&.graphicData.ConcentrationDividi" + + "ngLine\"s\n\006Canvas\022\r\n\005width\030\001 \001(\005\022\016\n\006heigh" + + "t\030\002 \001(\005\022\027\n\017backgroundColor\030\003 \001(\t\0221\n\021view" + + "portTransform\030\004 \001(\0132\026.graphicData.Transf" + + "orm\"\035\n\005Point\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\"\210\001\n\tT" + + "ransform\022$\n\010position\030\001 \001(\0132\022.graphicData" + + ".Point\022!\n\005scale\030\002 \001(\0132\022.graphicData.Poin" + + "t\022\020\n\010rotation\030\003 \001(\002\022 \n\004skew\030\004 \001(\0132\022.grap" + + "hicData.Point\"I\n\016ChildTransform\022\014\n\004name\030" + + "\001 \001(\t\022)\n\ttransform\030\002 \001(\0132\026.graphicData.T" + + "ransform\"\235\001\n\nCommonInfo\022\r\n\005oldid\030\001 \001(\t\022\023" + + "\n\013graphicType\030\002 \001(\t\022)\n\ttransform\030\003 \001(\0132\026" + + ".graphicData.Transform\0224\n\017childTransform" + + "s\030\004 \003(\0132\033.graphicData.ChildTransform\022\n\n\002" + + "id\030\005 \001(\r\"\255\001\n\004Link\022\'\n\006common\030\001 \001(\0132\027.grap" + + "hicData.CommonInfo\022\014\n\004code\030\002 \001(\t\022\r\n\005curv" + + "e\030\003 \001(\010\022\025\n\rsegmentsCount\030\004 \001(\005\022\021\n\tlineWi" + + "dth\030\005 \001(\005\022\021\n\tlineColor\030\006 \001(\t\022\"\n\006points\030\007" + + " \003(\0132\022.graphicData.Point\"\265\001\n\004Rect\022\'\n\006com" + + "mon\030\001 \001(\0132\027.graphicData.CommonInfo\022\014\n\004co" + + "de\030\002 \001(\t\022\021\n\tlineWidth\030\003 \001(\005\022\021\n\tlineColor" + + "\030\004 \001(\t\022\r\n\005width\030\005 \001(\002\022\016\n\006height\030\006 \001(\002\022\016\n" + + "\006radius\030\007 \001(\005\022!\n\005point\030\010 \001(\0132\022.graphicDa" + + "ta.Point\"\212\001\n\007Polygon\022\'\n\006common\030\001 \001(\0132\027.g" + + "raphicData.CommonInfo\022\014\n\004code\030\002 \001(\t\022\021\n\tl" + + "ineWidth\030\003 \001(\005\022\021\n\tlineColor\030\004 \001(\t\022\"\n\006poi" + + "nts\030\005 \003(\0132\022.graphicData.Point\"\312\002\n\031Concen" + + "trationDividingLine\022\'\n\006common\030\001 \001(\0132\027.gr" + + "aphicData.CommonInfo\022\014\n\004code\030\002 \001(\t\022\"\n\006po" + + "ints\030\003 \003(\0132\022.graphicData.Point\022\033\n\023oldref" + + "LeftStationId\030\004 \001(\t\022\034\n\024oldrefRightStatio" + + "nId\030\005 \001(\t\0224\n\017nodeConWithSecs\030\006 \003(\0132\033.gra" + + "phicData.NodeConWithSec\022,\n$isOtherLineCo" + + "ncentrationDividingLine\030\007 \001(\010\022\030\n\020refLeft" + + "StationId\030\010 \001(\r\022\031\n\021refRightStationId\030\t \001" + + "(\r\"m\n\016NodeConWithSec\022,\n\013leftSection\030\001 \001(" + + "\0132\027.graphicData.RelatedRef\022-\n\014rightSecti" + + "on\030\002 \001(\0132\027.graphicData.RelatedRef\"\351\001\n\010Pl" + "atform\022\'\n\006common\030\001 \001(\0132\027.graphicData.Com" + "monInfo\022\014\n\004code\030\002 \001(\t\022\017\n\007hasdoor\030\003 \001(\010\022\021" + "\n\tdirection\030\004 \001(\t\022\025\n\roldrefStation\030\006 \001(\t" + "\022\n\n\002up\030\007 \001(\010\022\027\n\017oldrefSectionId\030\010 \001(\t\022\022\n" + - "\nrefStation\030\t \001(\r\022\024\n\014refSectionId\030\n \001(\r\"" + - "\270\001\n\007Station\022\'\n\006common\030\001 \001(\0132\027.graphicDat" + - "a.CommonInfo\022\014\n\004code\030\002 \001(\t\022\022\n\nhasControl" + - "\030\003 \001(\010\022\035\n\025concentrationStations\030\004 \001(\010\0225\n" + - "\017kilometerSystem\030\006 \001(\0132\034.graphicData.Kil" + - "ometerSystem\022\014\n\004name\030\007 \001(\t\"\313\001\n\013StationLi" + - "ne\022\'\n\006common\030\001 \001(\0132\027.graphicData.CommonI" + - "nfo\022\014\n\004code\030\002 \001(\t\022\023\n\013hasTransfer\030\003 \001(\010\022\020" + - "\n\010hideName\030\004 \001(\010\0228\n\tcodeColor\030\005 \001(\0162%.gr" + - "aphicData.StationLine.stationColor\"$\n\014st" + - "ationColor\022\n\n\006orange\020\000\022\010\n\004gray\020\001\"q\n\013Trai" + - "nWindow\022\'\n\006common\030\001 \001(\0132\027.graphicData.Co" + - "mmonInfo\022\014\n\004code\030\002 \001(\t\022\026\n\016oldrefDeviceId" + - "\030\003 \003(\t\022\023\n\013refDeviceId\030\004 \003(\r\"\256\001\n\014AxleCoun" + - "ting\022\'\n\006common\030\001 \001(\0132\027.graphicData.Commo" + - "nInfo\022\014\n\004code\030\002 \001(\t\0225\n\017kilometerSystem\030\003" + - " \001(\0132\034.graphicData.KilometerSystem\0220\n\017ax" + - "leCountingRef\030\004 \003(\0132\027.graphicData.Relate" + - "dRef\">\n\005Train\022\'\n\006common\030\001 \001(\0132\027.graphicD" + - "ata.CommonInfo\022\014\n\004code\030\002 \001(\t\"B\n\tTrainLin" + - "e\022\'\n\006common\030\001 \001(\0132\027.graphicData.CommonIn" + - "fo\022\014\n\004code\030\002 \001(\t\"@\n\007IscsFan\022\'\n\006common\030\001 " + + "\nrefStation\030\t \001(\r\022\024\n\014refSectionId\030\n \001(\r\022" + + "\034\n\024centralizedStationId\030\013 \001(\r\"\320\001\n\007Statio" + + "n\022\'\n\006common\030\001 \001(\0132\027.graphicData.CommonIn" + + "fo\022\014\n\004code\030\002 \001(\t\022\022\n\nhasControl\030\003 \001(\010\022\035\n\025" + + "concentrationStations\030\004 \001(\010\0225\n\017kilometer" + + "System\030\006 \001(\0132\034.graphicData.KilometerSyst" + + "em\022\014\n\004name\030\007 \001(\t\022\026\n\016manageStations\030\010 \003(\r" + + "\"\313\001\n\013StationLine\022\'\n\006common\030\001 \001(\0132\027.graph" + + "icData.CommonInfo\022\014\n\004code\030\002 \001(\t\022\023\n\013hasTr" + + "ansfer\030\003 \001(\010\022\020\n\010hideName\030\004 \001(\010\0228\n\tcodeCo" + + "lor\030\005 \001(\0162%.graphicData.StationLine.stat" + + "ionColor\"$\n\014stationColor\022\n\n\006orange\020\000\022\010\n\004" + + "gray\020\001\"q\n\013TrainWindow\022\'\n\006common\030\001 \001(\0132\027." + + "graphicData.CommonInfo\022\014\n\004code\030\002 \001(\t\022\026\n\016" + + "oldrefDeviceId\030\003 \003(\t\022\023\n\013refDeviceId\030\004 \003(" + + "\r\"\256\001\n\014AxleCounting\022\'\n\006common\030\001 \001(\0132\027.gra" + + "phicData.CommonInfo\022\014\n\004code\030\002 \001(\t\0225\n\017kil" + + "ometerSystem\030\003 \001(\0132\034.graphicData.Kilomet" + + "erSystem\0220\n\017axleCountingRef\030\004 \003(\0132\027.grap" + + "hicData.RelatedRef\">\n\005Train\022\'\n\006common\030\001 " + "\001(\0132\027.graphicData.CommonInfo\022\014\n\004code\030\002 \001" + - "(\t\"\333\002\n\007Turnout\022\'\n\006common\030\001 \001(\0132\027.graphic" + - "Data.CommonInfo\022\014\n\004code\030\002 \001(\t\022\"\n\006pointA\030" + - "\006 \003(\0132\022.graphicData.Point\022\"\n\006pointB\030\007 \003(" + - "\0132\022.graphicData.Point\022\"\n\006pointC\030\010 \003(\0132\022." + - "graphicData.Point\022&\n\005paRef\030\t \001(\0132\027.graph" + - "icData.RelatedRef\022&\n\005pbRef\030\n \001(\0132\027.graph" + - "icData.RelatedRef\022&\n\005pcRef\030\013 \001(\0132\027.graph" + - "icData.RelatedRef\0225\n\017kilometerSystem\030\r \003" + - "(\0132\034.graphicData.KilometerSystem\">\n\017Kilo" + - "meterSystem\022\021\n\tkilometer\030\001 \001(\003\022\030\n\020coordi" + - "nateSystem\030\002 \001(\t\"\206\001\n\006Signal\022\'\n\006common\030\001 " + - "\001(\0132\027.graphicData.CommonInfo\022\014\n\004code\030\002 \001" + - "(\t\022\016\n\006mirror\030\003 \001(\010\0225\n\017kilometerSystem\030\006 " + - "\001(\0132\034.graphicData.KilometerSystem\"\246\002\n\007Ru" + - "nLine\022\'\n\006common\030\001 \001(\0132\027.graphicData.Comm" + - "onInfo\022\014\n\004code\030\002 \001(\t\022\"\n\006points\030\003 \003(\0132\022.g" + - "raphicData.Point\022\021\n\tnameColor\030\004 \001(\t\022\023\n\013n" + - "ameBgColor\030\005 \001(\t\022\022\n\ncontainSta\030\010 \003(\t\022\030\n\020" + - "oldlinkPathLines\030\t \003(\t\022\016\n\006lineId\030\n \001(\t\022\027" + - "\n\017dashPointIndexs\030\013 \003(\005\022\027\n\017grayPointInde" + - "xs\030\014 \003(\005\022\021\n\tlineColor\030\r \001(\t\022\025\n\rlinkPathL" + - "ines\030\016 \003(\r\"\205\003\n\007Section\022\'\n\006common\030\001 \001(\0132\027" + - ".graphicData.CommonInfo\022\014\n\004code\030\002 \001(\t\022\"\n" + - "\006points\030\003 \003(\0132\022.graphicData.Point\022&\n\005paR" + - "ef\030\004 \001(\0132\027.graphicData.RelatedRef\022&\n\005pbR" + - "ef\030\005 \001(\0132\027.graphicData.RelatedRef\0225\n\013sec" + - "tionType\030\006 \001(\0162 .graphicData.Section.Sec" + - "tionType\022\025\n\raxleCountings\030\007 \003(\t\022\023\n\013oldch" + - "ildren\030\010 \003(\t\022\027\n\017destinationCode\030\t \001(\t\022\017\n" + - "\007turning\030\n \001(\010\022\020\n\010children\030\013 \003(\r\"0\n\013Sect" + - "ionType\022\014\n\010Physical\020\000\022\023\n\017TurnoutPhysical" + - "\020\002\"i\n\014LogicSection\022\'\n\006common\030\001 \001(\0132\027.gra" + - "phicData.CommonInfo\022\014\n\004code\030\002 \001(\t\022\"\n\006poi" + - "nts\030\003 \003(\0132\022.graphicData.Point\"V\n\016Kilomet" + - "erPoint\022!\n\005point\030\001 \001(\0132\022.graphicData.Poi" + - "nt\022\021\n\tkilometer\030\002 \001(\003\022\016\n\006stName\030\003 \001(\t\"\277\001" + - "\n\010PathLine\022\'\n\006common\030\001 \001(\0132\027.graphicData" + - ".CommonInfo\022\014\n\004code\030\002 \001(\t\022\"\n\006points\030\003 \003(" + - "\0132\022.graphicData.Point\022\014\n\004isUp\030\004 \001(\010\0224\n\017k" + - "ilometerPoints\030\005 \003(\0132\033.graphicData.Kilom" + - "eterPoint\022\024\n\014isKmIncrease\030\006 \001(\010\"\205\002\n\nRela" + - "tedRef\0226\n\ndeviceType\030\001 \001(\0162\".graphicData" + - ".RelatedRef.DeviceType\022\r\n\005oldid\030\002 \001(\t\0226\n" + - "\ndevicePort\030\003 \001(\0162\".graphicData.RelatedR" + - "ef.DevicePort\022\n\n\002id\030\004 \001(\r\"I\n\nDeviceType\022" + - "\013\n\007Section\020\000\022\013\n\007Turnout\020\001\022\017\n\013TrainWindow" + - "\020\002\022\020\n\014AxleCounting\020\003\"!\n\nDevicePort\022\005\n\001A\020" + - "\000\022\005\n\001B\020\001\022\005\n\001C\020\002\"Y\n\tSeparator\022\'\n\006common\030\001" + + "(\t\"B\n\tTrainLine\022\'\n\006common\030\001 \001(\0132\027.graphi" + + "cData.CommonInfo\022\014\n\004code\030\002 \001(\t\"@\n\007IscsFa" + + "n\022\'\n\006common\030\001 \001(\0132\027.graphicData.CommonIn" + + "fo\022\014\n\004code\030\002 \001(\t\"\371\002\n\007Turnout\022\'\n\006common\030\001" + " \001(\0132\027.graphicData.CommonInfo\022\014\n\004code\030\002 " + - "\001(\t\022\025\n\rseparatorType\030\003 \001(\tB8\n!club.joyli" + - "nk.xiannccda.dto.protosB\023LayoutGraphicsP" + - "rotob\006proto3" + "\001(\t\022\"\n\006pointA\030\006 \003(\0132\022.graphicData.Point\022" + + "\"\n\006pointB\030\007 \003(\0132\022.graphicData.Point\022\"\n\006p" + + "ointC\030\010 \003(\0132\022.graphicData.Point\022&\n\005paRef" + + "\030\t \001(\0132\027.graphicData.RelatedRef\022&\n\005pbRef" + + "\030\n \001(\0132\027.graphicData.RelatedRef\022&\n\005pcRef" + + "\030\013 \001(\0132\027.graphicData.RelatedRef\0225\n\017kilom" + + "eterSystem\030\r \003(\0132\034.graphicData.Kilometer" + + "System\022\034\n\024centralizedStationId\030\016 \001(\r\">\n\017" + + "KilometerSystem\022\021\n\tkilometer\030\001 \001(\003\022\030\n\020co" + + "ordinateSystem\030\002 \001(\t\"\320\001\n\006Signal\022\'\n\006commo" + + "n\030\001 \001(\0132\027.graphicData.CommonInfo\022\014\n\004code" + + "\030\002 \001(\t\022\016\n\006mirror\030\003 \001(\010\0225\n\017kilometerSyste" + + "m\030\006 \001(\0132\034.graphicData.KilometerSystem\022*\n" + + "\trefDevice\030\007 \001(\0132\027.graphicData.RelatedRe" + + "f\022\034\n\024centralizedStationId\030\010 \001(\r\"\246\002\n\007RunL" + + "ine\022\'\n\006common\030\001 \001(\0132\027.graphicData.Common" + + "Info\022\014\n\004code\030\002 \001(\t\022\"\n\006points\030\003 \003(\0132\022.gra" + + "phicData.Point\022\021\n\tnameColor\030\004 \001(\t\022\023\n\013nam" + + "eBgColor\030\005 \001(\t\022\022\n\ncontainSta\030\010 \003(\t\022\030\n\020ol" + + "dlinkPathLines\030\t \003(\t\022\016\n\006lineId\030\n \001(\t\022\027\n\017" + + "dashPointIndexs\030\013 \003(\005\022\027\n\017grayPointIndexs" + + "\030\014 \003(\005\022\021\n\tlineColor\030\r \001(\t\022\025\n\rlinkPathLin" + + "es\030\016 \003(\r\"\243\003\n\007Section\022\'\n\006common\030\001 \001(\0132\027.g" + + "raphicData.CommonInfo\022\014\n\004code\030\002 \001(\t\022\"\n\006p" + + "oints\030\003 \003(\0132\022.graphicData.Point\022&\n\005paRef" + + "\030\004 \001(\0132\027.graphicData.RelatedRef\022&\n\005pbRef" + + "\030\005 \001(\0132\027.graphicData.RelatedRef\0225\n\013secti" + + "onType\030\006 \001(\0162 .graphicData.Section.Secti" + + "onType\022\025\n\raxleCountings\030\007 \003(\t\022\023\n\013oldchil" + + "dren\030\010 \003(\t\022\027\n\017destinationCode\030\t \001(\t\022\017\n\007t" + + "urning\030\n \001(\010\022\020\n\010children\030\013 \003(\r\022\034\n\024centra" + + "lizedStationId\030\014 \001(\r\"0\n\013SectionType\022\014\n\010P" + + "hysical\020\000\022\023\n\017TurnoutPhysical\020\002\"i\n\014LogicS" + + "ection\022\'\n\006common\030\001 \001(\0132\027.graphicData.Com" + + "monInfo\022\014\n\004code\030\002 \001(\t\022\"\n\006points\030\003 \003(\0132\022." + + "graphicData.Point\"V\n\016KilometerPoint\022!\n\005p" + + "oint\030\001 \001(\0132\022.graphicData.Point\022\021\n\tkilome" + + "ter\030\002 \001(\003\022\016\n\006stName\030\003 \001(\t\"\277\001\n\010PathLine\022\'" + + "\n\006common\030\001 \001(\0132\027.graphicData.CommonInfo\022" + + "\014\n\004code\030\002 \001(\t\022\"\n\006points\030\003 \003(\0132\022.graphicD" + + "ata.Point\022\014\n\004isUp\030\004 \001(\010\0224\n\017kilometerPoin" + + "ts\030\005 \003(\0132\033.graphicData.KilometerPoint\022\024\n" + + "\014isKmIncrease\030\006 \001(\010\"\205\002\n\nRelatedRef\0226\n\nde" + + "viceType\030\001 \001(\0162\".graphicData.RelatedRef." + + "DeviceType\022\r\n\005oldid\030\002 \001(\t\0226\n\ndevicePort\030" + + "\003 \001(\0162\".graphicData.RelatedRef.DevicePor" + + "t\022\n\n\002id\030\004 \001(\r\"I\n\nDeviceType\022\013\n\007Section\020\000" + + "\022\013\n\007Turnout\020\001\022\017\n\013TrainWindow\020\002\022\020\n\014AxleCo" + + "unting\020\003\"!\n\nDevicePort\022\005\n\001A\020\000\022\005\n\001B\020\001\022\005\n\001" + + "C\020\002\"Y\n\tSeparator\022\'\n\006common\030\001 \001(\0132\027.graph" + + "icData.CommonInfo\022\014\n\004code\030\002 \001(\t\022\025\n\rsepar" + + "atorType\030\003 \001(\tB8\n!club.joylink.xiannccda" + + ".dto.protosB\023LayoutGraphicsProtob\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -42794,7 +47312,7 @@ public final class LayoutGraphicsProto { internal_static_graphicData_RtssGraphicStorage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_graphicData_RtssGraphicStorage_descriptor, - new java.lang.String[] { "Canvas", "Links", "IscsFans", "Platforms", "Stations", "Rects", "Train", "Signals", "Turnouts", "Section", "StationLines", "RunLines", "TrainLines", "PathLines", "Polygons", "TrainWindows", "AxleCountings", "Separators", "LogicSections", }); + new java.lang.String[] { "Canvas", "Links", "IscsFans", "Platforms", "Stations", "Rects", "Train", "Signals", "Turnouts", "Section", "StationLines", "RunLines", "TrainLines", "PathLines", "Polygons", "TrainWindows", "AxleCountings", "Separators", "LogicSections", "ConcentrationDividingLines", }); internal_static_graphicData_Canvas_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_graphicData_Canvas_fieldAccessorTable = new @@ -42843,110 +47361,122 @@ public final class LayoutGraphicsProto { com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_graphicData_Polygon_descriptor, new java.lang.String[] { "Common", "Code", "LineWidth", "LineColor", "Points", }); - internal_static_graphicData_Platform_descriptor = + internal_static_graphicData_ConcentrationDividingLine_descriptor = getDescriptor().getMessageTypes().get(9); + internal_static_graphicData_ConcentrationDividingLine_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_graphicData_ConcentrationDividingLine_descriptor, + new java.lang.String[] { "Common", "Code", "Points", "OldrefLeftStationId", "OldrefRightStationId", "NodeConWithSecs", "IsOtherLineConcentrationDividingLine", "RefLeftStationId", "RefRightStationId", }); + internal_static_graphicData_NodeConWithSec_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_graphicData_NodeConWithSec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_graphicData_NodeConWithSec_descriptor, + new java.lang.String[] { "LeftSection", "RightSection", }); + internal_static_graphicData_Platform_descriptor = + getDescriptor().getMessageTypes().get(11); internal_static_graphicData_Platform_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_graphicData_Platform_descriptor, - new java.lang.String[] { "Common", "Code", "Hasdoor", "Direction", "OldrefStation", "Up", "OldrefSectionId", "RefStation", "RefSectionId", }); + new java.lang.String[] { "Common", "Code", "Hasdoor", "Direction", "OldrefStation", "Up", "OldrefSectionId", "RefStation", "RefSectionId", "CentralizedStationId", }); internal_static_graphicData_Station_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(12); internal_static_graphicData_Station_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_graphicData_Station_descriptor, - new java.lang.String[] { "Common", "Code", "HasControl", "ConcentrationStations", "KilometerSystem", "Name", }); + new java.lang.String[] { "Common", "Code", "HasControl", "ConcentrationStations", "KilometerSystem", "Name", "ManageStations", }); internal_static_graphicData_StationLine_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(13); internal_static_graphicData_StationLine_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_graphicData_StationLine_descriptor, new java.lang.String[] { "Common", "Code", "HasTransfer", "HideName", "CodeColor", }); internal_static_graphicData_TrainWindow_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(14); internal_static_graphicData_TrainWindow_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_graphicData_TrainWindow_descriptor, new java.lang.String[] { "Common", "Code", "OldrefDeviceId", "RefDeviceId", }); internal_static_graphicData_AxleCounting_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(15); internal_static_graphicData_AxleCounting_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_graphicData_AxleCounting_descriptor, new java.lang.String[] { "Common", "Code", "KilometerSystem", "AxleCountingRef", }); internal_static_graphicData_Train_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(16); internal_static_graphicData_Train_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_graphicData_Train_descriptor, new java.lang.String[] { "Common", "Code", }); internal_static_graphicData_TrainLine_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(17); internal_static_graphicData_TrainLine_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_graphicData_TrainLine_descriptor, new java.lang.String[] { "Common", "Code", }); internal_static_graphicData_IscsFan_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(18); internal_static_graphicData_IscsFan_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_graphicData_IscsFan_descriptor, new java.lang.String[] { "Common", "Code", }); internal_static_graphicData_Turnout_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(19); internal_static_graphicData_Turnout_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_graphicData_Turnout_descriptor, - new java.lang.String[] { "Common", "Code", "PointA", "PointB", "PointC", "PaRef", "PbRef", "PcRef", "KilometerSystem", }); + new java.lang.String[] { "Common", "Code", "PointA", "PointB", "PointC", "PaRef", "PbRef", "PcRef", "KilometerSystem", "CentralizedStationId", }); internal_static_graphicData_KilometerSystem_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(20); internal_static_graphicData_KilometerSystem_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_graphicData_KilometerSystem_descriptor, new java.lang.String[] { "Kilometer", "CoordinateSystem", }); internal_static_graphicData_Signal_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(21); internal_static_graphicData_Signal_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_graphicData_Signal_descriptor, - new java.lang.String[] { "Common", "Code", "Mirror", "KilometerSystem", }); + new java.lang.String[] { "Common", "Code", "Mirror", "KilometerSystem", "RefDevice", "CentralizedStationId", }); internal_static_graphicData_RunLine_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(22); internal_static_graphicData_RunLine_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_graphicData_RunLine_descriptor, new java.lang.String[] { "Common", "Code", "Points", "NameColor", "NameBgColor", "ContainSta", "OldlinkPathLines", "LineId", "DashPointIndexs", "GrayPointIndexs", "LineColor", "LinkPathLines", }); internal_static_graphicData_Section_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(23); internal_static_graphicData_Section_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_graphicData_Section_descriptor, - new java.lang.String[] { "Common", "Code", "Points", "PaRef", "PbRef", "SectionType", "AxleCountings", "Oldchildren", "DestinationCode", "Turning", "Children", }); + new java.lang.String[] { "Common", "Code", "Points", "PaRef", "PbRef", "SectionType", "AxleCountings", "Oldchildren", "DestinationCode", "Turning", "Children", "CentralizedStationId", }); internal_static_graphicData_LogicSection_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(24); internal_static_graphicData_LogicSection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_graphicData_LogicSection_descriptor, new java.lang.String[] { "Common", "Code", "Points", }); internal_static_graphicData_KilometerPoint_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(25); internal_static_graphicData_KilometerPoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_graphicData_KilometerPoint_descriptor, new java.lang.String[] { "Point", "Kilometer", "StName", }); internal_static_graphicData_PathLine_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(26); internal_static_graphicData_PathLine_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_graphicData_PathLine_descriptor, new java.lang.String[] { "Common", "Code", "Points", "IsUp", "KilometerPoints", "IsKmIncrease", }); internal_static_graphicData_RelatedRef_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(27); internal_static_graphicData_RelatedRef_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_graphicData_RelatedRef_descriptor, new java.lang.String[] { "DeviceType", "Oldid", "DevicePort", "Id", }); internal_static_graphicData_Separator_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(28); internal_static_graphicData_Separator_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_graphicData_Separator_descriptor, diff --git a/src/main/java/club/joylink/xiannccda/mock/message/occ/MockOccServer.java b/src/main/java/club/joylink/xiannccda/mock/message/occ/MockOccServer.java index 4a8cfee..1d5705e 100644 --- a/src/main/java/club/joylink/xiannccda/mock/message/occ/MockOccServer.java +++ b/src/main/java/club/joylink/xiannccda/mock/message/occ/MockOccServer.java @@ -1,16 +1,29 @@ package club.joylink.xiannccda.mock.message.occ; +import club.joylink.xiannccda.alert.core.AlertDeviceType; +import club.joylink.xiannccda.ats.cache.LineGraphicDataRepository; import club.joylink.xiannccda.ats.message.MessageData; import club.joylink.xiannccda.ats.message.MessageId; import club.joylink.xiannccda.ats.message.OccMessageEncoder; +import club.joylink.xiannccda.ats.message.collect.DeviceStatusDataOperate; +import club.joylink.xiannccda.ats.message.convertor.DeviceStatusConvertor; import club.joylink.xiannccda.ats.message.line3.device.DeviceType; import club.joylink.xiannccda.dto.mock.show.NewAlertMockDTO; import club.joylink.xiannccda.dto.mock.show.NewAlertMockDTO.DeviceNameInfo; +import club.joylink.xiannccda.dto.protos.AlertConstProto.AlertType; +import club.joylink.xiannccda.dto.protos.DeviceStatusProto.Switch; +import club.joylink.xiannccda.dto.protos.DeviceStatusProto.Track; +import club.joylink.xiannccda.dto.protos.LayoutGraphicsProto; +import club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Section; +import club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Station; import club.joylink.xiannccda.mock.message.occ.req.MockDeviceStatusReq; import club.joylink.xiannccda.mock.message.occ.req.MockTrainRecordReq; import club.joylink.xiannccda.mock.message.occ.req.MockTrainUpdateReq; import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; +import com.baomidou.mybatisplus.core.toolkit.StringUtils; import com.google.common.collect.Lists; +import com.google.protobuf.GeneratedMessageV3.Builder; +import com.google.protobuf.MessageOrBuilder; import io.netty.bootstrap.ServerBootstrap; import io.netty.channel.ChannelFuture; import io.netty.channel.ChannelInitializer; @@ -24,8 +37,10 @@ import jakarta.annotation.PostConstruct; import java.time.Instant; import java.util.List; import java.util.Objects; +import java.util.Optional; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; +import java.util.stream.Collectors; import lombok.Data; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; @@ -109,30 +124,66 @@ public class MockOccServer { private List convertor(NewAlertMockDTO md) { MessageId messageId = md.parseMessageId(); short lineId = md.getLineId().shortValue(); - short rtuId = md.getRtuId().shortValue(); List list = Lists.newArrayList(); if (CollectionUtils.isEmpty(md.getDeviceInfos()) && messageId == MessageId.TRAIN_INDICATION_UPDATE) { + short rtuId = md.getRtuId().shortValue(); MockTrainUpdateReq req = new MockTrainUpdateReq(messageId, lineId, rtuId, DeviceType.DEVICE_TYPE_TRACK, "", md.deviceStatus()); req.setTime(Instant.ofEpochMilli(System.currentTimeMillis()).getEpochSecond()); list.add(req); } for (DeviceNameInfo di : md.getDeviceInfos()) { - + Integer rtuId_ = findDeviceRtuId((int) lineId, di.getDeviceType(), di.getDeviceName(), md.getAlertType()); if (messageId == MessageId.DEVICE_STATUS_CHANGE) { - MockDeviceStatusReq mockDeviceStatusReq = new MockDeviceStatusReq(messageId, lineId, rtuId, di.getDeviceType(), di.getDeviceName(), + MockDeviceStatusReq mockDeviceStatusReq = new MockDeviceStatusReq(messageId, lineId, rtuId_.shortValue(), di.getDeviceType(), di.getDeviceName(), md.deviceStatus()); mockDeviceStatusReq.setTime(Instant.ofEpochMilli(System.currentTimeMillis()).getEpochSecond()); list.add(mockDeviceStatusReq); } else if (messageId == MessageId.TRAIN_INDICATION_UPDATE) { - MockTrainUpdateReq req = new MockTrainUpdateReq(messageId, lineId, rtuId, di.getDeviceType(), di.getDeviceName(), md.deviceStatus()); + MockTrainUpdateReq req = new MockTrainUpdateReq(messageId, lineId, rtuId_.shortValue(), di.getDeviceType(), di.getDeviceName(), md.deviceStatus()); req.setTime(Instant.ofEpochMilli(System.currentTimeMillis()).getEpochSecond()); list.add(req); } } - return list; } + private Integer findDeviceRtuId(Integer lineId, DeviceType dt, String deviceName, AlertType alertType) { + if (alertType == AlertType.AXLE_LED_RED || alertType == AlertType.AXLE_LED_ORANGE) { + String axleSectionCode = LineGraphicDataRepository.findAxleCodeFromLogicCode(lineId, deviceName); + MessageOrBuilder section = LineGraphicDataRepository.getDeviceByCode(lineId, axleSectionCode); + Integer stationId = DeviceStatusDataOperate.findFieldVal(section, "centralizedStationId", Integer.class); +// LayoutGraphicsProto.Station station = LineGraphicDataRepository.getDeviceByCode(lineId, stationId.toString(), LayoutGraphicsProto.Station.class); +// System.out.println(section); +// return Integer.parseInt(station.getCode()); + return this.findRtuStation(lineId, stationId); + } else if (alertType == AlertType.BLUE_DISPLAY) { + Optional stationOptional = LineGraphicDataRepository.getDevices(lineId, LayoutGraphicsProto.Station.class).filter(d -> StringUtils.equals(d.getCode(), deviceName)) + .findFirst(); + if (stationOptional.isPresent()) { + return this.findRtuStation(lineId, stationOptional.get().getCommon().getId()); + } + } else if (alertType == AlertType.SWITCH_LOST) { + String sectionCode = LineGraphicDataRepository.findSectionFromLogicCode(lineId, deviceName); + MessageOrBuilder section = LineGraphicDataRepository.getDeviceByCode(lineId, sectionCode); + Integer stationId = DeviceStatusDataOperate.findFieldVal(section, "centralizedStationId", Integer.class); + System.out.println(section); +// LayoutGraphicsProto.Station station = LineGraphicDataRepository.getDeviceByCode(lineId, stationId.toString(), LayoutGraphicsProto.Station.class); +// return Integer.parseInt(station.getCode()); + return this.findRtuStation(lineId, stationId); + } + return null; + } + + private Integer findRtuStation(Integer lineId, Integer rtuIdCode) { + List centerStationList = LineGraphicDataRepository.getDevices(lineId, LayoutGraphicsProto.Station.class).filter(Station::getConcentrationStations).toList(); + Optional stationOptional = centerStationList.stream().filter(d -> d.getManageStationsList().contains(rtuIdCode)).findFirst(); + if (stationOptional.isPresent()) { + LayoutGraphicsProto.Station station = stationOptional.get(); + return Integer.parseInt(station.getCode()); + } + return null; + } + private MessageData convertor(OccMockData md) { if (md.getMessageId() == MessageId.DEVICE_STATUS_CHANGE) { MockDeviceStatusReq mockDeviceStatusReq = new MockDeviceStatusReq(md.getMessageId(), md.getLineId(), md.getRtuId(), md.getDeviceType(), md.getDeviceName(), md.getDeviceStatus()); diff --git a/src/test/java/club/joylink/xiannccda/device/DeviceStatusCheckTest.java b/src/test/java/club/joylink/xiannccda/device/DeviceStatusCheckTest.java index aeb001a..c958001 100644 --- a/src/test/java/club/joylink/xiannccda/device/DeviceStatusCheckTest.java +++ b/src/test/java/club/joylink/xiannccda/device/DeviceStatusCheckTest.java @@ -5,11 +5,15 @@ import club.joylink.xiannccda.ats.message.line3.device.DeviceStatus; import club.joylink.xiannccda.ats.message.line3.device.DeviceStatus.SWITCH; import club.joylink.xiannccda.ats.message.line3.device.DeviceStatus.TRACK; import club.joylink.xiannccda.ats.message.line3.device.DeviceStatus.TRAIN_MODE; +import club.joylink.xiannccda.ats.warn.BuleDisplayMonitoringTask.RtuWarnVO; import club.joylink.xiannccda.dto.protos.DeviceStatusProto; import club.joylink.xiannccda.dto.protos.DeviceStatusProto.Platform; +import club.joylink.xiannccda.dto.protos.DeviceStatusProto.Rtu; import club.joylink.xiannccda.dto.protos.TrainProto.TrainInfo; +import club.joylink.xiannccda.vo.AreaConfigVO; import com.google.common.collect.BiMap; import com.google.common.collect.HashBiMap; +import com.google.common.collect.Lists; import com.mysql.cj.x.protobuf.MysqlxDatatypes; import java.io.BufferedReader; import java.io.FileReader; @@ -17,14 +21,47 @@ import java.io.UnsupportedEncodingException; import java.sql.SQLOutput; import java.util.ArrayList; import java.util.Base64; +import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.Objects; import java.util.Set; +import java.util.stream.Collectors; import org.junit.jupiter.api.Test; public class DeviceStatusCheckTest { + @Test + public void allBuleCheckTest() { + List list = Lists.newArrayList(); + DeviceStatusProto.Rtu.Builder rtu1 = Rtu.newBuilder(); + rtu1.setIpRtuStusDown(true); + DeviceStatusProto.Rtu.Builder rtu2 = Rtu.newBuilder(); + rtu2.setIpRtuStusDown(false); + AreaConfigVO configVO1 = new AreaConfigVO(); + configVO1.setId(1L); + AreaConfigVO configVO2 = new AreaConfigVO(); + configVO2.setId(2L); + AreaConfigVO configVO3 = new AreaConfigVO(); + configVO3.setId(3L); + + list.add(new RtuWarnVO(rtu1, null, configVO1)); + list.add(new RtuWarnVO(rtu2, null, configVO1)); + list.add(new RtuWarnVO(rtu1, null, configVO2)); + list.add(new RtuWarnVO(null, null, configVO2)); + list.add(new RtuWarnVO(null, null, configVO3)); + list.add(new RtuWarnVO(null, null, configVO3)); + + System.out.println(list); + Map> rtuVOMapList = list.stream().collect(Collectors.groupingBy(d -> d.getAreaConfigVO().getId())); + System.out.println(rtuVOMapList); + + List result = rtuVOMapList.values().stream().map(Collection::stream).map(ls -> ls.anyMatch(r -> Objects.nonNull(r.getRtu()) && r.getRtu().getIpRtuStusDown())) + .collect(Collectors.toList()); + System.out.println(result); + } + @Test public void RtuTest() { DeviceStatusProto.Rtu.Builder rtu = DeviceStatusConvertor.convert(DeviceStatus.RTU.class, 1);