【删除区段列表初始化过程】

This commit is contained in:
weizhihong 2023-07-14 15:19:42 +08:00
parent 5406c09862
commit 7596a4212d
3 changed files with 794 additions and 909 deletions

View File

@ -104,19 +104,6 @@ public class LineGraphicDataRepository {
: DeviceInfoProto.Section.newBuilder().setId(sid);
sectionBuilder.setCode(section.getCode());
sectionBuilder.setType(section.getSectionType());
List<String> childList = section.getChildrenList();
if (CollectionUtils.isNotEmpty(childList)) {
childList.forEach(
id -> {
DeviceInfoProto.Section.Builder cb =
cacheSectionMap.containsKey(id)
? (DeviceInfoProto.Section.Builder) cacheSectionMap.get(id)
: DeviceInfoProto.Section.newBuilder().setId(id);
cb.setId(id);
sectionBuilder.addChildren(cb);
cacheSectionMap.put(id, cb);
});
}
cacheSectionMap.put(sid, sectionBuilder);
});
dataMap.put(DeviceType.Section.name(), cacheSectionMap);

View File

@ -31189,7 +31189,7 @@ public final class LayoutGraphicsProto {
/**
* <pre>
* 区段A端关联的设备
* 区段A端关联的设备(非岔区)
* </pre>
*
* <code>.graphicData.RelatedRef paRef = 4;</code>
@ -31198,7 +31198,7 @@ public final class LayoutGraphicsProto {
boolean hasPaRef();
/**
* <pre>
* 区段A端关联的设备
* 区段A端关联的设备(非岔区)
* </pre>
*
* <code>.graphicData.RelatedRef paRef = 4;</code>
@ -31207,7 +31207,7 @@ public final class LayoutGraphicsProto {
club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef getPaRef();
/**
* <pre>
* 区段A端关联的设备
* 区段A端关联的设备(非岔区)
* </pre>
*
* <code>.graphicData.RelatedRef paRef = 4;</code>
@ -31216,7 +31216,7 @@ public final class LayoutGraphicsProto {
/**
* <pre>
* 区段B端关联的设备
* 区段B端关联的设备(非岔区)
* </pre>
*
* <code>.graphicData.RelatedRef pbRef = 5;</code>
@ -31225,7 +31225,7 @@ public final class LayoutGraphicsProto {
boolean hasPbRef();
/**
* <pre>
* 区段B端关联的设备
* 区段B端关联的设备(非岔区)
* </pre>
*
* <code>.graphicData.RelatedRef pbRef = 5;</code>
@ -31234,7 +31234,7 @@ public final class LayoutGraphicsProto {
club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef getPbRef();
/**
* <pre>
* 区段B端关联的设备
* 区段B端关联的设备(非岔区)
* </pre>
*
* <code>.graphicData.RelatedRef pbRef = 5;</code>
@ -31262,44 +31262,44 @@ public final class LayoutGraphicsProto {
/**
* <pre>
* 物理区段的下属逻辑区段/道岔物理区段的下属道岔
* 关联的计轴
* </pre>
*
* <code>repeated string children = 7;</code>
* @return A list containing the children.
* <code>repeated string axleCountings = 7;</code>
* @return A list containing the axleCountings.
*/
java.util.List<java.lang.String>
getChildrenList();
getAxleCountingsList();
/**
* <pre>
* 物理区段的下属逻辑区段/道岔物理区段的下属道岔
* 关联的计轴
* </pre>
*
* <code>repeated string children = 7;</code>
* @return The count of children.
* <code>repeated string axleCountings = 7;</code>
* @return The count of axleCountings.
*/
int getChildrenCount();
int getAxleCountingsCount();
/**
* <pre>
* 物理区段的下属逻辑区段/道岔物理区段的下属道岔
* 关联的计轴
* </pre>
*
* <code>repeated string children = 7;</code>
* <code>repeated string axleCountings = 7;</code>
* @param index The index of the element to return.
* @return The children at the given index.
* @return The axleCountings at the given index.
*/
java.lang.String getChildren(int index);
java.lang.String getAxleCountings(int index);
/**
* <pre>
* 物理区段的下属逻辑区段/道岔物理区段的下属道岔
* 关联的计轴
* </pre>
*
* <code>repeated string children = 7;</code>
* <code>repeated string axleCountings = 7;</code>
* @param index The index of the value to return.
* @return The bytes of the children at the given index.
* @return The bytes of the axleCountings at the given index.
*/
com.google.protobuf.ByteString
getChildrenBytes(int index);
getAxleCountingsBytes(int index);
}
/**
* Protobuf type {@code graphicData.Section}
@ -31317,7 +31317,7 @@ public final class LayoutGraphicsProto {
code_ = "";
points_ = java.util.Collections.emptyList();
sectionType_ = 0;
children_ =
axleCountings_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@ -31568,7 +31568,7 @@ public final class LayoutGraphicsProto {
private club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef paRef_;
/**
* <pre>
* 区段A端关联的设备
* 区段A端关联的设备(非岔区)
* </pre>
*
* <code>.graphicData.RelatedRef paRef = 4;</code>
@ -31580,7 +31580,7 @@ public final class LayoutGraphicsProto {
}
/**
* <pre>
* 区段A端关联的设备
* 区段A端关联的设备(非岔区)
* </pre>
*
* <code>.graphicData.RelatedRef paRef = 4;</code>
@ -31592,7 +31592,7 @@ public final class LayoutGraphicsProto {
}
/**
* <pre>
* 区段A端关联的设备
* 区段A端关联的设备(非岔区)
* </pre>
*
* <code>.graphicData.RelatedRef paRef = 4;</code>
@ -31606,7 +31606,7 @@ public final class LayoutGraphicsProto {
private club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef pbRef_;
/**
* <pre>
* 区段B端关联的设备
* 区段B端关联的设备(非岔区)
* </pre>
*
* <code>.graphicData.RelatedRef pbRef = 5;</code>
@ -31618,7 +31618,7 @@ public final class LayoutGraphicsProto {
}
/**
* <pre>
* 区段B端关联的设备
* 区段B端关联的设备(非岔区)
* </pre>
*
* <code>.graphicData.RelatedRef pbRef = 5;</code>
@ -31630,7 +31630,7 @@ public final class LayoutGraphicsProto {
}
/**
* <pre>
* 区段B端关联的设备
* 区段B端关联的设备(非岔区)
* </pre>
*
* <code>.graphicData.RelatedRef pbRef = 5;</code>
@ -31666,57 +31666,57 @@ public final class LayoutGraphicsProto {
return result == null ? club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Section.SectionType.UNRECOGNIZED : result;
}
public static final int CHILDREN_FIELD_NUMBER = 7;
public static final int AXLECOUNTINGS_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList children_ =
private com.google.protobuf.LazyStringArrayList axleCountings_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* <pre>
* 物理区段的下属逻辑区段/道岔物理区段的下属道岔
* 关联的计轴
* </pre>
*
* <code>repeated string children = 7;</code>
* @return A list containing the children.
* <code>repeated string axleCountings = 7;</code>
* @return A list containing the axleCountings.
*/
public com.google.protobuf.ProtocolStringList
getChildrenList() {
return children_;
getAxleCountingsList() {
return axleCountings_;
}
/**
* <pre>
* 物理区段的下属逻辑区段/道岔物理区段的下属道岔
* 关联的计轴
* </pre>
*
* <code>repeated string children = 7;</code>
* @return The count of children.
* <code>repeated string axleCountings = 7;</code>
* @return The count of axleCountings.
*/
public int getChildrenCount() {
return children_.size();
public int getAxleCountingsCount() {
return axleCountings_.size();
}
/**
* <pre>
* 物理区段的下属逻辑区段/道岔物理区段的下属道岔
* 关联的计轴
* </pre>
*
* <code>repeated string children = 7;</code>
* <code>repeated string axleCountings = 7;</code>
* @param index The index of the element to return.
* @return The children at the given index.
* @return The axleCountings at the given index.
*/
public java.lang.String getChildren(int index) {
return children_.get(index);
public java.lang.String getAxleCountings(int index) {
return axleCountings_.get(index);
}
/**
* <pre>
* 物理区段的下属逻辑区段/道岔物理区段的下属道岔
* 关联的计轴
* </pre>
*
* <code>repeated string children = 7;</code>
* <code>repeated string axleCountings = 7;</code>
* @param index The index of the value to return.
* @return The bytes of the children at the given index.
* @return The bytes of the axleCountings at the given index.
*/
public com.google.protobuf.ByteString
getChildrenBytes(int index) {
return children_.getByteString(index);
getAxleCountingsBytes(int index) {
return axleCountings_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@ -31751,8 +31751,8 @@ public final class LayoutGraphicsProto {
if (sectionType_ != club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.Section.SectionType.Physical.getNumber()) {
output.writeEnum(6, sectionType_);
}
for (int i = 0; i < children_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, children_.getRaw(i));
for (int i = 0; i < axleCountings_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, axleCountings_.getRaw(i));
}
getUnknownFields().writeTo(output);
}
@ -31788,11 +31788,11 @@ public final class LayoutGraphicsProto {
}
{
int dataSize = 0;
for (int i = 0; i < children_.size(); i++) {
dataSize += computeStringSizeNoTag(children_.getRaw(i));
for (int i = 0; i < axleCountings_.size(); i++) {
dataSize += computeStringSizeNoTag(axleCountings_.getRaw(i));
}
size += dataSize;
size += 1 * getChildrenList().size();
size += 1 * getAxleCountingsList().size();
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
@ -31829,8 +31829,8 @@ public final class LayoutGraphicsProto {
.equals(other.getPbRef())) return false;
}
if (sectionType_ != other.sectionType_) return false;
if (!getChildrenList()
.equals(other.getChildrenList())) return false;
if (!getAxleCountingsList()
.equals(other.getAxleCountingsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@ -31862,9 +31862,9 @@ public final class LayoutGraphicsProto {
}
hash = (37 * hash) + SECTIONTYPE_FIELD_NUMBER;
hash = (53 * hash) + sectionType_;
if (getChildrenCount() > 0) {
hash = (37 * hash) + CHILDREN_FIELD_NUMBER;
hash = (53 * hash) + getChildrenList().hashCode();
if (getAxleCountingsCount() > 0) {
hash = (37 * hash) + AXLECOUNTINGS_FIELD_NUMBER;
hash = (53 * hash) + getAxleCountingsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
@ -32021,7 +32021,7 @@ public final class LayoutGraphicsProto {
pbRefBuilder_ = null;
}
sectionType_ = 0;
children_ =
axleCountings_ =
com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@ -32091,8 +32091,8 @@ public final class LayoutGraphicsProto {
result.sectionType_ = sectionType_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
children_.makeImmutable();
result.children_ = children_;
axleCountings_.makeImmutable();
result.axleCountings_ = axleCountings_;
}
}
@ -32151,13 +32151,13 @@ public final class LayoutGraphicsProto {
if (other.sectionType_ != 0) {
setSectionTypeValue(other.getSectionTypeValue());
}
if (!other.children_.isEmpty()) {
if (children_.isEmpty()) {
children_ = other.children_;
if (!other.axleCountings_.isEmpty()) {
if (axleCountings_.isEmpty()) {
axleCountings_ = other.axleCountings_;
bitField0_ |= 0x00000040;
} else {
ensureChildrenIsMutable();
children_.addAll(other.children_);
ensureAxleCountingsIsMutable();
axleCountings_.addAll(other.axleCountings_);
}
onChanged();
}
@ -32233,8 +32233,8 @@ public final class LayoutGraphicsProto {
} // case 48
case 58: {
java.lang.String s = input.readStringRequireUtf8();
ensureChildrenIsMutable();
children_.add(s);
ensureAxleCountingsIsMutable();
axleCountings_.add(s);
break;
} // case 58
default: {
@ -32690,7 +32690,7 @@ public final class LayoutGraphicsProto {
club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef.Builder, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRefOrBuilder> paRefBuilder_;
/**
* <pre>
* 区段A端关联的设备
* 区段A端关联的设备(非岔区)
* </pre>
*
* <code>.graphicData.RelatedRef paRef = 4;</code>
@ -32701,7 +32701,7 @@ public final class LayoutGraphicsProto {
}
/**
* <pre>
* 区段A端关联的设备
* 区段A端关联的设备(非岔区)
* </pre>
*
* <code>.graphicData.RelatedRef paRef = 4;</code>
@ -32716,7 +32716,7 @@ public final class LayoutGraphicsProto {
}
/**
* <pre>
* 区段A端关联的设备
* 区段A端关联的设备(非岔区)
* </pre>
*
* <code>.graphicData.RelatedRef paRef = 4;</code>
@ -32736,7 +32736,7 @@ public final class LayoutGraphicsProto {
}
/**
* <pre>
* 区段A端关联的设备
* 区段A端关联的设备(非岔区)
* </pre>
*
* <code>.graphicData.RelatedRef paRef = 4;</code>
@ -32754,7 +32754,7 @@ public final class LayoutGraphicsProto {
}
/**
* <pre>
* 区段A端关联的设备
* 区段A端关联的设备(非岔区)
* </pre>
*
* <code>.graphicData.RelatedRef paRef = 4;</code>
@ -32777,7 +32777,7 @@ public final class LayoutGraphicsProto {
}
/**
* <pre>
* 区段A端关联的设备
* 区段A端关联的设备(非岔区)
* </pre>
*
* <code>.graphicData.RelatedRef paRef = 4;</code>
@ -32794,7 +32794,7 @@ public final class LayoutGraphicsProto {
}
/**
* <pre>
* 区段A端关联的设备
* 区段A端关联的设备(非岔区)
* </pre>
*
* <code>.graphicData.RelatedRef paRef = 4;</code>
@ -32806,7 +32806,7 @@ public final class LayoutGraphicsProto {
}
/**
* <pre>
* 区段A端关联的设备
* 区段A端关联的设备(非岔区)
* </pre>
*
* <code>.graphicData.RelatedRef paRef = 4;</code>
@ -32821,7 +32821,7 @@ public final class LayoutGraphicsProto {
}
/**
* <pre>
* 区段A端关联的设备
* 区段A端关联的设备(非岔区)
* </pre>
*
* <code>.graphicData.RelatedRef paRef = 4;</code>
@ -32845,7 +32845,7 @@ public final class LayoutGraphicsProto {
club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRef.Builder, club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.RelatedRefOrBuilder> pbRefBuilder_;
/**
* <pre>
* 区段B端关联的设备
* 区段B端关联的设备(非岔区)
* </pre>
*
* <code>.graphicData.RelatedRef pbRef = 5;</code>
@ -32856,7 +32856,7 @@ public final class LayoutGraphicsProto {
}
/**
* <pre>
* 区段B端关联的设备
* 区段B端关联的设备(非岔区)
* </pre>
*
* <code>.graphicData.RelatedRef pbRef = 5;</code>
@ -32871,7 +32871,7 @@ public final class LayoutGraphicsProto {
}
/**
* <pre>
* 区段B端关联的设备
* 区段B端关联的设备(非岔区)
* </pre>
*
* <code>.graphicData.RelatedRef pbRef = 5;</code>
@ -32891,7 +32891,7 @@ public final class LayoutGraphicsProto {
}
/**
* <pre>
* 区段B端关联的设备
* 区段B端关联的设备(非岔区)
* </pre>
*
* <code>.graphicData.RelatedRef pbRef = 5;</code>
@ -32909,7 +32909,7 @@ public final class LayoutGraphicsProto {
}
/**
* <pre>
* 区段B端关联的设备
* 区段B端关联的设备(非岔区)
* </pre>
*
* <code>.graphicData.RelatedRef pbRef = 5;</code>
@ -32932,7 +32932,7 @@ public final class LayoutGraphicsProto {
}
/**
* <pre>
* 区段B端关联的设备
* 区段B端关联的设备(非岔区)
* </pre>
*
* <code>.graphicData.RelatedRef pbRef = 5;</code>
@ -32949,7 +32949,7 @@ public final class LayoutGraphicsProto {
}
/**
* <pre>
* 区段B端关联的设备
* 区段B端关联的设备(非岔区)
* </pre>
*
* <code>.graphicData.RelatedRef pbRef = 5;</code>
@ -32961,7 +32961,7 @@ public final class LayoutGraphicsProto {
}
/**
* <pre>
* 区段B端关联的设备
* 区段B端关联的设备(非岔区)
* </pre>
*
* <code>.graphicData.RelatedRef pbRef = 5;</code>
@ -32976,7 +32976,7 @@ public final class LayoutGraphicsProto {
}
/**
* <pre>
* 区段B端关联的设备
* 区段B端关联的设备(非岔区)
* </pre>
*
* <code>.graphicData.RelatedRef pbRef = 5;</code>
@ -33068,128 +33068,128 @@ public final class LayoutGraphicsProto {
return this;
}
private com.google.protobuf.LazyStringArrayList children_ =
private com.google.protobuf.LazyStringArrayList axleCountings_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureChildrenIsMutable() {
if (!children_.isModifiable()) {
children_ = new com.google.protobuf.LazyStringArrayList(children_);
private void ensureAxleCountingsIsMutable() {
if (!axleCountings_.isModifiable()) {
axleCountings_ = new com.google.protobuf.LazyStringArrayList(axleCountings_);
}
bitField0_ |= 0x00000040;
}
/**
* <pre>
* 物理区段的下属逻辑区段/道岔物理区段的下属道岔
* 关联的计轴
* </pre>
*
* <code>repeated string children = 7;</code>
* @return A list containing the children.
* <code>repeated string axleCountings = 7;</code>
* @return A list containing the axleCountings.
*/
public com.google.protobuf.ProtocolStringList
getChildrenList() {
children_.makeImmutable();
return children_;
getAxleCountingsList() {
axleCountings_.makeImmutable();
return axleCountings_;
}
/**
* <pre>
* 物理区段的下属逻辑区段/道岔物理区段的下属道岔
* 关联的计轴
* </pre>
*
* <code>repeated string children = 7;</code>
* @return The count of children.
* <code>repeated string axleCountings = 7;</code>
* @return The count of axleCountings.
*/
public int getChildrenCount() {
return children_.size();
public int getAxleCountingsCount() {
return axleCountings_.size();
}
/**
* <pre>
* 物理区段的下属逻辑区段/道岔物理区段的下属道岔
* 关联的计轴
* </pre>
*
* <code>repeated string children = 7;</code>
* <code>repeated string axleCountings = 7;</code>
* @param index The index of the element to return.
* @return The children at the given index.
* @return The axleCountings at the given index.
*/
public java.lang.String getChildren(int index) {
return children_.get(index);
public java.lang.String getAxleCountings(int index) {
return axleCountings_.get(index);
}
/**
* <pre>
* 物理区段的下属逻辑区段/道岔物理区段的下属道岔
* 关联的计轴
* </pre>
*
* <code>repeated string children = 7;</code>
* <code>repeated string axleCountings = 7;</code>
* @param index The index of the value to return.
* @return The bytes of the children at the given index.
* @return The bytes of the axleCountings at the given index.
*/
public com.google.protobuf.ByteString
getChildrenBytes(int index) {
return children_.getByteString(index);
getAxleCountingsBytes(int index) {
return axleCountings_.getByteString(index);
}
/**
* <pre>
* 物理区段的下属逻辑区段/道岔物理区段的下属道岔
* 关联的计轴
* </pre>
*
* <code>repeated string children = 7;</code>
* <code>repeated string axleCountings = 7;</code>
* @param index The index to set the value at.
* @param value The children to set.
* @param value The axleCountings to set.
* @return This builder for chaining.
*/
public Builder setChildren(
public Builder setAxleCountings(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureChildrenIsMutable();
children_.set(index, value);
ensureAxleCountingsIsMutable();
axleCountings_.set(index, value);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* <pre>
* 物理区段的下属逻辑区段/道岔物理区段的下属道岔
* 关联的计轴
* </pre>
*
* <code>repeated string children = 7;</code>
* @param value The children to add.
* <code>repeated string axleCountings = 7;</code>
* @param value The axleCountings to add.
* @return This builder for chaining.
*/
public Builder addChildren(
public Builder addAxleCountings(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureChildrenIsMutable();
children_.add(value);
ensureAxleCountingsIsMutable();
axleCountings_.add(value);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* <pre>
* 物理区段的下属逻辑区段/道岔物理区段的下属道岔
* 关联的计轴
* </pre>
*
* <code>repeated string children = 7;</code>
* @param values The children to add.
* <code>repeated string axleCountings = 7;</code>
* @param values The axleCountings to add.
* @return This builder for chaining.
*/
public Builder addAllChildren(
public Builder addAllAxleCountings(
java.lang.Iterable<java.lang.String> values) {
ensureChildrenIsMutable();
ensureAxleCountingsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, children_);
values, axleCountings_);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* <pre>
* 物理区段的下属逻辑区段/道岔物理区段的下属道岔
* 关联的计轴
* </pre>
*
* <code>repeated string children = 7;</code>
* <code>repeated string axleCountings = 7;</code>
* @return This builder for chaining.
*/
public Builder clearChildren() {
children_ =
public Builder clearAxleCountings() {
axleCountings_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);;
onChanged();
@ -33197,19 +33197,19 @@ public final class LayoutGraphicsProto {
}
/**
* <pre>
* 物理区段的下属逻辑区段/道岔物理区段的下属道岔
* 关联的计轴
* </pre>
*
* <code>repeated string children = 7;</code>
* @param value The bytes of the children to add.
* <code>repeated string axleCountings = 7;</code>
* @param value The bytes of the axleCountings to add.
* @return This builder for chaining.
*/
public Builder addChildrenBytes(
public Builder addAxleCountingsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureChildrenIsMutable();
children_.add(value);
ensureAxleCountingsIsMutable();
axleCountings_.add(value);
bitField0_ |= 0x00000040;
onChanged();
return this;
@ -34151,6 +34151,12 @@ public final class LayoutGraphicsProto {
*/
club.joylink.xiannccda.dto.protos.LayoutGraphicsProto.KilometerPointOrBuilder getKilometerPointsOrBuilder(
int index);
/**
* <code>bool aToB = 6;</code>
* @return The aToB.
*/
boolean getAToB();
}
/**
* Protobuf type {@code graphicData.PathLine}
@ -34348,6 +34354,17 @@ public final class LayoutGraphicsProto {
return kilometerPoints_.get(index);
}
public static final int ATOB_FIELD_NUMBER = 6;
private boolean aToB_ = false;
/**
* <code>bool aToB = 6;</code>
* @return The aToB.
*/
@java.lang.Override
public boolean getAToB() {
return aToB_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@ -34377,6 +34394,9 @@ public final class LayoutGraphicsProto {
for (int i = 0; i < kilometerPoints_.size(); i++) {
output.writeMessage(5, kilometerPoints_.get(i));
}
if (aToB_ != false) {
output.writeBool(6, aToB_);
}
getUnknownFields().writeTo(output);
}
@ -34405,6 +34425,10 @@ public final class LayoutGraphicsProto {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, kilometerPoints_.get(i));
}
if (aToB_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, aToB_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@ -34433,6 +34457,8 @@ public final class LayoutGraphicsProto {
!= other.getIsUp()) return false;
if (!getKilometerPointsList()
.equals(other.getKilometerPointsList())) return false;
if (getAToB()
!= other.getAToB()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@ -34461,6 +34487,9 @@ public final class LayoutGraphicsProto {
hash = (37 * hash) + KILOMETERPOINTS_FIELD_NUMBER;
hash = (53 * hash) + getKilometerPointsList().hashCode();
}
hash = (37 * hash) + ATOB_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAToB());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@ -34613,6 +34642,7 @@ public final class LayoutGraphicsProto {
kilometerPointsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
aToB_ = false;
return this;
}
@ -34679,6 +34709,9 @@ public final class LayoutGraphicsProto {
if (((from_bitField0_ & 0x00000008) != 0)) {
result.isUp_ = isUp_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.aToB_ = aToB_;
}
}
@java.lang.Override
@ -34756,6 +34789,9 @@ public final class LayoutGraphicsProto {
}
}
}
if (other.getAToB() != false) {
setAToB(other.getAToB());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@ -34825,6 +34861,11 @@ public final class LayoutGraphicsProto {
}
break;
} // case 42
case 48: {
aToB_ = input.readBool();
bitField0_ |= 0x00000020;
break;
} // case 48
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
@ -35544,6 +35585,38 @@ public final class LayoutGraphicsProto {
}
return kilometerPointsBuilder_;
}
private boolean aToB_ ;
/**
* <code>bool aToB = 6;</code>
* @return The aToB.
*/
@java.lang.Override
public boolean getAToB() {
return aToB_;
}
/**
* <code>bool aToB = 6;</code>
* @param value The aToB to set.
* @return This builder for chaining.
*/
public Builder setAToB(boolean value) {
aToB_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* <code>bool aToB = 6;</code>
* @return This builder for chaining.
*/
public Builder clearAToB() {
bitField0_ = (bitField0_ & ~0x00000020);
aToB_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@ -37793,31 +37866,32 @@ public final class LayoutGraphicsProto {
"oints\030\003 \003(\0132\022.graphicData.Point\022\021\n\tnameC" +
"olor\030\004 \001(\t\022\023\n\013nameBgColor\030\005 \001(\t\022\022\n\nconta" +
"inSta\030\010 \003(\t\022\025\n\rlinkPathLines\030\t \003(\t\022\016\n\006li" +
"neId\030\n \001(\t\"\272\002\n\007Section\022\'\n\006common\030\001 \001(\0132\027" +
"neId\030\n \001(\t\"\277\002\n\007Section\022\'\n\006common\030\001 \001(\0132\027" +
".graphicData.CommonInfo\022\014\n\004code\030\002 \001(\t\022\"\n" +
"\006points\030\003 \003(\0132\022.graphicData.Point\022&\n\005paR" +
"ef\030\004 \001(\0132\027.graphicData.RelatedRef\022&\n\005pbR" +
"ef\030\005 \001(\0132\027.graphicData.RelatedRef\0225\n\013sec" +
"tionType\030\006 \001(\0162 .graphicData.Section.Sec" +
"tionType\022\020\n\010children\030\007 \003(\t\";\n\013SectionTyp" +
"e\022\014\n\010Physical\020\000\022\t\n\005Logic\020\001\022\023\n\017TurnoutPhy" +
"sical\020\002\"V\n\016KilometerPoint\022!\n\005point\030\001 \001(\013" +
"2\022.graphicData.Point\022\021\n\tkilometer\030\002 \001(\003\022" +
"\016\n\006stName\030\003 \001(\t\"\251\001\n\010PathLine\022\'\n\006common\030\001" +
"tionType\022\025\n\raxleCountings\030\007 \003(\t\";\n\013Secti" +
"onType\022\014\n\010Physical\020\000\022\t\n\005Logic\020\001\022\023\n\017Turno" +
"utPhysical\020\002\"V\n\016KilometerPoint\022!\n\005point\030" +
"\001 \001(\0132\022.graphicData.Point\022\021\n\tkilometer\030\002" +
" \001(\003\022\016\n\006stName\030\003 \001(\t\"\267\001\n\010PathLine\022\'\n\006com" +
"mon\030\001 \001(\0132\027.graphicData.CommonInfo\022\014\n\004co" +
"de\030\002 \001(\t\022\"\n\006points\030\003 \003(\0132\022.graphicData.P" +
"oint\022\014\n\004isUp\030\004 \001(\010\0224\n\017kilometerPoints\030\005 " +
"\003(\0132\033.graphicData.KilometerPoint\022\014\n\004aToB" +
"\030\006 \001(\010\"\366\001\n\nRelatedRef\0226\n\ndeviceType\030\001 \001(" +
"\0162\".graphicData.RelatedRef.DeviceType\022\n\n" +
"\002id\030\002 \001(\t\0226\n\ndevicePort\030\003 \001(\0162\".graphicD" +
"ata.RelatedRef.DevicePort\"I\n\nDeviceType\022" +
"\013\n\007Section\020\000\022\013\n\007Turnout\020\001\022\017\n\013TrainWindow" +
"\020\002\022\020\n\014AxleCounting\020\003\"!\n\nDevicePort\022\005\n\001A\020" +
"\000\022\005\n\001B\020\001\022\005\n\001C\020\002\"Y\n\tSeparator\022\'\n\006common\030\001" +
" \001(\0132\027.graphicData.CommonInfo\022\014\n\004code\030\002 " +
"\001(\t\022\"\n\006points\030\003 \003(\0132\022.graphicData.Point\022" +
"\014\n\004isUp\030\004 \001(\010\0224\n\017kilometerPoints\030\005 \003(\0132\033" +
".graphicData.KilometerPoint\"\366\001\n\nRelatedR" +
"ef\0226\n\ndeviceType\030\001 \001(\0162\".graphicData.Rel" +
"atedRef.DeviceType\022\n\n\002id\030\002 \001(\t\0226\n\ndevice" +
"Port\030\003 \001(\0162\".graphicData.RelatedRef.Devi" +
"cePort\"I\n\nDeviceType\022\013\n\007Section\020\000\022\013\n\007Tur" +
"nout\020\001\022\017\n\013TrainWindow\020\002\022\020\n\014AxleCounting\020" +
"\003\"!\n\nDevicePort\022\005\n\001A\020\000\022\005\n\001B\020\001\022\005\n\001C\020\002\"Y\n\t" +
"Separator\022\'\n\006common\030\001 \001(\0132\027.graphicData." +
"CommonInfo\022\014\n\004code\030\002 \001(\t\022\025\n\rseparatorTyp" +
"e\030\003 \001(\tB8\n!club.joylink.xiannccda.dto.pr" +
"otosB\023LayoutGraphicsProtob\006proto3"
"\001(\t\022\025\n\rseparatorType\030\003 \001(\tB8\n!club.joyli" +
"nk.xiannccda.dto.protosB\023LayoutGraphicsP" +
"rotob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
@ -37954,7 +38028,7 @@ public final class LayoutGraphicsProto {
internal_static_graphicData_Section_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_graphicData_Section_descriptor,
new java.lang.String[] { "Common", "Code", "Points", "PaRef", "PbRef", "SectionType", "Children", });
new java.lang.String[] { "Common", "Code", "Points", "PaRef", "PbRef", "SectionType", "AxleCountings", });
internal_static_graphicData_KilometerPoint_descriptor =
getDescriptor().getMessageTypes().get(22);
internal_static_graphicData_KilometerPoint_fieldAccessorTable = new
@ -37966,7 +38040,7 @@ public final class LayoutGraphicsProto {
internal_static_graphicData_PathLine_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_graphicData_PathLine_descriptor,
new java.lang.String[] { "Common", "Code", "Points", "IsUp", "KilometerPoints", });
new java.lang.String[] { "Common", "Code", "Points", "IsUp", "KilometerPoints", "AToB", });
internal_static_graphicData_RelatedRef_descriptor =
getDescriptor().getMessageTypes().get(24);
internal_static_graphicData_RelatedRef_fieldAccessorTable = new