From f1cdafac78f084698e3f67b4f506e2303cb259b9 Mon Sep 17 00:00:00 2001 From: xzb <223@qq.com> Date: Tue, 13 Jun 2023 13:37:59 +0800 Subject: [PATCH] =?UTF-8?q?ncc=E5=8D=8F=E8=AE=AEx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dto/protos/LayoutGraphicsProto.java | 6179 ++++++++++++++++- .../LineNetTrainOffsetDiagramProto.java | 1488 ++++ xian-ncc-da-message | 2 +- 3 files changed, 7614 insertions(+), 55 deletions(-) create mode 100644 src/main/java/club/joylink/xiannccda/dto/protos/LineNetTrainOffsetDiagramProto.java 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 3fe705d..b692c5e 100644 --- a/src/main/java/club/joylink/xiannccda/dto/protos/LayoutGraphicsProto.java +++ b/src/main/java/club/joylink/xiannccda/dto/protos/LayoutGraphicsProto.java @@ -272,6 +272,78 @@ public final class LayoutGraphicsProto { */ club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.StationLineOrBuilder getStationLinesOrBuilder( int index); + + /** + * repeated .graphicData.RunLine runLines = 12; + */ + java.util.List + getRunLinesList(); + /** + * repeated .graphicData.RunLine runLines = 12; + */ + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine getRunLines(int index); + /** + * repeated .graphicData.RunLine runLines = 12; + */ + int getRunLinesCount(); + /** + * repeated .graphicData.RunLine runLines = 12; + */ + java.util.List + getRunLinesOrBuilderList(); + /** + * repeated .graphicData.RunLine runLines = 12; + */ + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLineOrBuilder getRunLinesOrBuilder( + int index); + + /** + * repeated .graphicData.TrainLine trainLines = 13; + */ + java.util.List + getTrainLinesList(); + /** + * repeated .graphicData.TrainLine trainLines = 13; + */ + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine getTrainLines(int index); + /** + * repeated .graphicData.TrainLine trainLines = 13; + */ + int getTrainLinesCount(); + /** + * repeated .graphicData.TrainLine trainLines = 13; + */ + java.util.List + getTrainLinesOrBuilderList(); + /** + * repeated .graphicData.TrainLine trainLines = 13; + */ + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLineOrBuilder getTrainLinesOrBuilder( + int index); + + /** + * repeated .graphicData.Polygon polygons = 14; + */ + java.util.List + getPolygonsList(); + /** + * repeated .graphicData.Polygon polygons = 14; + */ + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon getPolygons(int index); + /** + * repeated .graphicData.Polygon polygons = 14; + */ + int getPolygonsCount(); + /** + * repeated .graphicData.Polygon polygons = 14; + */ + java.util.List + getPolygonsOrBuilderList(); + /** + * repeated .graphicData.Polygon polygons = 14; + */ + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PolygonOrBuilder getPolygonsOrBuilder( + int index); } /** * Protobuf type {@code graphicData.RtssGraphicStorage} @@ -296,6 +368,9 @@ public final class LayoutGraphicsProto { turnouts_ = java.util.Collections.emptyList(); section_ = java.util.Collections.emptyList(); stationLines_ = java.util.Collections.emptyList(); + runLines_ = java.util.Collections.emptyList(); + trainLines_ = java.util.Collections.emptyList(); + polygons_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -432,6 +507,33 @@ public final class LayoutGraphicsProto { input.readMessage(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.StationLine.parser(), extensionRegistry)); break; } + case 98: { + if (!((mutable_bitField0_ & 0x00000400) != 0)) { + runLines_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000400; + } + runLines_.add( + input.readMessage(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine.parser(), extensionRegistry)); + break; + } + case 106: { + if (!((mutable_bitField0_ & 0x00000800) != 0)) { + trainLines_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000800; + } + trainLines_.add( + input.readMessage(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine.parser(), extensionRegistry)); + break; + } + case 114: { + if (!((mutable_bitField0_ & 0x00001000) != 0)) { + polygons_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00001000; + } + polygons_.add( + input.readMessage(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon.parser(), extensionRegistry)); + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -477,6 +579,15 @@ public final class LayoutGraphicsProto { if (((mutable_bitField0_ & 0x00000200) != 0)) { stationLines_ = java.util.Collections.unmodifiableList(stationLines_); } + if (((mutable_bitField0_ & 0x00000400) != 0)) { + runLines_ = java.util.Collections.unmodifiableList(runLines_); + } + if (((mutable_bitField0_ & 0x00000800) != 0)) { + trainLines_ = java.util.Collections.unmodifiableList(trainLines_); + } + if (((mutable_bitField0_ & 0x00001000) != 0)) { + polygons_ = java.util.Collections.unmodifiableList(polygons_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -920,6 +1031,126 @@ public final class LayoutGraphicsProto { return stationLines_.get(index); } + public static final int RUNLINES_FIELD_NUMBER = 12; + private java.util.List runLines_; + /** + * repeated .graphicData.RunLine runLines = 12; + */ + @java.lang.Override + public java.util.List getRunLinesList() { + return runLines_; + } + /** + * repeated .graphicData.RunLine runLines = 12; + */ + @java.lang.Override + public java.util.List + getRunLinesOrBuilderList() { + return runLines_; + } + /** + * repeated .graphicData.RunLine runLines = 12; + */ + @java.lang.Override + public int getRunLinesCount() { + return runLines_.size(); + } + /** + * repeated .graphicData.RunLine runLines = 12; + */ + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine getRunLines(int index) { + return runLines_.get(index); + } + /** + * repeated .graphicData.RunLine runLines = 12; + */ + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLineOrBuilder getRunLinesOrBuilder( + int index) { + return runLines_.get(index); + } + + public static final int TRAINLINES_FIELD_NUMBER = 13; + private java.util.List trainLines_; + /** + * repeated .graphicData.TrainLine trainLines = 13; + */ + @java.lang.Override + public java.util.List getTrainLinesList() { + return trainLines_; + } + /** + * repeated .graphicData.TrainLine trainLines = 13; + */ + @java.lang.Override + public java.util.List + getTrainLinesOrBuilderList() { + return trainLines_; + } + /** + * repeated .graphicData.TrainLine trainLines = 13; + */ + @java.lang.Override + public int getTrainLinesCount() { + return trainLines_.size(); + } + /** + * repeated .graphicData.TrainLine trainLines = 13; + */ + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine getTrainLines(int index) { + return trainLines_.get(index); + } + /** + * repeated .graphicData.TrainLine trainLines = 13; + */ + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLineOrBuilder getTrainLinesOrBuilder( + int index) { + return trainLines_.get(index); + } + + public static final int POLYGONS_FIELD_NUMBER = 14; + private java.util.List polygons_; + /** + * repeated .graphicData.Polygon polygons = 14; + */ + @java.lang.Override + public java.util.List getPolygonsList() { + return polygons_; + } + /** + * repeated .graphicData.Polygon polygons = 14; + */ + @java.lang.Override + public java.util.List + getPolygonsOrBuilderList() { + return polygons_; + } + /** + * repeated .graphicData.Polygon polygons = 14; + */ + @java.lang.Override + public int getPolygonsCount() { + return polygons_.size(); + } + /** + * repeated .graphicData.Polygon polygons = 14; + */ + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon getPolygons(int index) { + return polygons_.get(index); + } + /** + * repeated .graphicData.Polygon polygons = 14; + */ + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PolygonOrBuilder getPolygonsOrBuilder( + int index) { + return polygons_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -967,6 +1198,15 @@ public final class LayoutGraphicsProto { for (int i = 0; i < stationLines_.size(); i++) { output.writeMessage(11, stationLines_.get(i)); } + for (int i = 0; i < runLines_.size(); i++) { + output.writeMessage(12, runLines_.get(i)); + } + for (int i = 0; i < trainLines_.size(); i++) { + output.writeMessage(13, trainLines_.get(i)); + } + for (int i = 0; i < polygons_.size(); i++) { + output.writeMessage(14, polygons_.get(i)); + } unknownFields.writeTo(output); } @@ -1020,6 +1260,18 @@ public final class LayoutGraphicsProto { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, stationLines_.get(i)); } + for (int i = 0; i < runLines_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, runLines_.get(i)); + } + for (int i = 0; i < trainLines_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, trainLines_.get(i)); + } + for (int i = 0; i < polygons_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, polygons_.get(i)); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1060,6 +1312,12 @@ public final class LayoutGraphicsProto { .equals(other.getSectionList())) return false; if (!getStationLinesList() .equals(other.getStationLinesList())) return false; + if (!getRunLinesList() + .equals(other.getRunLinesList())) return false; + if (!getTrainLinesList() + .equals(other.getTrainLinesList())) return false; + if (!getPolygonsList() + .equals(other.getPolygonsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1115,6 +1373,18 @@ public final class LayoutGraphicsProto { hash = (37 * hash) + STATIONLINES_FIELD_NUMBER; hash = (53 * hash) + getStationLinesList().hashCode(); } + if (getRunLinesCount() > 0) { + hash = (37 * hash) + RUNLINES_FIELD_NUMBER; + hash = (53 * hash) + getRunLinesList().hashCode(); + } + if (getTrainLinesCount() > 0) { + hash = (37 * hash) + TRAINLINES_FIELD_NUMBER; + hash = (53 * hash) + getTrainLinesList().hashCode(); + } + if (getPolygonsCount() > 0) { + hash = (37 * hash) + POLYGONS_FIELD_NUMBER; + hash = (53 * hash) + getPolygonsList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1253,6 +1523,9 @@ public final class LayoutGraphicsProto { getTurnoutsFieldBuilder(); getSectionFieldBuilder(); getStationLinesFieldBuilder(); + getRunLinesFieldBuilder(); + getTrainLinesFieldBuilder(); + getPolygonsFieldBuilder(); } } @java.lang.Override @@ -1324,6 +1597,24 @@ public final class LayoutGraphicsProto { } else { stationLinesBuilder_.clear(); } + if (runLinesBuilder_ == null) { + runLines_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + } else { + runLinesBuilder_.clear(); + } + if (trainLinesBuilder_ == null) { + trainLines_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + } else { + trainLinesBuilder_.clear(); + } + if (polygonsBuilder_ == null) { + polygons_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + } else { + polygonsBuilder_.clear(); + } return this; } @@ -1446,6 +1737,33 @@ public final class LayoutGraphicsProto { } else { result.stationLines_ = stationLinesBuilder_.build(); } + if (runLinesBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0)) { + runLines_ = java.util.Collections.unmodifiableList(runLines_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.runLines_ = runLines_; + } else { + result.runLines_ = runLinesBuilder_.build(); + } + if (trainLinesBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0)) { + trainLines_ = java.util.Collections.unmodifiableList(trainLines_); + bitField0_ = (bitField0_ & ~0x00000800); + } + result.trainLines_ = trainLines_; + } else { + result.trainLines_ = trainLinesBuilder_.build(); + } + if (polygonsBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0)) { + polygons_ = java.util.Collections.unmodifiableList(polygons_); + bitField0_ = (bitField0_ & ~0x00001000); + } + result.polygons_ = polygons_; + } else { + result.polygons_ = polygonsBuilder_.build(); + } onBuilt(); return result; } @@ -1757,6 +2075,84 @@ public final class LayoutGraphicsProto { } } } + if (runLinesBuilder_ == null) { + if (!other.runLines_.isEmpty()) { + if (runLines_.isEmpty()) { + runLines_ = other.runLines_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureRunLinesIsMutable(); + runLines_.addAll(other.runLines_); + } + onChanged(); + } + } else { + if (!other.runLines_.isEmpty()) { + if (runLinesBuilder_.isEmpty()) { + runLinesBuilder_.dispose(); + runLinesBuilder_ = null; + runLines_ = other.runLines_; + bitField0_ = (bitField0_ & ~0x00000400); + runLinesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRunLinesFieldBuilder() : null; + } else { + runLinesBuilder_.addAllMessages(other.runLines_); + } + } + } + if (trainLinesBuilder_ == null) { + if (!other.trainLines_.isEmpty()) { + if (trainLines_.isEmpty()) { + trainLines_ = other.trainLines_; + bitField0_ = (bitField0_ & ~0x00000800); + } else { + ensureTrainLinesIsMutable(); + trainLines_.addAll(other.trainLines_); + } + onChanged(); + } + } else { + if (!other.trainLines_.isEmpty()) { + if (trainLinesBuilder_.isEmpty()) { + trainLinesBuilder_.dispose(); + trainLinesBuilder_ = null; + trainLines_ = other.trainLines_; + bitField0_ = (bitField0_ & ~0x00000800); + trainLinesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTrainLinesFieldBuilder() : null; + } else { + trainLinesBuilder_.addAllMessages(other.trainLines_); + } + } + } + if (polygonsBuilder_ == null) { + if (!other.polygons_.isEmpty()) { + if (polygons_.isEmpty()) { + polygons_ = other.polygons_; + bitField0_ = (bitField0_ & ~0x00001000); + } else { + ensurePolygonsIsMutable(); + polygons_.addAll(other.polygons_); + } + onChanged(); + } + } else { + if (!other.polygons_.isEmpty()) { + if (polygonsBuilder_.isEmpty()) { + polygonsBuilder_.dispose(); + polygonsBuilder_ = null; + polygons_ = other.polygons_; + bitField0_ = (bitField0_ & ~0x00001000); + polygonsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPolygonsFieldBuilder() : null; + } else { + polygonsBuilder_.addAllMessages(other.polygons_); + } + } + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -4305,6 +4701,726 @@ public final class LayoutGraphicsProto { } return stationLinesBuilder_; } + + private java.util.List runLines_ = + java.util.Collections.emptyList(); + private void ensureRunLinesIsMutable() { + if (!((bitField0_ & 0x00000400) != 0)) { + runLines_ = new java.util.ArrayList(runLines_); + bitField0_ |= 0x00000400; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine.Builder, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLineOrBuilder> runLinesBuilder_; + + /** + * repeated .graphicData.RunLine runLines = 12; + */ + public java.util.List getRunLinesList() { + if (runLinesBuilder_ == null) { + return java.util.Collections.unmodifiableList(runLines_); + } else { + return runLinesBuilder_.getMessageList(); + } + } + /** + * repeated .graphicData.RunLine runLines = 12; + */ + public int getRunLinesCount() { + if (runLinesBuilder_ == null) { + return runLines_.size(); + } else { + return runLinesBuilder_.getCount(); + } + } + /** + * repeated .graphicData.RunLine runLines = 12; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine getRunLines(int index) { + if (runLinesBuilder_ == null) { + return runLines_.get(index); + } else { + return runLinesBuilder_.getMessage(index); + } + } + /** + * repeated .graphicData.RunLine runLines = 12; + */ + public Builder setRunLines( + int index, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine value) { + if (runLinesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRunLinesIsMutable(); + runLines_.set(index, value); + onChanged(); + } else { + runLinesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .graphicData.RunLine runLines = 12; + */ + public Builder setRunLines( + int index, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine.Builder builderForValue) { + if (runLinesBuilder_ == null) { + ensureRunLinesIsMutable(); + runLines_.set(index, builderForValue.build()); + onChanged(); + } else { + runLinesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .graphicData.RunLine runLines = 12; + */ + public Builder addRunLines(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine value) { + if (runLinesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRunLinesIsMutable(); + runLines_.add(value); + onChanged(); + } else { + runLinesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .graphicData.RunLine runLines = 12; + */ + public Builder addRunLines( + int index, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine value) { + if (runLinesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRunLinesIsMutable(); + runLines_.add(index, value); + onChanged(); + } else { + runLinesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .graphicData.RunLine runLines = 12; + */ + public Builder addRunLines( + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine.Builder builderForValue) { + if (runLinesBuilder_ == null) { + ensureRunLinesIsMutable(); + runLines_.add(builderForValue.build()); + onChanged(); + } else { + runLinesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .graphicData.RunLine runLines = 12; + */ + public Builder addRunLines( + int index, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine.Builder builderForValue) { + if (runLinesBuilder_ == null) { + ensureRunLinesIsMutable(); + runLines_.add(index, builderForValue.build()); + onChanged(); + } else { + runLinesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .graphicData.RunLine runLines = 12; + */ + public Builder addAllRunLines( + java.lang.Iterable values) { + if (runLinesBuilder_ == null) { + ensureRunLinesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, runLines_); + onChanged(); + } else { + runLinesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .graphicData.RunLine runLines = 12; + */ + public Builder clearRunLines() { + if (runLinesBuilder_ == null) { + runLines_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + } else { + runLinesBuilder_.clear(); + } + return this; + } + /** + * repeated .graphicData.RunLine runLines = 12; + */ + public Builder removeRunLines(int index) { + if (runLinesBuilder_ == null) { + ensureRunLinesIsMutable(); + runLines_.remove(index); + onChanged(); + } else { + runLinesBuilder_.remove(index); + } + return this; + } + /** + * repeated .graphicData.RunLine runLines = 12; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine.Builder getRunLinesBuilder( + int index) { + return getRunLinesFieldBuilder().getBuilder(index); + } + /** + * repeated .graphicData.RunLine runLines = 12; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLineOrBuilder getRunLinesOrBuilder( + int index) { + if (runLinesBuilder_ == null) { + return runLines_.get(index); } else { + return runLinesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .graphicData.RunLine runLines = 12; + */ + public java.util.List + getRunLinesOrBuilderList() { + if (runLinesBuilder_ != null) { + return runLinesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(runLines_); + } + } + /** + * repeated .graphicData.RunLine runLines = 12; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine.Builder addRunLinesBuilder() { + return getRunLinesFieldBuilder().addBuilder( + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine.getDefaultInstance()); + } + /** + * repeated .graphicData.RunLine runLines = 12; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine.Builder addRunLinesBuilder( + int index) { + return getRunLinesFieldBuilder().addBuilder( + index, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine.getDefaultInstance()); + } + /** + * repeated .graphicData.RunLine runLines = 12; + */ + public java.util.List + getRunLinesBuilderList() { + return getRunLinesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine.Builder, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLineOrBuilder> + getRunLinesFieldBuilder() { + if (runLinesBuilder_ == null) { + runLinesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine.Builder, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLineOrBuilder>( + runLines_, + ((bitField0_ & 0x00000400) != 0), + getParentForChildren(), + isClean()); + runLines_ = null; + } + return runLinesBuilder_; + } + + private java.util.List trainLines_ = + java.util.Collections.emptyList(); + private void ensureTrainLinesIsMutable() { + if (!((bitField0_ & 0x00000800) != 0)) { + trainLines_ = new java.util.ArrayList(trainLines_); + bitField0_ |= 0x00000800; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine.Builder, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLineOrBuilder> trainLinesBuilder_; + + /** + * repeated .graphicData.TrainLine trainLines = 13; + */ + public java.util.List getTrainLinesList() { + if (trainLinesBuilder_ == null) { + return java.util.Collections.unmodifiableList(trainLines_); + } else { + return trainLinesBuilder_.getMessageList(); + } + } + /** + * repeated .graphicData.TrainLine trainLines = 13; + */ + public int getTrainLinesCount() { + if (trainLinesBuilder_ == null) { + return trainLines_.size(); + } else { + return trainLinesBuilder_.getCount(); + } + } + /** + * repeated .graphicData.TrainLine trainLines = 13; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine getTrainLines(int index) { + if (trainLinesBuilder_ == null) { + return trainLines_.get(index); + } else { + return trainLinesBuilder_.getMessage(index); + } + } + /** + * repeated .graphicData.TrainLine trainLines = 13; + */ + public Builder setTrainLines( + int index, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine value) { + if (trainLinesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrainLinesIsMutable(); + trainLines_.set(index, value); + onChanged(); + } else { + trainLinesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .graphicData.TrainLine trainLines = 13; + */ + public Builder setTrainLines( + int index, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine.Builder builderForValue) { + if (trainLinesBuilder_ == null) { + ensureTrainLinesIsMutable(); + trainLines_.set(index, builderForValue.build()); + onChanged(); + } else { + trainLinesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .graphicData.TrainLine trainLines = 13; + */ + public Builder addTrainLines(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine value) { + if (trainLinesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrainLinesIsMutable(); + trainLines_.add(value); + onChanged(); + } else { + trainLinesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .graphicData.TrainLine trainLines = 13; + */ + public Builder addTrainLines( + int index, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine value) { + if (trainLinesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrainLinesIsMutable(); + trainLines_.add(index, value); + onChanged(); + } else { + trainLinesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .graphicData.TrainLine trainLines = 13; + */ + public Builder addTrainLines( + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine.Builder builderForValue) { + if (trainLinesBuilder_ == null) { + ensureTrainLinesIsMutable(); + trainLines_.add(builderForValue.build()); + onChanged(); + } else { + trainLinesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .graphicData.TrainLine trainLines = 13; + */ + public Builder addTrainLines( + int index, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine.Builder builderForValue) { + if (trainLinesBuilder_ == null) { + ensureTrainLinesIsMutable(); + trainLines_.add(index, builderForValue.build()); + onChanged(); + } else { + trainLinesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .graphicData.TrainLine trainLines = 13; + */ + public Builder addAllTrainLines( + java.lang.Iterable values) { + if (trainLinesBuilder_ == null) { + ensureTrainLinesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, trainLines_); + onChanged(); + } else { + trainLinesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .graphicData.TrainLine trainLines = 13; + */ + public Builder clearTrainLines() { + if (trainLinesBuilder_ == null) { + trainLines_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + } else { + trainLinesBuilder_.clear(); + } + return this; + } + /** + * repeated .graphicData.TrainLine trainLines = 13; + */ + public Builder removeTrainLines(int index) { + if (trainLinesBuilder_ == null) { + ensureTrainLinesIsMutable(); + trainLines_.remove(index); + onChanged(); + } else { + trainLinesBuilder_.remove(index); + } + return this; + } + /** + * repeated .graphicData.TrainLine trainLines = 13; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine.Builder getTrainLinesBuilder( + int index) { + return getTrainLinesFieldBuilder().getBuilder(index); + } + /** + * repeated .graphicData.TrainLine trainLines = 13; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLineOrBuilder getTrainLinesOrBuilder( + int index) { + if (trainLinesBuilder_ == null) { + return trainLines_.get(index); } else { + return trainLinesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .graphicData.TrainLine trainLines = 13; + */ + public java.util.List + getTrainLinesOrBuilderList() { + if (trainLinesBuilder_ != null) { + return trainLinesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(trainLines_); + } + } + /** + * repeated .graphicData.TrainLine trainLines = 13; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine.Builder addTrainLinesBuilder() { + return getTrainLinesFieldBuilder().addBuilder( + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine.getDefaultInstance()); + } + /** + * repeated .graphicData.TrainLine trainLines = 13; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine.Builder addTrainLinesBuilder( + int index) { + return getTrainLinesFieldBuilder().addBuilder( + index, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine.getDefaultInstance()); + } + /** + * repeated .graphicData.TrainLine trainLines = 13; + */ + public java.util.List + getTrainLinesBuilderList() { + return getTrainLinesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine.Builder, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLineOrBuilder> + getTrainLinesFieldBuilder() { + if (trainLinesBuilder_ == null) { + trainLinesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine.Builder, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLineOrBuilder>( + trainLines_, + ((bitField0_ & 0x00000800) != 0), + getParentForChildren(), + isClean()); + trainLines_ = null; + } + return trainLinesBuilder_; + } + + private java.util.List polygons_ = + java.util.Collections.emptyList(); + private void ensurePolygonsIsMutable() { + if (!((bitField0_ & 0x00001000) != 0)) { + polygons_ = new java.util.ArrayList(polygons_); + bitField0_ |= 0x00001000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon.Builder, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PolygonOrBuilder> polygonsBuilder_; + + /** + * repeated .graphicData.Polygon polygons = 14; + */ + public java.util.List getPolygonsList() { + if (polygonsBuilder_ == null) { + return java.util.Collections.unmodifiableList(polygons_); + } else { + return polygonsBuilder_.getMessageList(); + } + } + /** + * repeated .graphicData.Polygon polygons = 14; + */ + public int getPolygonsCount() { + if (polygonsBuilder_ == null) { + return polygons_.size(); + } else { + return polygonsBuilder_.getCount(); + } + } + /** + * repeated .graphicData.Polygon polygons = 14; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon getPolygons(int index) { + if (polygonsBuilder_ == null) { + return polygons_.get(index); + } else { + return polygonsBuilder_.getMessage(index); + } + } + /** + * repeated .graphicData.Polygon polygons = 14; + */ + public Builder setPolygons( + int index, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon value) { + if (polygonsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePolygonsIsMutable(); + polygons_.set(index, value); + onChanged(); + } else { + polygonsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .graphicData.Polygon polygons = 14; + */ + public Builder setPolygons( + int index, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon.Builder builderForValue) { + if (polygonsBuilder_ == null) { + ensurePolygonsIsMutable(); + polygons_.set(index, builderForValue.build()); + onChanged(); + } else { + polygonsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .graphicData.Polygon polygons = 14; + */ + public Builder addPolygons(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon value) { + if (polygonsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePolygonsIsMutable(); + polygons_.add(value); + onChanged(); + } else { + polygonsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .graphicData.Polygon polygons = 14; + */ + public Builder addPolygons( + int index, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon value) { + if (polygonsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePolygonsIsMutable(); + polygons_.add(index, value); + onChanged(); + } else { + polygonsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .graphicData.Polygon polygons = 14; + */ + public Builder addPolygons( + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon.Builder builderForValue) { + if (polygonsBuilder_ == null) { + ensurePolygonsIsMutable(); + polygons_.add(builderForValue.build()); + onChanged(); + } else { + polygonsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .graphicData.Polygon polygons = 14; + */ + public Builder addPolygons( + int index, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon.Builder builderForValue) { + if (polygonsBuilder_ == null) { + ensurePolygonsIsMutable(); + polygons_.add(index, builderForValue.build()); + onChanged(); + } else { + polygonsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .graphicData.Polygon polygons = 14; + */ + public Builder addAllPolygons( + java.lang.Iterable values) { + if (polygonsBuilder_ == null) { + ensurePolygonsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, polygons_); + onChanged(); + } else { + polygonsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .graphicData.Polygon polygons = 14; + */ + public Builder clearPolygons() { + if (polygonsBuilder_ == null) { + polygons_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + } else { + polygonsBuilder_.clear(); + } + return this; + } + /** + * repeated .graphicData.Polygon polygons = 14; + */ + public Builder removePolygons(int index) { + if (polygonsBuilder_ == null) { + ensurePolygonsIsMutable(); + polygons_.remove(index); + onChanged(); + } else { + polygonsBuilder_.remove(index); + } + return this; + } + /** + * repeated .graphicData.Polygon polygons = 14; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon.Builder getPolygonsBuilder( + int index) { + return getPolygonsFieldBuilder().getBuilder(index); + } + /** + * repeated .graphicData.Polygon polygons = 14; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PolygonOrBuilder getPolygonsOrBuilder( + int index) { + if (polygonsBuilder_ == null) { + return polygons_.get(index); } else { + return polygonsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .graphicData.Polygon polygons = 14; + */ + public java.util.List + getPolygonsOrBuilderList() { + if (polygonsBuilder_ != null) { + return polygonsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(polygons_); + } + } + /** + * repeated .graphicData.Polygon polygons = 14; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon.Builder addPolygonsBuilder() { + return getPolygonsFieldBuilder().addBuilder( + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon.getDefaultInstance()); + } + /** + * repeated .graphicData.Polygon polygons = 14; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon.Builder addPolygonsBuilder( + int index) { + return getPolygonsFieldBuilder().addBuilder( + index, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon.getDefaultInstance()); + } + /** + * repeated .graphicData.Polygon polygons = 14; + */ + public java.util.List + getPolygonsBuilderList() { + return getPolygonsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon.Builder, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PolygonOrBuilder> + getPolygonsFieldBuilder() { + if (polygonsBuilder_ == null) { + polygonsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon.Builder, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PolygonOrBuilder>( + polygons_, + ((bitField0_ & 0x00001000) != 0), + getParentForChildren(), + isClean()); + polygons_ = null; + } + return polygonsBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -12792,6 +13908,1540 @@ public final class LayoutGraphicsProto { } + public interface PolygonOrBuilder extends + // @@protoc_insertion_point(interface_extends:graphicData.Polygon) + 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(); + + /** + *
+     * 线宽
+     * 
+ * + * int32 lineWidth = 3; + * @return The lineWidth. + */ + int getLineWidth(); + + /** + *
+     * 线色
+     * 
+ * + * string lineColor = 4; + * @return The lineColor. + */ + java.lang.String getLineColor(); + /** + *
+     * 线色
+     * 
+ * + * string lineColor = 4; + * @return The bytes for lineColor. + */ + com.google.protobuf.ByteString + getLineColorBytes(); + + /** + *
+     * 点坐标列表
+     * 
+ * + * repeated .graphicData.Point points = 5; + */ + java.util.List + getPointsList(); + /** + *
+     * 点坐标列表
+     * 
+ * + * repeated .graphicData.Point points = 5; + */ + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Point getPoints(int index); + /** + *
+     * 点坐标列表
+     * 
+ * + * repeated .graphicData.Point points = 5; + */ + int getPointsCount(); + /** + *
+     * 点坐标列表
+     * 
+ * + * repeated .graphicData.Point points = 5; + */ + java.util.List + getPointsOrBuilderList(); + /** + *
+     * 点坐标列表
+     * 
+ * + * repeated .graphicData.Point points = 5; + */ + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PointOrBuilder getPointsOrBuilder( + int index); + } + /** + * Protobuf type {@code graphicData.Polygon} + */ + public static final class Polygon extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:graphicData.Polygon) + PolygonOrBuilder { + private static final long serialVersionUID = 0L; + // Use Polygon.newBuilder() to construct. + private Polygon(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Polygon() { + code_ = ""; + lineColor_ = ""; + points_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Polygon(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Polygon( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo.Builder subBuilder = null; + if (common_ != null) { + subBuilder = common_.toBuilder(); + } + common_ = input.readMessage(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(common_); + common_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + code_ = s; + break; + } + case 24: { + + lineWidth_ = input.readInt32(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + lineColor_ = s; + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + points_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + points_.add( + input.readMessage(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Point.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + points_ = java.util.Collections.unmodifiableList(points_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.internal_static_graphicData_Polygon_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.internal_static_graphicData_Polygon_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon.class, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon.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 getCommon(); + } + + public static final int CODE_FIELD_NUMBER = 2; + 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 LINEWIDTH_FIELD_NUMBER = 3; + private int lineWidth_; + /** + *
+     * 线宽
+     * 
+ * + * int32 lineWidth = 3; + * @return The lineWidth. + */ + @java.lang.Override + public int getLineWidth() { + return lineWidth_; + } + + public static final int LINECOLOR_FIELD_NUMBER = 4; + private volatile java.lang.Object lineColor_; + /** + *
+     * 线色
+     * 
+ * + * string lineColor = 4; + * @return The lineColor. + */ + @java.lang.Override + public java.lang.String getLineColor() { + java.lang.Object ref = lineColor_; + 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(); + lineColor_ = s; + return s; + } + } + /** + *
+     * 线色
+     * 
+ * + * string lineColor = 4; + * @return The bytes for lineColor. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getLineColorBytes() { + java.lang.Object ref = lineColor_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + lineColor_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POINTS_FIELD_NUMBER = 5; + private java.util.List points_; + /** + *
+     * 点坐标列表
+     * 
+ * + * repeated .graphicData.Point points = 5; + */ + @java.lang.Override + public java.util.List getPointsList() { + return points_; + } + /** + *
+     * 点坐标列表
+     * 
+ * + * repeated .graphicData.Point points = 5; + */ + @java.lang.Override + public java.util.List + getPointsOrBuilderList() { + return points_; + } + /** + *
+     * 点坐标列表
+     * 
+ * + * repeated .graphicData.Point points = 5; + */ + @java.lang.Override + public int getPointsCount() { + return points_.size(); + } + /** + *
+     * 点坐标列表
+     * 
+ * + * repeated .graphicData.Point points = 5; + */ + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Point getPoints(int index) { + return points_.get(index); + } + /** + *
+     * 点坐标列表
+     * 
+ * + * repeated .graphicData.Point points = 5; + */ + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PointOrBuilder getPointsOrBuilder( + int index) { + return points_.get(index); + } + + 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_); + } + if (lineWidth_ != 0) { + output.writeInt32(3, lineWidth_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lineColor_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, lineColor_); + } + for (int i = 0; i < points_.size(); i++) { + output.writeMessage(5, points_.get(i)); + } + unknownFields.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_); + } + if (lineWidth_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, lineWidth_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lineColor_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, lineColor_); + } + for (int i = 0; i < points_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, points_.get(i)); + } + size += unknownFields.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.Polygon)) { + return super.equals(obj); + } + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon other = (club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon) obj; + + if (hasCommon() != other.hasCommon()) return false; + if (hasCommon()) { + if (!getCommon() + .equals(other.getCommon())) return false; + } + if (!getCode() + .equals(other.getCode())) return false; + if (getLineWidth() + != other.getLineWidth()) return false; + if (!getLineColor() + .equals(other.getLineColor())) return false; + if (!getPointsList() + .equals(other.getPointsList())) return false; + if (!unknownFields.equals(other.unknownFields)) 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(); + hash = (37 * hash) + LINEWIDTH_FIELD_NUMBER; + hash = (53 * hash) + getLineWidth(); + hash = (37 * hash) + LINECOLOR_FIELD_NUMBER; + hash = (53 * hash) + getLineColor().hashCode(); + if (getPointsCount() > 0) { + hash = (37 * hash) + POINTS_FIELD_NUMBER; + hash = (53 * hash) + getPointsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon 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.Polygon parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon 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.Polygon parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon 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.Polygon 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.Polygon 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.Polygon 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.Polygon 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.Polygon 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.Polygon 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.Polygon 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.Polygon} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:graphicData.Polygon) + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PolygonOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.internal_static_graphicData_Polygon_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.internal_static_graphicData_Polygon_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon.class, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon.Builder.class); + } + + // Construct using club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getPointsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (commonBuilder_ == null) { + common_ = null; + } else { + common_ = null; + commonBuilder_ = null; + } + code_ = ""; + + lineWidth_ = 0; + + lineColor_ = ""; + + if (pointsBuilder_ == null) { + points_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + pointsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.internal_static_graphicData_Polygon_descriptor; + } + + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon getDefaultInstanceForType() { + return club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon.getDefaultInstance(); + } + + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon build() { + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon buildPartial() { + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon result = new club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon(this); + int from_bitField0_ = bitField0_; + if (commonBuilder_ == null) { + result.common_ = common_; + } else { + result.common_ = commonBuilder_.build(); + } + result.code_ = code_; + result.lineWidth_ = lineWidth_; + result.lineColor_ = lineColor_; + if (pointsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + points_ = java.util.Collections.unmodifiableList(points_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.points_ = points_; + } else { + result.points_ = pointsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon) { + return mergeFrom((club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon other) { + if (other == club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon.getDefaultInstance()) return this; + if (other.hasCommon()) { + mergeCommon(other.getCommon()); + } + if (!other.getCode().isEmpty()) { + code_ = other.code_; + onChanged(); + } + if (other.getLineWidth() != 0) { + setLineWidth(other.getLineWidth()); + } + if (!other.getLineColor().isEmpty()) { + lineColor_ = other.lineColor_; + onChanged(); + } + if (pointsBuilder_ == null) { + if (!other.points_.isEmpty()) { + if (points_.isEmpty()) { + points_ = other.points_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePointsIsMutable(); + points_.addAll(other.points_); + } + onChanged(); + } + } else { + if (!other.points_.isEmpty()) { + if (pointsBuilder_.isEmpty()) { + pointsBuilder_.dispose(); + pointsBuilder_ = null; + points_ = other.points_; + bitField0_ = (bitField0_ & ~0x00000001); + pointsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPointsFieldBuilder() : null; + } else { + pointsBuilder_.addAllMessages(other.points_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + 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 { + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 commonBuilder_ != null || common_ != null; + } + /** + * .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; + onChanged(); + } else { + commonBuilder_.setMessage(value); + } + + return this; + } + /** + * .graphicData.CommonInfo common = 1; + */ + public Builder setCommon( + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo.Builder builderForValue) { + if (commonBuilder_ == null) { + common_ = builderForValue.build(); + onChanged(); + } else { + commonBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .graphicData.CommonInfo common = 1; + */ + public Builder mergeCommon(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo value) { + if (commonBuilder_ == null) { + if (common_ != null) { + common_ = + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo.newBuilder(common_).mergeFrom(value).buildPartial(); + } else { + common_ = value; + } + onChanged(); + } else { + commonBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .graphicData.CommonInfo common = 1; + */ + public Builder clearCommon() { + if (commonBuilder_ == null) { + common_ = null; + onChanged(); + } else { + common_ = null; + commonBuilder_ = null; + } + + return this; + } + /** + * .graphicData.CommonInfo common = 1; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo.Builder getCommonBuilder() { + + 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; + onChanged(); + return this; + } + /** + * string code = 2; + * @return This builder for chaining. + */ + public Builder clearCode() { + + code_ = getDefaultInstance().getCode(); + 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; + onChanged(); + return this; + } + + private int lineWidth_ ; + /** + *
+       * 线宽
+       * 
+ * + * int32 lineWidth = 3; + * @return The lineWidth. + */ + @java.lang.Override + public int getLineWidth() { + return lineWidth_; + } + /** + *
+       * 线宽
+       * 
+ * + * int32 lineWidth = 3; + * @param value The lineWidth to set. + * @return This builder for chaining. + */ + public Builder setLineWidth(int value) { + + lineWidth_ = value; + onChanged(); + return this; + } + /** + *
+       * 线宽
+       * 
+ * + * int32 lineWidth = 3; + * @return This builder for chaining. + */ + public Builder clearLineWidth() { + + lineWidth_ = 0; + onChanged(); + return this; + } + + private java.lang.Object lineColor_ = ""; + /** + *
+       * 线色
+       * 
+ * + * string lineColor = 4; + * @return The lineColor. + */ + public java.lang.String getLineColor() { + java.lang.Object ref = lineColor_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lineColor_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * 线色
+       * 
+ * + * string lineColor = 4; + * @return The bytes for lineColor. + */ + public com.google.protobuf.ByteString + getLineColorBytes() { + java.lang.Object ref = lineColor_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + lineColor_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * 线色
+       * 
+ * + * string lineColor = 4; + * @param value The lineColor to set. + * @return This builder for chaining. + */ + public Builder setLineColor( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + lineColor_ = value; + onChanged(); + return this; + } + /** + *
+       * 线色
+       * 
+ * + * string lineColor = 4; + * @return This builder for chaining. + */ + public Builder clearLineColor() { + + lineColor_ = getDefaultInstance().getLineColor(); + onChanged(); + return this; + } + /** + *
+       * 线色
+       * 
+ * + * string lineColor = 4; + * @param value The bytes for lineColor to set. + * @return This builder for chaining. + */ + public Builder setLineColorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + lineColor_ = value; + onChanged(); + return this; + } + + private java.util.List points_ = + java.util.Collections.emptyList(); + private void ensurePointsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + points_ = new java.util.ArrayList(points_); + bitField0_ |= 0x00000001; + } + } + + 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 = 5; + */ + public java.util.List getPointsList() { + if (pointsBuilder_ == null) { + return java.util.Collections.unmodifiableList(points_); + } else { + return pointsBuilder_.getMessageList(); + } + } + /** + *
+       * 点坐标列表
+       * 
+ * + * repeated .graphicData.Point points = 5; + */ + public int getPointsCount() { + if (pointsBuilder_ == null) { + return points_.size(); + } else { + return pointsBuilder_.getCount(); + } + } + /** + *
+       * 点坐标列表
+       * 
+ * + * repeated .graphicData.Point points = 5; + */ + 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 = 5; + */ + 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 = 5; + */ + 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 = 5; + */ + 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 = 5; + */ + 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 = 5; + */ + 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 = 5; + */ + 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 = 5; + */ + 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 = 5; + */ + public Builder clearPoints() { + if (pointsBuilder_ == null) { + points_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + pointsBuilder_.clear(); + } + return this; + } + /** + *
+       * 点坐标列表
+       * 
+ * + * repeated .graphicData.Point points = 5; + */ + public Builder removePoints(int index) { + if (pointsBuilder_ == null) { + ensurePointsIsMutable(); + points_.remove(index); + onChanged(); + } else { + pointsBuilder_.remove(index); + } + return this; + } + /** + *
+       * 点坐标列表
+       * 
+ * + * repeated .graphicData.Point points = 5; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Point.Builder getPointsBuilder( + int index) { + return getPointsFieldBuilder().getBuilder(index); + } + /** + *
+       * 点坐标列表
+       * 
+ * + * repeated .graphicData.Point points = 5; + */ + 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 = 5; + */ + public java.util.List + getPointsOrBuilderList() { + if (pointsBuilder_ != null) { + return pointsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(points_); + } + } + /** + *
+       * 点坐标列表
+       * 
+ * + * repeated .graphicData.Point points = 5; + */ + 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 = 5; + */ + 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 = 5; + */ + 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_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + points_ = null; + } + return pointsBuilder_; + } + @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.Polygon) + } + + // @@protoc_insertion_point(class_scope:graphicData.Polygon) + private static final club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon(); + } + + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Polygon getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Polygon parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Polygon(input, extensionRegistry); + } + }; + + 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.Polygon getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + public interface PlatformOrBuilder extends // @@protoc_insertion_point(interface_extends:graphicData.Platform) com.google.protobuf.MessageOrBuilder { @@ -16521,6 +19171,777 @@ public final class LayoutGraphicsProto { } + public interface TrainLineOrBuilder extends + // @@protoc_insertion_point(interface_extends:graphicData.TrainLine) + 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(); + } + /** + * Protobuf type {@code graphicData.TrainLine} + */ + public static final class TrainLine extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:graphicData.TrainLine) + TrainLineOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrainLine.newBuilder() to construct. + private TrainLine(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TrainLine() { + code_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TrainLine(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TrainLine( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo.Builder subBuilder = null; + if (common_ != null) { + subBuilder = common_.toBuilder(); + } + common_ = input.readMessage(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(common_); + common_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + code_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.internal_static_graphicData_TrainLine_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.internal_static_graphicData_TrainLine_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine.class, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine.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 getCommon(); + } + + public static final int CODE_FIELD_NUMBER = 2; + 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; + } + } + + 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_); + } + unknownFields.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_); + } + size += unknownFields.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.TrainLine)) { + return super.equals(obj); + } + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine other = (club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine) obj; + + if (hasCommon() != other.hasCommon()) return false; + if (hasCommon()) { + if (!getCommon() + .equals(other.getCommon())) return false; + } + if (!getCode() + .equals(other.getCode())) return false; + if (!unknownFields.equals(other.unknownFields)) 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(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine 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.TrainLine parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine 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.TrainLine parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine 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.TrainLine 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.TrainLine 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.TrainLine 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.TrainLine 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.TrainLine 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.TrainLine 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.TrainLine 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.TrainLine} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:graphicData.TrainLine) + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLineOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.internal_static_graphicData_TrainLine_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.internal_static_graphicData_TrainLine_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine.class, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine.Builder.class); + } + + // Construct using club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (commonBuilder_ == null) { + common_ = null; + } else { + common_ = null; + commonBuilder_ = null; + } + code_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.internal_static_graphicData_TrainLine_descriptor; + } + + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine getDefaultInstanceForType() { + return club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine.getDefaultInstance(); + } + + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine build() { + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine buildPartial() { + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine result = new club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine(this); + if (commonBuilder_ == null) { + result.common_ = common_; + } else { + result.common_ = commonBuilder_.build(); + } + result.code_ = code_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine) { + return mergeFrom((club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine other) { + if (other == club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine.getDefaultInstance()) return this; + if (other.hasCommon()) { + mergeCommon(other.getCommon()); + } + if (!other.getCode().isEmpty()) { + code_ = other.code_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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 commonBuilder_ != null || common_ != null; + } + /** + * .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; + onChanged(); + } else { + commonBuilder_.setMessage(value); + } + + return this; + } + /** + * .graphicData.CommonInfo common = 1; + */ + public Builder setCommon( + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo.Builder builderForValue) { + if (commonBuilder_ == null) { + common_ = builderForValue.build(); + onChanged(); + } else { + commonBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .graphicData.CommonInfo common = 1; + */ + public Builder mergeCommon(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo value) { + if (commonBuilder_ == null) { + if (common_ != null) { + common_ = + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo.newBuilder(common_).mergeFrom(value).buildPartial(); + } else { + common_ = value; + } + onChanged(); + } else { + commonBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .graphicData.CommonInfo common = 1; + */ + public Builder clearCommon() { + if (commonBuilder_ == null) { + common_ = null; + onChanged(); + } else { + common_ = null; + commonBuilder_ = null; + } + + return this; + } + /** + * .graphicData.CommonInfo common = 1; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo.Builder getCommonBuilder() { + + 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; + onChanged(); + return this; + } + /** + * string code = 2; + * @return This builder for chaining. + */ + public Builder clearCode() { + + code_ = getDefaultInstance().getCode(); + 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; + 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.TrainLine) + } + + // @@protoc_insertion_point(class_scope:graphicData.TrainLine) + private static final club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine(); + } + + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.TrainLine getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrainLine parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TrainLine(input, extensionRegistry); + } + }; + + 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.TrainLine getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + public interface IscsFanOrBuilder extends // @@protoc_insertion_point(interface_extends:graphicData.IscsFan) com.google.protobuf.MessageOrBuilder { @@ -19886,6 +23307,1452 @@ public final class LayoutGraphicsProto { } + public interface RunLineOrBuilder extends + // @@protoc_insertion_point(interface_extends:graphicData.RunLine) + 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); + + /** + * string nameColor = 4; + * @return The nameColor. + */ + java.lang.String getNameColor(); + /** + * string nameColor = 4; + * @return The bytes for nameColor. + */ + com.google.protobuf.ByteString + getNameColorBytes(); + + /** + * string nameBgColor = 5; + * @return The nameBgColor. + */ + java.lang.String getNameBgColor(); + /** + * string nameBgColor = 5; + * @return The bytes for nameBgColor. + */ + com.google.protobuf.ByteString + getNameBgColorBytes(); + } + /** + * Protobuf type {@code graphicData.RunLine} + */ + public static final class RunLine extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:graphicData.RunLine) + RunLineOrBuilder { + private static final long serialVersionUID = 0L; + // Use RunLine.newBuilder() to construct. + private RunLine(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RunLine() { + code_ = ""; + points_ = java.util.Collections.emptyList(); + nameColor_ = ""; + nameBgColor_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RunLine(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RunLine( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo.Builder subBuilder = null; + if (common_ != null) { + subBuilder = common_.toBuilder(); + } + common_ = input.readMessage(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(common_); + common_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + code_ = s; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + points_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + points_.add( + input.readMessage(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Point.parser(), extensionRegistry)); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + nameColor_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + nameBgColor_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + points_ = java.util.Collections.unmodifiableList(points_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.internal_static_graphicData_RunLine_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.internal_static_graphicData_RunLine_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine.class, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine.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 getCommon(); + } + + public static final int CODE_FIELD_NUMBER = 2; + 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; + 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 NAMECOLOR_FIELD_NUMBER = 4; + private volatile java.lang.Object nameColor_; + /** + * string nameColor = 4; + * @return The nameColor. + */ + @java.lang.Override + public java.lang.String getNameColor() { + java.lang.Object ref = nameColor_; + 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(); + nameColor_ = s; + return s; + } + } + /** + * string nameColor = 4; + * @return The bytes for nameColor. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameColorBytes() { + java.lang.Object ref = nameColor_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nameColor_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAMEBGCOLOR_FIELD_NUMBER = 5; + private volatile java.lang.Object nameBgColor_; + /** + * string nameBgColor = 5; + * @return The nameBgColor. + */ + @java.lang.Override + public java.lang.String getNameBgColor() { + java.lang.Object ref = nameBgColor_; + 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(); + nameBgColor_ = s; + return s; + } + } + /** + * string nameBgColor = 5; + * @return The bytes for nameBgColor. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBgColorBytes() { + java.lang.Object ref = nameBgColor_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nameBgColor_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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(nameColor_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nameColor_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nameBgColor_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, nameBgColor_); + } + unknownFields.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(nameColor_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nameColor_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nameBgColor_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, nameBgColor_); + } + size += unknownFields.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.RunLine)) { + return super.equals(obj); + } + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine other = (club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine) 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 (!getNameColor() + .equals(other.getNameColor())) return false; + if (!getNameBgColor() + .equals(other.getNameBgColor())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + NAMECOLOR_FIELD_NUMBER; + hash = (53 * hash) + getNameColor().hashCode(); + hash = (37 * hash) + NAMEBGCOLOR_FIELD_NUMBER; + hash = (53 * hash) + getNameBgColor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine 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.RunLine parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine 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.RunLine parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine 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.RunLine 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.RunLine 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.RunLine 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.RunLine 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.RunLine 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.RunLine 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.RunLine 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.RunLine} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:graphicData.RunLine) + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLineOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.internal_static_graphicData_RunLine_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.internal_static_graphicData_RunLine_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine.class, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine.Builder.class); + } + + // Construct using club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getPointsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (commonBuilder_ == null) { + common_ = null; + } else { + common_ = null; + commonBuilder_ = null; + } + code_ = ""; + + if (pointsBuilder_ == null) { + points_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + pointsBuilder_.clear(); + } + nameColor_ = ""; + + nameBgColor_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.internal_static_graphicData_RunLine_descriptor; + } + + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine getDefaultInstanceForType() { + return club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine.getDefaultInstance(); + } + + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine build() { + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine buildPartial() { + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine result = new club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine(this); + int from_bitField0_ = bitField0_; + if (commonBuilder_ == null) { + result.common_ = common_; + } else { + result.common_ = commonBuilder_.build(); + } + result.code_ = code_; + if (pointsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + points_ = java.util.Collections.unmodifiableList(points_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.points_ = points_; + } else { + result.points_ = pointsBuilder_.build(); + } + result.nameColor_ = nameColor_; + result.nameBgColor_ = nameBgColor_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine) { + return mergeFrom((club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine other) { + if (other == club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine.getDefaultInstance()) return this; + if (other.hasCommon()) { + mergeCommon(other.getCommon()); + } + if (!other.getCode().isEmpty()) { + code_ = other.code_; + onChanged(); + } + if (pointsBuilder_ == null) { + if (!other.points_.isEmpty()) { + if (points_.isEmpty()) { + points_ = other.points_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePointsIsMutable(); + points_.addAll(other.points_); + } + onChanged(); + } + } else { + if (!other.points_.isEmpty()) { + if (pointsBuilder_.isEmpty()) { + pointsBuilder_.dispose(); + pointsBuilder_ = null; + points_ = other.points_; + bitField0_ = (bitField0_ & ~0x00000001); + pointsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPointsFieldBuilder() : null; + } else { + pointsBuilder_.addAllMessages(other.points_); + } + } + } + if (!other.getNameColor().isEmpty()) { + nameColor_ = other.nameColor_; + onChanged(); + } + if (!other.getNameBgColor().isEmpty()) { + nameBgColor_ = other.nameBgColor_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 commonBuilder_ != null || common_ != null; + } + /** + * .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; + onChanged(); + } else { + commonBuilder_.setMessage(value); + } + + return this; + } + /** + * .graphicData.CommonInfo common = 1; + */ + public Builder setCommon( + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo.Builder builderForValue) { + if (commonBuilder_ == null) { + common_ = builderForValue.build(); + onChanged(); + } else { + commonBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .graphicData.CommonInfo common = 1; + */ + public Builder mergeCommon(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo value) { + if (commonBuilder_ == null) { + if (common_ != null) { + common_ = + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo.newBuilder(common_).mergeFrom(value).buildPartial(); + } else { + common_ = value; + } + onChanged(); + } else { + commonBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .graphicData.CommonInfo common = 1; + */ + public Builder clearCommon() { + if (commonBuilder_ == null) { + common_ = null; + onChanged(); + } else { + common_ = null; + commonBuilder_ = null; + } + + return this; + } + /** + * .graphicData.CommonInfo common = 1; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo.Builder getCommonBuilder() { + + 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; + onChanged(); + return this; + } + /** + * string code = 2; + * @return This builder for chaining. + */ + public Builder clearCode() { + + code_ = getDefaultInstance().getCode(); + 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; + onChanged(); + return this; + } + + private java.util.List points_ = + java.util.Collections.emptyList(); + private void ensurePointsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + points_ = new java.util.ArrayList(points_); + bitField0_ |= 0x00000001; + } + } + + 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_ & ~0x00000001); + 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_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + points_ = null; + } + return pointsBuilder_; + } + + private java.lang.Object nameColor_ = ""; + /** + * string nameColor = 4; + * @return The nameColor. + */ + public java.lang.String getNameColor() { + java.lang.Object ref = nameColor_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nameColor_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string nameColor = 4; + * @return The bytes for nameColor. + */ + public com.google.protobuf.ByteString + getNameColorBytes() { + java.lang.Object ref = nameColor_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nameColor_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string nameColor = 4; + * @param value The nameColor to set. + * @return This builder for chaining. + */ + public Builder setNameColor( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nameColor_ = value; + onChanged(); + return this; + } + /** + * string nameColor = 4; + * @return This builder for chaining. + */ + public Builder clearNameColor() { + + nameColor_ = getDefaultInstance().getNameColor(); + onChanged(); + return this; + } + /** + * string nameColor = 4; + * @param value The bytes for nameColor to set. + * @return This builder for chaining. + */ + public Builder setNameColorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nameColor_ = value; + onChanged(); + return this; + } + + private java.lang.Object nameBgColor_ = ""; + /** + * string nameBgColor = 5; + * @return The nameBgColor. + */ + public java.lang.String getNameBgColor() { + java.lang.Object ref = nameBgColor_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nameBgColor_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string nameBgColor = 5; + * @return The bytes for nameBgColor. + */ + public com.google.protobuf.ByteString + getNameBgColorBytes() { + java.lang.Object ref = nameBgColor_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nameBgColor_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string nameBgColor = 5; + * @param value The nameBgColor to set. + * @return This builder for chaining. + */ + public Builder setNameBgColor( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nameBgColor_ = value; + onChanged(); + return this; + } + /** + * string nameBgColor = 5; + * @return This builder for chaining. + */ + public Builder clearNameBgColor() { + + nameBgColor_ = getDefaultInstance().getNameBgColor(); + onChanged(); + return this; + } + /** + * string nameBgColor = 5; + * @param value The bytes for nameBgColor to set. + * @return This builder for chaining. + */ + public Builder setNameBgColorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nameBgColor_ = value; + 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.RunLine) + } + + // @@protoc_insertion_point(class_scope:graphicData.RunLine) + private static final club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine(); + } + + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RunLine getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunLine parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RunLine(input, extensionRegistry); + } + }; + + 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.RunLine getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + public interface SectionOrBuilder extends // @@protoc_insertion_point(interface_extends:graphicData.Section) com.google.protobuf.MessageOrBuilder { @@ -21032,6 +25899,1152 @@ public final class LayoutGraphicsProto { } + public interface PathLineOrBuilder extends + // @@protoc_insertion_point(interface_extends:graphicData.PathLine) + 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); + } + /** + * Protobuf type {@code graphicData.PathLine} + */ + public static final class PathLine extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:graphicData.PathLine) + PathLineOrBuilder { + private static final long serialVersionUID = 0L; + // Use PathLine.newBuilder() to construct. + private PathLine(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PathLine() { + code_ = ""; + points_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PathLine(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PathLine( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo.Builder subBuilder = null; + if (common_ != null) { + subBuilder = common_.toBuilder(); + } + common_ = input.readMessage(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(common_); + common_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + code_ = s; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + points_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + points_.add( + input.readMessage(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Point.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + points_ = java.util.Collections.unmodifiableList(points_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.internal_static_graphicData_PathLine_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.internal_static_graphicData_PathLine_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PathLine.class, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PathLine.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 getCommon(); + } + + public static final int CODE_FIELD_NUMBER = 2; + 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; + 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); + } + + 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)); + } + unknownFields.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)); + } + size += unknownFields.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.PathLine)) { + return super.equals(obj); + } + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PathLine other = (club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PathLine) 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 (!unknownFields.equals(other.unknownFields)) 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PathLine parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PathLine 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.PathLine parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PathLine 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.PathLine parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PathLine 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.PathLine 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.PathLine 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.PathLine 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.PathLine 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.PathLine 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.PathLine 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.PathLine 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.PathLine} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:graphicData.PathLine) + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PathLineOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.internal_static_graphicData_PathLine_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.internal_static_graphicData_PathLine_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PathLine.class, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PathLine.Builder.class); + } + + // Construct using club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PathLine.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getPointsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (commonBuilder_ == null) { + common_ = null; + } else { + common_ = null; + commonBuilder_ = null; + } + code_ = ""; + + if (pointsBuilder_ == null) { + points_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + pointsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.internal_static_graphicData_PathLine_descriptor; + } + + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PathLine getDefaultInstanceForType() { + return club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PathLine.getDefaultInstance(); + } + + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PathLine build() { + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PathLine result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PathLine buildPartial() { + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PathLine result = new club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PathLine(this); + int from_bitField0_ = bitField0_; + if (commonBuilder_ == null) { + result.common_ = common_; + } else { + result.common_ = commonBuilder_.build(); + } + result.code_ = code_; + if (pointsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + points_ = java.util.Collections.unmodifiableList(points_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.points_ = points_; + } else { + result.points_ = pointsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PathLine) { + return mergeFrom((club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PathLine)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PathLine other) { + if (other == club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PathLine.getDefaultInstance()) return this; + if (other.hasCommon()) { + mergeCommon(other.getCommon()); + } + if (!other.getCode().isEmpty()) { + code_ = other.code_; + onChanged(); + } + if (pointsBuilder_ == null) { + if (!other.points_.isEmpty()) { + if (points_.isEmpty()) { + points_ = other.points_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePointsIsMutable(); + points_.addAll(other.points_); + } + onChanged(); + } + } else { + if (!other.points_.isEmpty()) { + if (pointsBuilder_.isEmpty()) { + pointsBuilder_.dispose(); + pointsBuilder_ = null; + points_ = other.points_; + bitField0_ = (bitField0_ & ~0x00000001); + pointsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPointsFieldBuilder() : null; + } else { + pointsBuilder_.addAllMessages(other.points_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + 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 { + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PathLine parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PathLine) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 commonBuilder_ != null || common_ != null; + } + /** + * .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; + onChanged(); + } else { + commonBuilder_.setMessage(value); + } + + return this; + } + /** + * .graphicData.CommonInfo common = 1; + */ + public Builder setCommon( + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo.Builder builderForValue) { + if (commonBuilder_ == null) { + common_ = builderForValue.build(); + onChanged(); + } else { + commonBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .graphicData.CommonInfo common = 1; + */ + public Builder mergeCommon(club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo value) { + if (commonBuilder_ == null) { + if (common_ != null) { + common_ = + club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo.newBuilder(common_).mergeFrom(value).buildPartial(); + } else { + common_ = value; + } + onChanged(); + } else { + commonBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .graphicData.CommonInfo common = 1; + */ + public Builder clearCommon() { + if (commonBuilder_ == null) { + common_ = null; + onChanged(); + } else { + common_ = null; + commonBuilder_ = null; + } + + return this; + } + /** + * .graphicData.CommonInfo common = 1; + */ + public club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.CommonInfo.Builder getCommonBuilder() { + + 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; + onChanged(); + return this; + } + /** + * string code = 2; + * @return This builder for chaining. + */ + public Builder clearCode() { + + code_ = getDefaultInstance().getCode(); + 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; + onChanged(); + return this; + } + + private java.util.List points_ = + java.util.Collections.emptyList(); + private void ensurePointsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + points_ = new java.util.ArrayList(points_); + bitField0_ |= 0x00000001; + } + } + + 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_ & ~0x00000001); + 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_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + points_ = null; + } + return pointsBuilder_; + } + @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.PathLine) + } + + // @@protoc_insertion_point(class_scope:graphicData.PathLine) + private static final club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PathLine DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PathLine(); + } + + public static club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.PathLine getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PathLine parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PathLine(input, extensionRegistry); + } + }; + + 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.PathLine getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + private static final com.google.protobuf.Descriptors.Descriptor internal_static_graphicData_RtssGraphicStorage_descriptor; private static final @@ -21072,6 +27085,11 @@ public final class LayoutGraphicsProto { private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_graphicData_Rect_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_graphicData_Polygon_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_graphicData_Polygon_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_graphicData_Platform_descriptor; private static final @@ -21092,6 +27110,11 @@ public final class LayoutGraphicsProto { private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_graphicData_Train_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_graphicData_TrainLine_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_graphicData_TrainLine_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_graphicData_IscsFan_descriptor; private static final @@ -21107,11 +27130,21 @@ public final class LayoutGraphicsProto { private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_graphicData_Signal_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_graphicData_RunLine_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_graphicData_RunLine_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_graphicData_Section_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_graphicData_Section_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_graphicData_PathLine_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_graphicData_PathLine_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -21122,7 +27155,7 @@ public final class LayoutGraphicsProto { static { java.lang.String[] descriptorData = { "\n\033stationLayoutGraphics.proto\022\013graphicDa" + - "ta\"\277\003\n\022RtssGraphicStorage\022#\n\006canvas\030\001 \001(" + + "ta\"\273\004\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" + @@ -21133,51 +27166,65 @@ public final class LayoutGraphicsProto { "ignal\022&\n\010turnouts\030\t \003(\0132\024.graphicData.Tu" + "rnout\022%\n\007section\030\n \003(\0132\024.graphicData.Sec" + "tion\022.\n\014stationLines\030\013 \003(\0132\030.graphicData" + - ".StationLine\"s\n\006Canvas\022\r\n\005width\030\001 \001(\005\022\016\n" + - "\006height\030\002 \001(\005\022\027\n\017backgroundColor\030\003 \001(\t\0221" + - "\n\021viewportTransform\030\004 \001(\0132\026.graphicData." + - "Transform\"\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.graph" + - "icData.Point\022!\n\005scale\030\002 \001(\0132\022.graphicDat" + - "a.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" + - "\004name\030\001 \001(\t\022)\n\ttransform\030\002 \001(\0132\026.graphic" + - "Data.Transform\"\216\001\n\nCommonInfo\022\n\n\002id\030\001 \001(" + - "\t\022\023\n\013graphicType\030\002 \001(\t\022)\n\ttransform\030\003 \001(" + - "\0132\026.graphicData.Transform\0224\n\017childTransf" + - "orms\030\004 \003(\0132\033.graphicData.ChildTransform\"" + - "\255\001\n\004Link\022\'\n\006common\030\001 \001(\0132\027.graphicData.C" + - "ommonInfo\022\014\n\004code\030\002 \001(\t\022\r\n\005curve\030\003 \001(\010\022\025" + - "\n\rsegmentsCount\030\004 \001(\005\022\021\n\tlineWidth\030\005 \001(\005" + - "\022\021\n\tlineColor\030\006 \001(\t\022\"\n\006points\030\007 \003(\0132\022.gr" + - "aphicData.Point\"\265\001\n\004Rect\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\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.graphicData.Point\"" + - "e\n\010Platform\022\'\n\006common\030\001 \001(\0132\027.graphicDat" + - "a.CommonInfo\022\014\n\004code\030\002 \001(\t\022\017\n\007hasdoor\030\003 " + - "\001(\010\022\021\n\tdirection\030\004 \001(\t\"@\n\007Station\022\'\n\006com" + - "mon\030\001 \001(\0132\027.graphicData.CommonInfo\022\014\n\004co" + - "de\030\002 \001(\t\"Y\n\013StationLine\022\'\n\006common\030\001 \001(\0132" + - "\027.graphicData.CommonInfo\022\014\n\004code\030\002 \001(\t\022\023" + - "\n\013hasTransfer\030\003 \001(\010\"i\n\005Train\022\'\n\006common\030\001" + + ".StationLine\022&\n\010runLines\030\014 \003(\0132\024.graphic" + + "Data.RunLine\022*\n\ntrainLines\030\r \003(\0132\026.graph" + + "icData.TrainLine\022&\n\010polygons\030\016 \003(\0132\024.gra" + + "phicData.Polygon\"s\n\006Canvas\022\r\n\005width\030\001 \001(" + + "\005\022\016\n\006height\030\002 \001(\005\022\027\n\017backgroundColor\030\003 \001" + + "(\t\0221\n\021viewportTransform\030\004 \001(\0132\026.graphicD" + + "ata.Transform\"\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.g" + + "raphicData.Point\022!\n\005scale\030\002 \001(\0132\022.graphi" + + "cData.Point\022\020\n\010rotation\030\003 \001(\002\022 \n\004skew\030\004 " + + "\001(\0132\022.graphicData.Point\"I\n\016ChildTransfor" + + "m\022\014\n\004name\030\001 \001(\t\022)\n\ttransform\030\002 \001(\0132\026.gra" + + "phicData.Transform\"\216\001\n\nCommonInfo\022\n\n\002id\030" + + "\001 \001(\t\022\023\n\013graphicType\030\002 \001(\t\022)\n\ttransform\030" + + "\003 \001(\0132\026.graphicData.Transform\0224\n\017childTr" + + "ansforms\030\004 \003(\0132\033.graphicData.ChildTransf" + + "orm\"\255\001\n\004Link\022\'\n\006common\030\001 \001(\0132\027.graphicDa" + + "ta.CommonInfo\022\014\n\004code\030\002 \001(\t\022\r\n\005curve\030\003 \001" + + "(\010\022\025\n\rsegmentsCount\030\004 \001(\005\022\021\n\tlineWidth\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\006common\030\001" + " \001(\0132\027.graphicData.CommonInfo\022\014\n\004code\030\002 " + - "\001(\t\022\026\n\016trainDirection\030\003 \001(\t\022\021\n\thasBorder" + - "\030\004 \001(\010\"@\n\007IscsFan\022\'\n\006common\030\001 \001(\0132\027.grap" + - "hicData.CommonInfo\022\014\n\004code\030\002 \001(\t\"\325\001\n\007Tur" + - "nout\022\'\n\006common\030\001 \001(\0132\027.graphicData.Commo" + - "nInfo\022\014\n\004code\030\002 \001(\t\022\"\n\006pointA\030\006 \001(\0132\022.gr" + - "aphicData.Point\022\"\n\006pointB\030\007 \001(\0132\022.graphi" + - "cData.Point\022\"\n\006pointC\030\010 \001(\0132\022.graphicDat" + - "a.Point\022\'\n\013labelOffset\030\t \001(\0132\022.graphicDa" + - "ta.Point\"?\n\006Signal\022\'\n\006common\030\001 \001(\0132\027.gra" + - "phicData.CommonInfo\022\014\n\004code\030\002 \001(\t\"d\n\007Sec" + - "tion\022\'\n\006common\030\001 \001(\0132\027.graphicData.Commo" + - "nInfo\022\014\n\004code\030\002 \001(\t\022\"\n\006points\030\003 \003(\0132\022.gr" + - "aphicData.PointB8\n!club.joylink.xiannccd" + - "a.dto.protosB\023LayoutGraphicsProtob\006proto" + - "3" + "\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\006radi" + + "us\030\007 \001(\005\022!\n\005point\030\010 \001(\0132\022.graphicData.Po" + + "int\"\212\001\n\007Polygon\022\'\n\006common\030\001 \001(\0132\027.graphi" + + "cData.CommonInfo\022\014\n\004code\030\002 \001(\t\022\021\n\tlineWi" + + "dth\030\003 \001(\005\022\021\n\tlineColor\030\004 \001(\t\022\"\n\006points\030\005" + + " \003(\0132\022.graphicData.Point\"e\n\010Platform\022\'\n\006" + + "common\030\001 \001(\0132\027.graphicData.CommonInfo\022\014\n" + + "\004code\030\002 \001(\t\022\017\n\007hasdoor\030\003 \001(\010\022\021\n\tdirectio" + + "n\030\004 \001(\t\"@\n\007Station\022\'\n\006common\030\001 \001(\0132\027.gra" + + "phicData.CommonInfo\022\014\n\004code\030\002 \001(\t\"Y\n\013Sta" + + "tionLine\022\'\n\006common\030\001 \001(\0132\027.graphicData.C" + + "ommonInfo\022\014\n\004code\030\002 \001(\t\022\023\n\013hasTransfer\030\003" + + " \001(\010\"i\n\005Train\022\'\n\006common\030\001 \001(\0132\027.graphicD" + + "ata.CommonInfo\022\014\n\004code\030\002 \001(\t\022\026\n\016trainDir" + + "ection\030\003 \001(\t\022\021\n\thasBorder\030\004 \001(\010\"B\n\tTrain" + + "Line\022\'\n\006common\030\001 \001(\0132\027.graphicData.Commo" + + "nInfo\022\014\n\004code\030\002 \001(\t\"@\n\007IscsFan\022\'\n\006common" + + "\030\001 \001(\0132\027.graphicData.CommonInfo\022\014\n\004code\030" + + "\002 \001(\t\"\325\001\n\007Turnout\022\'\n\006common\030\001 \001(\0132\027.grap" + + "hicData.CommonInfo\022\014\n\004code\030\002 \001(\t\022\"\n\006poin" + + "tA\030\006 \001(\0132\022.graphicData.Point\022\"\n\006pointB\030\007" + + " \001(\0132\022.graphicData.Point\022\"\n\006pointC\030\010 \001(\013" + + "2\022.graphicData.Point\022\'\n\013labelOffset\030\t \001(" + + "\0132\022.graphicData.Point\"?\n\006Signal\022\'\n\006commo" + + "n\030\001 \001(\0132\027.graphicData.CommonInfo\022\014\n\004code" + + "\030\002 \001(\t\"\214\001\n\007RunLine\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\022\021\n\tnameCol" + + "or\030\004 \001(\t\022\023\n\013nameBgColor\030\005 \001(\t\"d\n\007Section" + + "\022\'\n\006common\030\001 \001(\0132\027.graphicData.CommonInf" + + "o\022\014\n\004code\030\002 \001(\t\022\"\n\006points\030\003 \003(\0132\022.graphi" + + "cData.Point\"e\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.PointB8\n!cl" + + "ub.joylink.xiannccda.dto.protosB\023LayoutG" + + "raphicsProtob\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -21188,7 +27235,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", }); + new java.lang.String[] { "Canvas", "Links", "IscsFans", "Platforms", "Stations", "Rects", "Train", "Signals", "Turnouts", "Section", "StationLines", "RunLines", "TrainLines", "Polygons", }); internal_static_graphicData_Canvas_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_graphicData_Canvas_fieldAccessorTable = new @@ -21231,54 +27278,78 @@ public final class LayoutGraphicsProto { com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_graphicData_Rect_descriptor, new java.lang.String[] { "Common", "Code", "LineWidth", "LineColor", "Width", "Height", "Radius", "Point", }); - internal_static_graphicData_Platform_descriptor = + internal_static_graphicData_Polygon_descriptor = getDescriptor().getMessageTypes().get(8); + internal_static_graphicData_Polygon_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_graphicData_Polygon_descriptor, + new java.lang.String[] { "Common", "Code", "LineWidth", "LineColor", "Points", }); + internal_static_graphicData_Platform_descriptor = + getDescriptor().getMessageTypes().get(9); internal_static_graphicData_Platform_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_graphicData_Platform_descriptor, new java.lang.String[] { "Common", "Code", "Hasdoor", "Direction", }); internal_static_graphicData_Station_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(10); internal_static_graphicData_Station_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_graphicData_Station_descriptor, new java.lang.String[] { "Common", "Code", }); internal_static_graphicData_StationLine_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_graphicData_StationLine_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_graphicData_StationLine_descriptor, new java.lang.String[] { "Common", "Code", "HasTransfer", }); internal_static_graphicData_Train_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_graphicData_Train_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_graphicData_Train_descriptor, new java.lang.String[] { "Common", "Code", "TrainDirection", "HasBorder", }); + internal_static_graphicData_TrainLine_descriptor = + getDescriptor().getMessageTypes().get(13); + 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(12); + getDescriptor().getMessageTypes().get(14); 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(13); + getDescriptor().getMessageTypes().get(15); 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", "LabelOffset", }); internal_static_graphicData_Signal_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(16); internal_static_graphicData_Signal_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_graphicData_Signal_descriptor, new java.lang.String[] { "Common", "Code", }); + internal_static_graphicData_RunLine_descriptor = + getDescriptor().getMessageTypes().get(17); + 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", }); internal_static_graphicData_Section_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(18); internal_static_graphicData_Section_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_graphicData_Section_descriptor, new java.lang.String[] { "Common", "Code", "Points", }); + internal_static_graphicData_PathLine_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_graphicData_PathLine_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_graphicData_PathLine_descriptor, + new java.lang.String[] { "Common", "Code", "Points", }); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/club/joylink/xiannccda/dto/protos/LineNetTrainOffsetDiagramProto.java b/src/main/java/club/joylink/xiannccda/dto/protos/LineNetTrainOffsetDiagramProto.java new file mode 100644 index 0000000..8a47848 --- /dev/null +++ b/src/main/java/club/joylink/xiannccda/dto/protos/LineNetTrainOffsetDiagramProto.java @@ -0,0 +1,1488 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: LineNetTrainOffsetDiagram.proto + +package club.joylink.xiannccda.dto.protos; + +public final class LineNetTrainOffsetDiagramProto { + private LineNetTrainOffsetDiagramProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface LineNetTrainOffsetDiagramOrBuilder extends + // @@protoc_insertion_point(interface_extends:diagram.LineNetTrainOffsetDiagram) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     *线路id
+     * 
+ * + * int32 lineId = 1; + * @return The lineId. + */ + int getLineId(); + + /** + *
+     *车组号
+     * 
+ * + * string groupId = 2; + * @return The groupId. + */ + java.lang.String getGroupId(); + /** + *
+     *车组号
+     * 
+ * + * string groupId = 2; + * @return The bytes for groupId. + */ + com.google.protobuf.ByteString + getGroupIdBytes(); + + /** + *
+     *方向
+     * 
+ * + * int32 dir = 3; + * @return The dir. + */ + int getDir(); + + /** + *
+     *是否显示
+     * 
+ * + * bool show = 4; + * @return The show. + */ + boolean getShow(); + + /** + *
+     *车次窗编号
+     * 
+ * + * int32 windowNo = 5; + * @return The windowNo. + */ + int getWindowNo(); + + /** + *
+     *车次窗位置
+     * 
+ * + * int32 windowOffset = 6; + * @return The windowOffset. + */ + int getWindowOffset(); + + /** + *
+     *目的地
+     * 
+ * + * string destinationId = 7; + * @return The destinationId. + */ + java.lang.String getDestinationId(); + /** + *
+     *目的地
+     * 
+ * + * string destinationId = 7; + * @return The bytes for destinationId. + */ + com.google.protobuf.ByteString + getDestinationIdBytes(); + + /** + *
+     *后部车站
+     * 
+ * + * string backId = 8; + * @return The backId. + */ + java.lang.String getBackId(); + /** + *
+     *后部车站
+     * 
+ * + * string backId = 8; + * @return The bytes for backId. + */ + com.google.protobuf.ByteString + getBackIdBytes(); + } + /** + *
+   *线网车辆位置
+   * 
+ * + * Protobuf type {@code diagram.LineNetTrainOffsetDiagram} + */ + public static final class LineNetTrainOffsetDiagram extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:diagram.LineNetTrainOffsetDiagram) + LineNetTrainOffsetDiagramOrBuilder { + private static final long serialVersionUID = 0L; + // Use LineNetTrainOffsetDiagram.newBuilder() to construct. + private LineNetTrainOffsetDiagram(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LineNetTrainOffsetDiagram() { + groupId_ = ""; + destinationId_ = ""; + backId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LineNetTrainOffsetDiagram(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LineNetTrainOffsetDiagram( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + lineId_ = input.readInt32(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + groupId_ = s; + break; + } + case 24: { + + dir_ = input.readInt32(); + break; + } + case 32: { + + show_ = input.readBool(); + break; + } + case 40: { + + windowNo_ = input.readInt32(); + break; + } + case 48: { + + windowOffset_ = input.readInt32(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + destinationId_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + backId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.xiannccda.dto.protos.LineNetTrainOffsetDiagramProto.internal_static_diagram_LineNetTrainOffsetDiagram_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.xiannccda.dto.protos.LineNetTrainOffsetDiagramProto.internal_static_diagram_LineNetTrainOffsetDiagram_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.xiannccda.dto.protos.LineNetTrainOffsetDiagramProto.LineNetTrainOffsetDiagram.class, club.joylink.xiannccda.dto.protos.LineNetTrainOffsetDiagramProto.LineNetTrainOffsetDiagram.Builder.class); + } + + public static final int LINEID_FIELD_NUMBER = 1; + private int lineId_; + /** + *
+     *线路id
+     * 
+ * + * int32 lineId = 1; + * @return The lineId. + */ + @java.lang.Override + public int getLineId() { + return lineId_; + } + + public static final int GROUPID_FIELD_NUMBER = 2; + private volatile java.lang.Object groupId_; + /** + *
+     *车组号
+     * 
+ * + * string groupId = 2; + * @return The groupId. + */ + @java.lang.Override + public java.lang.String getGroupId() { + java.lang.Object ref = groupId_; + 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(); + groupId_ = s; + return s; + } + } + /** + *
+     *车组号
+     * 
+ * + * string groupId = 2; + * @return The bytes for groupId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getGroupIdBytes() { + java.lang.Object ref = groupId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + groupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIR_FIELD_NUMBER = 3; + private int dir_; + /** + *
+     *方向
+     * 
+ * + * int32 dir = 3; + * @return The dir. + */ + @java.lang.Override + public int getDir() { + return dir_; + } + + public static final int SHOW_FIELD_NUMBER = 4; + private boolean show_; + /** + *
+     *是否显示
+     * 
+ * + * bool show = 4; + * @return The show. + */ + @java.lang.Override + public boolean getShow() { + return show_; + } + + public static final int WINDOWNO_FIELD_NUMBER = 5; + private int windowNo_; + /** + *
+     *车次窗编号
+     * 
+ * + * int32 windowNo = 5; + * @return The windowNo. + */ + @java.lang.Override + public int getWindowNo() { + return windowNo_; + } + + public static final int WINDOWOFFSET_FIELD_NUMBER = 6; + private int windowOffset_; + /** + *
+     *车次窗位置
+     * 
+ * + * int32 windowOffset = 6; + * @return The windowOffset. + */ + @java.lang.Override + public int getWindowOffset() { + return windowOffset_; + } + + public static final int DESTINATIONID_FIELD_NUMBER = 7; + private volatile java.lang.Object destinationId_; + /** + *
+     *目的地
+     * 
+ * + * string destinationId = 7; + * @return The destinationId. + */ + @java.lang.Override + public java.lang.String getDestinationId() { + java.lang.Object ref = destinationId_; + 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(); + destinationId_ = s; + return s; + } + } + /** + *
+     *目的地
+     * 
+ * + * string destinationId = 7; + * @return The bytes for destinationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDestinationIdBytes() { + java.lang.Object ref = destinationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + destinationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BACKID_FIELD_NUMBER = 8; + private volatile java.lang.Object backId_; + /** + *
+     *后部车站
+     * 
+ * + * string backId = 8; + * @return The backId. + */ + @java.lang.Override + public java.lang.String getBackId() { + java.lang.Object ref = backId_; + 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(); + backId_ = s; + return s; + } + } + /** + *
+     *后部车站
+     * 
+ * + * string backId = 8; + * @return The bytes for backId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBackIdBytes() { + java.lang.Object ref = backId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + backId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 (lineId_ != 0) { + output.writeInt32(1, lineId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, groupId_); + } + if (dir_ != 0) { + output.writeInt32(3, dir_); + } + if (show_ != false) { + output.writeBool(4, show_); + } + if (windowNo_ != 0) { + output.writeInt32(5, windowNo_); + } + if (windowOffset_ != 0) { + output.writeInt32(6, windowOffset_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, destinationId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, backId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (lineId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, lineId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, groupId_); + } + if (dir_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, dir_); + } + if (show_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, show_); + } + if (windowNo_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, windowNo_); + } + if (windowOffset_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, windowOffset_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, destinationId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, backId_); + } + size += unknownFields.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.LineNetTrainOffsetDiagramProto.LineNetTrainOffsetDiagram)) { + return super.equals(obj); + } + club.joylink.xiannccda.dto.protos.LineNetTrainOffsetDiagramProto.LineNetTrainOffsetDiagram other = (club.joylink.xiannccda.dto.protos.LineNetTrainOffsetDiagramProto.LineNetTrainOffsetDiagram) obj; + + if (getLineId() + != other.getLineId()) return false; + if (!getGroupId() + .equals(other.getGroupId())) return false; + if (getDir() + != other.getDir()) return false; + if (getShow() + != other.getShow()) return false; + if (getWindowNo() + != other.getWindowNo()) return false; + if (getWindowOffset() + != other.getWindowOffset()) return false; + if (!getDestinationId() + .equals(other.getDestinationId())) return false; + if (!getBackId() + .equals(other.getBackId())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LINEID_FIELD_NUMBER; + hash = (53 * hash) + getLineId(); + hash = (37 * hash) + GROUPID_FIELD_NUMBER; + hash = (53 * hash) + getGroupId().hashCode(); + hash = (37 * hash) + DIR_FIELD_NUMBER; + hash = (53 * hash) + getDir(); + hash = (37 * hash) + SHOW_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getShow()); + hash = (37 * hash) + WINDOWNO_FIELD_NUMBER; + hash = (53 * hash) + getWindowNo(); + hash = (37 * hash) + WINDOWOFFSET_FIELD_NUMBER; + hash = (53 * hash) + getWindowOffset(); + hash = (37 * hash) + DESTINATIONID_FIELD_NUMBER; + hash = (53 * hash) + getDestinationId().hashCode(); + hash = (37 * hash) + BACKID_FIELD_NUMBER; + hash = (53 * hash) + getBackId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static club.joylink.xiannccda.dto.protos.LineNetTrainOffsetDiagramProto.LineNetTrainOffsetDiagram parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.xiannccda.dto.protos.LineNetTrainOffsetDiagramProto.LineNetTrainOffsetDiagram 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.LineNetTrainOffsetDiagramProto.LineNetTrainOffsetDiagram parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.xiannccda.dto.protos.LineNetTrainOffsetDiagramProto.LineNetTrainOffsetDiagram 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.LineNetTrainOffsetDiagramProto.LineNetTrainOffsetDiagram parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.xiannccda.dto.protos.LineNetTrainOffsetDiagramProto.LineNetTrainOffsetDiagram 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.LineNetTrainOffsetDiagramProto.LineNetTrainOffsetDiagram parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static club.joylink.xiannccda.dto.protos.LineNetTrainOffsetDiagramProto.LineNetTrainOffsetDiagram 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.LineNetTrainOffsetDiagramProto.LineNetTrainOffsetDiagram parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static club.joylink.xiannccda.dto.protos.LineNetTrainOffsetDiagramProto.LineNetTrainOffsetDiagram 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.LineNetTrainOffsetDiagramProto.LineNetTrainOffsetDiagram 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.LineNetTrainOffsetDiagramProto.LineNetTrainOffsetDiagram 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.LineNetTrainOffsetDiagramProto.LineNetTrainOffsetDiagram 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 diagram.LineNetTrainOffsetDiagram} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:diagram.LineNetTrainOffsetDiagram) + club.joylink.xiannccda.dto.protos.LineNetTrainOffsetDiagramProto.LineNetTrainOffsetDiagramOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.xiannccda.dto.protos.LineNetTrainOffsetDiagramProto.internal_static_diagram_LineNetTrainOffsetDiagram_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.xiannccda.dto.protos.LineNetTrainOffsetDiagramProto.internal_static_diagram_LineNetTrainOffsetDiagram_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.xiannccda.dto.protos.LineNetTrainOffsetDiagramProto.LineNetTrainOffsetDiagram.class, club.joylink.xiannccda.dto.protos.LineNetTrainOffsetDiagramProto.LineNetTrainOffsetDiagram.Builder.class); + } + + // Construct using club.joylink.xiannccda.dto.protos.LineNetTrainOffsetDiagramProto.LineNetTrainOffsetDiagram.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + lineId_ = 0; + + groupId_ = ""; + + dir_ = 0; + + show_ = false; + + windowNo_ = 0; + + windowOffset_ = 0; + + destinationId_ = ""; + + backId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return club.joylink.xiannccda.dto.protos.LineNetTrainOffsetDiagramProto.internal_static_diagram_LineNetTrainOffsetDiagram_descriptor; + } + + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LineNetTrainOffsetDiagramProto.LineNetTrainOffsetDiagram getDefaultInstanceForType() { + return club.joylink.xiannccda.dto.protos.LineNetTrainOffsetDiagramProto.LineNetTrainOffsetDiagram.getDefaultInstance(); + } + + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LineNetTrainOffsetDiagramProto.LineNetTrainOffsetDiagram build() { + club.joylink.xiannccda.dto.protos.LineNetTrainOffsetDiagramProto.LineNetTrainOffsetDiagram result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public club.joylink.xiannccda.dto.protos.LineNetTrainOffsetDiagramProto.LineNetTrainOffsetDiagram buildPartial() { + club.joylink.xiannccda.dto.protos.LineNetTrainOffsetDiagramProto.LineNetTrainOffsetDiagram result = new club.joylink.xiannccda.dto.protos.LineNetTrainOffsetDiagramProto.LineNetTrainOffsetDiagram(this); + result.lineId_ = lineId_; + result.groupId_ = groupId_; + result.dir_ = dir_; + result.show_ = show_; + result.windowNo_ = windowNo_; + result.windowOffset_ = windowOffset_; + result.destinationId_ = destinationId_; + result.backId_ = backId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof club.joylink.xiannccda.dto.protos.LineNetTrainOffsetDiagramProto.LineNetTrainOffsetDiagram) { + return mergeFrom((club.joylink.xiannccda.dto.protos.LineNetTrainOffsetDiagramProto.LineNetTrainOffsetDiagram)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(club.joylink.xiannccda.dto.protos.LineNetTrainOffsetDiagramProto.LineNetTrainOffsetDiagram other) { + if (other == club.joylink.xiannccda.dto.protos.LineNetTrainOffsetDiagramProto.LineNetTrainOffsetDiagram.getDefaultInstance()) return this; + if (other.getLineId() != 0) { + setLineId(other.getLineId()); + } + if (!other.getGroupId().isEmpty()) { + groupId_ = other.groupId_; + onChanged(); + } + if (other.getDir() != 0) { + setDir(other.getDir()); + } + if (other.getShow() != false) { + setShow(other.getShow()); + } + if (other.getWindowNo() != 0) { + setWindowNo(other.getWindowNo()); + } + if (other.getWindowOffset() != 0) { + setWindowOffset(other.getWindowOffset()); + } + if (!other.getDestinationId().isEmpty()) { + destinationId_ = other.destinationId_; + onChanged(); + } + if (!other.getBackId().isEmpty()) { + backId_ = other.backId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + club.joylink.xiannccda.dto.protos.LineNetTrainOffsetDiagramProto.LineNetTrainOffsetDiagram parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (club.joylink.xiannccda.dto.protos.LineNetTrainOffsetDiagramProto.LineNetTrainOffsetDiagram) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int lineId_ ; + /** + *
+       *线路id
+       * 
+ * + * int32 lineId = 1; + * @return The lineId. + */ + @java.lang.Override + public int getLineId() { + return lineId_; + } + /** + *
+       *线路id
+       * 
+ * + * int32 lineId = 1; + * @param value The lineId to set. + * @return This builder for chaining. + */ + public Builder setLineId(int value) { + + lineId_ = value; + onChanged(); + return this; + } + /** + *
+       *线路id
+       * 
+ * + * int32 lineId = 1; + * @return This builder for chaining. + */ + public Builder clearLineId() { + + lineId_ = 0; + onChanged(); + return this; + } + + private java.lang.Object groupId_ = ""; + /** + *
+       *车组号
+       * 
+ * + * string groupId = 2; + * @return The groupId. + */ + public java.lang.String getGroupId() { + java.lang.Object ref = groupId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + groupId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       *车组号
+       * 
+ * + * string groupId = 2; + * @return The bytes for groupId. + */ + public com.google.protobuf.ByteString + getGroupIdBytes() { + java.lang.Object ref = groupId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + groupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       *车组号
+       * 
+ * + * string groupId = 2; + * @param value The groupId to set. + * @return This builder for chaining. + */ + public Builder setGroupId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + groupId_ = value; + onChanged(); + return this; + } + /** + *
+       *车组号
+       * 
+ * + * string groupId = 2; + * @return This builder for chaining. + */ + public Builder clearGroupId() { + + groupId_ = getDefaultInstance().getGroupId(); + onChanged(); + return this; + } + /** + *
+       *车组号
+       * 
+ * + * string groupId = 2; + * @param value The bytes for groupId to set. + * @return This builder for chaining. + */ + public Builder setGroupIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + groupId_ = value; + onChanged(); + return this; + } + + private int dir_ ; + /** + *
+       *方向
+       * 
+ * + * int32 dir = 3; + * @return The dir. + */ + @java.lang.Override + public int getDir() { + return dir_; + } + /** + *
+       *方向
+       * 
+ * + * int32 dir = 3; + * @param value The dir to set. + * @return This builder for chaining. + */ + public Builder setDir(int value) { + + dir_ = value; + onChanged(); + return this; + } + /** + *
+       *方向
+       * 
+ * + * int32 dir = 3; + * @return This builder for chaining. + */ + public Builder clearDir() { + + dir_ = 0; + onChanged(); + return this; + } + + private boolean show_ ; + /** + *
+       *是否显示
+       * 
+ * + * bool show = 4; + * @return The show. + */ + @java.lang.Override + public boolean getShow() { + return show_; + } + /** + *
+       *是否显示
+       * 
+ * + * bool show = 4; + * @param value The show to set. + * @return This builder for chaining. + */ + public Builder setShow(boolean value) { + + show_ = value; + onChanged(); + return this; + } + /** + *
+       *是否显示
+       * 
+ * + * bool show = 4; + * @return This builder for chaining. + */ + public Builder clearShow() { + + show_ = false; + onChanged(); + return this; + } + + private int windowNo_ ; + /** + *
+       *车次窗编号
+       * 
+ * + * int32 windowNo = 5; + * @return The windowNo. + */ + @java.lang.Override + public int getWindowNo() { + return windowNo_; + } + /** + *
+       *车次窗编号
+       * 
+ * + * int32 windowNo = 5; + * @param value The windowNo to set. + * @return This builder for chaining. + */ + public Builder setWindowNo(int value) { + + windowNo_ = value; + onChanged(); + return this; + } + /** + *
+       *车次窗编号
+       * 
+ * + * int32 windowNo = 5; + * @return This builder for chaining. + */ + public Builder clearWindowNo() { + + windowNo_ = 0; + onChanged(); + return this; + } + + private int windowOffset_ ; + /** + *
+       *车次窗位置
+       * 
+ * + * int32 windowOffset = 6; + * @return The windowOffset. + */ + @java.lang.Override + public int getWindowOffset() { + return windowOffset_; + } + /** + *
+       *车次窗位置
+       * 
+ * + * int32 windowOffset = 6; + * @param value The windowOffset to set. + * @return This builder for chaining. + */ + public Builder setWindowOffset(int value) { + + windowOffset_ = value; + onChanged(); + return this; + } + /** + *
+       *车次窗位置
+       * 
+ * + * int32 windowOffset = 6; + * @return This builder for chaining. + */ + public Builder clearWindowOffset() { + + windowOffset_ = 0; + onChanged(); + return this; + } + + private java.lang.Object destinationId_ = ""; + /** + *
+       *目的地
+       * 
+ * + * string destinationId = 7; + * @return The destinationId. + */ + public java.lang.String getDestinationId() { + java.lang.Object ref = destinationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       *目的地
+       * 
+ * + * string destinationId = 7; + * @return The bytes for destinationId. + */ + public com.google.protobuf.ByteString + getDestinationIdBytes() { + java.lang.Object ref = destinationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + destinationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       *目的地
+       * 
+ * + * string destinationId = 7; + * @param value The destinationId to set. + * @return This builder for chaining. + */ + public Builder setDestinationId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + destinationId_ = value; + onChanged(); + return this; + } + /** + *
+       *目的地
+       * 
+ * + * string destinationId = 7; + * @return This builder for chaining. + */ + public Builder clearDestinationId() { + + destinationId_ = getDefaultInstance().getDestinationId(); + onChanged(); + return this; + } + /** + *
+       *目的地
+       * 
+ * + * string destinationId = 7; + * @param value The bytes for destinationId to set. + * @return This builder for chaining. + */ + public Builder setDestinationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + destinationId_ = value; + onChanged(); + return this; + } + + private java.lang.Object backId_ = ""; + /** + *
+       *后部车站
+       * 
+ * + * string backId = 8; + * @return The backId. + */ + public java.lang.String getBackId() { + java.lang.Object ref = backId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       *后部车站
+       * 
+ * + * string backId = 8; + * @return The bytes for backId. + */ + public com.google.protobuf.ByteString + getBackIdBytes() { + java.lang.Object ref = backId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + backId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       *后部车站
+       * 
+ * + * string backId = 8; + * @param value The backId to set. + * @return This builder for chaining. + */ + public Builder setBackId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + backId_ = value; + onChanged(); + return this; + } + /** + *
+       *后部车站
+       * 
+ * + * string backId = 8; + * @return This builder for chaining. + */ + public Builder clearBackId() { + + backId_ = getDefaultInstance().getBackId(); + onChanged(); + return this; + } + /** + *
+       *后部车站
+       * 
+ * + * string backId = 8; + * @param value The bytes for backId to set. + * @return This builder for chaining. + */ + public Builder setBackIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + backId_ = value; + 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:diagram.LineNetTrainOffsetDiagram) + } + + // @@protoc_insertion_point(class_scope:diagram.LineNetTrainOffsetDiagram) + private static final club.joylink.xiannccda.dto.protos.LineNetTrainOffsetDiagramProto.LineNetTrainOffsetDiagram DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new club.joylink.xiannccda.dto.protos.LineNetTrainOffsetDiagramProto.LineNetTrainOffsetDiagram(); + } + + public static club.joylink.xiannccda.dto.protos.LineNetTrainOffsetDiagramProto.LineNetTrainOffsetDiagram getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LineNetTrainOffsetDiagram parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LineNetTrainOffsetDiagram(input, extensionRegistry); + } + }; + + 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.LineNetTrainOffsetDiagramProto.LineNetTrainOffsetDiagram getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_diagram_LineNetTrainOffsetDiagram_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_diagram_LineNetTrainOffsetDiagram_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\037LineNetTrainOffsetDiagram.proto\022\007diagr" + + "am\"\246\001\n\031LineNetTrainOffsetDiagram\022\016\n\006line" + + "Id\030\001 \001(\005\022\017\n\007groupId\030\002 \001(\t\022\013\n\003dir\030\003 \001(\005\022\014" + + "\n\004show\030\004 \001(\010\022\020\n\010windowNo\030\005 \001(\005\022\024\n\014window" + + "Offset\030\006 \001(\005\022\025\n\rdestinationId\030\007 \001(\t\022\016\n\006b" + + "ackId\030\010 \001(\tBC\n!club.joylink.xiannccda.dt" + + "o.protosB\036LineNetTrainOffsetDiagramProto" + + "b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_diagram_LineNetTrainOffsetDiagram_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_diagram_LineNetTrainOffsetDiagram_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_diagram_LineNetTrainOffsetDiagram_descriptor, + new java.lang.String[] { "LineId", "GroupId", "Dir", "Show", "WindowNo", "WindowOffset", "DestinationId", "BackId", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/xian-ncc-da-message b/xian-ncc-da-message index e55bc50..321af96 160000 --- a/xian-ncc-da-message +++ b/xian-ncc-da-message @@ -1 +1 @@ -Subproject commit e55bc50a0c82afb9a8b4556550e7618a170ec5e7 +Subproject commit 321af96987f878c0ec906ec76efb1798d77ce0c4