【仿真NCC模块】
This commit is contained in:
parent
05fa2609b7
commit
e8438adcb7
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>simulation</artifactId>
|
||||
<groupId>club.joylink.rtss</groupId>
|
||||
<version>0.1</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>NCC</artifactId>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
</properties>
|
||||
|
||||
</project>
|
|
@ -0,0 +1,210 @@
|
|||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: enum/crowded_degree.proto
|
||||
|
||||
package club.joylink.rtss.simulation.ncc.proto.module.constants;
|
||||
|
||||
public final class CrowdedDegreeProto {
|
||||
private CrowdedDegreeProto() {}
|
||||
public static void registerAllExtensions(
|
||||
com.google.protobuf.ExtensionRegistryLite registry) {
|
||||
}
|
||||
|
||||
public static void registerAllExtensions(
|
||||
com.google.protobuf.ExtensionRegistry registry) {
|
||||
registerAllExtensions(
|
||||
(com.google.protobuf.ExtensionRegistryLite) registry);
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 拥挤程度
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf enum {@code proto.CrowdedDegree}
|
||||
*/
|
||||
public enum CrowdedDegree
|
||||
implements com.google.protobuf.ProtocolMessageEnum {
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 拥挤
|
||||
* </pre>
|
||||
*
|
||||
* <code>HEAVY_CROWDED = 0;</code>
|
||||
*/
|
||||
HEAVY_CROWDED(0),
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 较挤
|
||||
* </pre>
|
||||
*
|
||||
* <code>CROWDED = 1;</code>
|
||||
*/
|
||||
CROWDED(1),
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 轻微
|
||||
* </pre>
|
||||
*
|
||||
* <code>SLIGHT = 2;</code>
|
||||
*/
|
||||
SLIGHT(2),
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 舒适
|
||||
* </pre>
|
||||
*
|
||||
* <code>COMFORTABLE = 3;</code>
|
||||
*/
|
||||
COMFORTABLE(3),
|
||||
UNRECOGNIZED(-1),
|
||||
;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 拥挤
|
||||
* </pre>
|
||||
*
|
||||
* <code>HEAVY_CROWDED = 0;</code>
|
||||
*/
|
||||
public static final int HEAVY_CROWDED_VALUE = 0;
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 较挤
|
||||
* </pre>
|
||||
*
|
||||
* <code>CROWDED = 1;</code>
|
||||
*/
|
||||
public static final int CROWDED_VALUE = 1;
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 轻微
|
||||
* </pre>
|
||||
*
|
||||
* <code>SLIGHT = 2;</code>
|
||||
*/
|
||||
public static final int SLIGHT_VALUE = 2;
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 舒适
|
||||
* </pre>
|
||||
*
|
||||
* <code>COMFORTABLE = 3;</code>
|
||||
*/
|
||||
public static final int COMFORTABLE_VALUE = 3;
|
||||
|
||||
|
||||
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 CrowdedDegree 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 CrowdedDegree forNumber(int value) {
|
||||
switch (value) {
|
||||
case 0: return HEAVY_CROWDED;
|
||||
case 1: return CROWDED;
|
||||
case 2: return SLIGHT;
|
||||
case 3: return COMFORTABLE;
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static com.google.protobuf.Internal.EnumLiteMap<CrowdedDegree>
|
||||
internalGetValueMap() {
|
||||
return internalValueMap;
|
||||
}
|
||||
private static final com.google.protobuf.Internal.EnumLiteMap<
|
||||
CrowdedDegree> internalValueMap =
|
||||
new com.google.protobuf.Internal.EnumLiteMap<CrowdedDegree>() {
|
||||
public CrowdedDegree findValueByNumber(int number) {
|
||||
return CrowdedDegree.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.proto.module.constants.CrowdedDegreeProto.getDescriptor().getEnumTypes().get(0);
|
||||
}
|
||||
|
||||
private static final CrowdedDegree[] VALUES = values();
|
||||
|
||||
public static CrowdedDegree 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 CrowdedDegree(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(enum_scope:proto.CrowdedDegree)
|
||||
}
|
||||
|
||||
|
||||
public static com.google.protobuf.Descriptors.FileDescriptor
|
||||
getDescriptor() {
|
||||
return descriptor;
|
||||
}
|
||||
private static com.google.protobuf.Descriptors.FileDescriptor
|
||||
descriptor;
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\031enum/crowded_degree.proto\022\005proto*L\n\rCr" +
|
||||
"owdedDegree\022\021\n\rHEAVY_CROWDED\020\000\022\013\n\007CROWDE" +
|
||||
"D\020\001\022\n\n\006SLIGHT\020\002\022\017\n\013COMFORTABLE\020\003BM\n7club" +
|
||||
".joylink.rtss.simulation.ncc.proto.modul" +
|
||||
"e.constantsB\022CrowdedDegreeProtob\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
||||
});
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
}
|
|
@ -0,0 +1,214 @@
|
|||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: enum/device_type.proto
|
||||
|
||||
package club.joylink.rtss.simulation.ncc.proto.module.constants;
|
||||
|
||||
public final class DeviceTypeProto {
|
||||
private DeviceTypeProto() {}
|
||||
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.DeviceType}
|
||||
*/
|
||||
public enum DeviceType
|
||||
implements com.google.protobuf.ProtocolMessageEnum {
|
||||
/**
|
||||
* <pre>
|
||||
* 车站
|
||||
* </pre>
|
||||
*
|
||||
* <code>STATION = 0;</code>
|
||||
*/
|
||||
STATION(0),
|
||||
/**
|
||||
* <pre>
|
||||
* 区段
|
||||
* </pre>
|
||||
*
|
||||
* <code>SECTION = 1;</code>
|
||||
*/
|
||||
SECTION(1),
|
||||
/**
|
||||
* <pre>
|
||||
* 路段
|
||||
* </pre>
|
||||
*
|
||||
* <code>ROAD_SECTION = 2;</code>
|
||||
*/
|
||||
ROAD_SECTION(2),
|
||||
/**
|
||||
* <pre>
|
||||
* 火车
|
||||
* </pre>
|
||||
*
|
||||
* <code>TRAIN = 3;</code>
|
||||
*/
|
||||
TRAIN(3),
|
||||
/**
|
||||
* <pre>
|
||||
* 线路
|
||||
* </pre>
|
||||
*
|
||||
* <code>LINE = 4;</code>
|
||||
*/
|
||||
LINE(4),
|
||||
UNRECOGNIZED(-1),
|
||||
;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 车站
|
||||
* </pre>
|
||||
*
|
||||
* <code>STATION = 0;</code>
|
||||
*/
|
||||
public static final int STATION_VALUE = 0;
|
||||
/**
|
||||
* <pre>
|
||||
* 区段
|
||||
* </pre>
|
||||
*
|
||||
* <code>SECTION = 1;</code>
|
||||
*/
|
||||
public static final int SECTION_VALUE = 1;
|
||||
/**
|
||||
* <pre>
|
||||
* 路段
|
||||
* </pre>
|
||||
*
|
||||
* <code>ROAD_SECTION = 2;</code>
|
||||
*/
|
||||
public static final int ROAD_SECTION_VALUE = 2;
|
||||
/**
|
||||
* <pre>
|
||||
* 火车
|
||||
* </pre>
|
||||
*
|
||||
* <code>TRAIN = 3;</code>
|
||||
*/
|
||||
public static final int TRAIN_VALUE = 3;
|
||||
/**
|
||||
* <pre>
|
||||
* 线路
|
||||
* </pre>
|
||||
*
|
||||
* <code>LINE = 4;</code>
|
||||
*/
|
||||
public static final int LINE_VALUE = 4;
|
||||
|
||||
|
||||
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 DeviceType 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 DeviceType forNumber(int value) {
|
||||
switch (value) {
|
||||
case 0: return STATION;
|
||||
case 1: return SECTION;
|
||||
case 2: return ROAD_SECTION;
|
||||
case 3: return TRAIN;
|
||||
case 4: return LINE;
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static com.google.protobuf.Internal.EnumLiteMap<DeviceType>
|
||||
internalGetValueMap() {
|
||||
return internalValueMap;
|
||||
}
|
||||
private static final com.google.protobuf.Internal.EnumLiteMap<
|
||||
DeviceType> internalValueMap =
|
||||
new com.google.protobuf.Internal.EnumLiteMap<DeviceType>() {
|
||||
public DeviceType findValueByNumber(int number) {
|
||||
return DeviceType.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.proto.module.constants.DeviceTypeProto.getDescriptor().getEnumTypes().get(0);
|
||||
}
|
||||
|
||||
private static final DeviceType[] VALUES = values();
|
||||
|
||||
public static DeviceType 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 DeviceType(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(enum_scope:proto.DeviceType)
|
||||
}
|
||||
|
||||
|
||||
public static com.google.protobuf.Descriptors.FileDescriptor
|
||||
getDescriptor() {
|
||||
return descriptor;
|
||||
}
|
||||
private static com.google.protobuf.Descriptors.FileDescriptor
|
||||
descriptor;
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\026enum/device_type.proto\022\005proto*M\n\nDevic" +
|
||||
"eType\022\013\n\007STATION\020\000\022\013\n\007SECTION\020\001\022\020\n\014ROAD_" +
|
||||
"SECTION\020\002\022\t\n\005TRAIN\020\003\022\010\n\004LINE\020\004BJ\n7club.j" +
|
||||
"oylink.rtss.simulation.ncc.proto.module." +
|
||||
"constantsB\017DeviceTypeProtob\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
||||
});
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
}
|
|
@ -0,0 +1,146 @@
|
|||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: enum/fault.proto
|
||||
|
||||
package club.joylink.rtss.simulation.ncc.proto.module.constants;
|
||||
|
||||
public final class FaultProto {
|
||||
private FaultProto() {}
|
||||
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.Fault}
|
||||
*/
|
||||
public enum Fault
|
||||
implements com.google.protobuf.ProtocolMessageEnum {
|
||||
/**
|
||||
* <code>NONE = 0;</code>
|
||||
*/
|
||||
NONE(0),
|
||||
/**
|
||||
* <code>FAULT_OCCUPY = 1;</code>
|
||||
*/
|
||||
FAULT_OCCUPY(1),
|
||||
UNRECOGNIZED(-1),
|
||||
;
|
||||
|
||||
/**
|
||||
* <code>NONE = 0;</code>
|
||||
*/
|
||||
public static final int NONE_VALUE = 0;
|
||||
/**
|
||||
* <code>FAULT_OCCUPY = 1;</code>
|
||||
*/
|
||||
public static final int FAULT_OCCUPY_VALUE = 1;
|
||||
|
||||
|
||||
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 Fault 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 Fault forNumber(int value) {
|
||||
switch (value) {
|
||||
case 0: return NONE;
|
||||
case 1: return FAULT_OCCUPY;
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static com.google.protobuf.Internal.EnumLiteMap<Fault>
|
||||
internalGetValueMap() {
|
||||
return internalValueMap;
|
||||
}
|
||||
private static final com.google.protobuf.Internal.EnumLiteMap<
|
||||
Fault> internalValueMap =
|
||||
new com.google.protobuf.Internal.EnumLiteMap<Fault>() {
|
||||
public Fault findValueByNumber(int number) {
|
||||
return Fault.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.proto.module.constants.FaultProto.getDescriptor().getEnumTypes().get(0);
|
||||
}
|
||||
|
||||
private static final Fault[] VALUES = values();
|
||||
|
||||
public static Fault 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 Fault(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(enum_scope:proto.Fault)
|
||||
}
|
||||
|
||||
|
||||
public static com.google.protobuf.Descriptors.FileDescriptor
|
||||
getDescriptor() {
|
||||
return descriptor;
|
||||
}
|
||||
private static com.google.protobuf.Descriptors.FileDescriptor
|
||||
descriptor;
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\020enum/fault.proto\022\005proto*#\n\005Fault\022\010\n\004NO" +
|
||||
"NE\020\000\022\020\n\014FAULT_OCCUPY\020\001BE\n7club.joylink.r" +
|
||||
"tss.simulation.ncc.proto.module.constant" +
|
||||
"sB\nFaultProtob\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
||||
});
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
}
|
|
@ -0,0 +1,211 @@
|
|||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: enum/passenger_flow_level.proto
|
||||
|
||||
package club.joylink.rtss.simulation.ncc.proto.module.constants;
|
||||
|
||||
public final class PassengerFlowLevelProto {
|
||||
private PassengerFlowLevelProto() {}
|
||||
public static void registerAllExtensions(
|
||||
com.google.protobuf.ExtensionRegistryLite registry) {
|
||||
}
|
||||
|
||||
public static void registerAllExtensions(
|
||||
com.google.protobuf.ExtensionRegistry registry) {
|
||||
registerAllExtensions(
|
||||
(com.google.protobuf.ExtensionRegistryLite) registry);
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 大客流等级
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf enum {@code proto.PassengerFlowLevel}
|
||||
*/
|
||||
public enum PassengerFlowLevel
|
||||
implements com.google.protobuf.ProtocolMessageEnum {
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 关站
|
||||
* </pre>
|
||||
*
|
||||
* <code>CLOSE = 0;</code>
|
||||
*/
|
||||
CLOSE(0),
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 站控
|
||||
* </pre>
|
||||
*
|
||||
* <code>STATION = 1;</code>
|
||||
*/
|
||||
STATION(1),
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 线控
|
||||
* </pre>
|
||||
*
|
||||
* <code>LINE = 2;</code>
|
||||
*/
|
||||
LINE(2),
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 网控
|
||||
* </pre>
|
||||
*
|
||||
* <code>NETWORK = 3;</code>
|
||||
*/
|
||||
NETWORK(3),
|
||||
UNRECOGNIZED(-1),
|
||||
;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 关站
|
||||
* </pre>
|
||||
*
|
||||
* <code>CLOSE = 0;</code>
|
||||
*/
|
||||
public static final int CLOSE_VALUE = 0;
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 站控
|
||||
* </pre>
|
||||
*
|
||||
* <code>STATION = 1;</code>
|
||||
*/
|
||||
public static final int STATION_VALUE = 1;
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 线控
|
||||
* </pre>
|
||||
*
|
||||
* <code>LINE = 2;</code>
|
||||
*/
|
||||
public static final int LINE_VALUE = 2;
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 网控
|
||||
* </pre>
|
||||
*
|
||||
* <code>NETWORK = 3;</code>
|
||||
*/
|
||||
public static final int NETWORK_VALUE = 3;
|
||||
|
||||
|
||||
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 PassengerFlowLevel 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 PassengerFlowLevel forNumber(int value) {
|
||||
switch (value) {
|
||||
case 0: return CLOSE;
|
||||
case 1: return STATION;
|
||||
case 2: return LINE;
|
||||
case 3: return NETWORK;
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static com.google.protobuf.Internal.EnumLiteMap<PassengerFlowLevel>
|
||||
internalGetValueMap() {
|
||||
return internalValueMap;
|
||||
}
|
||||
private static final com.google.protobuf.Internal.EnumLiteMap<
|
||||
PassengerFlowLevel> internalValueMap =
|
||||
new com.google.protobuf.Internal.EnumLiteMap<PassengerFlowLevel>() {
|
||||
public PassengerFlowLevel findValueByNumber(int number) {
|
||||
return PassengerFlowLevel.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.proto.module.constants.PassengerFlowLevelProto.getDescriptor().getEnumTypes().get(0);
|
||||
}
|
||||
|
||||
private static final PassengerFlowLevel[] VALUES = values();
|
||||
|
||||
public static PassengerFlowLevel 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 PassengerFlowLevel(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(enum_scope:proto.PassengerFlowLevel)
|
||||
}
|
||||
|
||||
|
||||
public static com.google.protobuf.Descriptors.FileDescriptor
|
||||
getDescriptor() {
|
||||
return descriptor;
|
||||
}
|
||||
private static com.google.protobuf.Descriptors.FileDescriptor
|
||||
descriptor;
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\037enum/passenger_flow_level.proto\022\005proto" +
|
||||
"*C\n\022PassengerFlowLevel\022\t\n\005CLOSE\020\000\022\013\n\007STA" +
|
||||
"TION\020\001\022\010\n\004LINE\020\002\022\013\n\007NETWORK\020\003BR\n7club.jo" +
|
||||
"ylink.rtss.simulation.ncc.proto.module.c" +
|
||||
"onstantsB\027PassengerFlowLevelProtob\006proto" +
|
||||
"3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
||||
});
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
}
|
|
@ -0,0 +1,180 @@
|
|||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: enum/run_status.proto
|
||||
|
||||
package club.joylink.rtss.simulation.ncc.proto.module.constants;
|
||||
|
||||
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.proto.module.constants.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\025enum/run_status.proto\022\005proto*/\n\tRunSta" +
|
||||
"tus\022\014\n\010Outbound\020\000\022\007\n\003Run\020\001\022\013\n\007InBound\020\002B" +
|
||||
"I\n7club.joylink.rtss.simulation.ncc.prot" +
|
||||
"o.module.constantsB\016RunStatusProtob\006prot" +
|
||||
"o3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
||||
});
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
}
|
|
@ -0,0 +1,171 @@
|
|||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: enum/up_down_way.proto
|
||||
|
||||
package club.joylink.rtss.simulation.ncc.proto.module.constants;
|
||||
|
||||
public final class UpDownWayProto {
|
||||
private UpDownWayProto() {}
|
||||
public static void registerAllExtensions(
|
||||
com.google.protobuf.ExtensionRegistryLite registry) {
|
||||
}
|
||||
|
||||
public static void registerAllExtensions(
|
||||
com.google.protobuf.ExtensionRegistry registry) {
|
||||
registerAllExtensions(
|
||||
(com.google.protobuf.ExtensionRegistryLite) registry);
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 车辆上下行
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf enum {@code proto.UpDownWay}
|
||||
*/
|
||||
public enum UpDownWay
|
||||
implements com.google.protobuf.ProtocolMessageEnum {
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
*上行
|
||||
* </pre>
|
||||
*
|
||||
* <code>UP_WAY = 0;</code>
|
||||
*/
|
||||
UP_WAY(0),
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 下行
|
||||
* </pre>
|
||||
*
|
||||
* <code>DOWN_WAY = 1;</code>
|
||||
*/
|
||||
DOWN_WAY(1),
|
||||
UNRECOGNIZED(-1),
|
||||
;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
*上行
|
||||
* </pre>
|
||||
*
|
||||
* <code>UP_WAY = 0;</code>
|
||||
*/
|
||||
public static final int UP_WAY_VALUE = 0;
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 下行
|
||||
* </pre>
|
||||
*
|
||||
* <code>DOWN_WAY = 1;</code>
|
||||
*/
|
||||
public static final int DOWN_WAY_VALUE = 1;
|
||||
|
||||
|
||||
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 UpDownWay 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 UpDownWay forNumber(int value) {
|
||||
switch (value) {
|
||||
case 0: return UP_WAY;
|
||||
case 1: return DOWN_WAY;
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static com.google.protobuf.Internal.EnumLiteMap<UpDownWay>
|
||||
internalGetValueMap() {
|
||||
return internalValueMap;
|
||||
}
|
||||
private static final com.google.protobuf.Internal.EnumLiteMap<
|
||||
UpDownWay> internalValueMap =
|
||||
new com.google.protobuf.Internal.EnumLiteMap<UpDownWay>() {
|
||||
public UpDownWay findValueByNumber(int number) {
|
||||
return UpDownWay.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.proto.module.constants.UpDownWayProto.getDescriptor().getEnumTypes().get(0);
|
||||
}
|
||||
|
||||
private static final UpDownWay[] VALUES = values();
|
||||
|
||||
public static UpDownWay 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 UpDownWay(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(enum_scope:proto.UpDownWay)
|
||||
}
|
||||
|
||||
|
||||
public static com.google.protobuf.Descriptors.FileDescriptor
|
||||
getDescriptor() {
|
||||
return descriptor;
|
||||
}
|
||||
private static com.google.protobuf.Descriptors.FileDescriptor
|
||||
descriptor;
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\026enum/up_down_way.proto\022\005proto*%\n\tUpDow" +
|
||||
"nWay\022\n\n\006UP_WAY\020\000\022\014\n\010DOWN_WAY\020\001BI\n7club.j" +
|
||||
"oylink.rtss.simulation.ncc.proto.module." +
|
||||
"constantsB\016UpDownWayProtob\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
||||
});
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,621 @@
|
|||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: model/point.proto
|
||||
|
||||
package club.joylink.rtss.simulation.ncc.proto.module.model;
|
||||
|
||||
public final class PointProto {
|
||||
private PointProto() {}
|
||||
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 PointOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:proto.Point)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>float x = 1;</code>
|
||||
* @return The x.
|
||||
*/
|
||||
float getX();
|
||||
|
||||
/**
|
||||
* <code>float y = 2;</code>
|
||||
* @return The y.
|
||||
*/
|
||||
float getY();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 坐标点
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code proto.Point}
|
||||
*/
|
||||
public static final class Point extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:proto.Point)
|
||||
PointOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use Point.newBuilder() to construct.
|
||||
private Point(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private Point() {
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new Point();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
private Point(
|
||||
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 13: {
|
||||
|
||||
x_ = input.readFloat();
|
||||
break;
|
||||
}
|
||||
case 21: {
|
||||
|
||||
y_ = input.readFloat();
|
||||
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.rtss.simulation.ncc.proto.module.model.PointProto.internal_static_proto_Point_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return club.joylink.rtss.simulation.ncc.proto.module.model.PointProto.internal_static_proto_Point_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
club.joylink.rtss.simulation.ncc.proto.module.model.PointProto.Point.class, club.joylink.rtss.simulation.ncc.proto.module.model.PointProto.Point.Builder.class);
|
||||
}
|
||||
|
||||
public static final int X_FIELD_NUMBER = 1;
|
||||
private float x_;
|
||||
/**
|
||||
* <code>float x = 1;</code>
|
||||
* @return The x.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public float getX() {
|
||||
return x_;
|
||||
}
|
||||
|
||||
public static final int Y_FIELD_NUMBER = 2;
|
||||
private float y_;
|
||||
/**
|
||||
* <code>float y = 2;</code>
|
||||
* @return The y.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public float getY() {
|
||||
return y_;
|
||||
}
|
||||
|
||||
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 (java.lang.Float.floatToRawIntBits(x_) != 0) {
|
||||
output.writeFloat(1, x_);
|
||||
}
|
||||
if (java.lang.Float.floatToRawIntBits(y_) != 0) {
|
||||
output.writeFloat(2, y_);
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (java.lang.Float.floatToRawIntBits(x_) != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeFloatSize(1, x_);
|
||||
}
|
||||
if (java.lang.Float.floatToRawIntBits(y_) != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeFloatSize(2, y_);
|
||||
}
|
||||
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.rtss.simulation.ncc.proto.module.model.PointProto.Point)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
club.joylink.rtss.simulation.ncc.proto.module.model.PointProto.Point other = (club.joylink.rtss.simulation.ncc.proto.module.model.PointProto.Point) obj;
|
||||
|
||||
if (java.lang.Float.floatToIntBits(getX())
|
||||
!= java.lang.Float.floatToIntBits(
|
||||
other.getX())) return false;
|
||||
if (java.lang.Float.floatToIntBits(getY())
|
||||
!= java.lang.Float.floatToIntBits(
|
||||
other.getY())) 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) + X_FIELD_NUMBER;
|
||||
hash = (53 * hash) + java.lang.Float.floatToIntBits(
|
||||
getX());
|
||||
hash = (37 * hash) + Y_FIELD_NUMBER;
|
||||
hash = (53 * hash) + java.lang.Float.floatToIntBits(
|
||||
getY());
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.model.PointProto.Point parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.model.PointProto.Point parseFrom(
|
||||
java.nio.ByteBuffer data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.model.PointProto.Point parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.model.PointProto.Point 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.rtss.simulation.ncc.proto.module.model.PointProto.Point parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.model.PointProto.Point parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.model.PointProto.Point parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.model.PointProto.Point 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.rtss.simulation.ncc.proto.module.model.PointProto.Point parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.model.PointProto.Point 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.rtss.simulation.ncc.proto.module.model.PointProto.Point parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.model.PointProto.Point 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.rtss.simulation.ncc.proto.module.model.PointProto.Point 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;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 坐标点
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code proto.Point}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:proto.Point)
|
||||
club.joylink.rtss.simulation.ncc.proto.module.model.PointProto.PointOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return club.joylink.rtss.simulation.ncc.proto.module.model.PointProto.internal_static_proto_Point_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return club.joylink.rtss.simulation.ncc.proto.module.model.PointProto.internal_static_proto_Point_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
club.joylink.rtss.simulation.ncc.proto.module.model.PointProto.Point.class, club.joylink.rtss.simulation.ncc.proto.module.model.PointProto.Point.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using club.joylink.rtss.simulation.ncc.proto.module.model.PointProto.Point.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();
|
||||
x_ = 0F;
|
||||
|
||||
y_ = 0F;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return club.joylink.rtss.simulation.ncc.proto.module.model.PointProto.internal_static_proto_Point_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public club.joylink.rtss.simulation.ncc.proto.module.model.PointProto.Point getDefaultInstanceForType() {
|
||||
return club.joylink.rtss.simulation.ncc.proto.module.model.PointProto.Point.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public club.joylink.rtss.simulation.ncc.proto.module.model.PointProto.Point build() {
|
||||
club.joylink.rtss.simulation.ncc.proto.module.model.PointProto.Point result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public club.joylink.rtss.simulation.ncc.proto.module.model.PointProto.Point buildPartial() {
|
||||
club.joylink.rtss.simulation.ncc.proto.module.model.PointProto.Point result = new club.joylink.rtss.simulation.ncc.proto.module.model.PointProto.Point(this);
|
||||
result.x_ = x_;
|
||||
result.y_ = y_;
|
||||
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.rtss.simulation.ncc.proto.module.model.PointProto.Point) {
|
||||
return mergeFrom((club.joylink.rtss.simulation.ncc.proto.module.model.PointProto.Point)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(club.joylink.rtss.simulation.ncc.proto.module.model.PointProto.Point other) {
|
||||
if (other == club.joylink.rtss.simulation.ncc.proto.module.model.PointProto.Point.getDefaultInstance()) return this;
|
||||
if (other.getX() != 0F) {
|
||||
setX(other.getX());
|
||||
}
|
||||
if (other.getY() != 0F) {
|
||||
setY(other.getY());
|
||||
}
|
||||
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.rtss.simulation.ncc.proto.module.model.PointProto.Point parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (club.joylink.rtss.simulation.ncc.proto.module.model.PointProto.Point) e.getUnfinishedMessage();
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
mergeFrom(parsedMessage);
|
||||
}
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private float x_ ;
|
||||
/**
|
||||
* <code>float x = 1;</code>
|
||||
* @return The x.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public float getX() {
|
||||
return x_;
|
||||
}
|
||||
/**
|
||||
* <code>float x = 1;</code>
|
||||
* @param value The x to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setX(float value) {
|
||||
|
||||
x_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>float x = 1;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearX() {
|
||||
|
||||
x_ = 0F;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private float y_ ;
|
||||
/**
|
||||
* <code>float y = 2;</code>
|
||||
* @return The y.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public float getY() {
|
||||
return y_;
|
||||
}
|
||||
/**
|
||||
* <code>float y = 2;</code>
|
||||
* @param value The y to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setY(float value) {
|
||||
|
||||
y_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>float y = 2;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearY() {
|
||||
|
||||
y_ = 0F;
|
||||
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:proto.Point)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:proto.Point)
|
||||
private static final club.joylink.rtss.simulation.ncc.proto.module.model.PointProto.Point DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new club.joylink.rtss.simulation.ncc.proto.module.model.PointProto.Point();
|
||||
}
|
||||
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.model.PointProto.Point getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<Point>
|
||||
PARSER = new com.google.protobuf.AbstractParser<Point>() {
|
||||
@java.lang.Override
|
||||
public Point parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new Point(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<Point> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<Point> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public club.joylink.rtss.simulation.ncc.proto.module.model.PointProto.Point getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_proto_Point_descriptor;
|
||||
private static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_proto_Point_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\021model/point.proto\022\005proto\"\035\n\005Point\022\t\n\001x" +
|
||||
"\030\001 \001(\002\022\t\n\001y\030\002 \001(\002BA\n3club.joylink.rtss.s" +
|
||||
"imulation.ncc.proto.module.modelB\nPointP" +
|
||||
"rotob\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
||||
});
|
||||
internal_static_proto_Point_descriptor =
|
||||
getDescriptor().getMessageTypes().get(0);
|
||||
internal_static_proto_Point_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_proto_Point_descriptor,
|
||||
new java.lang.String[] { "X", "Y", });
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
}
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,687 @@
|
|||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: model/train.proto
|
||||
|
||||
package club.joylink.rtss.simulation.ncc.proto.module.model;
|
||||
|
||||
public final class TrainProto {
|
||||
private TrainProto() {}
|
||||
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 TrainOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:proto.Train)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>string code = 1;</code>
|
||||
* @return The code.
|
||||
*/
|
||||
java.lang.String getCode();
|
||||
/**
|
||||
* <code>string code = 1;</code>
|
||||
* @return The bytes for code.
|
||||
*/
|
||||
com.google.protobuf.ByteString
|
||||
getCodeBytes();
|
||||
|
||||
/**
|
||||
* <code>uint32 len = 2;</code>
|
||||
* @return The len.
|
||||
*/
|
||||
int getLen();
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code proto.Train}
|
||||
*/
|
||||
public static final class Train extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:proto.Train)
|
||||
TrainOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use Train.newBuilder() to construct.
|
||||
private Train(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private Train() {
|
||||
code_ = "";
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new Train();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
private Train(
|
||||
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: {
|
||||
java.lang.String s = input.readStringRequireUtf8();
|
||||
|
||||
code_ = s;
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
|
||||
len_ = input.readUInt32();
|
||||
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.rtss.simulation.ncc.proto.module.model.TrainProto.internal_static_proto_Train_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return club.joylink.rtss.simulation.ncc.proto.module.model.TrainProto.internal_static_proto_Train_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
club.joylink.rtss.simulation.ncc.proto.module.model.TrainProto.Train.class, club.joylink.rtss.simulation.ncc.proto.module.model.TrainProto.Train.Builder.class);
|
||||
}
|
||||
|
||||
public static final int CODE_FIELD_NUMBER = 1;
|
||||
private volatile java.lang.Object code_;
|
||||
/**
|
||||
* <code>string code = 1;</code>
|
||||
* @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;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string code = 1;</code>
|
||||
* @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 LEN_FIELD_NUMBER = 2;
|
||||
private int len_;
|
||||
/**
|
||||
* <code>uint32 len = 2;</code>
|
||||
* @return The len.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getLen() {
|
||||
return len_;
|
||||
}
|
||||
|
||||
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) {
|
||||
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_);
|
||||
}
|
||||
if (len_ != 0) {
|
||||
output.writeUInt32(2, len_);
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) {
|
||||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_);
|
||||
}
|
||||
if (len_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(2, len_);
|
||||
}
|
||||
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.rtss.simulation.ncc.proto.module.model.TrainProto.Train)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
club.joylink.rtss.simulation.ncc.proto.module.model.TrainProto.Train other = (club.joylink.rtss.simulation.ncc.proto.module.model.TrainProto.Train) obj;
|
||||
|
||||
if (!getCode()
|
||||
.equals(other.getCode())) return false;
|
||||
if (getLen()
|
||||
!= other.getLen()) 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) + CODE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getCode().hashCode();
|
||||
hash = (37 * hash) + LEN_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getLen();
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.model.TrainProto.Train parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.model.TrainProto.Train parseFrom(
|
||||
java.nio.ByteBuffer data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.model.TrainProto.Train parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.model.TrainProto.Train 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.rtss.simulation.ncc.proto.module.model.TrainProto.Train parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.model.TrainProto.Train parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.model.TrainProto.Train parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.model.TrainProto.Train 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.rtss.simulation.ncc.proto.module.model.TrainProto.Train parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.model.TrainProto.Train 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.rtss.simulation.ncc.proto.module.model.TrainProto.Train parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.model.TrainProto.Train 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.rtss.simulation.ncc.proto.module.model.TrainProto.Train 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 proto.Train}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:proto.Train)
|
||||
club.joylink.rtss.simulation.ncc.proto.module.model.TrainProto.TrainOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return club.joylink.rtss.simulation.ncc.proto.module.model.TrainProto.internal_static_proto_Train_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return club.joylink.rtss.simulation.ncc.proto.module.model.TrainProto.internal_static_proto_Train_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
club.joylink.rtss.simulation.ncc.proto.module.model.TrainProto.Train.class, club.joylink.rtss.simulation.ncc.proto.module.model.TrainProto.Train.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using club.joylink.rtss.simulation.ncc.proto.module.model.TrainProto.Train.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();
|
||||
code_ = "";
|
||||
|
||||
len_ = 0;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return club.joylink.rtss.simulation.ncc.proto.module.model.TrainProto.internal_static_proto_Train_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public club.joylink.rtss.simulation.ncc.proto.module.model.TrainProto.Train getDefaultInstanceForType() {
|
||||
return club.joylink.rtss.simulation.ncc.proto.module.model.TrainProto.Train.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public club.joylink.rtss.simulation.ncc.proto.module.model.TrainProto.Train build() {
|
||||
club.joylink.rtss.simulation.ncc.proto.module.model.TrainProto.Train result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public club.joylink.rtss.simulation.ncc.proto.module.model.TrainProto.Train buildPartial() {
|
||||
club.joylink.rtss.simulation.ncc.proto.module.model.TrainProto.Train result = new club.joylink.rtss.simulation.ncc.proto.module.model.TrainProto.Train(this);
|
||||
result.code_ = code_;
|
||||
result.len_ = len_;
|
||||
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.rtss.simulation.ncc.proto.module.model.TrainProto.Train) {
|
||||
return mergeFrom((club.joylink.rtss.simulation.ncc.proto.module.model.TrainProto.Train)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(club.joylink.rtss.simulation.ncc.proto.module.model.TrainProto.Train other) {
|
||||
if (other == club.joylink.rtss.simulation.ncc.proto.module.model.TrainProto.Train.getDefaultInstance()) return this;
|
||||
if (!other.getCode().isEmpty()) {
|
||||
code_ = other.code_;
|
||||
onChanged();
|
||||
}
|
||||
if (other.getLen() != 0) {
|
||||
setLen(other.getLen());
|
||||
}
|
||||
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.rtss.simulation.ncc.proto.module.model.TrainProto.Train parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (club.joylink.rtss.simulation.ncc.proto.module.model.TrainProto.Train) e.getUnfinishedMessage();
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
mergeFrom(parsedMessage);
|
||||
}
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private java.lang.Object code_ = "";
|
||||
/**
|
||||
* <code>string code = 1;</code>
|
||||
* @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;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string code = 1;</code>
|
||||
* @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;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string code = 1;</code>
|
||||
* @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;
|
||||
}
|
||||
/**
|
||||
* <code>string code = 1;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearCode() {
|
||||
|
||||
code_ = getDefaultInstance().getCode();
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>string code = 1;</code>
|
||||
* @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 len_ ;
|
||||
/**
|
||||
* <code>uint32 len = 2;</code>
|
||||
* @return The len.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getLen() {
|
||||
return len_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 len = 2;</code>
|
||||
* @param value The len to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setLen(int value) {
|
||||
|
||||
len_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 len = 2;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearLen() {
|
||||
|
||||
len_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.setUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final Builder mergeUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.mergeUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:proto.Train)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:proto.Train)
|
||||
private static final club.joylink.rtss.simulation.ncc.proto.module.model.TrainProto.Train DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new club.joylink.rtss.simulation.ncc.proto.module.model.TrainProto.Train();
|
||||
}
|
||||
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.model.TrainProto.Train getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<Train>
|
||||
PARSER = new com.google.protobuf.AbstractParser<Train>() {
|
||||
@java.lang.Override
|
||||
public Train parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new Train(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<Train> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<Train> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public club.joylink.rtss.simulation.ncc.proto.module.model.TrainProto.Train getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_proto_Train_descriptor;
|
||||
private static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_proto_Train_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\021model/train.proto\022\005proto\"\"\n\005Train\022\014\n\004c" +
|
||||
"ode\030\001 \001(\t\022\013\n\003len\030\002 \001(\rBA\n3club.joylink.r" +
|
||||
"tss.simulation.ncc.proto.module.modelB\nT" +
|
||||
"rainProtob\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
||||
});
|
||||
internal_static_proto_Train_descriptor =
|
||||
getDescriptor().getMessageTypes().get(0);
|
||||
internal_static_proto_Train_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_proto_Train_descriptor,
|
||||
new java.lang.String[] { "Code", "Len", });
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
}
|
|
@ -0,0 +1,964 @@
|
|||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: state/LineStationCrowdedState.proto
|
||||
|
||||
package club.joylink.rtss.simulation.ncc.proto.module.state;
|
||||
|
||||
public final class LineStationCrowdedStateProto {
|
||||
private LineStationCrowdedStateProto() {}
|
||||
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 LineStationCrowdedStateOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:proto.LineStationCrowdedState)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
*线路code
|
||||
* </pre>
|
||||
*
|
||||
* <code>string lineCode = 1;</code>
|
||||
* @return The lineCode.
|
||||
*/
|
||||
java.lang.String getLineCode();
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
*线路code
|
||||
* </pre>
|
||||
*
|
||||
* <code>string lineCode = 1;</code>
|
||||
* @return The bytes for lineCode.
|
||||
*/
|
||||
com.google.protobuf.ByteString
|
||||
getLineCodeBytes();
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
*路段code
|
||||
* </pre>
|
||||
*
|
||||
* <code>string sectionCode = 2;</code>
|
||||
* @return The sectionCode.
|
||||
*/
|
||||
java.lang.String getSectionCode();
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
*路段code
|
||||
* </pre>
|
||||
*
|
||||
* <code>string sectionCode = 2;</code>
|
||||
* @return The bytes for sectionCode.
|
||||
*/
|
||||
com.google.protobuf.ByteString
|
||||
getSectionCodeBytes();
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
*人流量
|
||||
* </pre>
|
||||
*
|
||||
* <code>int32 visitorFlowrate = 3;</code>
|
||||
* @return The visitorFlowrate.
|
||||
*/
|
||||
int getVisitorFlowrate();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 车站拥挤程度
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code proto.LineStationCrowdedState}
|
||||
*/
|
||||
public static final class LineStationCrowdedState extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:proto.LineStationCrowdedState)
|
||||
LineStationCrowdedStateOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use LineStationCrowdedState.newBuilder() to construct.
|
||||
private LineStationCrowdedState(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private LineStationCrowdedState() {
|
||||
lineCode_ = "";
|
||||
sectionCode_ = "";
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new LineStationCrowdedState();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
private LineStationCrowdedState(
|
||||
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: {
|
||||
java.lang.String s = input.readStringRequireUtf8();
|
||||
|
||||
lineCode_ = s;
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
java.lang.String s = input.readStringRequireUtf8();
|
||||
|
||||
sectionCode_ = s;
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
|
||||
visitorFlowrate_ = input.readInt32();
|
||||
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.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.internal_static_proto_LineStationCrowdedState_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return club.joylink.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.internal_static_proto_LineStationCrowdedState_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
club.joylink.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.LineStationCrowdedState.class, club.joylink.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.LineStationCrowdedState.Builder.class);
|
||||
}
|
||||
|
||||
public static final int LINECODE_FIELD_NUMBER = 1;
|
||||
private volatile java.lang.Object lineCode_;
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
*线路code
|
||||
* </pre>
|
||||
*
|
||||
* <code>string lineCode = 1;</code>
|
||||
* @return The lineCode.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public java.lang.String getLineCode() {
|
||||
java.lang.Object ref = lineCode_;
|
||||
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();
|
||||
lineCode_ = s;
|
||||
return s;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
*线路code
|
||||
* </pre>
|
||||
*
|
||||
* <code>string lineCode = 1;</code>
|
||||
* @return The bytes for lineCode.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.ByteString
|
||||
getLineCodeBytes() {
|
||||
java.lang.Object ref = lineCode_;
|
||||
if (ref instanceof java.lang.String) {
|
||||
com.google.protobuf.ByteString b =
|
||||
com.google.protobuf.ByteString.copyFromUtf8(
|
||||
(java.lang.String) ref);
|
||||
lineCode_ = b;
|
||||
return b;
|
||||
} else {
|
||||
return (com.google.protobuf.ByteString) ref;
|
||||
}
|
||||
}
|
||||
|
||||
public static final int SECTIONCODE_FIELD_NUMBER = 2;
|
||||
private volatile java.lang.Object sectionCode_;
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
*路段code
|
||||
* </pre>
|
||||
*
|
||||
* <code>string sectionCode = 2;</code>
|
||||
* @return The sectionCode.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public java.lang.String getSectionCode() {
|
||||
java.lang.Object ref = sectionCode_;
|
||||
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();
|
||||
sectionCode_ = s;
|
||||
return s;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
*路段code
|
||||
* </pre>
|
||||
*
|
||||
* <code>string sectionCode = 2;</code>
|
||||
* @return The bytes for sectionCode.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.ByteString
|
||||
getSectionCodeBytes() {
|
||||
java.lang.Object ref = sectionCode_;
|
||||
if (ref instanceof java.lang.String) {
|
||||
com.google.protobuf.ByteString b =
|
||||
com.google.protobuf.ByteString.copyFromUtf8(
|
||||
(java.lang.String) ref);
|
||||
sectionCode_ = b;
|
||||
return b;
|
||||
} else {
|
||||
return (com.google.protobuf.ByteString) ref;
|
||||
}
|
||||
}
|
||||
|
||||
public static final int VISITORFLOWRATE_FIELD_NUMBER = 3;
|
||||
private int visitorFlowrate_;
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
*人流量
|
||||
* </pre>
|
||||
*
|
||||
* <code>int32 visitorFlowrate = 3;</code>
|
||||
* @return The visitorFlowrate.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getVisitorFlowrate() {
|
||||
return visitorFlowrate_;
|
||||
}
|
||||
|
||||
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lineCode_)) {
|
||||
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, lineCode_);
|
||||
}
|
||||
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sectionCode_)) {
|
||||
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sectionCode_);
|
||||
}
|
||||
if (visitorFlowrate_ != 0) {
|
||||
output.writeInt32(3, visitorFlowrate_);
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lineCode_)) {
|
||||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, lineCode_);
|
||||
}
|
||||
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sectionCode_)) {
|
||||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sectionCode_);
|
||||
}
|
||||
if (visitorFlowrate_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeInt32Size(3, visitorFlowrate_);
|
||||
}
|
||||
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.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.LineStationCrowdedState)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
club.joylink.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.LineStationCrowdedState other = (club.joylink.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.LineStationCrowdedState) obj;
|
||||
|
||||
if (!getLineCode()
|
||||
.equals(other.getLineCode())) return false;
|
||||
if (!getSectionCode()
|
||||
.equals(other.getSectionCode())) return false;
|
||||
if (getVisitorFlowrate()
|
||||
!= other.getVisitorFlowrate()) 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) + LINECODE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getLineCode().hashCode();
|
||||
hash = (37 * hash) + SECTIONCODE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getSectionCode().hashCode();
|
||||
hash = (37 * hash) + VISITORFLOWRATE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getVisitorFlowrate();
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.LineStationCrowdedState parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.LineStationCrowdedState parseFrom(
|
||||
java.nio.ByteBuffer data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.LineStationCrowdedState parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.LineStationCrowdedState 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.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.LineStationCrowdedState parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.LineStationCrowdedState parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.LineStationCrowdedState parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.LineStationCrowdedState 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.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.LineStationCrowdedState parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.LineStationCrowdedState 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.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.LineStationCrowdedState parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.LineStationCrowdedState 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.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.LineStationCrowdedState 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;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 车站拥挤程度
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code proto.LineStationCrowdedState}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:proto.LineStationCrowdedState)
|
||||
club.joylink.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.LineStationCrowdedStateOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return club.joylink.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.internal_static_proto_LineStationCrowdedState_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return club.joylink.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.internal_static_proto_LineStationCrowdedState_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
club.joylink.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.LineStationCrowdedState.class, club.joylink.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.LineStationCrowdedState.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using club.joylink.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.LineStationCrowdedState.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();
|
||||
lineCode_ = "";
|
||||
|
||||
sectionCode_ = "";
|
||||
|
||||
visitorFlowrate_ = 0;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return club.joylink.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.internal_static_proto_LineStationCrowdedState_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public club.joylink.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.LineStationCrowdedState getDefaultInstanceForType() {
|
||||
return club.joylink.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.LineStationCrowdedState.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public club.joylink.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.LineStationCrowdedState build() {
|
||||
club.joylink.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.LineStationCrowdedState result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public club.joylink.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.LineStationCrowdedState buildPartial() {
|
||||
club.joylink.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.LineStationCrowdedState result = new club.joylink.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.LineStationCrowdedState(this);
|
||||
result.lineCode_ = lineCode_;
|
||||
result.sectionCode_ = sectionCode_;
|
||||
result.visitorFlowrate_ = visitorFlowrate_;
|
||||
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.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.LineStationCrowdedState) {
|
||||
return mergeFrom((club.joylink.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.LineStationCrowdedState)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(club.joylink.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.LineStationCrowdedState other) {
|
||||
if (other == club.joylink.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.LineStationCrowdedState.getDefaultInstance()) return this;
|
||||
if (!other.getLineCode().isEmpty()) {
|
||||
lineCode_ = other.lineCode_;
|
||||
onChanged();
|
||||
}
|
||||
if (!other.getSectionCode().isEmpty()) {
|
||||
sectionCode_ = other.sectionCode_;
|
||||
onChanged();
|
||||
}
|
||||
if (other.getVisitorFlowrate() != 0) {
|
||||
setVisitorFlowrate(other.getVisitorFlowrate());
|
||||
}
|
||||
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.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.LineStationCrowdedState parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (club.joylink.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.LineStationCrowdedState) e.getUnfinishedMessage();
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
mergeFrom(parsedMessage);
|
||||
}
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private java.lang.Object lineCode_ = "";
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
*线路code
|
||||
* </pre>
|
||||
*
|
||||
* <code>string lineCode = 1;</code>
|
||||
* @return The lineCode.
|
||||
*/
|
||||
public java.lang.String getLineCode() {
|
||||
java.lang.Object ref = lineCode_;
|
||||
if (!(ref instanceof java.lang.String)) {
|
||||
com.google.protobuf.ByteString bs =
|
||||
(com.google.protobuf.ByteString) ref;
|
||||
java.lang.String s = bs.toStringUtf8();
|
||||
lineCode_ = s;
|
||||
return s;
|
||||
} else {
|
||||
return (java.lang.String) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
*线路code
|
||||
* </pre>
|
||||
*
|
||||
* <code>string lineCode = 1;</code>
|
||||
* @return The bytes for lineCode.
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getLineCodeBytes() {
|
||||
java.lang.Object ref = lineCode_;
|
||||
if (ref instanceof String) {
|
||||
com.google.protobuf.ByteString b =
|
||||
com.google.protobuf.ByteString.copyFromUtf8(
|
||||
(java.lang.String) ref);
|
||||
lineCode_ = b;
|
||||
return b;
|
||||
} else {
|
||||
return (com.google.protobuf.ByteString) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
*线路code
|
||||
* </pre>
|
||||
*
|
||||
* <code>string lineCode = 1;</code>
|
||||
* @param value The lineCode to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setLineCode(
|
||||
java.lang.String value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
||||
lineCode_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
*线路code
|
||||
* </pre>
|
||||
*
|
||||
* <code>string lineCode = 1;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearLineCode() {
|
||||
|
||||
lineCode_ = getDefaultInstance().getLineCode();
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
*线路code
|
||||
* </pre>
|
||||
*
|
||||
* <code>string lineCode = 1;</code>
|
||||
* @param value The bytes for lineCode to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setLineCodeBytes(
|
||||
com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
checkByteStringIsUtf8(value);
|
||||
|
||||
lineCode_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private java.lang.Object sectionCode_ = "";
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
*路段code
|
||||
* </pre>
|
||||
*
|
||||
* <code>string sectionCode = 2;</code>
|
||||
* @return The sectionCode.
|
||||
*/
|
||||
public java.lang.String getSectionCode() {
|
||||
java.lang.Object ref = sectionCode_;
|
||||
if (!(ref instanceof java.lang.String)) {
|
||||
com.google.protobuf.ByteString bs =
|
||||
(com.google.protobuf.ByteString) ref;
|
||||
java.lang.String s = bs.toStringUtf8();
|
||||
sectionCode_ = s;
|
||||
return s;
|
||||
} else {
|
||||
return (java.lang.String) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
*路段code
|
||||
* </pre>
|
||||
*
|
||||
* <code>string sectionCode = 2;</code>
|
||||
* @return The bytes for sectionCode.
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getSectionCodeBytes() {
|
||||
java.lang.Object ref = sectionCode_;
|
||||
if (ref instanceof String) {
|
||||
com.google.protobuf.ByteString b =
|
||||
com.google.protobuf.ByteString.copyFromUtf8(
|
||||
(java.lang.String) ref);
|
||||
sectionCode_ = b;
|
||||
return b;
|
||||
} else {
|
||||
return (com.google.protobuf.ByteString) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
*路段code
|
||||
* </pre>
|
||||
*
|
||||
* <code>string sectionCode = 2;</code>
|
||||
* @param value The sectionCode to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setSectionCode(
|
||||
java.lang.String value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
||||
sectionCode_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
*路段code
|
||||
* </pre>
|
||||
*
|
||||
* <code>string sectionCode = 2;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearSectionCode() {
|
||||
|
||||
sectionCode_ = getDefaultInstance().getSectionCode();
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
*路段code
|
||||
* </pre>
|
||||
*
|
||||
* <code>string sectionCode = 2;</code>
|
||||
* @param value The bytes for sectionCode to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setSectionCodeBytes(
|
||||
com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
checkByteStringIsUtf8(value);
|
||||
|
||||
sectionCode_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int visitorFlowrate_ ;
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
*人流量
|
||||
* </pre>
|
||||
*
|
||||
* <code>int32 visitorFlowrate = 3;</code>
|
||||
* @return The visitorFlowrate.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getVisitorFlowrate() {
|
||||
return visitorFlowrate_;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
*人流量
|
||||
* </pre>
|
||||
*
|
||||
* <code>int32 visitorFlowrate = 3;</code>
|
||||
* @param value The visitorFlowrate to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setVisitorFlowrate(int value) {
|
||||
|
||||
visitorFlowrate_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
*人流量
|
||||
* </pre>
|
||||
*
|
||||
* <code>int32 visitorFlowrate = 3;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearVisitorFlowrate() {
|
||||
|
||||
visitorFlowrate_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.setUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final Builder mergeUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.mergeUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:proto.LineStationCrowdedState)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:proto.LineStationCrowdedState)
|
||||
private static final club.joylink.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.LineStationCrowdedState DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new club.joylink.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.LineStationCrowdedState();
|
||||
}
|
||||
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.LineStationCrowdedState getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<LineStationCrowdedState>
|
||||
PARSER = new com.google.protobuf.AbstractParser<LineStationCrowdedState>() {
|
||||
@java.lang.Override
|
||||
public LineStationCrowdedState parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new LineStationCrowdedState(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<LineStationCrowdedState> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<LineStationCrowdedState> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public club.joylink.rtss.simulation.ncc.proto.module.state.LineStationCrowdedStateProto.LineStationCrowdedState getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_proto_LineStationCrowdedState_descriptor;
|
||||
private static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_proto_LineStationCrowdedState_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#state/LineStationCrowdedState.proto\022\005p" +
|
||||
"roto\"Y\n\027LineStationCrowdedState\022\020\n\010lineC" +
|
||||
"ode\030\001 \001(\t\022\023\n\013sectionCode\030\002 \001(\t\022\027\n\017visito" +
|
||||
"rFlowrate\030\003 \001(\005BS\n3club.joylink.rtss.sim" +
|
||||
"ulation.ncc.proto.module.stateB\034LineStat" +
|
||||
"ionCrowdedStateProtob\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
||||
});
|
||||
internal_static_proto_LineStationCrowdedState_descriptor =
|
||||
getDescriptor().getMessageTypes().get(0);
|
||||
internal_static_proto_LineStationCrowdedState_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_proto_LineStationCrowdedState_descriptor,
|
||||
new java.lang.String[] { "LineCode", "SectionCode", "VisitorFlowrate", });
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
}
|
|
@ -0,0 +1,720 @@
|
|||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: state/road_section_state.proto
|
||||
|
||||
package club.joylink.rtss.simulation.ncc.proto.module.state;
|
||||
|
||||
public final class RoadSectionStateProto {
|
||||
private RoadSectionStateProto() {}
|
||||
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 RoadSectionStateOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:proto.RoadSectionState)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 拥挤程度
|
||||
* </pre>
|
||||
*
|
||||
* <code>.proto.CrowdedDegree crowdedDegree = 1;</code>
|
||||
* @return The enum numeric value on the wire for crowdedDegree.
|
||||
*/
|
||||
int getCrowdedDegreeValue();
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 拥挤程度
|
||||
* </pre>
|
||||
*
|
||||
* <code>.proto.CrowdedDegree crowdedDegree = 1;</code>
|
||||
* @return The crowdedDegree.
|
||||
*/
|
||||
club.joylink.rtss.simulation.ncc.proto.module.constants.CrowdedDegreeProto.CrowdedDegree getCrowdedDegree();
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 拥挤指数
|
||||
* </pre>
|
||||
*
|
||||
* <code>float crowedIndex = 2;</code>
|
||||
* @return The crowedIndex.
|
||||
*/
|
||||
float getCrowedIndex();
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code proto.RoadSectionState}
|
||||
*/
|
||||
public static final class RoadSectionState extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:proto.RoadSectionState)
|
||||
RoadSectionStateOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use RoadSectionState.newBuilder() to construct.
|
||||
private RoadSectionState(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private RoadSectionState() {
|
||||
crowdedDegree_ = 0;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new RoadSectionState();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
private RoadSectionState(
|
||||
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: {
|
||||
int rawValue = input.readEnum();
|
||||
|
||||
crowdedDegree_ = rawValue;
|
||||
break;
|
||||
}
|
||||
case 21: {
|
||||
|
||||
crowedIndex_ = input.readFloat();
|
||||
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.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.internal_static_proto_RoadSectionState_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return club.joylink.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.internal_static_proto_RoadSectionState_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
club.joylink.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.RoadSectionState.class, club.joylink.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.RoadSectionState.Builder.class);
|
||||
}
|
||||
|
||||
public static final int CROWDEDDEGREE_FIELD_NUMBER = 1;
|
||||
private int crowdedDegree_;
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 拥挤程度
|
||||
* </pre>
|
||||
*
|
||||
* <code>.proto.CrowdedDegree crowdedDegree = 1;</code>
|
||||
* @return The enum numeric value on the wire for crowdedDegree.
|
||||
*/
|
||||
@java.lang.Override public int getCrowdedDegreeValue() {
|
||||
return crowdedDegree_;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 拥挤程度
|
||||
* </pre>
|
||||
*
|
||||
* <code>.proto.CrowdedDegree crowdedDegree = 1;</code>
|
||||
* @return The crowdedDegree.
|
||||
*/
|
||||
@java.lang.Override public club.joylink.rtss.simulation.ncc.proto.module.constants.CrowdedDegreeProto.CrowdedDegree getCrowdedDegree() {
|
||||
@SuppressWarnings("deprecation")
|
||||
club.joylink.rtss.simulation.ncc.proto.module.constants.CrowdedDegreeProto.CrowdedDegree result = club.joylink.rtss.simulation.ncc.proto.module.constants.CrowdedDegreeProto.CrowdedDegree.valueOf(crowdedDegree_);
|
||||
return result == null ? club.joylink.rtss.simulation.ncc.proto.module.constants.CrowdedDegreeProto.CrowdedDegree.UNRECOGNIZED : result;
|
||||
}
|
||||
|
||||
public static final int CROWEDINDEX_FIELD_NUMBER = 2;
|
||||
private float crowedIndex_;
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 拥挤指数
|
||||
* </pre>
|
||||
*
|
||||
* <code>float crowedIndex = 2;</code>
|
||||
* @return The crowedIndex.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public float getCrowedIndex() {
|
||||
return crowedIndex_;
|
||||
}
|
||||
|
||||
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 (crowdedDegree_ != club.joylink.rtss.simulation.ncc.proto.module.constants.CrowdedDegreeProto.CrowdedDegree.HEAVY_CROWDED.getNumber()) {
|
||||
output.writeEnum(1, crowdedDegree_);
|
||||
}
|
||||
if (java.lang.Float.floatToRawIntBits(crowedIndex_) != 0) {
|
||||
output.writeFloat(2, crowedIndex_);
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (crowdedDegree_ != club.joylink.rtss.simulation.ncc.proto.module.constants.CrowdedDegreeProto.CrowdedDegree.HEAVY_CROWDED.getNumber()) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeEnumSize(1, crowdedDegree_);
|
||||
}
|
||||
if (java.lang.Float.floatToRawIntBits(crowedIndex_) != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeFloatSize(2, crowedIndex_);
|
||||
}
|
||||
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.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.RoadSectionState)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
club.joylink.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.RoadSectionState other = (club.joylink.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.RoadSectionState) obj;
|
||||
|
||||
if (crowdedDegree_ != other.crowdedDegree_) return false;
|
||||
if (java.lang.Float.floatToIntBits(getCrowedIndex())
|
||||
!= java.lang.Float.floatToIntBits(
|
||||
other.getCrowedIndex())) 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) + CROWDEDDEGREE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + crowdedDegree_;
|
||||
hash = (37 * hash) + CROWEDINDEX_FIELD_NUMBER;
|
||||
hash = (53 * hash) + java.lang.Float.floatToIntBits(
|
||||
getCrowedIndex());
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.RoadSectionState parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.RoadSectionState parseFrom(
|
||||
java.nio.ByteBuffer data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.RoadSectionState parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.RoadSectionState 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.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.RoadSectionState parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.RoadSectionState parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.RoadSectionState parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.RoadSectionState 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.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.RoadSectionState parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.RoadSectionState 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.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.RoadSectionState parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.RoadSectionState 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.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.RoadSectionState 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 proto.RoadSectionState}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:proto.RoadSectionState)
|
||||
club.joylink.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.RoadSectionStateOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return club.joylink.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.internal_static_proto_RoadSectionState_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return club.joylink.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.internal_static_proto_RoadSectionState_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
club.joylink.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.RoadSectionState.class, club.joylink.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.RoadSectionState.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using club.joylink.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.RoadSectionState.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();
|
||||
crowdedDegree_ = 0;
|
||||
|
||||
crowedIndex_ = 0F;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return club.joylink.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.internal_static_proto_RoadSectionState_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public club.joylink.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.RoadSectionState getDefaultInstanceForType() {
|
||||
return club.joylink.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.RoadSectionState.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public club.joylink.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.RoadSectionState build() {
|
||||
club.joylink.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.RoadSectionState result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public club.joylink.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.RoadSectionState buildPartial() {
|
||||
club.joylink.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.RoadSectionState result = new club.joylink.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.RoadSectionState(this);
|
||||
result.crowdedDegree_ = crowdedDegree_;
|
||||
result.crowedIndex_ = crowedIndex_;
|
||||
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.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.RoadSectionState) {
|
||||
return mergeFrom((club.joylink.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.RoadSectionState)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(club.joylink.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.RoadSectionState other) {
|
||||
if (other == club.joylink.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.RoadSectionState.getDefaultInstance()) return this;
|
||||
if (other.crowdedDegree_ != 0) {
|
||||
setCrowdedDegreeValue(other.getCrowdedDegreeValue());
|
||||
}
|
||||
if (other.getCrowedIndex() != 0F) {
|
||||
setCrowedIndex(other.getCrowedIndex());
|
||||
}
|
||||
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.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.RoadSectionState parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (club.joylink.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.RoadSectionState) e.getUnfinishedMessage();
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
mergeFrom(parsedMessage);
|
||||
}
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private int crowdedDegree_ = 0;
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 拥挤程度
|
||||
* </pre>
|
||||
*
|
||||
* <code>.proto.CrowdedDegree crowdedDegree = 1;</code>
|
||||
* @return The enum numeric value on the wire for crowdedDegree.
|
||||
*/
|
||||
@java.lang.Override public int getCrowdedDegreeValue() {
|
||||
return crowdedDegree_;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 拥挤程度
|
||||
* </pre>
|
||||
*
|
||||
* <code>.proto.CrowdedDegree crowdedDegree = 1;</code>
|
||||
* @param value The enum numeric value on the wire for crowdedDegree to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setCrowdedDegreeValue(int value) {
|
||||
|
||||
crowdedDegree_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 拥挤程度
|
||||
* </pre>
|
||||
*
|
||||
* <code>.proto.CrowdedDegree crowdedDegree = 1;</code>
|
||||
* @return The crowdedDegree.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public club.joylink.rtss.simulation.ncc.proto.module.constants.CrowdedDegreeProto.CrowdedDegree getCrowdedDegree() {
|
||||
@SuppressWarnings("deprecation")
|
||||
club.joylink.rtss.simulation.ncc.proto.module.constants.CrowdedDegreeProto.CrowdedDegree result = club.joylink.rtss.simulation.ncc.proto.module.constants.CrowdedDegreeProto.CrowdedDegree.valueOf(crowdedDegree_);
|
||||
return result == null ? club.joylink.rtss.simulation.ncc.proto.module.constants.CrowdedDegreeProto.CrowdedDegree.UNRECOGNIZED : result;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 拥挤程度
|
||||
* </pre>
|
||||
*
|
||||
* <code>.proto.CrowdedDegree crowdedDegree = 1;</code>
|
||||
* @param value The crowdedDegree to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setCrowdedDegree(club.joylink.rtss.simulation.ncc.proto.module.constants.CrowdedDegreeProto.CrowdedDegree value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
||||
crowdedDegree_ = value.getNumber();
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 拥挤程度
|
||||
* </pre>
|
||||
*
|
||||
* <code>.proto.CrowdedDegree crowdedDegree = 1;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearCrowdedDegree() {
|
||||
|
||||
crowdedDegree_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private float crowedIndex_ ;
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 拥挤指数
|
||||
* </pre>
|
||||
*
|
||||
* <code>float crowedIndex = 2;</code>
|
||||
* @return The crowedIndex.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public float getCrowedIndex() {
|
||||
return crowedIndex_;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 拥挤指数
|
||||
* </pre>
|
||||
*
|
||||
* <code>float crowedIndex = 2;</code>
|
||||
* @param value The crowedIndex to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setCrowedIndex(float value) {
|
||||
|
||||
crowedIndex_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 拥挤指数
|
||||
* </pre>
|
||||
*
|
||||
* <code>float crowedIndex = 2;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearCrowedIndex() {
|
||||
|
||||
crowedIndex_ = 0F;
|
||||
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:proto.RoadSectionState)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:proto.RoadSectionState)
|
||||
private static final club.joylink.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.RoadSectionState DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new club.joylink.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.RoadSectionState();
|
||||
}
|
||||
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.RoadSectionState getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<RoadSectionState>
|
||||
PARSER = new com.google.protobuf.AbstractParser<RoadSectionState>() {
|
||||
@java.lang.Override
|
||||
public RoadSectionState parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new RoadSectionState(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<RoadSectionState> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<RoadSectionState> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public club.joylink.rtss.simulation.ncc.proto.module.state.RoadSectionStateProto.RoadSectionState getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_proto_RoadSectionState_descriptor;
|
||||
private static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_proto_RoadSectionState_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\036state/road_section_state.proto\022\005proto\032" +
|
||||
"\031enum/crowded_degree.proto\"T\n\020RoadSectio" +
|
||||
"nState\022+\n\rcrowdedDegree\030\001 \001(\0162\024.proto.Cr" +
|
||||
"owdedDegree\022\023\n\013crowedIndex\030\002 \001(\002BL\n3club" +
|
||||
".joylink.rtss.simulation.ncc.proto.modul" +
|
||||
"e.stateB\025RoadSectionStateProtob\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
||||
club.joylink.rtss.simulation.ncc.proto.module.constants.CrowdedDegreeProto.getDescriptor(),
|
||||
});
|
||||
internal_static_proto_RoadSectionState_descriptor =
|
||||
getDescriptor().getMessageTypes().get(0);
|
||||
internal_static_proto_RoadSectionState_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_proto_RoadSectionState_descriptor,
|
||||
new java.lang.String[] { "CrowdedDegree", "CrowedIndex", });
|
||||
club.joylink.rtss.simulation.ncc.proto.module.constants.CrowdedDegreeProto.getDescriptor();
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
}
|
|
@ -0,0 +1,874 @@
|
|||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: state/section_state.proto
|
||||
|
||||
package club.joylink.rtss.simulation.ncc.proto.module.state;
|
||||
|
||||
public final class SectionStateProto {
|
||||
private SectionStateProto() {}
|
||||
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 SectionStateOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:proto.SectionState)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 占用
|
||||
* </pre>
|
||||
*
|
||||
* <code>bool occupy = 1;</code>
|
||||
* @return The occupy.
|
||||
*/
|
||||
boolean getOccupy();
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 故障状态
|
||||
* </pre>
|
||||
*
|
||||
* <code>.proto.Fault fault = 2;</code>
|
||||
* @return The enum numeric value on the wire for fault.
|
||||
*/
|
||||
int getFaultValue();
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 故障状态
|
||||
* </pre>
|
||||
*
|
||||
* <code>.proto.Fault fault = 2;</code>
|
||||
* @return The fault.
|
||||
*/
|
||||
club.joylink.rtss.simulation.ncc.proto.module.constants.FaultProto.Fault getFault();
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 运行方向
|
||||
* </pre>
|
||||
*
|
||||
* <code>.proto.UpDownWay direction = 3;</code>
|
||||
* @return The enum numeric value on the wire for direction.
|
||||
*/
|
||||
int getDirectionValue();
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 运行方向
|
||||
* </pre>
|
||||
*
|
||||
* <code>.proto.UpDownWay direction = 3;</code>
|
||||
* @return The direction.
|
||||
*/
|
||||
club.joylink.rtss.simulation.ncc.proto.module.constants.UpDownWayProto.UpDownWay getDirection();
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code proto.SectionState}
|
||||
*/
|
||||
public static final class SectionState extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:proto.SectionState)
|
||||
SectionStateOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use SectionState.newBuilder() to construct.
|
||||
private SectionState(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private SectionState() {
|
||||
fault_ = 0;
|
||||
direction_ = 0;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new SectionState();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
private SectionState(
|
||||
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: {
|
||||
|
||||
occupy_ = input.readBool();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
int rawValue = input.readEnum();
|
||||
|
||||
fault_ = rawValue;
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
int rawValue = input.readEnum();
|
||||
|
||||
direction_ = rawValue;
|
||||
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.rtss.simulation.ncc.proto.module.state.SectionStateProto.internal_static_proto_SectionState_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return club.joylink.rtss.simulation.ncc.proto.module.state.SectionStateProto.internal_static_proto_SectionState_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
club.joylink.rtss.simulation.ncc.proto.module.state.SectionStateProto.SectionState.class, club.joylink.rtss.simulation.ncc.proto.module.state.SectionStateProto.SectionState.Builder.class);
|
||||
}
|
||||
|
||||
public static final int OCCUPY_FIELD_NUMBER = 1;
|
||||
private boolean occupy_;
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 占用
|
||||
* </pre>
|
||||
*
|
||||
* <code>bool occupy = 1;</code>
|
||||
* @return The occupy.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean getOccupy() {
|
||||
return occupy_;
|
||||
}
|
||||
|
||||
public static final int FAULT_FIELD_NUMBER = 2;
|
||||
private int fault_;
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 故障状态
|
||||
* </pre>
|
||||
*
|
||||
* <code>.proto.Fault fault = 2;</code>
|
||||
* @return The enum numeric value on the wire for fault.
|
||||
*/
|
||||
@java.lang.Override public int getFaultValue() {
|
||||
return fault_;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 故障状态
|
||||
* </pre>
|
||||
*
|
||||
* <code>.proto.Fault fault = 2;</code>
|
||||
* @return The fault.
|
||||
*/
|
||||
@java.lang.Override public club.joylink.rtss.simulation.ncc.proto.module.constants.FaultProto.Fault getFault() {
|
||||
@SuppressWarnings("deprecation")
|
||||
club.joylink.rtss.simulation.ncc.proto.module.constants.FaultProto.Fault result = club.joylink.rtss.simulation.ncc.proto.module.constants.FaultProto.Fault.valueOf(fault_);
|
||||
return result == null ? club.joylink.rtss.simulation.ncc.proto.module.constants.FaultProto.Fault.UNRECOGNIZED : result;
|
||||
}
|
||||
|
||||
public static final int DIRECTION_FIELD_NUMBER = 3;
|
||||
private int direction_;
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 运行方向
|
||||
* </pre>
|
||||
*
|
||||
* <code>.proto.UpDownWay direction = 3;</code>
|
||||
* @return The enum numeric value on the wire for direction.
|
||||
*/
|
||||
@java.lang.Override public int getDirectionValue() {
|
||||
return direction_;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 运行方向
|
||||
* </pre>
|
||||
*
|
||||
* <code>.proto.UpDownWay direction = 3;</code>
|
||||
* @return The direction.
|
||||
*/
|
||||
@java.lang.Override public club.joylink.rtss.simulation.ncc.proto.module.constants.UpDownWayProto.UpDownWay getDirection() {
|
||||
@SuppressWarnings("deprecation")
|
||||
club.joylink.rtss.simulation.ncc.proto.module.constants.UpDownWayProto.UpDownWay result = club.joylink.rtss.simulation.ncc.proto.module.constants.UpDownWayProto.UpDownWay.valueOf(direction_);
|
||||
return result == null ? club.joylink.rtss.simulation.ncc.proto.module.constants.UpDownWayProto.UpDownWay.UNRECOGNIZED : result;
|
||||
}
|
||||
|
||||
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 (occupy_ != false) {
|
||||
output.writeBool(1, occupy_);
|
||||
}
|
||||
if (fault_ != club.joylink.rtss.simulation.ncc.proto.module.constants.FaultProto.Fault.NONE.getNumber()) {
|
||||
output.writeEnum(2, fault_);
|
||||
}
|
||||
if (direction_ != club.joylink.rtss.simulation.ncc.proto.module.constants.UpDownWayProto.UpDownWay.UP_WAY.getNumber()) {
|
||||
output.writeEnum(3, direction_);
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (occupy_ != false) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeBoolSize(1, occupy_);
|
||||
}
|
||||
if (fault_ != club.joylink.rtss.simulation.ncc.proto.module.constants.FaultProto.Fault.NONE.getNumber()) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeEnumSize(2, fault_);
|
||||
}
|
||||
if (direction_ != club.joylink.rtss.simulation.ncc.proto.module.constants.UpDownWayProto.UpDownWay.UP_WAY.getNumber()) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeEnumSize(3, direction_);
|
||||
}
|
||||
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.rtss.simulation.ncc.proto.module.state.SectionStateProto.SectionState)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
club.joylink.rtss.simulation.ncc.proto.module.state.SectionStateProto.SectionState other = (club.joylink.rtss.simulation.ncc.proto.module.state.SectionStateProto.SectionState) obj;
|
||||
|
||||
if (getOccupy()
|
||||
!= other.getOccupy()) return false;
|
||||
if (fault_ != other.fault_) return false;
|
||||
if (direction_ != other.direction_) 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) + OCCUPY_FIELD_NUMBER;
|
||||
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
|
||||
getOccupy());
|
||||
hash = (37 * hash) + FAULT_FIELD_NUMBER;
|
||||
hash = (53 * hash) + fault_;
|
||||
hash = (37 * hash) + DIRECTION_FIELD_NUMBER;
|
||||
hash = (53 * hash) + direction_;
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.state.SectionStateProto.SectionState parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.state.SectionStateProto.SectionState parseFrom(
|
||||
java.nio.ByteBuffer data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.state.SectionStateProto.SectionState parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.state.SectionStateProto.SectionState 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.rtss.simulation.ncc.proto.module.state.SectionStateProto.SectionState parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.state.SectionStateProto.SectionState parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.state.SectionStateProto.SectionState parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.state.SectionStateProto.SectionState 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.rtss.simulation.ncc.proto.module.state.SectionStateProto.SectionState parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.state.SectionStateProto.SectionState 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.rtss.simulation.ncc.proto.module.state.SectionStateProto.SectionState parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.state.SectionStateProto.SectionState 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.rtss.simulation.ncc.proto.module.state.SectionStateProto.SectionState 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 proto.SectionState}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:proto.SectionState)
|
||||
club.joylink.rtss.simulation.ncc.proto.module.state.SectionStateProto.SectionStateOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return club.joylink.rtss.simulation.ncc.proto.module.state.SectionStateProto.internal_static_proto_SectionState_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return club.joylink.rtss.simulation.ncc.proto.module.state.SectionStateProto.internal_static_proto_SectionState_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
club.joylink.rtss.simulation.ncc.proto.module.state.SectionStateProto.SectionState.class, club.joylink.rtss.simulation.ncc.proto.module.state.SectionStateProto.SectionState.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using club.joylink.rtss.simulation.ncc.proto.module.state.SectionStateProto.SectionState.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();
|
||||
occupy_ = false;
|
||||
|
||||
fault_ = 0;
|
||||
|
||||
direction_ = 0;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return club.joylink.rtss.simulation.ncc.proto.module.state.SectionStateProto.internal_static_proto_SectionState_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public club.joylink.rtss.simulation.ncc.proto.module.state.SectionStateProto.SectionState getDefaultInstanceForType() {
|
||||
return club.joylink.rtss.simulation.ncc.proto.module.state.SectionStateProto.SectionState.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public club.joylink.rtss.simulation.ncc.proto.module.state.SectionStateProto.SectionState build() {
|
||||
club.joylink.rtss.simulation.ncc.proto.module.state.SectionStateProto.SectionState result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public club.joylink.rtss.simulation.ncc.proto.module.state.SectionStateProto.SectionState buildPartial() {
|
||||
club.joylink.rtss.simulation.ncc.proto.module.state.SectionStateProto.SectionState result = new club.joylink.rtss.simulation.ncc.proto.module.state.SectionStateProto.SectionState(this);
|
||||
result.occupy_ = occupy_;
|
||||
result.fault_ = fault_;
|
||||
result.direction_ = direction_;
|
||||
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.rtss.simulation.ncc.proto.module.state.SectionStateProto.SectionState) {
|
||||
return mergeFrom((club.joylink.rtss.simulation.ncc.proto.module.state.SectionStateProto.SectionState)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(club.joylink.rtss.simulation.ncc.proto.module.state.SectionStateProto.SectionState other) {
|
||||
if (other == club.joylink.rtss.simulation.ncc.proto.module.state.SectionStateProto.SectionState.getDefaultInstance()) return this;
|
||||
if (other.getOccupy() != false) {
|
||||
setOccupy(other.getOccupy());
|
||||
}
|
||||
if (other.fault_ != 0) {
|
||||
setFaultValue(other.getFaultValue());
|
||||
}
|
||||
if (other.direction_ != 0) {
|
||||
setDirectionValue(other.getDirectionValue());
|
||||
}
|
||||
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.rtss.simulation.ncc.proto.module.state.SectionStateProto.SectionState parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (club.joylink.rtss.simulation.ncc.proto.module.state.SectionStateProto.SectionState) e.getUnfinishedMessage();
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
mergeFrom(parsedMessage);
|
||||
}
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private boolean occupy_ ;
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 占用
|
||||
* </pre>
|
||||
*
|
||||
* <code>bool occupy = 1;</code>
|
||||
* @return The occupy.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean getOccupy() {
|
||||
return occupy_;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 占用
|
||||
* </pre>
|
||||
*
|
||||
* <code>bool occupy = 1;</code>
|
||||
* @param value The occupy to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setOccupy(boolean value) {
|
||||
|
||||
occupy_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 占用
|
||||
* </pre>
|
||||
*
|
||||
* <code>bool occupy = 1;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearOccupy() {
|
||||
|
||||
occupy_ = false;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int fault_ = 0;
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 故障状态
|
||||
* </pre>
|
||||
*
|
||||
* <code>.proto.Fault fault = 2;</code>
|
||||
* @return The enum numeric value on the wire for fault.
|
||||
*/
|
||||
@java.lang.Override public int getFaultValue() {
|
||||
return fault_;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 故障状态
|
||||
* </pre>
|
||||
*
|
||||
* <code>.proto.Fault fault = 2;</code>
|
||||
* @param value The enum numeric value on the wire for fault to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setFaultValue(int value) {
|
||||
|
||||
fault_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 故障状态
|
||||
* </pre>
|
||||
*
|
||||
* <code>.proto.Fault fault = 2;</code>
|
||||
* @return The fault.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public club.joylink.rtss.simulation.ncc.proto.module.constants.FaultProto.Fault getFault() {
|
||||
@SuppressWarnings("deprecation")
|
||||
club.joylink.rtss.simulation.ncc.proto.module.constants.FaultProto.Fault result = club.joylink.rtss.simulation.ncc.proto.module.constants.FaultProto.Fault.valueOf(fault_);
|
||||
return result == null ? club.joylink.rtss.simulation.ncc.proto.module.constants.FaultProto.Fault.UNRECOGNIZED : result;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 故障状态
|
||||
* </pre>
|
||||
*
|
||||
* <code>.proto.Fault fault = 2;</code>
|
||||
* @param value The fault to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setFault(club.joylink.rtss.simulation.ncc.proto.module.constants.FaultProto.Fault value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
||||
fault_ = value.getNumber();
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 故障状态
|
||||
* </pre>
|
||||
*
|
||||
* <code>.proto.Fault fault = 2;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearFault() {
|
||||
|
||||
fault_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int direction_ = 0;
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 运行方向
|
||||
* </pre>
|
||||
*
|
||||
* <code>.proto.UpDownWay direction = 3;</code>
|
||||
* @return The enum numeric value on the wire for direction.
|
||||
*/
|
||||
@java.lang.Override public int getDirectionValue() {
|
||||
return direction_;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 运行方向
|
||||
* </pre>
|
||||
*
|
||||
* <code>.proto.UpDownWay direction = 3;</code>
|
||||
* @param value The enum numeric value on the wire for direction to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setDirectionValue(int value) {
|
||||
|
||||
direction_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 运行方向
|
||||
* </pre>
|
||||
*
|
||||
* <code>.proto.UpDownWay direction = 3;</code>
|
||||
* @return The direction.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public club.joylink.rtss.simulation.ncc.proto.module.constants.UpDownWayProto.UpDownWay getDirection() {
|
||||
@SuppressWarnings("deprecation")
|
||||
club.joylink.rtss.simulation.ncc.proto.module.constants.UpDownWayProto.UpDownWay result = club.joylink.rtss.simulation.ncc.proto.module.constants.UpDownWayProto.UpDownWay.valueOf(direction_);
|
||||
return result == null ? club.joylink.rtss.simulation.ncc.proto.module.constants.UpDownWayProto.UpDownWay.UNRECOGNIZED : result;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 运行方向
|
||||
* </pre>
|
||||
*
|
||||
* <code>.proto.UpDownWay direction = 3;</code>
|
||||
* @param value The direction to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setDirection(club.joylink.rtss.simulation.ncc.proto.module.constants.UpDownWayProto.UpDownWay value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
||||
direction_ = value.getNumber();
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 运行方向
|
||||
* </pre>
|
||||
*
|
||||
* <code>.proto.UpDownWay direction = 3;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearDirection() {
|
||||
|
||||
direction_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.setUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final Builder mergeUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.mergeUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:proto.SectionState)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:proto.SectionState)
|
||||
private static final club.joylink.rtss.simulation.ncc.proto.module.state.SectionStateProto.SectionState DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new club.joylink.rtss.simulation.ncc.proto.module.state.SectionStateProto.SectionState();
|
||||
}
|
||||
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.state.SectionStateProto.SectionState getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<SectionState>
|
||||
PARSER = new com.google.protobuf.AbstractParser<SectionState>() {
|
||||
@java.lang.Override
|
||||
public SectionState parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new SectionState(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<SectionState> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<SectionState> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public club.joylink.rtss.simulation.ncc.proto.module.state.SectionStateProto.SectionState getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_proto_SectionState_descriptor;
|
||||
private static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_proto_SectionState_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\031state/section_state.proto\022\005proto\032\020enum" +
|
||||
"/fault.proto\032\026enum/up_down_way.proto\"`\n\014" +
|
||||
"SectionState\022\016\n\006occupy\030\001 \001(\010\022\033\n\005fault\030\002 " +
|
||||
"\001(\0162\014.proto.Fault\022#\n\tdirection\030\003 \001(\0162\020.p" +
|
||||
"roto.UpDownWayBH\n3club.joylink.rtss.simu" +
|
||||
"lation.ncc.proto.module.stateB\021SectionSt" +
|
||||
"ateProtob\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
||||
club.joylink.rtss.simulation.ncc.proto.module.constants.FaultProto.getDescriptor(),
|
||||
club.joylink.rtss.simulation.ncc.proto.module.constants.UpDownWayProto.getDescriptor(),
|
||||
});
|
||||
internal_static_proto_SectionState_descriptor =
|
||||
getDescriptor().getMessageTypes().get(0);
|
||||
internal_static_proto_SectionState_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_proto_SectionState_descriptor,
|
||||
new java.lang.String[] { "Occupy", "Fault", "Direction", });
|
||||
club.joylink.rtss.simulation.ncc.proto.module.constants.FaultProto.getDescriptor();
|
||||
club.joylink.rtss.simulation.ncc.proto.module.constants.UpDownWayProto.getDescriptor();
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
}
|
|
@ -0,0 +1,623 @@
|
|||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: state/station_state.proto
|
||||
|
||||
package club.joylink.rtss.simulation.ncc.proto.module.state;
|
||||
|
||||
public final class StationStateProto {
|
||||
private StationStateProto() {}
|
||||
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 StationStateOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:proto.StationState)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 大客流等级
|
||||
* </pre>
|
||||
*
|
||||
* <code>.proto.PassengerFlowLevel flowLevel = 1;</code>
|
||||
* @return The enum numeric value on the wire for flowLevel.
|
||||
*/
|
||||
int getFlowLevelValue();
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 大客流等级
|
||||
* </pre>
|
||||
*
|
||||
* <code>.proto.PassengerFlowLevel flowLevel = 1;</code>
|
||||
* @return The flowLevel.
|
||||
*/
|
||||
club.joylink.rtss.simulation.ncc.proto.module.constants.PassengerFlowLevelProto.PassengerFlowLevel getFlowLevel();
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code proto.StationState}
|
||||
*/
|
||||
public static final class StationState extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:proto.StationState)
|
||||
StationStateOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use StationState.newBuilder() to construct.
|
||||
private StationState(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private StationState() {
|
||||
flowLevel_ = 0;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new StationState();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
private StationState(
|
||||
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: {
|
||||
int rawValue = input.readEnum();
|
||||
|
||||
flowLevel_ = rawValue;
|
||||
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.rtss.simulation.ncc.proto.module.state.StationStateProto.internal_static_proto_StationState_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return club.joylink.rtss.simulation.ncc.proto.module.state.StationStateProto.internal_static_proto_StationState_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
club.joylink.rtss.simulation.ncc.proto.module.state.StationStateProto.StationState.class, club.joylink.rtss.simulation.ncc.proto.module.state.StationStateProto.StationState.Builder.class);
|
||||
}
|
||||
|
||||
public static final int FLOWLEVEL_FIELD_NUMBER = 1;
|
||||
private int flowLevel_;
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 大客流等级
|
||||
* </pre>
|
||||
*
|
||||
* <code>.proto.PassengerFlowLevel flowLevel = 1;</code>
|
||||
* @return The enum numeric value on the wire for flowLevel.
|
||||
*/
|
||||
@java.lang.Override public int getFlowLevelValue() {
|
||||
return flowLevel_;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 大客流等级
|
||||
* </pre>
|
||||
*
|
||||
* <code>.proto.PassengerFlowLevel flowLevel = 1;</code>
|
||||
* @return The flowLevel.
|
||||
*/
|
||||
@java.lang.Override public club.joylink.rtss.simulation.ncc.proto.module.constants.PassengerFlowLevelProto.PassengerFlowLevel getFlowLevel() {
|
||||
@SuppressWarnings("deprecation")
|
||||
club.joylink.rtss.simulation.ncc.proto.module.constants.PassengerFlowLevelProto.PassengerFlowLevel result = club.joylink.rtss.simulation.ncc.proto.module.constants.PassengerFlowLevelProto.PassengerFlowLevel.valueOf(flowLevel_);
|
||||
return result == null ? club.joylink.rtss.simulation.ncc.proto.module.constants.PassengerFlowLevelProto.PassengerFlowLevel.UNRECOGNIZED : result;
|
||||
}
|
||||
|
||||
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 (flowLevel_ != club.joylink.rtss.simulation.ncc.proto.module.constants.PassengerFlowLevelProto.PassengerFlowLevel.CLOSE.getNumber()) {
|
||||
output.writeEnum(1, flowLevel_);
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (flowLevel_ != club.joylink.rtss.simulation.ncc.proto.module.constants.PassengerFlowLevelProto.PassengerFlowLevel.CLOSE.getNumber()) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeEnumSize(1, flowLevel_);
|
||||
}
|
||||
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.rtss.simulation.ncc.proto.module.state.StationStateProto.StationState)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
club.joylink.rtss.simulation.ncc.proto.module.state.StationStateProto.StationState other = (club.joylink.rtss.simulation.ncc.proto.module.state.StationStateProto.StationState) obj;
|
||||
|
||||
if (flowLevel_ != other.flowLevel_) 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) + FLOWLEVEL_FIELD_NUMBER;
|
||||
hash = (53 * hash) + flowLevel_;
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.state.StationStateProto.StationState parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.state.StationStateProto.StationState parseFrom(
|
||||
java.nio.ByteBuffer data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.state.StationStateProto.StationState parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.state.StationStateProto.StationState 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.rtss.simulation.ncc.proto.module.state.StationStateProto.StationState parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.state.StationStateProto.StationState parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.state.StationStateProto.StationState parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.state.StationStateProto.StationState 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.rtss.simulation.ncc.proto.module.state.StationStateProto.StationState parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.state.StationStateProto.StationState 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.rtss.simulation.ncc.proto.module.state.StationStateProto.StationState parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.state.StationStateProto.StationState 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.rtss.simulation.ncc.proto.module.state.StationStateProto.StationState 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 proto.StationState}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:proto.StationState)
|
||||
club.joylink.rtss.simulation.ncc.proto.module.state.StationStateProto.StationStateOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return club.joylink.rtss.simulation.ncc.proto.module.state.StationStateProto.internal_static_proto_StationState_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return club.joylink.rtss.simulation.ncc.proto.module.state.StationStateProto.internal_static_proto_StationState_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
club.joylink.rtss.simulation.ncc.proto.module.state.StationStateProto.StationState.class, club.joylink.rtss.simulation.ncc.proto.module.state.StationStateProto.StationState.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using club.joylink.rtss.simulation.ncc.proto.module.state.StationStateProto.StationState.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();
|
||||
flowLevel_ = 0;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return club.joylink.rtss.simulation.ncc.proto.module.state.StationStateProto.internal_static_proto_StationState_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public club.joylink.rtss.simulation.ncc.proto.module.state.StationStateProto.StationState getDefaultInstanceForType() {
|
||||
return club.joylink.rtss.simulation.ncc.proto.module.state.StationStateProto.StationState.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public club.joylink.rtss.simulation.ncc.proto.module.state.StationStateProto.StationState build() {
|
||||
club.joylink.rtss.simulation.ncc.proto.module.state.StationStateProto.StationState result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public club.joylink.rtss.simulation.ncc.proto.module.state.StationStateProto.StationState buildPartial() {
|
||||
club.joylink.rtss.simulation.ncc.proto.module.state.StationStateProto.StationState result = new club.joylink.rtss.simulation.ncc.proto.module.state.StationStateProto.StationState(this);
|
||||
result.flowLevel_ = flowLevel_;
|
||||
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.rtss.simulation.ncc.proto.module.state.StationStateProto.StationState) {
|
||||
return mergeFrom((club.joylink.rtss.simulation.ncc.proto.module.state.StationStateProto.StationState)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(club.joylink.rtss.simulation.ncc.proto.module.state.StationStateProto.StationState other) {
|
||||
if (other == club.joylink.rtss.simulation.ncc.proto.module.state.StationStateProto.StationState.getDefaultInstance()) return this;
|
||||
if (other.flowLevel_ != 0) {
|
||||
setFlowLevelValue(other.getFlowLevelValue());
|
||||
}
|
||||
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.rtss.simulation.ncc.proto.module.state.StationStateProto.StationState parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (club.joylink.rtss.simulation.ncc.proto.module.state.StationStateProto.StationState) e.getUnfinishedMessage();
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
mergeFrom(parsedMessage);
|
||||
}
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private int flowLevel_ = 0;
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 大客流等级
|
||||
* </pre>
|
||||
*
|
||||
* <code>.proto.PassengerFlowLevel flowLevel = 1;</code>
|
||||
* @return The enum numeric value on the wire for flowLevel.
|
||||
*/
|
||||
@java.lang.Override public int getFlowLevelValue() {
|
||||
return flowLevel_;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 大客流等级
|
||||
* </pre>
|
||||
*
|
||||
* <code>.proto.PassengerFlowLevel flowLevel = 1;</code>
|
||||
* @param value The enum numeric value on the wire for flowLevel to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setFlowLevelValue(int value) {
|
||||
|
||||
flowLevel_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 大客流等级
|
||||
* </pre>
|
||||
*
|
||||
* <code>.proto.PassengerFlowLevel flowLevel = 1;</code>
|
||||
* @return The flowLevel.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public club.joylink.rtss.simulation.ncc.proto.module.constants.PassengerFlowLevelProto.PassengerFlowLevel getFlowLevel() {
|
||||
@SuppressWarnings("deprecation")
|
||||
club.joylink.rtss.simulation.ncc.proto.module.constants.PassengerFlowLevelProto.PassengerFlowLevel result = club.joylink.rtss.simulation.ncc.proto.module.constants.PassengerFlowLevelProto.PassengerFlowLevel.valueOf(flowLevel_);
|
||||
return result == null ? club.joylink.rtss.simulation.ncc.proto.module.constants.PassengerFlowLevelProto.PassengerFlowLevel.UNRECOGNIZED : result;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 大客流等级
|
||||
* </pre>
|
||||
*
|
||||
* <code>.proto.PassengerFlowLevel flowLevel = 1;</code>
|
||||
* @param value The flowLevel to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setFlowLevel(club.joylink.rtss.simulation.ncc.proto.module.constants.PassengerFlowLevelProto.PassengerFlowLevel value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
||||
flowLevel_ = value.getNumber();
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
**
|
||||
* 大客流等级
|
||||
* </pre>
|
||||
*
|
||||
* <code>.proto.PassengerFlowLevel flowLevel = 1;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearFlowLevel() {
|
||||
|
||||
flowLevel_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.setUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final Builder mergeUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.mergeUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:proto.StationState)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:proto.StationState)
|
||||
private static final club.joylink.rtss.simulation.ncc.proto.module.state.StationStateProto.StationState DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new club.joylink.rtss.simulation.ncc.proto.module.state.StationStateProto.StationState();
|
||||
}
|
||||
|
||||
public static club.joylink.rtss.simulation.ncc.proto.module.state.StationStateProto.StationState getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<StationState>
|
||||
PARSER = new com.google.protobuf.AbstractParser<StationState>() {
|
||||
@java.lang.Override
|
||||
public StationState parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new StationState(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<StationState> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<StationState> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public club.joylink.rtss.simulation.ncc.proto.module.state.StationStateProto.StationState getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_proto_StationState_descriptor;
|
||||
private static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_proto_StationState_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\031state/station_state.proto\022\005proto\032\037enum" +
|
||||
"/passenger_flow_level.proto\"<\n\014StationSt" +
|
||||
"ate\022,\n\tflowLevel\030\001 \001(\0162\031.proto.Passenger" +
|
||||
"FlowLevelBH\n3club.joylink.rtss.simulatio" +
|
||||
"n.ncc.proto.module.stateB\021StationStatePr" +
|
||||
"otob\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
||||
club.joylink.rtss.simulation.ncc.proto.module.constants.PassengerFlowLevelProto.getDescriptor(),
|
||||
});
|
||||
internal_static_proto_StationState_descriptor =
|
||||
getDescriptor().getMessageTypes().get(0);
|
||||
internal_static_proto_StationState_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_proto_StationState_descriptor,
|
||||
new java.lang.String[] { "FlowLevel", });
|
||||
club.joylink.rtss.simulation.ncc.proto.module.constants.PassengerFlowLevelProto.getDescriptor();
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,6 @@
|
|||
|
||||
mybatis-plus:
|
||||
type-aliases-package: club.joylink.rtss.auth.mapper
|
||||
mapper-locations: classpath:mapper/ncc/*.xml
|
||||
configuration:
|
||||
map-underscore-to-camel-case: true
|
|
@ -4,6 +4,7 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
<modules>
|
||||
<module>ISCS</module>
|
||||
<module>NCC</module>
|
||||
</modules>
|
||||
<parent>
|
||||
<groupId>club.joylink.rtss</groupId>
|
||||
|
|
Loading…
Reference in New Issue