Merge branch 'test-module' of https://git.code.tencent.com/lian-cbtc/rtss-server into test-module-zhouyin

This commit is contained in:
tiger_zhou 2023-02-28 14:15:59 +08:00
commit 46ceb6599d
11 changed files with 3839 additions and 3695 deletions

@ -1 +1 @@
Subproject commit 269febacce7f9e6c141b2a762a04448346922f99
Subproject commit 449ed3da31bbe3eb5d8d1485e83dd075d5c7c1be

View File

@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: line.proto
// source: Line.proto
package club.joylink.rtss.simulation.ncc.module.proto;
@ -1041,7 +1041,7 @@ public final class LineProto {
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\nline.proto\022\005proto\"4\n\004Line\022\014\n\004code\030\001 \001(" +
"\n\nLine.proto\022\005proto\"4\n\004Line\022\014\n\004code\030\001 \001(" +
"\t\022\014\n\004name\030\002 \001(\t\022\020\n\010fullName\030\003 \001(\tB:\n-clu" +
"b.joylink.rtss.simulation.ncc.module.pro" +
"toB\tLineProtob\006proto3"

View File

@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: RoadSection.proto
// source: road_section.proto
package club.joylink.rtss.simulation.ncc.module.proto;
@ -134,55 +134,6 @@ public final class RoadSectionProto {
*/
com.google.protobuf.ByteString
getLineIdBytes();
/**
* <pre>
**
* 区段集合
* </pre>
*
* <code>repeated .proto.Section sectionList = 8;</code>
*/
java.util.List<club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section>
getSectionListList();
/**
* <pre>
**
* 区段集合
* </pre>
*
* <code>repeated .proto.Section sectionList = 8;</code>
*/
club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section getSectionList(int index);
/**
* <pre>
**
* 区段集合
* </pre>
*
* <code>repeated .proto.Section sectionList = 8;</code>
*/
int getSectionListCount();
/**
* <pre>
**
* 区段集合
* </pre>
*
* <code>repeated .proto.Section sectionList = 8;</code>
*/
java.util.List<? extends club.joylink.rtss.simulation.ncc.module.proto.SectionProto.SectionOrBuilder>
getSectionListOrBuilderList();
/**
* <pre>
**
* 区段集合
* </pre>
*
* <code>repeated .proto.Section sectionList = 8;</code>
*/
club.joylink.rtss.simulation.ncc.module.proto.SectionProto.SectionOrBuilder getSectionListOrBuilder(
int index);
}
/**
* <pre>
@ -207,7 +158,6 @@ public final class RoadSectionProto {
leftStationId_ = "";
rightStationId_ = "";
lineId_ = "";
sectionList_ = java.util.Collections.emptyList();
}
@java.lang.Override
@ -230,7 +180,6 @@ public final class RoadSectionProto {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
@ -281,15 +230,6 @@ public final class RoadSectionProto {
lineId_ = s;
break;
}
case 66: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
sectionList_ = new java.util.ArrayList<club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section>();
mutable_bitField0_ |= 0x00000001;
}
sectionList_.add(
input.readMessage(club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
@ -305,9 +245,6 @@ public final class RoadSectionProto {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
sectionList_ = java.util.Collections.unmodifiableList(sectionList_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
@ -582,71 +519,6 @@ public final class RoadSectionProto {
}
}
public static final int SECTIONLIST_FIELD_NUMBER = 8;
private java.util.List<club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section> sectionList_;
/**
* <pre>
**
* 区段集合
* </pre>
*
* <code>repeated .proto.Section sectionList = 8;</code>
*/
@java.lang.Override
public java.util.List<club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section> getSectionListList() {
return sectionList_;
}
/**
* <pre>
**
* 区段集合
* </pre>
*
* <code>repeated .proto.Section sectionList = 8;</code>
*/
@java.lang.Override
public java.util.List<? extends club.joylink.rtss.simulation.ncc.module.proto.SectionProto.SectionOrBuilder>
getSectionListOrBuilderList() {
return sectionList_;
}
/**
* <pre>
**
* 区段集合
* </pre>
*
* <code>repeated .proto.Section sectionList = 8;</code>
*/
@java.lang.Override
public int getSectionListCount() {
return sectionList_.size();
}
/**
* <pre>
**
* 区段集合
* </pre>
*
* <code>repeated .proto.Section sectionList = 8;</code>
*/
@java.lang.Override
public club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section getSectionList(int index) {
return sectionList_.get(index);
}
/**
* <pre>
**
* 区段集合
* </pre>
*
* <code>repeated .proto.Section sectionList = 8;</code>
*/
@java.lang.Override
public club.joylink.rtss.simulation.ncc.module.proto.SectionProto.SectionOrBuilder getSectionListOrBuilder(
int index) {
return sectionList_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@ -682,9 +554,6 @@ public final class RoadSectionProto {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lineId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, lineId_);
}
for (int i = 0; i < sectionList_.size(); i++) {
output.writeMessage(8, sectionList_.get(i));
}
unknownFields.writeTo(output);
}
@ -717,10 +586,6 @@ public final class RoadSectionProto {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lineId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, lineId_);
}
for (int i = 0; i < sectionList_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, sectionList_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@ -752,8 +617,6 @@ public final class RoadSectionProto {
other.getMaxDistance())) return false;
if (!getLineId()
.equals(other.getLineId())) return false;
if (!getSectionListList()
.equals(other.getSectionListList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@ -781,10 +644,6 @@ public final class RoadSectionProto {
java.lang.Double.doubleToLongBits(getMaxDistance()));
hash = (37 * hash) + LINEID_FIELD_NUMBER;
hash = (53 * hash) + getLineId().hashCode();
if (getSectionListCount() > 0) {
hash = (37 * hash) + SECTIONLIST_FIELD_NUMBER;
hash = (53 * hash) + getSectionListList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@ -918,7 +777,6 @@ public final class RoadSectionProto {
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSectionListFieldBuilder();
}
}
@java.lang.Override
@ -938,12 +796,6 @@ public final class RoadSectionProto {
lineId_ = "";
if (sectionListBuilder_ == null) {
sectionList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
sectionListBuilder_.clear();
}
return this;
}
@ -970,7 +822,6 @@ public final class RoadSectionProto {
@java.lang.Override
public club.joylink.rtss.simulation.ncc.module.proto.RoadSectionProto.RoadSection buildPartial() {
club.joylink.rtss.simulation.ncc.module.proto.RoadSectionProto.RoadSection result = new club.joylink.rtss.simulation.ncc.module.proto.RoadSectionProto.RoadSection(this);
int from_bitField0_ = bitField0_;
result.code_ = code_;
result.name_ = name_;
result.leftStationId_ = leftStationId_;
@ -978,15 +829,6 @@ public final class RoadSectionProto {
result.minDistance_ = minDistance_;
result.maxDistance_ = maxDistance_;
result.lineId_ = lineId_;
if (sectionListBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
sectionList_ = java.util.Collections.unmodifiableList(sectionList_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.sectionList_ = sectionList_;
} else {
result.sectionList_ = sectionListBuilder_.build();
}
onBuilt();
return result;
}
@ -1061,32 +903,6 @@ public final class RoadSectionProto {
lineId_ = other.lineId_;
onChanged();
}
if (sectionListBuilder_ == null) {
if (!other.sectionList_.isEmpty()) {
if (sectionList_.isEmpty()) {
sectionList_ = other.sectionList_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureSectionListIsMutable();
sectionList_.addAll(other.sectionList_);
}
onChanged();
}
} else {
if (!other.sectionList_.isEmpty()) {
if (sectionListBuilder_.isEmpty()) {
sectionListBuilder_.dispose();
sectionListBuilder_ = null;
sectionList_ = other.sectionList_;
bitField0_ = (bitField0_ & ~0x00000001);
sectionListBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSectionListFieldBuilder() : null;
} else {
sectionListBuilder_.addAllMessages(other.sectionList_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@ -1115,7 +931,6 @@ public final class RoadSectionProto {
}
return this;
}
private int bitField0_;
private java.lang.Object code_ = "";
/**
@ -1673,336 +1488,6 @@ public final class RoadSectionProto {
onChanged();
return this;
}
private java.util.List<club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section> sectionList_ =
java.util.Collections.emptyList();
private void ensureSectionListIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
sectionList_ = new java.util.ArrayList<club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section>(sectionList_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section, club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section.Builder, club.joylink.rtss.simulation.ncc.module.proto.SectionProto.SectionOrBuilder> sectionListBuilder_;
/**
* <pre>
**
* 区段集合
* </pre>
*
* <code>repeated .proto.Section sectionList = 8;</code>
*/
public java.util.List<club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section> getSectionListList() {
if (sectionListBuilder_ == null) {
return java.util.Collections.unmodifiableList(sectionList_);
} else {
return sectionListBuilder_.getMessageList();
}
}
/**
* <pre>
**
* 区段集合
* </pre>
*
* <code>repeated .proto.Section sectionList = 8;</code>
*/
public int getSectionListCount() {
if (sectionListBuilder_ == null) {
return sectionList_.size();
} else {
return sectionListBuilder_.getCount();
}
}
/**
* <pre>
**
* 区段集合
* </pre>
*
* <code>repeated .proto.Section sectionList = 8;</code>
*/
public club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section getSectionList(int index) {
if (sectionListBuilder_ == null) {
return sectionList_.get(index);
} else {
return sectionListBuilder_.getMessage(index);
}
}
/**
* <pre>
**
* 区段集合
* </pre>
*
* <code>repeated .proto.Section sectionList = 8;</code>
*/
public Builder setSectionList(
int index, club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section value) {
if (sectionListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSectionListIsMutable();
sectionList_.set(index, value);
onChanged();
} else {
sectionListBuilder_.setMessage(index, value);
}
return this;
}
/**
* <pre>
**
* 区段集合
* </pre>
*
* <code>repeated .proto.Section sectionList = 8;</code>
*/
public Builder setSectionList(
int index, club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section.Builder builderForValue) {
if (sectionListBuilder_ == null) {
ensureSectionListIsMutable();
sectionList_.set(index, builderForValue.build());
onChanged();
} else {
sectionListBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
**
* 区段集合
* </pre>
*
* <code>repeated .proto.Section sectionList = 8;</code>
*/
public Builder addSectionList(club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section value) {
if (sectionListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSectionListIsMutable();
sectionList_.add(value);
onChanged();
} else {
sectionListBuilder_.addMessage(value);
}
return this;
}
/**
* <pre>
**
* 区段集合
* </pre>
*
* <code>repeated .proto.Section sectionList = 8;</code>
*/
public Builder addSectionList(
int index, club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section value) {
if (sectionListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSectionListIsMutable();
sectionList_.add(index, value);
onChanged();
} else {
sectionListBuilder_.addMessage(index, value);
}
return this;
}
/**
* <pre>
**
* 区段集合
* </pre>
*
* <code>repeated .proto.Section sectionList = 8;</code>
*/
public Builder addSectionList(
club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section.Builder builderForValue) {
if (sectionListBuilder_ == null) {
ensureSectionListIsMutable();
sectionList_.add(builderForValue.build());
onChanged();
} else {
sectionListBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
**
* 区段集合
* </pre>
*
* <code>repeated .proto.Section sectionList = 8;</code>
*/
public Builder addSectionList(
int index, club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section.Builder builderForValue) {
if (sectionListBuilder_ == null) {
ensureSectionListIsMutable();
sectionList_.add(index, builderForValue.build());
onChanged();
} else {
sectionListBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
**
* 区段集合
* </pre>
*
* <code>repeated .proto.Section sectionList = 8;</code>
*/
public Builder addAllSectionList(
java.lang.Iterable<? extends club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section> values) {
if (sectionListBuilder_ == null) {
ensureSectionListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, sectionList_);
onChanged();
} else {
sectionListBuilder_.addAllMessages(values);
}
return this;
}
/**
* <pre>
**
* 区段集合
* </pre>
*
* <code>repeated .proto.Section sectionList = 8;</code>
*/
public Builder clearSectionList() {
if (sectionListBuilder_ == null) {
sectionList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
sectionListBuilder_.clear();
}
return this;
}
/**
* <pre>
**
* 区段集合
* </pre>
*
* <code>repeated .proto.Section sectionList = 8;</code>
*/
public Builder removeSectionList(int index) {
if (sectionListBuilder_ == null) {
ensureSectionListIsMutable();
sectionList_.remove(index);
onChanged();
} else {
sectionListBuilder_.remove(index);
}
return this;
}
/**
* <pre>
**
* 区段集合
* </pre>
*
* <code>repeated .proto.Section sectionList = 8;</code>
*/
public club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section.Builder getSectionListBuilder(
int index) {
return getSectionListFieldBuilder().getBuilder(index);
}
/**
* <pre>
**
* 区段集合
* </pre>
*
* <code>repeated .proto.Section sectionList = 8;</code>
*/
public club.joylink.rtss.simulation.ncc.module.proto.SectionProto.SectionOrBuilder getSectionListOrBuilder(
int index) {
if (sectionListBuilder_ == null) {
return sectionList_.get(index); } else {
return sectionListBuilder_.getMessageOrBuilder(index);
}
}
/**
* <pre>
**
* 区段集合
* </pre>
*
* <code>repeated .proto.Section sectionList = 8;</code>
*/
public java.util.List<? extends club.joylink.rtss.simulation.ncc.module.proto.SectionProto.SectionOrBuilder>
getSectionListOrBuilderList() {
if (sectionListBuilder_ != null) {
return sectionListBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(sectionList_);
}
}
/**
* <pre>
**
* 区段集合
* </pre>
*
* <code>repeated .proto.Section sectionList = 8;</code>
*/
public club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section.Builder addSectionListBuilder() {
return getSectionListFieldBuilder().addBuilder(
club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section.getDefaultInstance());
}
/**
* <pre>
**
* 区段集合
* </pre>
*
* <code>repeated .proto.Section sectionList = 8;</code>
*/
public club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section.Builder addSectionListBuilder(
int index) {
return getSectionListFieldBuilder().addBuilder(
index, club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section.getDefaultInstance());
}
/**
* <pre>
**
* 区段集合
* </pre>
*
* <code>repeated .proto.Section sectionList = 8;</code>
*/
public java.util.List<club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section.Builder>
getSectionListBuilderList() {
return getSectionListFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section, club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section.Builder, club.joylink.rtss.simulation.ncc.module.proto.SectionProto.SectionOrBuilder>
getSectionListFieldBuilder() {
if (sectionListBuilder_ == null) {
sectionListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section, club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section.Builder, club.joylink.rtss.simulation.ncc.module.proto.SectionProto.SectionOrBuilder>(
sectionList_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
sectionList_ = null;
}
return sectionListBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@ -2070,32 +1555,29 @@ public final class RoadSectionProto {
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\021RoadSection.proto\022\005proto\032\020model/Line.p" +
"roto\032\023model/Station.proto\032\023model/Section" +
".proto\"\267\001\n\013RoadSection\022\014\n\004code\030\001 \001(\t\022\014\n\004" +
"name\030\002 \001(\t\022\025\n\rleftStationId\030\003 \001(\t\022\026\n\016rig" +
"htStationId\030\004 \001(\t\022\023\n\013minDistance\030\005 \001(\001\022\023" +
"\n\013maxDistance\030\006 \001(\001\022\016\n\006lineId\030\007 \001(\t\022#\n\013s" +
"ectionList\030\010 \003(\0132\016.proto.SectionBA\n-club" +
".joylink.rtss.simulation.ncc.module.prot" +
"oB\020RoadSectionProtob\006proto3"
"\n\022road_section.proto\022\005proto\032\020model/line." +
"proto\032\023model/station.proto\"\222\001\n\013RoadSecti" +
"on\022\014\n\004code\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\025\n\rleftSt" +
"ationId\030\003 \001(\t\022\026\n\016rightStationId\030\004 \001(\t\022\023\n" +
"\013minDistance\030\005 \001(\001\022\023\n\013maxDistance\030\006 \001(\001\022" +
"\016\n\006lineId\030\007 \001(\tBA\n-club.joylink.rtss.sim" +
"ulation.ncc.module.protoB\020RoadSectionPro" +
"tob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
club.joylink.rtss.simulation.ncc.module.proto.LineProto.getDescriptor(),
club.joylink.rtss.simulation.ncc.module.proto.StationProto.getDescriptor(),
club.joylink.rtss.simulation.ncc.module.proto.SectionProto.getDescriptor(),
});
internal_static_proto_RoadSection_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_proto_RoadSection_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_proto_RoadSection_descriptor,
new java.lang.String[] { "Code", "Name", "LeftStationId", "RightStationId", "MinDistance", "MaxDistance", "LineId", "SectionList", });
new java.lang.String[] { "Code", "Name", "LeftStationId", "RightStationId", "MinDistance", "MaxDistance", "LineId", });
club.joylink.rtss.simulation.ncc.module.proto.LineProto.getDescriptor();
club.joylink.rtss.simulation.ncc.module.proto.StationProto.getDescriptor();
club.joylink.rtss.simulation.ncc.module.proto.SectionProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)

View File

@ -0,0 +1,179 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: run_status.proto
package club.joylink.rtss.simulation.ncc.module.proto;
public final class RunStatusProto {
private RunStatusProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code proto.RunStatus}
*/
public enum RunStatus
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <pre>
* 出库
* </pre>
*
* <code>Outbound = 0;</code>
*/
Outbound(0),
/**
* <pre>
* 运行中
* </pre>
*
* <code>Run = 1;</code>
*/
Run(1),
/**
* <pre>
* 入库
* </pre>
*
* <code>InBound = 2;</code>
*/
InBound(2),
UNRECOGNIZED(-1),
;
/**
* <pre>
* 出库
* </pre>
*
* <code>Outbound = 0;</code>
*/
public static final int Outbound_VALUE = 0;
/**
* <pre>
* 运行中
* </pre>
*
* <code>Run = 1;</code>
*/
public static final int Run_VALUE = 1;
/**
* <pre>
* 入库
* </pre>
*
* <code>InBound = 2;</code>
*/
public static final int InBound_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static RunStatus valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static RunStatus forNumber(int value) {
switch (value) {
case 0: return Outbound;
case 1: return Run;
case 2: return InBound;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<RunStatus>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
RunStatus> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<RunStatus>() {
public RunStatus findValueByNumber(int number) {
return RunStatus.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return club.joylink.rtss.simulation.ncc.module.proto.RunStatusProto.getDescriptor().getEnumTypes().get(0);
}
private static final RunStatus[] VALUES = values();
public static RunStatus valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private RunStatus(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:proto.RunStatus)
}
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\020run_status.proto\022\005proto*/\n\tRunStatus\022\014" +
"\n\010Outbound\020\000\022\007\n\003Run\020\001\022\013\n\007InBound\020\002B?\n-cl" +
"ub.joylink.rtss.simulation.ncc.module.pr" +
"otoB\016RunStatusProtob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: station.proto
// source: Station.proto
package club.joylink.rtss.simulation.ncc.module.proto;
@ -897,7 +897,7 @@ public final class StationProto {
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\rstation.proto\022\005proto\"7\n\007Station\022\014\n\004cod" +
"\n\rStation.proto\022\005proto\"7\n\007Station\022\014\n\004cod" +
"e\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\020\n\010transfer\030\003 \001(\010B" +
"=\n-club.joylink.rtss.simulation.ncc.modu" +
"le.protoB\014StationProtob\006proto3"

View File

@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: storage.proto
// source: Storage.proto
package club.joylink.rtss.simulation.ncc.module.proto;
@ -150,56 +150,12 @@ public final class StorageProto {
club.joylink.rtss.simulation.ncc.module.proto.RoadSectionProto.RoadSectionOrBuilder getRoadSectionsOrBuilder(
int index);
/**
* <pre>
* 所有区段
* </pre>
*
* <code>repeated .proto.Section sections = 4;</code>
*/
java.util.List<club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section>
getSectionsList();
/**
* <pre>
* 所有区段
* </pre>
*
* <code>repeated .proto.Section sections = 4;</code>
*/
club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section getSections(int index);
/**
* <pre>
* 所有区段
* </pre>
*
* <code>repeated .proto.Section sections = 4;</code>
*/
int getSectionsCount();
/**
* <pre>
* 所有区段
* </pre>
*
* <code>repeated .proto.Section sections = 4;</code>
*/
java.util.List<? extends club.joylink.rtss.simulation.ncc.module.proto.SectionProto.SectionOrBuilder>
getSectionsOrBuilderList();
/**
* <pre>
* 所有区段
* </pre>
*
* <code>repeated .proto.Section sections = 4;</code>
*/
club.joylink.rtss.simulation.ncc.module.proto.SectionProto.SectionOrBuilder getSectionsOrBuilder(
int index);
/**
* <pre>
* 所有列车
* </pre>
*
* <code>repeated .proto.Train train = 5;</code>
* <code>repeated .proto.Train train = 4;</code>
*/
java.util.List<club.joylink.rtss.simulation.ncc.module.proto.TrainProto.Train>
getTrainList();
@ -208,7 +164,7 @@ public final class StorageProto {
* 所有列车
* </pre>
*
* <code>repeated .proto.Train train = 5;</code>
* <code>repeated .proto.Train train = 4;</code>
*/
club.joylink.rtss.simulation.ncc.module.proto.TrainProto.Train getTrain(int index);
/**
@ -216,7 +172,7 @@ public final class StorageProto {
* 所有列车
* </pre>
*
* <code>repeated .proto.Train train = 5;</code>
* <code>repeated .proto.Train train = 4;</code>
*/
int getTrainCount();
/**
@ -224,7 +180,7 @@ public final class StorageProto {
* 所有列车
* </pre>
*
* <code>repeated .proto.Train train = 5;</code>
* <code>repeated .proto.Train train = 4;</code>
*/
java.util.List<? extends club.joylink.rtss.simulation.ncc.module.proto.TrainProto.TrainOrBuilder>
getTrainOrBuilderList();
@ -233,7 +189,7 @@ public final class StorageProto {
* 所有列车
* </pre>
*
* <code>repeated .proto.Train train = 5;</code>
* <code>repeated .proto.Train train = 4;</code>
*/
club.joylink.rtss.simulation.ncc.module.proto.TrainProto.TrainOrBuilder getTrainOrBuilder(
int index);
@ -259,7 +215,6 @@ public final class StorageProto {
lines_ = java.util.Collections.emptyList();
stations_ = java.util.Collections.emptyList();
roadSections_ = java.util.Collections.emptyList();
sections_ = java.util.Collections.emptyList();
train_ = java.util.Collections.emptyList();
}
@ -323,17 +278,8 @@ public final class StorageProto {
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
sections_ = new java.util.ArrayList<club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section>();
mutable_bitField0_ |= 0x00000008;
}
sections_.add(
input.readMessage(club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section.parser(), extensionRegistry));
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000010) != 0)) {
train_ = new java.util.ArrayList<club.joylink.rtss.simulation.ncc.module.proto.TrainProto.Train>();
mutable_bitField0_ |= 0x00000010;
mutable_bitField0_ |= 0x00000008;
}
train_.add(
input.readMessage(club.joylink.rtss.simulation.ncc.module.proto.TrainProto.Train.parser(), extensionRegistry));
@ -364,9 +310,6 @@ public final class StorageProto {
roadSections_ = java.util.Collections.unmodifiableList(roadSections_);
}
if (((mutable_bitField0_ & 0x00000008) != 0)) {
sections_ = java.util.Collections.unmodifiableList(sections_);
}
if (((mutable_bitField0_ & 0x00000010) != 0)) {
train_ = java.util.Collections.unmodifiableList(train_);
}
this.unknownFields = unknownFields.build();
@ -566,74 +509,14 @@ public final class StorageProto {
return roadSections_.get(index);
}
public static final int SECTIONS_FIELD_NUMBER = 4;
private java.util.List<club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section> sections_;
/**
* <pre>
* 所有区段
* </pre>
*
* <code>repeated .proto.Section sections = 4;</code>
*/
@java.lang.Override
public java.util.List<club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section> getSectionsList() {
return sections_;
}
/**
* <pre>
* 所有区段
* </pre>
*
* <code>repeated .proto.Section sections = 4;</code>
*/
@java.lang.Override
public java.util.List<? extends club.joylink.rtss.simulation.ncc.module.proto.SectionProto.SectionOrBuilder>
getSectionsOrBuilderList() {
return sections_;
}
/**
* <pre>
* 所有区段
* </pre>
*
* <code>repeated .proto.Section sections = 4;</code>
*/
@java.lang.Override
public int getSectionsCount() {
return sections_.size();
}
/**
* <pre>
* 所有区段
* </pre>
*
* <code>repeated .proto.Section sections = 4;</code>
*/
@java.lang.Override
public club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section getSections(int index) {
return sections_.get(index);
}
/**
* <pre>
* 所有区段
* </pre>
*
* <code>repeated .proto.Section sections = 4;</code>
*/
@java.lang.Override
public club.joylink.rtss.simulation.ncc.module.proto.SectionProto.SectionOrBuilder getSectionsOrBuilder(
int index) {
return sections_.get(index);
}
public static final int TRAIN_FIELD_NUMBER = 5;
public static final int TRAIN_FIELD_NUMBER = 4;
private java.util.List<club.joylink.rtss.simulation.ncc.module.proto.TrainProto.Train> train_;
/**
* <pre>
* 所有列车
* </pre>
*
* <code>repeated .proto.Train train = 5;</code>
* <code>repeated .proto.Train train = 4;</code>
*/
@java.lang.Override
public java.util.List<club.joylink.rtss.simulation.ncc.module.proto.TrainProto.Train> getTrainList() {
@ -644,7 +527,7 @@ public final class StorageProto {
* 所有列车
* </pre>
*
* <code>repeated .proto.Train train = 5;</code>
* <code>repeated .proto.Train train = 4;</code>
*/
@java.lang.Override
public java.util.List<? extends club.joylink.rtss.simulation.ncc.module.proto.TrainProto.TrainOrBuilder>
@ -656,7 +539,7 @@ public final class StorageProto {
* 所有列车
* </pre>
*
* <code>repeated .proto.Train train = 5;</code>
* <code>repeated .proto.Train train = 4;</code>
*/
@java.lang.Override
public int getTrainCount() {
@ -667,7 +550,7 @@ public final class StorageProto {
* 所有列车
* </pre>
*
* <code>repeated .proto.Train train = 5;</code>
* <code>repeated .proto.Train train = 4;</code>
*/
@java.lang.Override
public club.joylink.rtss.simulation.ncc.module.proto.TrainProto.Train getTrain(int index) {
@ -678,7 +561,7 @@ public final class StorageProto {
* 所有列车
* </pre>
*
* <code>repeated .proto.Train train = 5;</code>
* <code>repeated .proto.Train train = 4;</code>
*/
@java.lang.Override
public club.joylink.rtss.simulation.ncc.module.proto.TrainProto.TrainOrBuilder getTrainOrBuilder(
@ -709,11 +592,8 @@ public final class StorageProto {
for (int i = 0; i < roadSections_.size(); i++) {
output.writeMessage(3, roadSections_.get(i));
}
for (int i = 0; i < sections_.size(); i++) {
output.writeMessage(4, sections_.get(i));
}
for (int i = 0; i < train_.size(); i++) {
output.writeMessage(5, train_.get(i));
output.writeMessage(4, train_.get(i));
}
unknownFields.writeTo(output);
}
@ -736,13 +616,9 @@ public final class StorageProto {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, roadSections_.get(i));
}
for (int i = 0; i < sections_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, sections_.get(i));
}
for (int i = 0; i < train_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, train_.get(i));
.computeMessageSize(4, train_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
@ -765,8 +641,6 @@ public final class StorageProto {
.equals(other.getStationsList())) return false;
if (!getRoadSectionsList()
.equals(other.getRoadSectionsList())) return false;
if (!getSectionsList()
.equals(other.getSectionsList())) return false;
if (!getTrainList()
.equals(other.getTrainList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
@ -792,10 +666,6 @@ public final class StorageProto {
hash = (37 * hash) + ROADSECTIONS_FIELD_NUMBER;
hash = (53 * hash) + getRoadSectionsList().hashCode();
}
if (getSectionsCount() > 0) {
hash = (37 * hash) + SECTIONS_FIELD_NUMBER;
hash = (53 * hash) + getSectionsList().hashCode();
}
if (getTrainCount() > 0) {
hash = (37 * hash) + TRAIN_FIELD_NUMBER;
hash = (53 * hash) + getTrainList().hashCode();
@ -936,7 +806,6 @@ public final class StorageProto {
getLinesFieldBuilder();
getStationsFieldBuilder();
getRoadSectionsFieldBuilder();
getSectionsFieldBuilder();
getTrainFieldBuilder();
}
}
@ -961,15 +830,9 @@ public final class StorageProto {
} else {
roadSectionsBuilder_.clear();
}
if (sectionsBuilder_ == null) {
sections_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
sectionsBuilder_.clear();
}
if (trainBuilder_ == null) {
train_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
bitField0_ = (bitField0_ & ~0x00000008);
} else {
trainBuilder_.clear();
}
@ -1027,19 +890,10 @@ public final class StorageProto {
} else {
result.roadSections_ = roadSectionsBuilder_.build();
}
if (sectionsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
sections_ = java.util.Collections.unmodifiableList(sections_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.sections_ = sections_;
} else {
result.sections_ = sectionsBuilder_.build();
}
if (trainBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)) {
if (((bitField0_ & 0x00000008) != 0)) {
train_ = java.util.Collections.unmodifiableList(train_);
bitField0_ = (bitField0_ & ~0x00000010);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.train_ = train_;
} else {
@ -1171,37 +1025,11 @@ public final class StorageProto {
}
}
}
if (sectionsBuilder_ == null) {
if (!other.sections_.isEmpty()) {
if (sections_.isEmpty()) {
sections_ = other.sections_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureSectionsIsMutable();
sections_.addAll(other.sections_);
}
onChanged();
}
} else {
if (!other.sections_.isEmpty()) {
if (sectionsBuilder_.isEmpty()) {
sectionsBuilder_.dispose();
sectionsBuilder_ = null;
sections_ = other.sections_;
bitField0_ = (bitField0_ & ~0x00000008);
sectionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSectionsFieldBuilder() : null;
} else {
sectionsBuilder_.addAllMessages(other.sections_);
}
}
}
if (trainBuilder_ == null) {
if (!other.train_.isEmpty()) {
if (train_.isEmpty()) {
train_ = other.train_;
bitField0_ = (bitField0_ & ~0x00000010);
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureTrainIsMutable();
train_.addAll(other.train_);
@ -1214,7 +1042,7 @@ public final class StorageProto {
trainBuilder_.dispose();
trainBuilder_ = null;
train_ = other.train_;
bitField0_ = (bitField0_ & ~0x00000010);
bitField0_ = (bitField0_ & ~0x00000008);
trainBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTrainFieldBuilder() : null;
@ -2189,324 +2017,12 @@ public final class StorageProto {
return roadSectionsBuilder_;
}
private java.util.List<club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section> sections_ =
java.util.Collections.emptyList();
private void ensureSectionsIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
sections_ = new java.util.ArrayList<club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section>(sections_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section, club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section.Builder, club.joylink.rtss.simulation.ncc.module.proto.SectionProto.SectionOrBuilder> sectionsBuilder_;
/**
* <pre>
* 所有区段
* </pre>
*
* <code>repeated .proto.Section sections = 4;</code>
*/
public java.util.List<club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section> getSectionsList() {
if (sectionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(sections_);
} else {
return sectionsBuilder_.getMessageList();
}
}
/**
* <pre>
* 所有区段
* </pre>
*
* <code>repeated .proto.Section sections = 4;</code>
*/
public int getSectionsCount() {
if (sectionsBuilder_ == null) {
return sections_.size();
} else {
return sectionsBuilder_.getCount();
}
}
/**
* <pre>
* 所有区段
* </pre>
*
* <code>repeated .proto.Section sections = 4;</code>
*/
public club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section getSections(int index) {
if (sectionsBuilder_ == null) {
return sections_.get(index);
} else {
return sectionsBuilder_.getMessage(index);
}
}
/**
* <pre>
* 所有区段
* </pre>
*
* <code>repeated .proto.Section sections = 4;</code>
*/
public Builder setSections(
int index, club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section value) {
if (sectionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSectionsIsMutable();
sections_.set(index, value);
onChanged();
} else {
sectionsBuilder_.setMessage(index, value);
}
return this;
}
/**
* <pre>
* 所有区段
* </pre>
*
* <code>repeated .proto.Section sections = 4;</code>
*/
public Builder setSections(
int index, club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section.Builder builderForValue) {
if (sectionsBuilder_ == null) {
ensureSectionsIsMutable();
sections_.set(index, builderForValue.build());
onChanged();
} else {
sectionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
* 所有区段
* </pre>
*
* <code>repeated .proto.Section sections = 4;</code>
*/
public Builder addSections(club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section value) {
if (sectionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSectionsIsMutable();
sections_.add(value);
onChanged();
} else {
sectionsBuilder_.addMessage(value);
}
return this;
}
/**
* <pre>
* 所有区段
* </pre>
*
* <code>repeated .proto.Section sections = 4;</code>
*/
public Builder addSections(
int index, club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section value) {
if (sectionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSectionsIsMutable();
sections_.add(index, value);
onChanged();
} else {
sectionsBuilder_.addMessage(index, value);
}
return this;
}
/**
* <pre>
* 所有区段
* </pre>
*
* <code>repeated .proto.Section sections = 4;</code>
*/
public Builder addSections(
club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section.Builder builderForValue) {
if (sectionsBuilder_ == null) {
ensureSectionsIsMutable();
sections_.add(builderForValue.build());
onChanged();
} else {
sectionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
* 所有区段
* </pre>
*
* <code>repeated .proto.Section sections = 4;</code>
*/
public Builder addSections(
int index, club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section.Builder builderForValue) {
if (sectionsBuilder_ == null) {
ensureSectionsIsMutable();
sections_.add(index, builderForValue.build());
onChanged();
} else {
sectionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
* 所有区段
* </pre>
*
* <code>repeated .proto.Section sections = 4;</code>
*/
public Builder addAllSections(
java.lang.Iterable<? extends club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section> values) {
if (sectionsBuilder_ == null) {
ensureSectionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, sections_);
onChanged();
} else {
sectionsBuilder_.addAllMessages(values);
}
return this;
}
/**
* <pre>
* 所有区段
* </pre>
*
* <code>repeated .proto.Section sections = 4;</code>
*/
public Builder clearSections() {
if (sectionsBuilder_ == null) {
sections_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
sectionsBuilder_.clear();
}
return this;
}
/**
* <pre>
* 所有区段
* </pre>
*
* <code>repeated .proto.Section sections = 4;</code>
*/
public Builder removeSections(int index) {
if (sectionsBuilder_ == null) {
ensureSectionsIsMutable();
sections_.remove(index);
onChanged();
} else {
sectionsBuilder_.remove(index);
}
return this;
}
/**
* <pre>
* 所有区段
* </pre>
*
* <code>repeated .proto.Section sections = 4;</code>
*/
public club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section.Builder getSectionsBuilder(
int index) {
return getSectionsFieldBuilder().getBuilder(index);
}
/**
* <pre>
* 所有区段
* </pre>
*
* <code>repeated .proto.Section sections = 4;</code>
*/
public club.joylink.rtss.simulation.ncc.module.proto.SectionProto.SectionOrBuilder getSectionsOrBuilder(
int index) {
if (sectionsBuilder_ == null) {
return sections_.get(index); } else {
return sectionsBuilder_.getMessageOrBuilder(index);
}
}
/**
* <pre>
* 所有区段
* </pre>
*
* <code>repeated .proto.Section sections = 4;</code>
*/
public java.util.List<? extends club.joylink.rtss.simulation.ncc.module.proto.SectionProto.SectionOrBuilder>
getSectionsOrBuilderList() {
if (sectionsBuilder_ != null) {
return sectionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(sections_);
}
}
/**
* <pre>
* 所有区段
* </pre>
*
* <code>repeated .proto.Section sections = 4;</code>
*/
public club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section.Builder addSectionsBuilder() {
return getSectionsFieldBuilder().addBuilder(
club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section.getDefaultInstance());
}
/**
* <pre>
* 所有区段
* </pre>
*
* <code>repeated .proto.Section sections = 4;</code>
*/
public club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section.Builder addSectionsBuilder(
int index) {
return getSectionsFieldBuilder().addBuilder(
index, club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section.getDefaultInstance());
}
/**
* <pre>
* 所有区段
* </pre>
*
* <code>repeated .proto.Section sections = 4;</code>
*/
public java.util.List<club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section.Builder>
getSectionsBuilderList() {
return getSectionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section, club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section.Builder, club.joylink.rtss.simulation.ncc.module.proto.SectionProto.SectionOrBuilder>
getSectionsFieldBuilder() {
if (sectionsBuilder_ == null) {
sectionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section, club.joylink.rtss.simulation.ncc.module.proto.SectionProto.Section.Builder, club.joylink.rtss.simulation.ncc.module.proto.SectionProto.SectionOrBuilder>(
sections_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
sections_ = null;
}
return sectionsBuilder_;
}
private java.util.List<club.joylink.rtss.simulation.ncc.module.proto.TrainProto.Train> train_ =
java.util.Collections.emptyList();
private void ensureTrainIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
if (!((bitField0_ & 0x00000008) != 0)) {
train_ = new java.util.ArrayList<club.joylink.rtss.simulation.ncc.module.proto.TrainProto.Train>(train_);
bitField0_ |= 0x00000010;
bitField0_ |= 0x00000008;
}
}
@ -2518,7 +2034,7 @@ public final class StorageProto {
* 所有列车
* </pre>
*
* <code>repeated .proto.Train train = 5;</code>
* <code>repeated .proto.Train train = 4;</code>
*/
public java.util.List<club.joylink.rtss.simulation.ncc.module.proto.TrainProto.Train> getTrainList() {
if (trainBuilder_ == null) {
@ -2532,7 +2048,7 @@ public final class StorageProto {
* 所有列车
* </pre>
*
* <code>repeated .proto.Train train = 5;</code>
* <code>repeated .proto.Train train = 4;</code>
*/
public int getTrainCount() {
if (trainBuilder_ == null) {
@ -2546,7 +2062,7 @@ public final class StorageProto {
* 所有列车
* </pre>
*
* <code>repeated .proto.Train train = 5;</code>
* <code>repeated .proto.Train train = 4;</code>
*/
public club.joylink.rtss.simulation.ncc.module.proto.TrainProto.Train getTrain(int index) {
if (trainBuilder_ == null) {
@ -2560,7 +2076,7 @@ public final class StorageProto {
* 所有列车
* </pre>
*
* <code>repeated .proto.Train train = 5;</code>
* <code>repeated .proto.Train train = 4;</code>
*/
public Builder setTrain(
int index, club.joylink.rtss.simulation.ncc.module.proto.TrainProto.Train value) {
@ -2581,7 +2097,7 @@ public final class StorageProto {
* 所有列车
* </pre>
*
* <code>repeated .proto.Train train = 5;</code>
* <code>repeated .proto.Train train = 4;</code>
*/
public Builder setTrain(
int index, club.joylink.rtss.simulation.ncc.module.proto.TrainProto.Train.Builder builderForValue) {
@ -2599,7 +2115,7 @@ public final class StorageProto {
* 所有列车
* </pre>
*
* <code>repeated .proto.Train train = 5;</code>
* <code>repeated .proto.Train train = 4;</code>
*/
public Builder addTrain(club.joylink.rtss.simulation.ncc.module.proto.TrainProto.Train value) {
if (trainBuilder_ == null) {
@ -2619,7 +2135,7 @@ public final class StorageProto {
* 所有列车
* </pre>
*
* <code>repeated .proto.Train train = 5;</code>
* <code>repeated .proto.Train train = 4;</code>
*/
public Builder addTrain(
int index, club.joylink.rtss.simulation.ncc.module.proto.TrainProto.Train value) {
@ -2640,7 +2156,7 @@ public final class StorageProto {
* 所有列车
* </pre>
*
* <code>repeated .proto.Train train = 5;</code>
* <code>repeated .proto.Train train = 4;</code>
*/
public Builder addTrain(
club.joylink.rtss.simulation.ncc.module.proto.TrainProto.Train.Builder builderForValue) {
@ -2658,7 +2174,7 @@ public final class StorageProto {
* 所有列车
* </pre>
*
* <code>repeated .proto.Train train = 5;</code>
* <code>repeated .proto.Train train = 4;</code>
*/
public Builder addTrain(
int index, club.joylink.rtss.simulation.ncc.module.proto.TrainProto.Train.Builder builderForValue) {
@ -2676,7 +2192,7 @@ public final class StorageProto {
* 所有列车
* </pre>
*
* <code>repeated .proto.Train train = 5;</code>
* <code>repeated .proto.Train train = 4;</code>
*/
public Builder addAllTrain(
java.lang.Iterable<? extends club.joylink.rtss.simulation.ncc.module.proto.TrainProto.Train> values) {
@ -2695,12 +2211,12 @@ public final class StorageProto {
* 所有列车
* </pre>
*
* <code>repeated .proto.Train train = 5;</code>
* <code>repeated .proto.Train train = 4;</code>
*/
public Builder clearTrain() {
if (trainBuilder_ == null) {
train_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
trainBuilder_.clear();
@ -2712,7 +2228,7 @@ public final class StorageProto {
* 所有列车
* </pre>
*
* <code>repeated .proto.Train train = 5;</code>
* <code>repeated .proto.Train train = 4;</code>
*/
public Builder removeTrain(int index) {
if (trainBuilder_ == null) {
@ -2729,7 +2245,7 @@ public final class StorageProto {
* 所有列车
* </pre>
*
* <code>repeated .proto.Train train = 5;</code>
* <code>repeated .proto.Train train = 4;</code>
*/
public club.joylink.rtss.simulation.ncc.module.proto.TrainProto.Train.Builder getTrainBuilder(
int index) {
@ -2740,7 +2256,7 @@ public final class StorageProto {
* 所有列车
* </pre>
*
* <code>repeated .proto.Train train = 5;</code>
* <code>repeated .proto.Train train = 4;</code>
*/
public club.joylink.rtss.simulation.ncc.module.proto.TrainProto.TrainOrBuilder getTrainOrBuilder(
int index) {
@ -2754,7 +2270,7 @@ public final class StorageProto {
* 所有列车
* </pre>
*
* <code>repeated .proto.Train train = 5;</code>
* <code>repeated .proto.Train train = 4;</code>
*/
public java.util.List<? extends club.joylink.rtss.simulation.ncc.module.proto.TrainProto.TrainOrBuilder>
getTrainOrBuilderList() {
@ -2769,7 +2285,7 @@ public final class StorageProto {
* 所有列车
* </pre>
*
* <code>repeated .proto.Train train = 5;</code>
* <code>repeated .proto.Train train = 4;</code>
*/
public club.joylink.rtss.simulation.ncc.module.proto.TrainProto.Train.Builder addTrainBuilder() {
return getTrainFieldBuilder().addBuilder(
@ -2780,7 +2296,7 @@ public final class StorageProto {
* 所有列车
* </pre>
*
* <code>repeated .proto.Train train = 5;</code>
* <code>repeated .proto.Train train = 4;</code>
*/
public club.joylink.rtss.simulation.ncc.module.proto.TrainProto.Train.Builder addTrainBuilder(
int index) {
@ -2792,7 +2308,7 @@ public final class StorageProto {
* 所有列车
* </pre>
*
* <code>repeated .proto.Train train = 5;</code>
* <code>repeated .proto.Train train = 4;</code>
*/
public java.util.List<club.joylink.rtss.simulation.ncc.module.proto.TrainProto.Train.Builder>
getTrainBuilderList() {
@ -2805,7 +2321,7 @@ public final class StorageProto {
trainBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
club.joylink.rtss.simulation.ncc.module.proto.TrainProto.Train, club.joylink.rtss.simulation.ncc.module.proto.TrainProto.Train.Builder, club.joylink.rtss.simulation.ncc.module.proto.TrainProto.TrainOrBuilder>(
train_,
((bitField0_ & 0x00000010) != 0),
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
train_ = null;
@ -2879,23 +2395,21 @@ public final class StorageProto {
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\rstorage.proto\022\005proto\032\020model/Line.proto" +
"\032\023model/Station.proto\032\023model/Section.pro" +
"to\032\027model/RoadSection.proto\032\021model/Train" +
".proto\"\260\001\n\007Storage\022\032\n\005lines\030\001 \003(\0132\013.prot" +
"o.Line\022 \n\010stations\030\002 \003(\0132\016.proto.Station" +
"\022(\n\014roadSections\030\003 \003(\0132\022.proto.RoadSecti" +
"on\022 \n\010sections\030\004 \003(\0132\016.proto.Section\022\033\n\005" +
"train\030\005 \003(\0132\014.proto.TrainB=\n-club.joylin" +
"k.rtss.simulation.ncc.module.protoB\014Stor" +
"ageProtob\006proto3"
"\n\rStorage.proto\022\005proto\032\020model/line.proto" +
"\032\023model/station.proto\032\030model/road_sectio" +
"n.proto\032\021model/train.proto\"\216\001\n\007Storage\022\032" +
"\n\005lines\030\001 \003(\0132\013.proto.Line\022 \n\010stations\030\002" +
" \003(\0132\016.proto.Station\022(\n\014roadSections\030\003 \003" +
"(\0132\022.proto.RoadSection\022\033\n\005train\030\004 \003(\0132\014." +
"proto.TrainB=\n-club.joylink.rtss.simulat" +
"ion.ncc.module.protoB\014StorageProtob\006prot" +
"o3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
club.joylink.rtss.simulation.ncc.module.proto.LineProto.getDescriptor(),
club.joylink.rtss.simulation.ncc.module.proto.StationProto.getDescriptor(),
club.joylink.rtss.simulation.ncc.module.proto.SectionProto.getDescriptor(),
club.joylink.rtss.simulation.ncc.module.proto.RoadSectionProto.getDescriptor(),
club.joylink.rtss.simulation.ncc.module.proto.TrainProto.getDescriptor(),
});
@ -2904,10 +2418,9 @@ public final class StorageProto {
internal_static_proto_Storage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_proto_Storage_descriptor,
new java.lang.String[] { "Lines", "Stations", "RoadSections", "Sections", "Train", });
new java.lang.String[] { "Lines", "Stations", "RoadSections", "Train", });
club.joylink.rtss.simulation.ncc.module.proto.LineProto.getDescriptor();
club.joylink.rtss.simulation.ncc.module.proto.StationProto.getDescriptor();
club.joylink.rtss.simulation.ncc.module.proto.SectionProto.getDescriptor();
club.joylink.rtss.simulation.ncc.module.proto.RoadSectionProto.getDescriptor();
club.joylink.rtss.simulation.ncc.module.proto.TrainProto.getDescriptor();
}

View File

@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: train.proto
// source: Train.proto
package club.joylink.rtss.simulation.ncc.module.proto;
@ -666,7 +666,7 @@ public final class TrainProto {
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\013train.proto\022\005proto\"\"\n\005Train\022\014\n\004code\030\001 " +
"\n\013Train.proto\022\005proto\"\"\n\005Train\022\014\n\004code\030\001 " +
"\001(\t\022\013\n\003len\030\002 \001(\rB;\n-club.joylink.rtss.si" +
"mulation.ncc.module.protoB\nTrainProtob\006p" +
"roto3"