From 9412712aa303a253a401f5845128f38f986548c6 Mon Sep 17 00:00:00 2001 From: tiger_zhou Date: Wed, 26 Jul 2023 16:16:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=94=B6=E9=9B=86=E8=BF=98?= =?UTF-8?q?=E4=BD=BF=E7=94=A8json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ats/message/MessageResponse.java | 1 + .../ats/message/OccTcpClientConnection.java | 2 +- .../collect/convertor/DefaultConvertor.java | 8 +- .../message/line3/rep/DepotPlanResponse.java | 124 +- .../line3/rep/DeviceStatusBitmapResponse.java | 1 - .../message/line3/rep/EntityParseUtil.java | 36 + .../rep/InUsedScheduleParameterResponse.java | 18 +- .../line3/rep/SignalRouteStatusResponse.java | 8 +- .../line3/rep/TrainRecordResponse.java | 1 + .../dto/protos/CollectMsgAppend.java | 5369 ----------------- .../dto/protos/DeviceStatusProto.java | 50 +- .../mapper/NccMockDataProtobufMapper.java | 22 - .../mock/message/NccMockDataProtobuf.java | 67 - .../mock/message/NccMockDataService.java | 3 +- .../message/event/MockMessageDataHandle.java | 2 +- .../event/MockMessageDataProtobufHandle.java | 116 - .../INccMockDataProtobufRepository.java | 8 - .../impl/NccMockDataProtobufRepository.java | 40 - .../xiannccda/service/MockMsgTest.java | 30 + xian-ncc-da-message | 2 +- 20 files changed, 164 insertions(+), 5744 deletions(-) delete mode 100644 src/main/java/club/joylink/xiannccda/dto/protos/CollectMsgAppend.java delete mode 100644 src/main/java/club/joylink/xiannccda/mapper/NccMockDataProtobufMapper.java delete mode 100644 src/main/java/club/joylink/xiannccda/mock/message/NccMockDataProtobuf.java delete mode 100644 src/main/java/club/joylink/xiannccda/mock/message/event/MockMessageDataProtobufHandle.java delete mode 100644 src/main/java/club/joylink/xiannccda/repository/INccMockDataProtobufRepository.java delete mode 100644 src/main/java/club/joylink/xiannccda/repository/impl/NccMockDataProtobufRepository.java diff --git a/src/main/java/club/joylink/xiannccda/ats/message/MessageResponse.java b/src/main/java/club/joylink/xiannccda/ats/message/MessageResponse.java index e1cf436..eabd7d1 100644 --- a/src/main/java/club/joylink/xiannccda/ats/message/MessageResponse.java +++ b/src/main/java/club/joylink/xiannccda/ats/message/MessageResponse.java @@ -17,4 +17,5 @@ public abstract class MessageResponse extends MessageData { public List generateProto() { return Collections.emptyList(); } + } diff --git a/src/main/java/club/joylink/xiannccda/ats/message/OccTcpClientConnection.java b/src/main/java/club/joylink/xiannccda/ats/message/OccTcpClientConnection.java index a12ef73..59be31a 100644 --- a/src/main/java/club/joylink/xiannccda/ats/message/OccTcpClientConnection.java +++ b/src/main/java/club/joylink/xiannccda/ats/message/OccTcpClientConnection.java @@ -113,7 +113,7 @@ public class OccTcpClientConnection { log.info("发送OCC心跳失败(为与occ连接),尝试断开重连"); connection.reconnect(); } - }, 0, 0, TimeUnit.SECONDS); + }, 0, 8, TimeUnit.SECONDS); } } diff --git a/src/main/java/club/joylink/xiannccda/ats/message/collect/convertor/DefaultConvertor.java b/src/main/java/club/joylink/xiannccda/ats/message/collect/convertor/DefaultConvertor.java index c526b64..d3e1df9 100644 --- a/src/main/java/club/joylink/xiannccda/ats/message/collect/convertor/DefaultConvertor.java +++ b/src/main/java/club/joylink/xiannccda/ats/message/collect/convertor/DefaultConvertor.java @@ -5,7 +5,9 @@ import club.joylink.xiannccda.ats.message.MessageResponse; import club.joylink.xiannccda.ats.message.collect.DeviceDataRepository; import club.joylink.xiannccda.ats.message.collect.DeviceDataRepository.DataTypeEnum; import club.joylink.xiannccda.ats.message.collect.DeviceStatusConvertor; +import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; import com.google.protobuf.GeneratedMessageV3; +import java.util.Collections; import java.util.List; import java.util.Map; import java.util.stream.Collectors; @@ -14,7 +16,9 @@ import java.util.Collection; public abstract class DefaultConvertor extends DeviceStatusConvertor { public List convertToResponse(List messageDataList) { - return messageDataList.stream().filter(d -> d instanceof MessageResponse).map(d -> (MessageResponse) d).toList(); + return messageDataList.stream() +// .filter(d -> d.getMsgId() == this.getMessageId()) + .filter(d -> d instanceof MessageResponse).map(d -> (MessageResponse) d).toList(); } public abstract DataTypeEnum dataType(); @@ -26,8 +30,8 @@ public abstract class DefaultConvertor extends DeviceStatusConvertor { Map> lineMapper = responseList.stream().collect(Collectors.groupingBy(MessageResponse::getLineId)); lineMapper.forEach((k, v) -> { List builders = v.stream().map(MessageResponse::generateProto).flatMap(Collection::stream).collect(Collectors.toList()); + DeviceDataRepository.add(k.toString(), builders, this.dataType()); }); - } } diff --git a/src/main/java/club/joylink/xiannccda/ats/message/line3/rep/DepotPlanResponse.java b/src/main/java/club/joylink/xiannccda/ats/message/line3/rep/DepotPlanResponse.java index 4372c47..46caf75 100644 --- a/src/main/java/club/joylink/xiannccda/ats/message/line3/rep/DepotPlanResponse.java +++ b/src/main/java/club/joylink/xiannccda/ats/message/line3/rep/DepotPlanResponse.java @@ -1,19 +1,11 @@ package club.joylink.xiannccda.ats.message.line3.rep; -import club.joylink.xiannccda.ats.message.MessageId; import club.joylink.xiannccda.ats.message.MessageResponse; import club.joylink.xiannccda.ats.message.line3.DateTimeUtil; import club.joylink.xiannccda.ats.message.line3.rep.EntityParseUtil.ReadData; -import club.joylink.xiannccda.dto.protos.CollectMsgAppend.DeportPlan; -import com.google.common.collect.Lists; -import com.google.protobuf.GeneratedMessageV3; -import com.google.protobuf.GeneratedMessageV3.Builder; import io.netty.buffer.ByteBuf; -import io.netty.buffer.Unpooled; -import java.nio.charset.Charset; import java.time.LocalDateTime; -import java.time.ZoneOffset; import java.util.List; import lombok.Getter; import lombok.Setter; @@ -70,64 +62,64 @@ public class DepotPlanResponse extends MessageResponse { } - @Override - public List generateProto() { - List builders = Lists.newArrayList(); - ZoneOffset zo = ZoneOffset.ofHours(+8); - for (DepotPlanEntity entity : this.entityList) { - DeportPlan.Builder builder = DeportPlan.newBuilder(); - builder.setDate(this.date.toEpochSecond(zo)); - builder.setDepotStation(entity.depotStation); - builder.setGroupId(entity.groupId); - builder.setDriverId(entity.driverId); - builder.setOutFlag(entity.outFlag); - builder.setOutSchedule(entity.outSchedule); - // 上线时间 - builder.setOutTime(entity.outTime.toEpochSecond(zo)); - // 上线车站编号(转换轨所在车站) - builder.setOutStation(entity.outStation); - // 上线车站站台编号(上线转换轨对应的站台) - builder.setOutSide(entity.outSide); - // 上线转换轨名称(左对齐,其它空字符填\0) - builder.setOutName(entity.outName); - // 上线表号 - builder.setOutName(entity.outName); - builder.setOutTrainid(entity.outTrainid); - // 上线目的地号 - builder.setOutTrainid(entity.outTrainid); - builder.setOutDestination(entity.outDestination); - // 上线车次号 - builder.setOutGlobalid(entity.outGlobalid); - // 上线序列号 - builder.setOutLocalSubid(entity.outLocalSubid); - // 回库状态 - //  0表示未回库; - //  1表示已回库 - builder.setInFlag(entity.inFlag); - // 是否计划车下线属性 - //  0:否 - //  1:是 - builder.setInSchedule(entity.inSchedule); - // 下线时间 - builder.setInTime(entity.inTime.toEpochSecond(zo)); - // 下线车站编号(转换轨所在车站) - builder.setInStation(entity.inStation); - // 下线车站站台编号(下线转换轨对应的站台) - builder.setInSide(entity.inSide); - // 下线转换轨名称 - builder.setInName(entity.inName); - // 下线表号 - builder.setInTrainid(entity.inTrainid); - // 下线目的地号 - builder.setInDestination(entity.inDestination); - // 下线车次号 - builder.setInGlobalid(entity.inGlobalid); - // 下线序列号 - builder.setInLocalSubid(entity.inLocalSubid); - builders.add(builder); - } - return builders; - } +// @Override +// public List generateProto() { +// List builders = Lists.newArrayList(); +// ZoneOffset zo = ZoneOffset.ofHours(+8); +// for (DepotPlanEntity entity : this.entityList) { +// DeportPlan.Builder builder = DeportPlan.newBuilder(); +// builder.setDate(this.date.toEpochSecond(zo)); +// builder.setDepotStation(entity.depotStation); +// builder.setGroupId(entity.groupId); +// builder.setDriverId(entity.driverId); +// builder.setOutFlag(entity.outFlag); +// builder.setOutSchedule(entity.outSchedule); +// // 上线时间 +// builder.setOutTime(entity.outTime.toEpochSecond(zo)); +// // 上线车站编号(转换轨所在车站) +// builder.setOutStation(entity.outStation); +// // 上线车站站台编号(上线转换轨对应的站台) +// builder.setOutSide(entity.outSide); +// // 上线转换轨名称(左对齐,其它空字符填\0) +// builder.setOutName(entity.outName); +// // 上线表号 +// builder.setOutName(entity.outName); +// builder.setOutTrainid(entity.outTrainid); +// // 上线目的地号 +// builder.setOutTrainid(entity.outTrainid); +// builder.setOutDestination(entity.outDestination); +// // 上线车次号 +// builder.setOutGlobalid(entity.outGlobalid); +// // 上线序列号 +// builder.setOutLocalSubid(entity.outLocalSubid); +// // 回库状态 +// //  0表示未回库; +// //  1表示已回库 +// builder.setInFlag(entity.inFlag); +// // 是否计划车下线属性 +// //  0:否 +// //  1:是 +// builder.setInSchedule(entity.inSchedule); +// // 下线时间 +// builder.setInTime(entity.inTime.toEpochSecond(zo)); +// // 下线车站编号(转换轨所在车站) +// builder.setInStation(entity.inStation); +// // 下线车站站台编号(下线转换轨对应的站台) +// builder.setInSide(entity.inSide); +// // 下线转换轨名称 +// builder.setInName(entity.inName); +// // 下线表号 +// builder.setInTrainid(entity.inTrainid); +// // 下线目的地号 +// builder.setInDestination(entity.inDestination); +// // 下线车次号 +// builder.setInGlobalid(entity.inGlobalid); +// // 下线序列号 +// builder.setInLocalSubid(entity.inLocalSubid); +// builders.add(builder); +// } +// return builders; +// } @Getter diff --git a/src/main/java/club/joylink/xiannccda/ats/message/line3/rep/DeviceStatusBitmapResponse.java b/src/main/java/club/joylink/xiannccda/ats/message/line3/rep/DeviceStatusBitmapResponse.java index f8959d4..dfe5a1e 100644 --- a/src/main/java/club/joylink/xiannccda/ats/message/line3/rep/DeviceStatusBitmapResponse.java +++ b/src/main/java/club/joylink/xiannccda/ats/message/line3/rep/DeviceStatusBitmapResponse.java @@ -82,7 +82,6 @@ public class DeviceStatusBitmapResponse extends MessageResponse { } } return msgBuildList; - } diff --git a/src/main/java/club/joylink/xiannccda/ats/message/line3/rep/EntityParseUtil.java b/src/main/java/club/joylink/xiannccda/ats/message/line3/rep/EntityParseUtil.java index c50533c..b455d2e 100644 --- a/src/main/java/club/joylink/xiannccda/ats/message/line3/rep/EntityParseUtil.java +++ b/src/main/java/club/joylink/xiannccda/ats/message/line3/rep/EntityParseUtil.java @@ -1,7 +1,10 @@ package club.joylink.xiannccda.ats.message.line3.rep; import club.joylink.xiannccda.ats.message.line3.MessageCons; +import club.joylink.xiannccda.ats.message.line3.device.DeviceType; import com.google.common.collect.Lists; +import com.google.protobuf.Descriptors.FieldDescriptor; +import com.google.protobuf.GeneratedMessageV3; import io.netty.buffer.ByteBuf; import java.util.List; @@ -34,4 +37,37 @@ public class EntityParseUtil { T read(ByteBuf buf); } + + /* public static void fill(GeneratedMessageV3.Builder builder, String name, Object val) { + FieldDescriptor fieldDescriptor = builder.getDescriptorForType().findFieldByName(name); + builder.setField(fieldDescriptor, val); + } + + public static GeneratedMessageV3.Builder switchDeviceType(DeviceType dt) { + switch (dt) { + case DEVICE_TYPE_SWITCH: + return Switch.newBuilder(); + case DEVICE_TYPE_RTU: + return Rtu.newBuilder(); + case DEVICE_TYPE_PLATFORM: + return Platform.newBuilder(); + case DEVICE_TYPE_TRACK: + return Track.newBuilder(); + case DEVICE_TYPE_ENTRY: + return Entry.newBuilder(); + case DEVICE_TYPE_WATERPROOF_DOOR: + return WaterProofDoor.newBuilder(); + case DEVICE_TYPE_WORK_AREA: + return WorkArea.newBuilder(); + case DEVICE_TYPE_GAMA: + return Gama.newBuilder(); + case DEVICE_TYPE_SIGNAL: + return Signal.newBuilder(); + case DEVICE_TYPE_STATION: + return Station.newBuilder(); + case DEVICE_TYPE_SCADA: + return Scada.newBuilder(); + } + return null; + }*/ } diff --git a/src/main/java/club/joylink/xiannccda/ats/message/line3/rep/InUsedScheduleParameterResponse.java b/src/main/java/club/joylink/xiannccda/ats/message/line3/rep/InUsedScheduleParameterResponse.java index d10a0b5..c499995 100644 --- a/src/main/java/club/joylink/xiannccda/ats/message/line3/rep/InUsedScheduleParameterResponse.java +++ b/src/main/java/club/joylink/xiannccda/ats/message/line3/rep/InUsedScheduleParameterResponse.java @@ -3,16 +3,9 @@ package club.joylink.xiannccda.ats.message.line3.rep; import club.joylink.xiannccda.ats.message.MessageResponse; import club.joylink.xiannccda.ats.message.line3.DateTimeUtil; import club.joylink.xiannccda.ats.message.line3.MessageCons; -import club.joylink.xiannccda.dto.protos.CollectMsgAppend.InUsedScheduleParameter; -import com.google.common.collect.Lists; -import com.google.protobuf.GeneratedMessageV3; -import com.google.protobuf.GeneratedMessageV3.Builder; import io.netty.buffer.ByteBuf; -import java.time.ZoneOffset; -import java.util.List; -import lombok.Getter; - import java.time.LocalDateTime; +import lombok.Getter; import lombok.Setter; /** @@ -63,13 +56,4 @@ public class InUsedScheduleParameterResponse extends MessageResponse { this.inUsedScheduleName = new String(inUsedScheduleName, MessageCons.STRING_CHARSET).trim(); } - @Override - public List generateProto() { - InUsedScheduleParameter.Builder builder = InUsedScheduleParameter.newBuilder(); - builder.setLineId(this.lineId); - builder.setDate(this.date.toEpochSecond(ZoneOffset.ofHours(+8))); - builder.setValid(this.valid); - builder.setInusedScheduleName(this.inUsedScheduleName); - return List.of(builder); - } } diff --git a/src/main/java/club/joylink/xiannccda/ats/message/line3/rep/SignalRouteStatusResponse.java b/src/main/java/club/joylink/xiannccda/ats/message/line3/rep/SignalRouteStatusResponse.java index 40b85c3..9d17a42 100644 --- a/src/main/java/club/joylink/xiannccda/ats/message/line3/rep/SignalRouteStatusResponse.java +++ b/src/main/java/club/joylink/xiannccda/ats/message/line3/rep/SignalRouteStatusResponse.java @@ -3,10 +3,6 @@ package club.joylink.xiannccda.ats.message.line3.rep; import club.joylink.xiannccda.ats.message.MessageId; import club.joylink.xiannccda.ats.message.MessageResponse; import club.joylink.xiannccda.ats.message.line3.rep.EntityParseUtil.ReadData; -import club.joylink.xiannccda.dto.protos.CollectMsgAppend.SignalRouteStatus; -import com.google.common.collect.Lists; -import com.google.protobuf.GeneratedMessageV3; -import com.google.protobuf.GeneratedMessageV3.Builder; import io.netty.buffer.ByteBuf; import java.util.Arrays; import java.util.List; @@ -60,7 +56,7 @@ public class SignalRouteStatusResponse extends MessageResponse { } - @Override +/* @Override public List generateProto() { List builders = Lists.newArrayList(); for (SignalStatusEntity signal : this.signals) { @@ -75,7 +71,7 @@ public class SignalRouteStatusResponse extends MessageResponse { } } return builders; - } + }*/ @Getter @Setter diff --git a/src/main/java/club/joylink/xiannccda/ats/message/line3/rep/TrainRecordResponse.java b/src/main/java/club/joylink/xiannccda/ats/message/line3/rep/TrainRecordResponse.java index cb9f0fc..b500203 100644 --- a/src/main/java/club/joylink/xiannccda/ats/message/line3/rep/TrainRecordResponse.java +++ b/src/main/java/club/joylink/xiannccda/ats/message/line3/rep/TrainRecordResponse.java @@ -129,6 +129,7 @@ public class TrainRecordResponse extends MessageResponse { this.recordTime = DateTimeUtil.convert(recordTime); } + @Override public List generateProto() { TrainRecord.Builder builder = TrainRecord.newBuilder(); diff --git a/src/main/java/club/joylink/xiannccda/dto/protos/CollectMsgAppend.java b/src/main/java/club/joylink/xiannccda/dto/protos/CollectMsgAppend.java deleted file mode 100644 index aa47cd5..0000000 --- a/src/main/java/club/joylink/xiannccda/dto/protos/CollectMsgAppend.java +++ /dev/null @@ -1,5369 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: collect_msg_append.proto - -package club.joylink.xiannccda.dto.protos; - -public final class CollectMsgAppend { - private CollectMsgAppend() {} - 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 SignalRouteStatusOrBuilder extends - // @@protoc_insertion_point(interface_extends:state.SignalRouteStatus) - com.google.protobuf.MessageOrBuilder { - - /** - * string signalName = 1; - * @return The signalName. - */ - java.lang.String getSignalName(); - /** - * string signalName = 1; - * @return The bytes for signalName. - */ - com.google.protobuf.ByteString - getSignalNameBytes(); - - /** - * string routeName = 2; - * @return The routeName. - */ - java.lang.String getRouteName(); - /** - * string routeName = 2; - * @return The bytes for routeName. - */ - com.google.protobuf.ByteString - getRouteNameBytes(); - - /** - *
-     *  进路控制模式
-     *  0x55:ATS自动信号模式
-     *  0xaa :非ATS自动信号模式
-     *  true = 自动,false = 非自动
-     * 
- * - * bool status = 3; - * @return The status. - */ - boolean getStatus(); - - /** - * int32 rtuId = 4; - * @return The rtuId. - */ - int getRtuId(); - - /** - * int32 lineId = 5; - * @return The lineId. - */ - int getLineId(); - } - /** - * Protobuf type {@code state.SignalRouteStatus} - */ - public static final class SignalRouteStatus extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:state.SignalRouteStatus) - SignalRouteStatusOrBuilder { - private static final long serialVersionUID = 0L; - // Use SignalRouteStatus.newBuilder() to construct. - private SignalRouteStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SignalRouteStatus() { - signalName_ = ""; - routeName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SignalRouteStatus(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return club.joylink.xiannccda.dto.protos.CollectMsgAppend.internal_static_state_SignalRouteStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return club.joylink.xiannccda.dto.protos.CollectMsgAppend.internal_static_state_SignalRouteStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - club.joylink.xiannccda.dto.protos.CollectMsgAppend.SignalRouteStatus.class, club.joylink.xiannccda.dto.protos.CollectMsgAppend.SignalRouteStatus.Builder.class); - } - - public static final int SIGNALNAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object signalName_ = ""; - /** - * string signalName = 1; - * @return The signalName. - */ - @java.lang.Override - public java.lang.String getSignalName() { - java.lang.Object ref = signalName_; - 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(); - signalName_ = s; - return s; - } - } - /** - * string signalName = 1; - * @return The bytes for signalName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSignalNameBytes() { - java.lang.Object ref = signalName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signalName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ROUTENAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object routeName_ = ""; - /** - * string routeName = 2; - * @return The routeName. - */ - @java.lang.Override - public java.lang.String getRouteName() { - java.lang.Object ref = routeName_; - 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(); - routeName_ = s; - return s; - } - } - /** - * string routeName = 2; - * @return The bytes for routeName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRouteNameBytes() { - java.lang.Object ref = routeName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - routeName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATUS_FIELD_NUMBER = 3; - private boolean status_ = false; - /** - *
-     *  进路控制模式
-     *  0x55:ATS自动信号模式
-     *  0xaa :非ATS自动信号模式
-     *  true = 自动,false = 非自动
-     * 
- * - * bool status = 3; - * @return The status. - */ - @java.lang.Override - public boolean getStatus() { - return status_; - } - - public static final int RTUID_FIELD_NUMBER = 4; - private int rtuId_ = 0; - /** - * int32 rtuId = 4; - * @return The rtuId. - */ - @java.lang.Override - public int getRtuId() { - return rtuId_; - } - - public static final int LINEID_FIELD_NUMBER = 5; - private int lineId_ = 0; - /** - * int32 lineId = 5; - * @return The lineId. - */ - @java.lang.Override - public int getLineId() { - return lineId_; - } - - 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(signalName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, signalName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(routeName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, routeName_); - } - if (status_ != false) { - output.writeBool(3, status_); - } - if (rtuId_ != 0) { - output.writeInt32(4, rtuId_); - } - if (lineId_ != 0) { - output.writeInt32(5, lineId_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(signalName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, signalName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(routeName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, routeName_); - } - if (status_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, status_); - } - if (rtuId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, rtuId_); - } - if (lineId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, lineId_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof club.joylink.xiannccda.dto.protos.CollectMsgAppend.SignalRouteStatus)) { - return super.equals(obj); - } - club.joylink.xiannccda.dto.protos.CollectMsgAppend.SignalRouteStatus other = (club.joylink.xiannccda.dto.protos.CollectMsgAppend.SignalRouteStatus) obj; - - if (!getSignalName() - .equals(other.getSignalName())) return false; - if (!getRouteName() - .equals(other.getRouteName())) return false; - if (getStatus() - != other.getStatus()) return false; - if (getRtuId() - != other.getRtuId()) return false; - if (getLineId() - != other.getLineId()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SIGNALNAME_FIELD_NUMBER; - hash = (53 * hash) + getSignalName().hashCode(); - hash = (37 * hash) + ROUTENAME_FIELD_NUMBER; - hash = (53 * hash) + getRouteName().hashCode(); - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getStatus()); - hash = (37 * hash) + RTUID_FIELD_NUMBER; - hash = (53 * hash) + getRtuId(); - hash = (37 * hash) + LINEID_FIELD_NUMBER; - hash = (53 * hash) + getLineId(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static club.joylink.xiannccda.dto.protos.CollectMsgAppend.SignalRouteStatus parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static club.joylink.xiannccda.dto.protos.CollectMsgAppend.SignalRouteStatus parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static club.joylink.xiannccda.dto.protos.CollectMsgAppend.SignalRouteStatus parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static club.joylink.xiannccda.dto.protos.CollectMsgAppend.SignalRouteStatus parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static club.joylink.xiannccda.dto.protos.CollectMsgAppend.SignalRouteStatus parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static club.joylink.xiannccda.dto.protos.CollectMsgAppend.SignalRouteStatus parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static club.joylink.xiannccda.dto.protos.CollectMsgAppend.SignalRouteStatus parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static club.joylink.xiannccda.dto.protos.CollectMsgAppend.SignalRouteStatus parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static club.joylink.xiannccda.dto.protos.CollectMsgAppend.SignalRouteStatus parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static club.joylink.xiannccda.dto.protos.CollectMsgAppend.SignalRouteStatus parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static club.joylink.xiannccda.dto.protos.CollectMsgAppend.SignalRouteStatus parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static club.joylink.xiannccda.dto.protos.CollectMsgAppend.SignalRouteStatus parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(club.joylink.xiannccda.dto.protos.CollectMsgAppend.SignalRouteStatus 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 state.SignalRouteStatus} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:state.SignalRouteStatus) - club.joylink.xiannccda.dto.protos.CollectMsgAppend.SignalRouteStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return club.joylink.xiannccda.dto.protos.CollectMsgAppend.internal_static_state_SignalRouteStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return club.joylink.xiannccda.dto.protos.CollectMsgAppend.internal_static_state_SignalRouteStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - club.joylink.xiannccda.dto.protos.CollectMsgAppend.SignalRouteStatus.class, club.joylink.xiannccda.dto.protos.CollectMsgAppend.SignalRouteStatus.Builder.class); - } - - // Construct using club.joylink.xiannccda.dto.protos.CollectMsgAppend.SignalRouteStatus.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - signalName_ = ""; - routeName_ = ""; - status_ = false; - rtuId_ = 0; - lineId_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return club.joylink.xiannccda.dto.protos.CollectMsgAppend.internal_static_state_SignalRouteStatus_descriptor; - } - - @java.lang.Override - public club.joylink.xiannccda.dto.protos.CollectMsgAppend.SignalRouteStatus getDefaultInstanceForType() { - return club.joylink.xiannccda.dto.protos.CollectMsgAppend.SignalRouteStatus.getDefaultInstance(); - } - - @java.lang.Override - public club.joylink.xiannccda.dto.protos.CollectMsgAppend.SignalRouteStatus build() { - club.joylink.xiannccda.dto.protos.CollectMsgAppend.SignalRouteStatus result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public club.joylink.xiannccda.dto.protos.CollectMsgAppend.SignalRouteStatus buildPartial() { - club.joylink.xiannccda.dto.protos.CollectMsgAppend.SignalRouteStatus result = new club.joylink.xiannccda.dto.protos.CollectMsgAppend.SignalRouteStatus(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(club.joylink.xiannccda.dto.protos.CollectMsgAppend.SignalRouteStatus result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.signalName_ = signalName_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.routeName_ = routeName_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.status_ = status_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.rtuId_ = rtuId_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.lineId_ = lineId_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof club.joylink.xiannccda.dto.protos.CollectMsgAppend.SignalRouteStatus) { - return mergeFrom((club.joylink.xiannccda.dto.protos.CollectMsgAppend.SignalRouteStatus)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(club.joylink.xiannccda.dto.protos.CollectMsgAppend.SignalRouteStatus other) { - if (other == club.joylink.xiannccda.dto.protos.CollectMsgAppend.SignalRouteStatus.getDefaultInstance()) return this; - if (!other.getSignalName().isEmpty()) { - signalName_ = other.signalName_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getRouteName().isEmpty()) { - routeName_ = other.routeName_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getStatus() != false) { - setStatus(other.getStatus()); - } - if (other.getRtuId() != 0) { - setRtuId(other.getRtuId()); - } - if (other.getLineId() != 0) { - setLineId(other.getLineId()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - signalName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - routeName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - status_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - rtuId_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - lineId_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 40 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object signalName_ = ""; - /** - * string signalName = 1; - * @return The signalName. - */ - public java.lang.String getSignalName() { - java.lang.Object ref = signalName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signalName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string signalName = 1; - * @return The bytes for signalName. - */ - public com.google.protobuf.ByteString - getSignalNameBytes() { - java.lang.Object ref = signalName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signalName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string signalName = 1; - * @param value The signalName to set. - * @return This builder for chaining. - */ - public Builder setSignalName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - signalName_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string signalName = 1; - * @return This builder for chaining. - */ - public Builder clearSignalName() { - signalName_ = getDefaultInstance().getSignalName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string signalName = 1; - * @param value The bytes for signalName to set. - * @return This builder for chaining. - */ - public Builder setSignalNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - signalName_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object routeName_ = ""; - /** - * string routeName = 2; - * @return The routeName. - */ - public java.lang.String getRouteName() { - java.lang.Object ref = routeName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - routeName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string routeName = 2; - * @return The bytes for routeName. - */ - public com.google.protobuf.ByteString - getRouteNameBytes() { - java.lang.Object ref = routeName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - routeName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string routeName = 2; - * @param value The routeName to set. - * @return This builder for chaining. - */ - public Builder setRouteName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - routeName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * string routeName = 2; - * @return This builder for chaining. - */ - public Builder clearRouteName() { - routeName_ = getDefaultInstance().getRouteName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * string routeName = 2; - * @param value The bytes for routeName to set. - * @return This builder for chaining. - */ - public Builder setRouteNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - routeName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private boolean status_ ; - /** - *
-       *  进路控制模式
-       *  0x55:ATS自动信号模式
-       *  0xaa :非ATS自动信号模式
-       *  true = 自动,false = 非自动
-       * 
- * - * bool status = 3; - * @return The status. - */ - @java.lang.Override - public boolean getStatus() { - return status_; - } - /** - *
-       *  进路控制模式
-       *  0x55:ATS自动信号模式
-       *  0xaa :非ATS自动信号模式
-       *  true = 自动,false = 非自动
-       * 
- * - * bool status = 3; - * @param value The status to set. - * @return This builder for chaining. - */ - public Builder setStatus(boolean value) { - - status_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       *  进路控制模式
-       *  0x55:ATS自动信号模式
-       *  0xaa :非ATS自动信号模式
-       *  true = 自动,false = 非自动
-       * 
- * - * bool status = 3; - * @return This builder for chaining. - */ - public Builder clearStatus() { - bitField0_ = (bitField0_ & ~0x00000004); - status_ = false; - onChanged(); - return this; - } - - private int rtuId_ ; - /** - * int32 rtuId = 4; - * @return The rtuId. - */ - @java.lang.Override - public int getRtuId() { - return rtuId_; - } - /** - * int32 rtuId = 4; - * @param value The rtuId to set. - * @return This builder for chaining. - */ - public Builder setRtuId(int value) { - - rtuId_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * int32 rtuId = 4; - * @return This builder for chaining. - */ - public Builder clearRtuId() { - bitField0_ = (bitField0_ & ~0x00000008); - rtuId_ = 0; - onChanged(); - return this; - } - - private int lineId_ ; - /** - * int32 lineId = 5; - * @return The lineId. - */ - @java.lang.Override - public int getLineId() { - return lineId_; - } - /** - * int32 lineId = 5; - * @param value The lineId to set. - * @return This builder for chaining. - */ - public Builder setLineId(int value) { - - lineId_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * int32 lineId = 5; - * @return This builder for chaining. - */ - public Builder clearLineId() { - bitField0_ = (bitField0_ & ~0x00000010); - lineId_ = 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:state.SignalRouteStatus) - } - - // @@protoc_insertion_point(class_scope:state.SignalRouteStatus) - private static final club.joylink.xiannccda.dto.protos.CollectMsgAppend.SignalRouteStatus DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new club.joylink.xiannccda.dto.protos.CollectMsgAppend.SignalRouteStatus(); - } - - public static club.joylink.xiannccda.dto.protos.CollectMsgAppend.SignalRouteStatus getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SignalRouteStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public club.joylink.xiannccda.dto.protos.CollectMsgAppend.SignalRouteStatus getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DeportPlanOrBuilder extends - // @@protoc_insertion_point(interface_extends:state.DeportPlan) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 lineId = 1; - * @return The lineId. - */ - int getLineId(); - - /** - *
-     *  出入库日期
-     * 
- * - * int64 date = 2; - * @return The date. - */ - long getDate(); - - /** - *
-     *  出入库记录数
-     *  int32 depotCount = 3;
-     *  出入库终端站号(车辆段/停车场的站号)
-     * 
- * - * int32 depotStation = 4; - * @return The depotStation. - */ - int getDepotStation(); - - /** - *
-     *  车组号
-     * 
- * - * string groupId = 5; - * @return The groupId. - */ - java.lang.String getGroupId(); - /** - *
-     *  车组号
-     * 
- * - * string groupId = 5; - * @return The bytes for groupId. - */ - com.google.protobuf.ByteString - getGroupIdBytes(); - - /** - *
-     *  司机号
-     * 
- * - * string driverId = 6; - * @return The driverId. - */ - java.lang.String getDriverId(); - /** - *
-     *  司机号
-     * 
- * - * string driverId = 6; - * @return The bytes for driverId. - */ - com.google.protobuf.ByteString - getDriverIdBytes(); - - /** - * bool outFlag = 7; - * @return The outFlag. - */ - boolean getOutFlag(); - - /** - *
-     *是否计划车上线属性
-     *    	0:否
-     *  	1:是
-     * 
- * - * bool outSchedule = 8; - * @return The outSchedule. - */ - boolean getOutSchedule(); - - /** - *
-     *  上线时间
-     * 
- * - * int64 outTime = 9; - * @return The outTime. - */ - long getOutTime(); - - /** - *
-     *  上线车站编号(转换轨所在车站)
-     * 
- * - * int32 outStation = 10; - * @return The outStation. - */ - int getOutStation(); - - /** - *
-     *  上线车站站台编号(上线转换轨对应的站台)
-     * 
- * - * int32 outSide = 11; - * @return The outSide. - */ - int getOutSide(); - - /** - *
-     *  上线转换轨名称(左对齐,其它空字符填\0)
-     * 
- * - * string outName = 12; - * @return The outName. - */ - java.lang.String getOutName(); - /** - *
-     *  上线转换轨名称(左对齐,其它空字符填\0)
-     * 
- * - * string outName = 12; - * @return The bytes for outName. - */ - com.google.protobuf.ByteString - getOutNameBytes(); - - /** - *
-     *  上线表号
-     * 
- * - * string outTrainid = 13; - * @return The outTrainid. - */ - java.lang.String getOutTrainid(); - /** - *
-     *  上线表号
-     * 
- * - * string outTrainid = 13; - * @return The bytes for outTrainid. - */ - com.google.protobuf.ByteString - getOutTrainidBytes(); - - /** - *
-     *  上线目的地号
-     * 
- * - * string outDestination = 14; - * @return The outDestination. - */ - java.lang.String getOutDestination(); - /** - *
-     *  上线目的地号
-     * 
- * - * string outDestination = 14; - * @return The bytes for outDestination. - */ - com.google.protobuf.ByteString - getOutDestinationBytes(); - - /** - *
-     *  上线车次号
-     * 
- * - * string outGlobalid = 15; - * @return The outGlobalid. - */ - java.lang.String getOutGlobalid(); - /** - *
-     *  上线车次号
-     * 
- * - * string outGlobalid = 15; - * @return The bytes for outGlobalid. - */ - com.google.protobuf.ByteString - getOutGlobalidBytes(); - - /** - *
-     *  上线序列号
-     * 
- * - * int32 outLocalSubid = 16; - * @return The outLocalSubid. - */ - int getOutLocalSubid(); - - /** - *
-     *  回库状态
-     *    	0表示未回库;
-     *  	1表示已回库
-     * 
- * - * bool inFlag = 17; - * @return The inFlag. - */ - boolean getInFlag(); - - /** - *
-     *  是否计划车下线属性
-     *    	0:否
-     *  	1:是
-     * 
- * - * bool inSchedule = 18; - * @return The inSchedule. - */ - boolean getInSchedule(); - - /** - *
-     *  下线时间
-     * 
- * - * int64 inTime = 19; - * @return The inTime. - */ - long getInTime(); - - /** - *
-     *  下线车站编号(转换轨所在车站)
-     * 
- * - * int32 inStation = 20; - * @return The inStation. - */ - int getInStation(); - - /** - *
-     *  下线车站站台编号(下线转换轨对应的站台)
-     * 
- * - * int32 inSide = 21; - * @return The inSide. - */ - int getInSide(); - - /** - *
-     *  下线转换轨名称
-     * 
- * - * string inName = 22; - * @return The inName. - */ - java.lang.String getInName(); - /** - *
-     *  下线转换轨名称
-     * 
- * - * string inName = 22; - * @return The bytes for inName. - */ - com.google.protobuf.ByteString - getInNameBytes(); - - /** - *
-     *  下线表号
-     * 
- * - * string inTrainid = 23; - * @return The inTrainid. - */ - java.lang.String getInTrainid(); - /** - *
-     *  下线表号
-     * 
- * - * string inTrainid = 23; - * @return The bytes for inTrainid. - */ - com.google.protobuf.ByteString - getInTrainidBytes(); - - /** - *
-     *  下线目的地号
-     * 
- * - * string inDestination = 24; - * @return The inDestination. - */ - java.lang.String getInDestination(); - /** - *
-     *  下线目的地号
-     * 
- * - * string inDestination = 24; - * @return The bytes for inDestination. - */ - com.google.protobuf.ByteString - getInDestinationBytes(); - - /** - *
-     *  下线车次号
-     * 
- * - * string inGlobalid = 25; - * @return The inGlobalid. - */ - java.lang.String getInGlobalid(); - /** - *
-     *  下线车次号
-     * 
- * - * string inGlobalid = 25; - * @return The bytes for inGlobalid. - */ - com.google.protobuf.ByteString - getInGlobalidBytes(); - - /** - *
-     *  下线序列号
-     * 
- * - * int32 inLocalSubid = 26; - * @return The inLocalSubid. - */ - int getInLocalSubid(); - } - /** - * Protobuf type {@code state.DeportPlan} - */ - public static final class DeportPlan extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:state.DeportPlan) - DeportPlanOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeportPlan.newBuilder() to construct. - private DeportPlan(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeportPlan() { - groupId_ = ""; - driverId_ = ""; - outName_ = ""; - outTrainid_ = ""; - outDestination_ = ""; - outGlobalid_ = ""; - inName_ = ""; - inTrainid_ = ""; - inDestination_ = ""; - inGlobalid_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeportPlan(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return club.joylink.xiannccda.dto.protos.CollectMsgAppend.internal_static_state_DeportPlan_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return club.joylink.xiannccda.dto.protos.CollectMsgAppend.internal_static_state_DeportPlan_fieldAccessorTable - .ensureFieldAccessorsInitialized( - club.joylink.xiannccda.dto.protos.CollectMsgAppend.DeportPlan.class, club.joylink.xiannccda.dto.protos.CollectMsgAppend.DeportPlan.Builder.class); - } - - public static final int LINEID_FIELD_NUMBER = 1; - private int lineId_ = 0; - /** - * int32 lineId = 1; - * @return The lineId. - */ - @java.lang.Override - public int getLineId() { - return lineId_; - } - - public static final int DATE_FIELD_NUMBER = 2; - private long date_ = 0L; - /** - *
-     *  出入库日期
-     * 
- * - * int64 date = 2; - * @return The date. - */ - @java.lang.Override - public long getDate() { - return date_; - } - - public static final int DEPOTSTATION_FIELD_NUMBER = 4; - private int depotStation_ = 0; - /** - *
-     *  出入库记录数
-     *  int32 depotCount = 3;
-     *  出入库终端站号(车辆段/停车场的站号)
-     * 
- * - * int32 depotStation = 4; - * @return The depotStation. - */ - @java.lang.Override - public int getDepotStation() { - return depotStation_; - } - - public static final int GROUPID_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private volatile java.lang.Object groupId_ = ""; - /** - *
-     *  车组号
-     * 
- * - * string groupId = 5; - * @return The groupId. - */ - @java.lang.Override - public java.lang.String getGroupId() { - java.lang.Object ref = groupId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - groupId_ = s; - return s; - } - } - /** - *
-     *  车组号
-     * 
- * - * string groupId = 5; - * @return The bytes for groupId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getGroupIdBytes() { - java.lang.Object ref = groupId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - groupId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DRIVERID_FIELD_NUMBER = 6; - @SuppressWarnings("serial") - private volatile java.lang.Object driverId_ = ""; - /** - *
-     *  司机号
-     * 
- * - * string driverId = 6; - * @return The driverId. - */ - @java.lang.Override - public java.lang.String getDriverId() { - java.lang.Object ref = driverId_; - 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(); - driverId_ = s; - return s; - } - } - /** - *
-     *  司机号
-     * 
- * - * string driverId = 6; - * @return The bytes for driverId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDriverIdBytes() { - java.lang.Object ref = driverId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - driverId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OUTFLAG_FIELD_NUMBER = 7; - private boolean outFlag_ = false; - /** - * bool outFlag = 7; - * @return The outFlag. - */ - @java.lang.Override - public boolean getOutFlag() { - return outFlag_; - } - - public static final int OUTSCHEDULE_FIELD_NUMBER = 8; - private boolean outSchedule_ = false; - /** - *
-     *是否计划车上线属性
-     *    	0:否
-     *  	1:是
-     * 
- * - * bool outSchedule = 8; - * @return The outSchedule. - */ - @java.lang.Override - public boolean getOutSchedule() { - return outSchedule_; - } - - public static final int OUTTIME_FIELD_NUMBER = 9; - private long outTime_ = 0L; - /** - *
-     *  上线时间
-     * 
- * - * int64 outTime = 9; - * @return The outTime. - */ - @java.lang.Override - public long getOutTime() { - return outTime_; - } - - public static final int OUTSTATION_FIELD_NUMBER = 10; - private int outStation_ = 0; - /** - *
-     *  上线车站编号(转换轨所在车站)
-     * 
- * - * int32 outStation = 10; - * @return The outStation. - */ - @java.lang.Override - public int getOutStation() { - return outStation_; - } - - public static final int OUTSIDE_FIELD_NUMBER = 11; - private int outSide_ = 0; - /** - *
-     *  上线车站站台编号(上线转换轨对应的站台)
-     * 
- * - * int32 outSide = 11; - * @return The outSide. - */ - @java.lang.Override - public int getOutSide() { - return outSide_; - } - - public static final int OUTNAME_FIELD_NUMBER = 12; - @SuppressWarnings("serial") - private volatile java.lang.Object outName_ = ""; - /** - *
-     *  上线转换轨名称(左对齐,其它空字符填\0)
-     * 
- * - * string outName = 12; - * @return The outName. - */ - @java.lang.Override - public java.lang.String getOutName() { - java.lang.Object ref = outName_; - 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(); - outName_ = s; - return s; - } - } - /** - *
-     *  上线转换轨名称(左对齐,其它空字符填\0)
-     * 
- * - * string outName = 12; - * @return The bytes for outName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getOutNameBytes() { - java.lang.Object ref = outName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - outName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OUTTRAINID_FIELD_NUMBER = 13; - @SuppressWarnings("serial") - private volatile java.lang.Object outTrainid_ = ""; - /** - *
-     *  上线表号
-     * 
- * - * string outTrainid = 13; - * @return The outTrainid. - */ - @java.lang.Override - public java.lang.String getOutTrainid() { - java.lang.Object ref = outTrainid_; - 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(); - outTrainid_ = s; - return s; - } - } - /** - *
-     *  上线表号
-     * 
- * - * string outTrainid = 13; - * @return The bytes for outTrainid. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getOutTrainidBytes() { - java.lang.Object ref = outTrainid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - outTrainid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OUTDESTINATION_FIELD_NUMBER = 14; - @SuppressWarnings("serial") - private volatile java.lang.Object outDestination_ = ""; - /** - *
-     *  上线目的地号
-     * 
- * - * string outDestination = 14; - * @return The outDestination. - */ - @java.lang.Override - public java.lang.String getOutDestination() { - java.lang.Object ref = outDestination_; - 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(); - outDestination_ = s; - return s; - } - } - /** - *
-     *  上线目的地号
-     * 
- * - * string outDestination = 14; - * @return The bytes for outDestination. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getOutDestinationBytes() { - java.lang.Object ref = outDestination_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - outDestination_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OUTGLOBALID_FIELD_NUMBER = 15; - @SuppressWarnings("serial") - private volatile java.lang.Object outGlobalid_ = ""; - /** - *
-     *  上线车次号
-     * 
- * - * string outGlobalid = 15; - * @return The outGlobalid. - */ - @java.lang.Override - public java.lang.String getOutGlobalid() { - java.lang.Object ref = outGlobalid_; - 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(); - outGlobalid_ = s; - return s; - } - } - /** - *
-     *  上线车次号
-     * 
- * - * string outGlobalid = 15; - * @return The bytes for outGlobalid. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getOutGlobalidBytes() { - java.lang.Object ref = outGlobalid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - outGlobalid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OUTLOCALSUBID_FIELD_NUMBER = 16; - private int outLocalSubid_ = 0; - /** - *
-     *  上线序列号
-     * 
- * - * int32 outLocalSubid = 16; - * @return The outLocalSubid. - */ - @java.lang.Override - public int getOutLocalSubid() { - return outLocalSubid_; - } - - public static final int INFLAG_FIELD_NUMBER = 17; - private boolean inFlag_ = false; - /** - *
-     *  回库状态
-     *    	0表示未回库;
-     *  	1表示已回库
-     * 
- * - * bool inFlag = 17; - * @return The inFlag. - */ - @java.lang.Override - public boolean getInFlag() { - return inFlag_; - } - - public static final int INSCHEDULE_FIELD_NUMBER = 18; - private boolean inSchedule_ = false; - /** - *
-     *  是否计划车下线属性
-     *    	0:否
-     *  	1:是
-     * 
- * - * bool inSchedule = 18; - * @return The inSchedule. - */ - @java.lang.Override - public boolean getInSchedule() { - return inSchedule_; - } - - public static final int INTIME_FIELD_NUMBER = 19; - private long inTime_ = 0L; - /** - *
-     *  下线时间
-     * 
- * - * int64 inTime = 19; - * @return The inTime. - */ - @java.lang.Override - public long getInTime() { - return inTime_; - } - - public static final int INSTATION_FIELD_NUMBER = 20; - private int inStation_ = 0; - /** - *
-     *  下线车站编号(转换轨所在车站)
-     * 
- * - * int32 inStation = 20; - * @return The inStation. - */ - @java.lang.Override - public int getInStation() { - return inStation_; - } - - public static final int INSIDE_FIELD_NUMBER = 21; - private int inSide_ = 0; - /** - *
-     *  下线车站站台编号(下线转换轨对应的站台)
-     * 
- * - * int32 inSide = 21; - * @return The inSide. - */ - @java.lang.Override - public int getInSide() { - return inSide_; - } - - public static final int INNAME_FIELD_NUMBER = 22; - @SuppressWarnings("serial") - private volatile java.lang.Object inName_ = ""; - /** - *
-     *  下线转换轨名称
-     * 
- * - * string inName = 22; - * @return The inName. - */ - @java.lang.Override - public java.lang.String getInName() { - java.lang.Object ref = inName_; - 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(); - inName_ = s; - return s; - } - } - /** - *
-     *  下线转换轨名称
-     * 
- * - * string inName = 22; - * @return The bytes for inName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getInNameBytes() { - java.lang.Object ref = inName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INTRAINID_FIELD_NUMBER = 23; - @SuppressWarnings("serial") - private volatile java.lang.Object inTrainid_ = ""; - /** - *
-     *  下线表号
-     * 
- * - * string inTrainid = 23; - * @return The inTrainid. - */ - @java.lang.Override - public java.lang.String getInTrainid() { - java.lang.Object ref = inTrainid_; - 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(); - inTrainid_ = s; - return s; - } - } - /** - *
-     *  下线表号
-     * 
- * - * string inTrainid = 23; - * @return The bytes for inTrainid. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getInTrainidBytes() { - java.lang.Object ref = inTrainid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inTrainid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INDESTINATION_FIELD_NUMBER = 24; - @SuppressWarnings("serial") - private volatile java.lang.Object inDestination_ = ""; - /** - *
-     *  下线目的地号
-     * 
- * - * string inDestination = 24; - * @return The inDestination. - */ - @java.lang.Override - public java.lang.String getInDestination() { - java.lang.Object ref = inDestination_; - 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(); - inDestination_ = s; - return s; - } - } - /** - *
-     *  下线目的地号
-     * 
- * - * string inDestination = 24; - * @return The bytes for inDestination. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getInDestinationBytes() { - java.lang.Object ref = inDestination_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inDestination_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INGLOBALID_FIELD_NUMBER = 25; - @SuppressWarnings("serial") - private volatile java.lang.Object inGlobalid_ = ""; - /** - *
-     *  下线车次号
-     * 
- * - * string inGlobalid = 25; - * @return The inGlobalid. - */ - @java.lang.Override - public java.lang.String getInGlobalid() { - java.lang.Object ref = inGlobalid_; - 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(); - inGlobalid_ = s; - return s; - } - } - /** - *
-     *  下线车次号
-     * 
- * - * string inGlobalid = 25; - * @return The bytes for inGlobalid. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getInGlobalidBytes() { - java.lang.Object ref = inGlobalid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inGlobalid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INLOCALSUBID_FIELD_NUMBER = 26; - private int inLocalSubid_ = 0; - /** - *
-     *  下线序列号
-     * 
- * - * int32 inLocalSubid = 26; - * @return The inLocalSubid. - */ - @java.lang.Override - public int getInLocalSubid() { - return inLocalSubid_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (lineId_ != 0) { - output.writeInt32(1, lineId_); - } - if (date_ != 0L) { - output.writeInt64(2, date_); - } - if (depotStation_ != 0) { - output.writeInt32(4, depotStation_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, groupId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(driverId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, driverId_); - } - if (outFlag_ != false) { - output.writeBool(7, outFlag_); - } - if (outSchedule_ != false) { - output.writeBool(8, outSchedule_); - } - if (outTime_ != 0L) { - output.writeInt64(9, outTime_); - } - if (outStation_ != 0) { - output.writeInt32(10, outStation_); - } - if (outSide_ != 0) { - output.writeInt32(11, outSide_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 12, outName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outTrainid_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, outTrainid_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outDestination_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 14, outDestination_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outGlobalid_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 15, outGlobalid_); - } - if (outLocalSubid_ != 0) { - output.writeInt32(16, outLocalSubid_); - } - if (inFlag_ != false) { - output.writeBool(17, inFlag_); - } - if (inSchedule_ != false) { - output.writeBool(18, inSchedule_); - } - if (inTime_ != 0L) { - output.writeInt64(19, inTime_); - } - if (inStation_ != 0) { - output.writeInt32(20, inStation_); - } - if (inSide_ != 0) { - output.writeInt32(21, inSide_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 22, inName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inTrainid_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 23, inTrainid_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inDestination_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 24, inDestination_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inGlobalid_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 25, inGlobalid_); - } - if (inLocalSubid_ != 0) { - output.writeInt32(26, inLocalSubid_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (lineId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, lineId_); - } - if (date_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, date_); - } - if (depotStation_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, depotStation_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, groupId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(driverId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, driverId_); - } - if (outFlag_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, outFlag_); - } - if (outSchedule_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(8, outSchedule_); - } - if (outTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(9, outTime_); - } - if (outStation_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(10, outStation_); - } - if (outSide_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(11, outSide_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, outName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outTrainid_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, outTrainid_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outDestination_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, outDestination_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outGlobalid_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, outGlobalid_); - } - if (outLocalSubid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(16, outLocalSubid_); - } - if (inFlag_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(17, inFlag_); - } - if (inSchedule_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(18, inSchedule_); - } - if (inTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(19, inTime_); - } - if (inStation_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(20, inStation_); - } - if (inSide_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(21, inSide_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, inName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inTrainid_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, inTrainid_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inDestination_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, inDestination_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inGlobalid_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(25, inGlobalid_); - } - if (inLocalSubid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(26, inLocalSubid_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof club.joylink.xiannccda.dto.protos.CollectMsgAppend.DeportPlan)) { - return super.equals(obj); - } - club.joylink.xiannccda.dto.protos.CollectMsgAppend.DeportPlan other = (club.joylink.xiannccda.dto.protos.CollectMsgAppend.DeportPlan) obj; - - if (getLineId() - != other.getLineId()) return false; - if (getDate() - != other.getDate()) return false; - if (getDepotStation() - != other.getDepotStation()) return false; - if (!getGroupId() - .equals(other.getGroupId())) return false; - if (!getDriverId() - .equals(other.getDriverId())) return false; - if (getOutFlag() - != other.getOutFlag()) return false; - if (getOutSchedule() - != other.getOutSchedule()) return false; - if (getOutTime() - != other.getOutTime()) return false; - if (getOutStation() - != other.getOutStation()) return false; - if (getOutSide() - != other.getOutSide()) return false; - if (!getOutName() - .equals(other.getOutName())) return false; - if (!getOutTrainid() - .equals(other.getOutTrainid())) return false; - if (!getOutDestination() - .equals(other.getOutDestination())) return false; - if (!getOutGlobalid() - .equals(other.getOutGlobalid())) return false; - if (getOutLocalSubid() - != other.getOutLocalSubid()) return false; - if (getInFlag() - != other.getInFlag()) return false; - if (getInSchedule() - != other.getInSchedule()) return false; - if (getInTime() - != other.getInTime()) return false; - if (getInStation() - != other.getInStation()) return false; - if (getInSide() - != other.getInSide()) return false; - if (!getInName() - .equals(other.getInName())) return false; - if (!getInTrainid() - .equals(other.getInTrainid())) return false; - if (!getInDestination() - .equals(other.getInDestination())) return false; - if (!getInGlobalid() - .equals(other.getInGlobalid())) return false; - if (getInLocalSubid() - != other.getInLocalSubid()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + LINEID_FIELD_NUMBER; - hash = (53 * hash) + getLineId(); - hash = (37 * hash) + DATE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDate()); - hash = (37 * hash) + DEPOTSTATION_FIELD_NUMBER; - hash = (53 * hash) + getDepotStation(); - hash = (37 * hash) + GROUPID_FIELD_NUMBER; - hash = (53 * hash) + getGroupId().hashCode(); - hash = (37 * hash) + DRIVERID_FIELD_NUMBER; - hash = (53 * hash) + getDriverId().hashCode(); - hash = (37 * hash) + OUTFLAG_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getOutFlag()); - hash = (37 * hash) + OUTSCHEDULE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getOutSchedule()); - hash = (37 * hash) + OUTTIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getOutTime()); - hash = (37 * hash) + OUTSTATION_FIELD_NUMBER; - hash = (53 * hash) + getOutStation(); - hash = (37 * hash) + OUTSIDE_FIELD_NUMBER; - hash = (53 * hash) + getOutSide(); - hash = (37 * hash) + OUTNAME_FIELD_NUMBER; - hash = (53 * hash) + getOutName().hashCode(); - hash = (37 * hash) + OUTTRAINID_FIELD_NUMBER; - hash = (53 * hash) + getOutTrainid().hashCode(); - hash = (37 * hash) + OUTDESTINATION_FIELD_NUMBER; - hash = (53 * hash) + getOutDestination().hashCode(); - hash = (37 * hash) + OUTGLOBALID_FIELD_NUMBER; - hash = (53 * hash) + getOutGlobalid().hashCode(); - hash = (37 * hash) + OUTLOCALSUBID_FIELD_NUMBER; - hash = (53 * hash) + getOutLocalSubid(); - hash = (37 * hash) + INFLAG_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getInFlag()); - hash = (37 * hash) + INSCHEDULE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getInSchedule()); - hash = (37 * hash) + INTIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getInTime()); - hash = (37 * hash) + INSTATION_FIELD_NUMBER; - hash = (53 * hash) + getInStation(); - hash = (37 * hash) + INSIDE_FIELD_NUMBER; - hash = (53 * hash) + getInSide(); - hash = (37 * hash) + INNAME_FIELD_NUMBER; - hash = (53 * hash) + getInName().hashCode(); - hash = (37 * hash) + INTRAINID_FIELD_NUMBER; - hash = (53 * hash) + getInTrainid().hashCode(); - hash = (37 * hash) + INDESTINATION_FIELD_NUMBER; - hash = (53 * hash) + getInDestination().hashCode(); - hash = (37 * hash) + INGLOBALID_FIELD_NUMBER; - hash = (53 * hash) + getInGlobalid().hashCode(); - hash = (37 * hash) + INLOCALSUBID_FIELD_NUMBER; - hash = (53 * hash) + getInLocalSubid(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static club.joylink.xiannccda.dto.protos.CollectMsgAppend.DeportPlan parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static club.joylink.xiannccda.dto.protos.CollectMsgAppend.DeportPlan parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static club.joylink.xiannccda.dto.protos.CollectMsgAppend.DeportPlan parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static club.joylink.xiannccda.dto.protos.CollectMsgAppend.DeportPlan parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static club.joylink.xiannccda.dto.protos.CollectMsgAppend.DeportPlan parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static club.joylink.xiannccda.dto.protos.CollectMsgAppend.DeportPlan parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static club.joylink.xiannccda.dto.protos.CollectMsgAppend.DeportPlan parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static club.joylink.xiannccda.dto.protos.CollectMsgAppend.DeportPlan parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static club.joylink.xiannccda.dto.protos.CollectMsgAppend.DeportPlan parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static club.joylink.xiannccda.dto.protos.CollectMsgAppend.DeportPlan parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static club.joylink.xiannccda.dto.protos.CollectMsgAppend.DeportPlan parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static club.joylink.xiannccda.dto.protos.CollectMsgAppend.DeportPlan parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(club.joylink.xiannccda.dto.protos.CollectMsgAppend.DeportPlan 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 state.DeportPlan} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:state.DeportPlan) - club.joylink.xiannccda.dto.protos.CollectMsgAppend.DeportPlanOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return club.joylink.xiannccda.dto.protos.CollectMsgAppend.internal_static_state_DeportPlan_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return club.joylink.xiannccda.dto.protos.CollectMsgAppend.internal_static_state_DeportPlan_fieldAccessorTable - .ensureFieldAccessorsInitialized( - club.joylink.xiannccda.dto.protos.CollectMsgAppend.DeportPlan.class, club.joylink.xiannccda.dto.protos.CollectMsgAppend.DeportPlan.Builder.class); - } - - // Construct using club.joylink.xiannccda.dto.protos.CollectMsgAppend.DeportPlan.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - lineId_ = 0; - date_ = 0L; - depotStation_ = 0; - groupId_ = ""; - driverId_ = ""; - outFlag_ = false; - outSchedule_ = false; - outTime_ = 0L; - outStation_ = 0; - outSide_ = 0; - outName_ = ""; - outTrainid_ = ""; - outDestination_ = ""; - outGlobalid_ = ""; - outLocalSubid_ = 0; - inFlag_ = false; - inSchedule_ = false; - inTime_ = 0L; - inStation_ = 0; - inSide_ = 0; - inName_ = ""; - inTrainid_ = ""; - inDestination_ = ""; - inGlobalid_ = ""; - inLocalSubid_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return club.joylink.xiannccda.dto.protos.CollectMsgAppend.internal_static_state_DeportPlan_descriptor; - } - - @java.lang.Override - public club.joylink.xiannccda.dto.protos.CollectMsgAppend.DeportPlan getDefaultInstanceForType() { - return club.joylink.xiannccda.dto.protos.CollectMsgAppend.DeportPlan.getDefaultInstance(); - } - - @java.lang.Override - public club.joylink.xiannccda.dto.protos.CollectMsgAppend.DeportPlan build() { - club.joylink.xiannccda.dto.protos.CollectMsgAppend.DeportPlan result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public club.joylink.xiannccda.dto.protos.CollectMsgAppend.DeportPlan buildPartial() { - club.joylink.xiannccda.dto.protos.CollectMsgAppend.DeportPlan result = new club.joylink.xiannccda.dto.protos.CollectMsgAppend.DeportPlan(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(club.joylink.xiannccda.dto.protos.CollectMsgAppend.DeportPlan result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.lineId_ = lineId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.date_ = date_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.depotStation_ = depotStation_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.groupId_ = groupId_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.driverId_ = driverId_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.outFlag_ = outFlag_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.outSchedule_ = outSchedule_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.outTime_ = outTime_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.outStation_ = outStation_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.outSide_ = outSide_; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.outName_ = outName_; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.outTrainid_ = outTrainid_; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.outDestination_ = outDestination_; - } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.outGlobalid_ = outGlobalid_; - } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.outLocalSubid_ = outLocalSubid_; - } - if (((from_bitField0_ & 0x00008000) != 0)) { - result.inFlag_ = inFlag_; - } - if (((from_bitField0_ & 0x00010000) != 0)) { - result.inSchedule_ = inSchedule_; - } - if (((from_bitField0_ & 0x00020000) != 0)) { - result.inTime_ = inTime_; - } - if (((from_bitField0_ & 0x00040000) != 0)) { - result.inStation_ = inStation_; - } - if (((from_bitField0_ & 0x00080000) != 0)) { - result.inSide_ = inSide_; - } - if (((from_bitField0_ & 0x00100000) != 0)) { - result.inName_ = inName_; - } - if (((from_bitField0_ & 0x00200000) != 0)) { - result.inTrainid_ = inTrainid_; - } - if (((from_bitField0_ & 0x00400000) != 0)) { - result.inDestination_ = inDestination_; - } - if (((from_bitField0_ & 0x00800000) != 0)) { - result.inGlobalid_ = inGlobalid_; - } - if (((from_bitField0_ & 0x01000000) != 0)) { - result.inLocalSubid_ = inLocalSubid_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof club.joylink.xiannccda.dto.protos.CollectMsgAppend.DeportPlan) { - return mergeFrom((club.joylink.xiannccda.dto.protos.CollectMsgAppend.DeportPlan)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(club.joylink.xiannccda.dto.protos.CollectMsgAppend.DeportPlan other) { - if (other == club.joylink.xiannccda.dto.protos.CollectMsgAppend.DeportPlan.getDefaultInstance()) return this; - if (other.getLineId() != 0) { - setLineId(other.getLineId()); - } - if (other.getDate() != 0L) { - setDate(other.getDate()); - } - if (other.getDepotStation() != 0) { - setDepotStation(other.getDepotStation()); - } - if (!other.getGroupId().isEmpty()) { - groupId_ = other.groupId_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getDriverId().isEmpty()) { - driverId_ = other.driverId_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (other.getOutFlag() != false) { - setOutFlag(other.getOutFlag()); - } - if (other.getOutSchedule() != false) { - setOutSchedule(other.getOutSchedule()); - } - if (other.getOutTime() != 0L) { - setOutTime(other.getOutTime()); - } - if (other.getOutStation() != 0) { - setOutStation(other.getOutStation()); - } - if (other.getOutSide() != 0) { - setOutSide(other.getOutSide()); - } - if (!other.getOutName().isEmpty()) { - outName_ = other.outName_; - bitField0_ |= 0x00000400; - onChanged(); - } - if (!other.getOutTrainid().isEmpty()) { - outTrainid_ = other.outTrainid_; - bitField0_ |= 0x00000800; - onChanged(); - } - if (!other.getOutDestination().isEmpty()) { - outDestination_ = other.outDestination_; - bitField0_ |= 0x00001000; - onChanged(); - } - if (!other.getOutGlobalid().isEmpty()) { - outGlobalid_ = other.outGlobalid_; - bitField0_ |= 0x00002000; - onChanged(); - } - if (other.getOutLocalSubid() != 0) { - setOutLocalSubid(other.getOutLocalSubid()); - } - if (other.getInFlag() != false) { - setInFlag(other.getInFlag()); - } - if (other.getInSchedule() != false) { - setInSchedule(other.getInSchedule()); - } - if (other.getInTime() != 0L) { - setInTime(other.getInTime()); - } - if (other.getInStation() != 0) { - setInStation(other.getInStation()); - } - if (other.getInSide() != 0) { - setInSide(other.getInSide()); - } - if (!other.getInName().isEmpty()) { - inName_ = other.inName_; - bitField0_ |= 0x00100000; - onChanged(); - } - if (!other.getInTrainid().isEmpty()) { - inTrainid_ = other.inTrainid_; - bitField0_ |= 0x00200000; - onChanged(); - } - if (!other.getInDestination().isEmpty()) { - inDestination_ = other.inDestination_; - bitField0_ |= 0x00400000; - onChanged(); - } - if (!other.getInGlobalid().isEmpty()) { - inGlobalid_ = other.inGlobalid_; - bitField0_ |= 0x00800000; - onChanged(); - } - if (other.getInLocalSubid() != 0) { - setInLocalSubid(other.getInLocalSubid()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - lineId_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - date_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 32: { - depotStation_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 32 - case 42: { - groupId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 50: { - driverId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 50 - case 56: { - outFlag_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 56 - case 64: { - outSchedule_ = input.readBool(); - bitField0_ |= 0x00000040; - break; - } // case 64 - case 72: { - outTime_ = input.readInt64(); - bitField0_ |= 0x00000080; - break; - } // case 72 - case 80: { - outStation_ = input.readInt32(); - bitField0_ |= 0x00000100; - break; - } // case 80 - case 88: { - outSide_ = input.readInt32(); - bitField0_ |= 0x00000200; - break; - } // case 88 - case 98: { - outName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; - break; - } // case 98 - case 106: { - outTrainid_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; - break; - } // case 106 - case 114: { - outDestination_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; - break; - } // case 114 - case 122: { - outGlobalid_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00002000; - break; - } // case 122 - case 128: { - outLocalSubid_ = input.readInt32(); - bitField0_ |= 0x00004000; - break; - } // case 128 - case 136: { - inFlag_ = input.readBool(); - bitField0_ |= 0x00008000; - break; - } // case 136 - case 144: { - inSchedule_ = input.readBool(); - bitField0_ |= 0x00010000; - break; - } // case 144 - case 152: { - inTime_ = input.readInt64(); - bitField0_ |= 0x00020000; - break; - } // case 152 - case 160: { - inStation_ = input.readInt32(); - bitField0_ |= 0x00040000; - break; - } // case 160 - case 168: { - inSide_ = input.readInt32(); - bitField0_ |= 0x00080000; - break; - } // case 168 - case 178: { - inName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00100000; - break; - } // case 178 - case 186: { - inTrainid_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00200000; - break; - } // case 186 - case 194: { - inDestination_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00400000; - break; - } // case 194 - case 202: { - inGlobalid_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00800000; - break; - } // case 202 - case 208: { - inLocalSubid_ = input.readInt32(); - bitField0_ |= 0x01000000; - break; - } // case 208 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int lineId_ ; - /** - * int32 lineId = 1; - * @return The lineId. - */ - @java.lang.Override - public int getLineId() { - return lineId_; - } - /** - * int32 lineId = 1; - * @param value The lineId to set. - * @return This builder for chaining. - */ - public Builder setLineId(int value) { - - lineId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 lineId = 1; - * @return This builder for chaining. - */ - public Builder clearLineId() { - bitField0_ = (bitField0_ & ~0x00000001); - lineId_ = 0; - onChanged(); - return this; - } - - private long date_ ; - /** - *
-       *  出入库日期
-       * 
- * - * int64 date = 2; - * @return The date. - */ - @java.lang.Override - public long getDate() { - return date_; - } - /** - *
-       *  出入库日期
-       * 
- * - * int64 date = 2; - * @param value The date to set. - * @return This builder for chaining. - */ - public Builder setDate(long value) { - - date_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       *  出入库日期
-       * 
- * - * int64 date = 2; - * @return This builder for chaining. - */ - public Builder clearDate() { - bitField0_ = (bitField0_ & ~0x00000002); - date_ = 0L; - onChanged(); - return this; - } - - private int depotStation_ ; - /** - *
-       *  出入库记录数
-       *  int32 depotCount = 3;
-       *  出入库终端站号(车辆段/停车场的站号)
-       * 
- * - * int32 depotStation = 4; - * @return The depotStation. - */ - @java.lang.Override - public int getDepotStation() { - return depotStation_; - } - /** - *
-       *  出入库记录数
-       *  int32 depotCount = 3;
-       *  出入库终端站号(车辆段/停车场的站号)
-       * 
- * - * int32 depotStation = 4; - * @param value The depotStation to set. - * @return This builder for chaining. - */ - public Builder setDepotStation(int value) { - - depotStation_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       *  出入库记录数
-       *  int32 depotCount = 3;
-       *  出入库终端站号(车辆段/停车场的站号)
-       * 
- * - * int32 depotStation = 4; - * @return This builder for chaining. - */ - public Builder clearDepotStation() { - bitField0_ = (bitField0_ & ~0x00000004); - depotStation_ = 0; - onChanged(); - return this; - } - - private java.lang.Object groupId_ = ""; - /** - *
-       *  车组号
-       * 
- * - * string groupId = 5; - * @return The groupId. - */ - public java.lang.String getGroupId() { - java.lang.Object ref = groupId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - groupId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *  车组号
-       * 
- * - * string groupId = 5; - * @return The bytes for groupId. - */ - public com.google.protobuf.ByteString - getGroupIdBytes() { - java.lang.Object ref = groupId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - groupId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *  车组号
-       * 
- * - * string groupId = 5; - * @param value The groupId to set. - * @return This builder for chaining. - */ - public Builder setGroupId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - groupId_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-       *  车组号
-       * 
- * - * string groupId = 5; - * @return This builder for chaining. - */ - public Builder clearGroupId() { - groupId_ = getDefaultInstance().getGroupId(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - *
-       *  车组号
-       * 
- * - * string groupId = 5; - * @param value The bytes for groupId to set. - * @return This builder for chaining. - */ - public Builder setGroupIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - groupId_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private java.lang.Object driverId_ = ""; - /** - *
-       *  司机号
-       * 
- * - * string driverId = 6; - * @return The driverId. - */ - public java.lang.String getDriverId() { - java.lang.Object ref = driverId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - driverId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *  司机号
-       * 
- * - * string driverId = 6; - * @return The bytes for driverId. - */ - public com.google.protobuf.ByteString - getDriverIdBytes() { - java.lang.Object ref = driverId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - driverId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *  司机号
-       * 
- * - * string driverId = 6; - * @param value The driverId to set. - * @return This builder for chaining. - */ - public Builder setDriverId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - driverId_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-       *  司机号
-       * 
- * - * string driverId = 6; - * @return This builder for chaining. - */ - public Builder clearDriverId() { - driverId_ = getDefaultInstance().getDriverId(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - *
-       *  司机号
-       * 
- * - * string driverId = 6; - * @param value The bytes for driverId to set. - * @return This builder for chaining. - */ - public Builder setDriverIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - driverId_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private boolean outFlag_ ; - /** - * bool outFlag = 7; - * @return The outFlag. - */ - @java.lang.Override - public boolean getOutFlag() { - return outFlag_; - } - /** - * bool outFlag = 7; - * @param value The outFlag to set. - * @return This builder for chaining. - */ - public Builder setOutFlag(boolean value) { - - outFlag_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * bool outFlag = 7; - * @return This builder for chaining. - */ - public Builder clearOutFlag() { - bitField0_ = (bitField0_ & ~0x00000020); - outFlag_ = false; - onChanged(); - return this; - } - - private boolean outSchedule_ ; - /** - *
-       *是否计划车上线属性
-       *    	0:否
-       *  	1:是
-       * 
- * - * bool outSchedule = 8; - * @return The outSchedule. - */ - @java.lang.Override - public boolean getOutSchedule() { - return outSchedule_; - } - /** - *
-       *是否计划车上线属性
-       *    	0:否
-       *  	1:是
-       * 
- * - * bool outSchedule = 8; - * @param value The outSchedule to set. - * @return This builder for chaining. - */ - public Builder setOutSchedule(boolean value) { - - outSchedule_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-       *是否计划车上线属性
-       *    	0:否
-       *  	1:是
-       * 
- * - * bool outSchedule = 8; - * @return This builder for chaining. - */ - public Builder clearOutSchedule() { - bitField0_ = (bitField0_ & ~0x00000040); - outSchedule_ = false; - onChanged(); - return this; - } - - private long outTime_ ; - /** - *
-       *  上线时间
-       * 
- * - * int64 outTime = 9; - * @return The outTime. - */ - @java.lang.Override - public long getOutTime() { - return outTime_; - } - /** - *
-       *  上线时间
-       * 
- * - * int64 outTime = 9; - * @param value The outTime to set. - * @return This builder for chaining. - */ - public Builder setOutTime(long value) { - - outTime_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-       *  上线时间
-       * 
- * - * int64 outTime = 9; - * @return This builder for chaining. - */ - public Builder clearOutTime() { - bitField0_ = (bitField0_ & ~0x00000080); - outTime_ = 0L; - onChanged(); - return this; - } - - private int outStation_ ; - /** - *
-       *  上线车站编号(转换轨所在车站)
-       * 
- * - * int32 outStation = 10; - * @return The outStation. - */ - @java.lang.Override - public int getOutStation() { - return outStation_; - } - /** - *
-       *  上线车站编号(转换轨所在车站)
-       * 
- * - * int32 outStation = 10; - * @param value The outStation to set. - * @return This builder for chaining. - */ - public Builder setOutStation(int value) { - - outStation_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - *
-       *  上线车站编号(转换轨所在车站)
-       * 
- * - * int32 outStation = 10; - * @return This builder for chaining. - */ - public Builder clearOutStation() { - bitField0_ = (bitField0_ & ~0x00000100); - outStation_ = 0; - onChanged(); - return this; - } - - private int outSide_ ; - /** - *
-       *  上线车站站台编号(上线转换轨对应的站台)
-       * 
- * - * int32 outSide = 11; - * @return The outSide. - */ - @java.lang.Override - public int getOutSide() { - return outSide_; - } - /** - *
-       *  上线车站站台编号(上线转换轨对应的站台)
-       * 
- * - * int32 outSide = 11; - * @param value The outSide to set. - * @return This builder for chaining. - */ - public Builder setOutSide(int value) { - - outSide_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - *
-       *  上线车站站台编号(上线转换轨对应的站台)
-       * 
- * - * int32 outSide = 11; - * @return This builder for chaining. - */ - public Builder clearOutSide() { - bitField0_ = (bitField0_ & ~0x00000200); - outSide_ = 0; - onChanged(); - return this; - } - - private java.lang.Object outName_ = ""; - /** - *
-       *  上线转换轨名称(左对齐,其它空字符填\0)
-       * 
- * - * string outName = 12; - * @return The outName. - */ - public java.lang.String getOutName() { - java.lang.Object ref = outName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - outName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *  上线转换轨名称(左对齐,其它空字符填\0)
-       * 
- * - * string outName = 12; - * @return The bytes for outName. - */ - public com.google.protobuf.ByteString - getOutNameBytes() { - java.lang.Object ref = outName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - outName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *  上线转换轨名称(左对齐,其它空字符填\0)
-       * 
- * - * string outName = 12; - * @param value The outName to set. - * @return This builder for chaining. - */ - public Builder setOutName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - outName_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - *
-       *  上线转换轨名称(左对齐,其它空字符填\0)
-       * 
- * - * string outName = 12; - * @return This builder for chaining. - */ - public Builder clearOutName() { - outName_ = getDefaultInstance().getOutName(); - bitField0_ = (bitField0_ & ~0x00000400); - onChanged(); - return this; - } - /** - *
-       *  上线转换轨名称(左对齐,其它空字符填\0)
-       * 
- * - * string outName = 12; - * @param value The bytes for outName to set. - * @return This builder for chaining. - */ - public Builder setOutNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - outName_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - - private java.lang.Object outTrainid_ = ""; - /** - *
-       *  上线表号
-       * 
- * - * string outTrainid = 13; - * @return The outTrainid. - */ - public java.lang.String getOutTrainid() { - java.lang.Object ref = outTrainid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - outTrainid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *  上线表号
-       * 
- * - * string outTrainid = 13; - * @return The bytes for outTrainid. - */ - public com.google.protobuf.ByteString - getOutTrainidBytes() { - java.lang.Object ref = outTrainid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - outTrainid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *  上线表号
-       * 
- * - * string outTrainid = 13; - * @param value The outTrainid to set. - * @return This builder for chaining. - */ - public Builder setOutTrainid( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - outTrainid_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - *
-       *  上线表号
-       * 
- * - * string outTrainid = 13; - * @return This builder for chaining. - */ - public Builder clearOutTrainid() { - outTrainid_ = getDefaultInstance().getOutTrainid(); - bitField0_ = (bitField0_ & ~0x00000800); - onChanged(); - return this; - } - /** - *
-       *  上线表号
-       * 
- * - * string outTrainid = 13; - * @param value The bytes for outTrainid to set. - * @return This builder for chaining. - */ - public Builder setOutTrainidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - outTrainid_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - - private java.lang.Object outDestination_ = ""; - /** - *
-       *  上线目的地号
-       * 
- * - * string outDestination = 14; - * @return The outDestination. - */ - public java.lang.String getOutDestination() { - java.lang.Object ref = outDestination_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - outDestination_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *  上线目的地号
-       * 
- * - * string outDestination = 14; - * @return The bytes for outDestination. - */ - public com.google.protobuf.ByteString - getOutDestinationBytes() { - java.lang.Object ref = outDestination_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - outDestination_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *  上线目的地号
-       * 
- * - * string outDestination = 14; - * @param value The outDestination to set. - * @return This builder for chaining. - */ - public Builder setOutDestination( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - outDestination_ = value; - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - /** - *
-       *  上线目的地号
-       * 
- * - * string outDestination = 14; - * @return This builder for chaining. - */ - public Builder clearOutDestination() { - outDestination_ = getDefaultInstance().getOutDestination(); - bitField0_ = (bitField0_ & ~0x00001000); - onChanged(); - return this; - } - /** - *
-       *  上线目的地号
-       * 
- * - * string outDestination = 14; - * @param value The bytes for outDestination to set. - * @return This builder for chaining. - */ - public Builder setOutDestinationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - outDestination_ = value; - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - - private java.lang.Object outGlobalid_ = ""; - /** - *
-       *  上线车次号
-       * 
- * - * string outGlobalid = 15; - * @return The outGlobalid. - */ - public java.lang.String getOutGlobalid() { - java.lang.Object ref = outGlobalid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - outGlobalid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *  上线车次号
-       * 
- * - * string outGlobalid = 15; - * @return The bytes for outGlobalid. - */ - public com.google.protobuf.ByteString - getOutGlobalidBytes() { - java.lang.Object ref = outGlobalid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - outGlobalid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *  上线车次号
-       * 
- * - * string outGlobalid = 15; - * @param value The outGlobalid to set. - * @return This builder for chaining. - */ - public Builder setOutGlobalid( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - outGlobalid_ = value; - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - *
-       *  上线车次号
-       * 
- * - * string outGlobalid = 15; - * @return This builder for chaining. - */ - public Builder clearOutGlobalid() { - outGlobalid_ = getDefaultInstance().getOutGlobalid(); - bitField0_ = (bitField0_ & ~0x00002000); - onChanged(); - return this; - } - /** - *
-       *  上线车次号
-       * 
- * - * string outGlobalid = 15; - * @param value The bytes for outGlobalid to set. - * @return This builder for chaining. - */ - public Builder setOutGlobalidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - outGlobalid_ = value; - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - - private int outLocalSubid_ ; - /** - *
-       *  上线序列号
-       * 
- * - * int32 outLocalSubid = 16; - * @return The outLocalSubid. - */ - @java.lang.Override - public int getOutLocalSubid() { - return outLocalSubid_; - } - /** - *
-       *  上线序列号
-       * 
- * - * int32 outLocalSubid = 16; - * @param value The outLocalSubid to set. - * @return This builder for chaining. - */ - public Builder setOutLocalSubid(int value) { - - outLocalSubid_ = value; - bitField0_ |= 0x00004000; - onChanged(); - return this; - } - /** - *
-       *  上线序列号
-       * 
- * - * int32 outLocalSubid = 16; - * @return This builder for chaining. - */ - public Builder clearOutLocalSubid() { - bitField0_ = (bitField0_ & ~0x00004000); - outLocalSubid_ = 0; - onChanged(); - return this; - } - - private boolean inFlag_ ; - /** - *
-       *  回库状态
-       *    	0表示未回库;
-       *  	1表示已回库
-       * 
- * - * bool inFlag = 17; - * @return The inFlag. - */ - @java.lang.Override - public boolean getInFlag() { - return inFlag_; - } - /** - *
-       *  回库状态
-       *    	0表示未回库;
-       *  	1表示已回库
-       * 
- * - * bool inFlag = 17; - * @param value The inFlag to set. - * @return This builder for chaining. - */ - public Builder setInFlag(boolean value) { - - inFlag_ = value; - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - /** - *
-       *  回库状态
-       *    	0表示未回库;
-       *  	1表示已回库
-       * 
- * - * bool inFlag = 17; - * @return This builder for chaining. - */ - public Builder clearInFlag() { - bitField0_ = (bitField0_ & ~0x00008000); - inFlag_ = false; - onChanged(); - return this; - } - - private boolean inSchedule_ ; - /** - *
-       *  是否计划车下线属性
-       *    	0:否
-       *  	1:是
-       * 
- * - * bool inSchedule = 18; - * @return The inSchedule. - */ - @java.lang.Override - public boolean getInSchedule() { - return inSchedule_; - } - /** - *
-       *  是否计划车下线属性
-       *    	0:否
-       *  	1:是
-       * 
- * - * bool inSchedule = 18; - * @param value The inSchedule to set. - * @return This builder for chaining. - */ - public Builder setInSchedule(boolean value) { - - inSchedule_ = value; - bitField0_ |= 0x00010000; - onChanged(); - return this; - } - /** - *
-       *  是否计划车下线属性
-       *    	0:否
-       *  	1:是
-       * 
- * - * bool inSchedule = 18; - * @return This builder for chaining. - */ - public Builder clearInSchedule() { - bitField0_ = (bitField0_ & ~0x00010000); - inSchedule_ = false; - onChanged(); - return this; - } - - private long inTime_ ; - /** - *
-       *  下线时间
-       * 
- * - * int64 inTime = 19; - * @return The inTime. - */ - @java.lang.Override - public long getInTime() { - return inTime_; - } - /** - *
-       *  下线时间
-       * 
- * - * int64 inTime = 19; - * @param value The inTime to set. - * @return This builder for chaining. - */ - public Builder setInTime(long value) { - - inTime_ = value; - bitField0_ |= 0x00020000; - onChanged(); - return this; - } - /** - *
-       *  下线时间
-       * 
- * - * int64 inTime = 19; - * @return This builder for chaining. - */ - public Builder clearInTime() { - bitField0_ = (bitField0_ & ~0x00020000); - inTime_ = 0L; - onChanged(); - return this; - } - - private int inStation_ ; - /** - *
-       *  下线车站编号(转换轨所在车站)
-       * 
- * - * int32 inStation = 20; - * @return The inStation. - */ - @java.lang.Override - public int getInStation() { - return inStation_; - } - /** - *
-       *  下线车站编号(转换轨所在车站)
-       * 
- * - * int32 inStation = 20; - * @param value The inStation to set. - * @return This builder for chaining. - */ - public Builder setInStation(int value) { - - inStation_ = value; - bitField0_ |= 0x00040000; - onChanged(); - return this; - } - /** - *
-       *  下线车站编号(转换轨所在车站)
-       * 
- * - * int32 inStation = 20; - * @return This builder for chaining. - */ - public Builder clearInStation() { - bitField0_ = (bitField0_ & ~0x00040000); - inStation_ = 0; - onChanged(); - return this; - } - - private int inSide_ ; - /** - *
-       *  下线车站站台编号(下线转换轨对应的站台)
-       * 
- * - * int32 inSide = 21; - * @return The inSide. - */ - @java.lang.Override - public int getInSide() { - return inSide_; - } - /** - *
-       *  下线车站站台编号(下线转换轨对应的站台)
-       * 
- * - * int32 inSide = 21; - * @param value The inSide to set. - * @return This builder for chaining. - */ - public Builder setInSide(int value) { - - inSide_ = value; - bitField0_ |= 0x00080000; - onChanged(); - return this; - } - /** - *
-       *  下线车站站台编号(下线转换轨对应的站台)
-       * 
- * - * int32 inSide = 21; - * @return This builder for chaining. - */ - public Builder clearInSide() { - bitField0_ = (bitField0_ & ~0x00080000); - inSide_ = 0; - onChanged(); - return this; - } - - private java.lang.Object inName_ = ""; - /** - *
-       *  下线转换轨名称
-       * 
- * - * string inName = 22; - * @return The inName. - */ - public java.lang.String getInName() { - java.lang.Object ref = inName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - inName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *  下线转换轨名称
-       * 
- * - * string inName = 22; - * @return The bytes for inName. - */ - public com.google.protobuf.ByteString - getInNameBytes() { - java.lang.Object ref = inName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *  下线转换轨名称
-       * 
- * - * string inName = 22; - * @param value The inName to set. - * @return This builder for chaining. - */ - public Builder setInName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - inName_ = value; - bitField0_ |= 0x00100000; - onChanged(); - return this; - } - /** - *
-       *  下线转换轨名称
-       * 
- * - * string inName = 22; - * @return This builder for chaining. - */ - public Builder clearInName() { - inName_ = getDefaultInstance().getInName(); - bitField0_ = (bitField0_ & ~0x00100000); - onChanged(); - return this; - } - /** - *
-       *  下线转换轨名称
-       * 
- * - * string inName = 22; - * @param value The bytes for inName to set. - * @return This builder for chaining. - */ - public Builder setInNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - inName_ = value; - bitField0_ |= 0x00100000; - onChanged(); - return this; - } - - private java.lang.Object inTrainid_ = ""; - /** - *
-       *  下线表号
-       * 
- * - * string inTrainid = 23; - * @return The inTrainid. - */ - public java.lang.String getInTrainid() { - java.lang.Object ref = inTrainid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - inTrainid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *  下线表号
-       * 
- * - * string inTrainid = 23; - * @return The bytes for inTrainid. - */ - public com.google.protobuf.ByteString - getInTrainidBytes() { - java.lang.Object ref = inTrainid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inTrainid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *  下线表号
-       * 
- * - * string inTrainid = 23; - * @param value The inTrainid to set. - * @return This builder for chaining. - */ - public Builder setInTrainid( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - inTrainid_ = value; - bitField0_ |= 0x00200000; - onChanged(); - return this; - } - /** - *
-       *  下线表号
-       * 
- * - * string inTrainid = 23; - * @return This builder for chaining. - */ - public Builder clearInTrainid() { - inTrainid_ = getDefaultInstance().getInTrainid(); - bitField0_ = (bitField0_ & ~0x00200000); - onChanged(); - return this; - } - /** - *
-       *  下线表号
-       * 
- * - * string inTrainid = 23; - * @param value The bytes for inTrainid to set. - * @return This builder for chaining. - */ - public Builder setInTrainidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - inTrainid_ = value; - bitField0_ |= 0x00200000; - onChanged(); - return this; - } - - private java.lang.Object inDestination_ = ""; - /** - *
-       *  下线目的地号
-       * 
- * - * string inDestination = 24; - * @return The inDestination. - */ - public java.lang.String getInDestination() { - java.lang.Object ref = inDestination_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - inDestination_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *  下线目的地号
-       * 
- * - * string inDestination = 24; - * @return The bytes for inDestination. - */ - public com.google.protobuf.ByteString - getInDestinationBytes() { - java.lang.Object ref = inDestination_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inDestination_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *  下线目的地号
-       * 
- * - * string inDestination = 24; - * @param value The inDestination to set. - * @return This builder for chaining. - */ - public Builder setInDestination( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - inDestination_ = value; - bitField0_ |= 0x00400000; - onChanged(); - return this; - } - /** - *
-       *  下线目的地号
-       * 
- * - * string inDestination = 24; - * @return This builder for chaining. - */ - public Builder clearInDestination() { - inDestination_ = getDefaultInstance().getInDestination(); - bitField0_ = (bitField0_ & ~0x00400000); - onChanged(); - return this; - } - /** - *
-       *  下线目的地号
-       * 
- * - * string inDestination = 24; - * @param value The bytes for inDestination to set. - * @return This builder for chaining. - */ - public Builder setInDestinationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - inDestination_ = value; - bitField0_ |= 0x00400000; - onChanged(); - return this; - } - - private java.lang.Object inGlobalid_ = ""; - /** - *
-       *  下线车次号
-       * 
- * - * string inGlobalid = 25; - * @return The inGlobalid. - */ - public java.lang.String getInGlobalid() { - java.lang.Object ref = inGlobalid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - inGlobalid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *  下线车次号
-       * 
- * - * string inGlobalid = 25; - * @return The bytes for inGlobalid. - */ - public com.google.protobuf.ByteString - getInGlobalidBytes() { - java.lang.Object ref = inGlobalid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inGlobalid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *  下线车次号
-       * 
- * - * string inGlobalid = 25; - * @param value The inGlobalid to set. - * @return This builder for chaining. - */ - public Builder setInGlobalid( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - inGlobalid_ = value; - bitField0_ |= 0x00800000; - onChanged(); - return this; - } - /** - *
-       *  下线车次号
-       * 
- * - * string inGlobalid = 25; - * @return This builder for chaining. - */ - public Builder clearInGlobalid() { - inGlobalid_ = getDefaultInstance().getInGlobalid(); - bitField0_ = (bitField0_ & ~0x00800000); - onChanged(); - return this; - } - /** - *
-       *  下线车次号
-       * 
- * - * string inGlobalid = 25; - * @param value The bytes for inGlobalid to set. - * @return This builder for chaining. - */ - public Builder setInGlobalidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - inGlobalid_ = value; - bitField0_ |= 0x00800000; - onChanged(); - return this; - } - - private int inLocalSubid_ ; - /** - *
-       *  下线序列号
-       * 
- * - * int32 inLocalSubid = 26; - * @return The inLocalSubid. - */ - @java.lang.Override - public int getInLocalSubid() { - return inLocalSubid_; - } - /** - *
-       *  下线序列号
-       * 
- * - * int32 inLocalSubid = 26; - * @param value The inLocalSubid to set. - * @return This builder for chaining. - */ - public Builder setInLocalSubid(int value) { - - inLocalSubid_ = value; - bitField0_ |= 0x01000000; - onChanged(); - return this; - } - /** - *
-       *  下线序列号
-       * 
- * - * int32 inLocalSubid = 26; - * @return This builder for chaining. - */ - public Builder clearInLocalSubid() { - bitField0_ = (bitField0_ & ~0x01000000); - inLocalSubid_ = 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:state.DeportPlan) - } - - // @@protoc_insertion_point(class_scope:state.DeportPlan) - private static final club.joylink.xiannccda.dto.protos.CollectMsgAppend.DeportPlan DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new club.joylink.xiannccda.dto.protos.CollectMsgAppend.DeportPlan(); - } - - public static club.joylink.xiannccda.dto.protos.CollectMsgAppend.DeportPlan getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeportPlan parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public club.joylink.xiannccda.dto.protos.CollectMsgAppend.DeportPlan getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface InUsedScheduleParameterOrBuilder extends - // @@protoc_insertion_point(interface_extends:state.InUsedScheduleParameter) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 lineId = 1; - * @return The lineId. - */ - int getLineId(); - - /** - * int64 date = 2; - * @return The date. - */ - long getDate(); - - /** - *
-     *0x01:参数有效 true
-     *0x02:参数无效 false
-     * 
- * - * bool valid = 3; - * @return The valid. - */ - boolean getValid(); - - /** - * string inusedScheduleName = 4; - * @return The inusedScheduleName. - */ - java.lang.String getInusedScheduleName(); - /** - * string inusedScheduleName = 4; - * @return The bytes for inusedScheduleName. - */ - com.google.protobuf.ByteString - getInusedScheduleNameBytes(); - } - /** - * Protobuf type {@code state.InUsedScheduleParameter} - */ - public static final class InUsedScheduleParameter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:state.InUsedScheduleParameter) - InUsedScheduleParameterOrBuilder { - private static final long serialVersionUID = 0L; - // Use InUsedScheduleParameter.newBuilder() to construct. - private InUsedScheduleParameter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private InUsedScheduleParameter() { - inusedScheduleName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new InUsedScheduleParameter(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return club.joylink.xiannccda.dto.protos.CollectMsgAppend.internal_static_state_InUsedScheduleParameter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return club.joylink.xiannccda.dto.protos.CollectMsgAppend.internal_static_state_InUsedScheduleParameter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - club.joylink.xiannccda.dto.protos.CollectMsgAppend.InUsedScheduleParameter.class, club.joylink.xiannccda.dto.protos.CollectMsgAppend.InUsedScheduleParameter.Builder.class); - } - - public static final int LINEID_FIELD_NUMBER = 1; - private int lineId_ = 0; - /** - * int32 lineId = 1; - * @return The lineId. - */ - @java.lang.Override - public int getLineId() { - return lineId_; - } - - public static final int DATE_FIELD_NUMBER = 2; - private long date_ = 0L; - /** - * int64 date = 2; - * @return The date. - */ - @java.lang.Override - public long getDate() { - return date_; - } - - public static final int VALID_FIELD_NUMBER = 3; - private boolean valid_ = false; - /** - *
-     *0x01:参数有效 true
-     *0x02:参数无效 false
-     * 
- * - * bool valid = 3; - * @return The valid. - */ - @java.lang.Override - public boolean getValid() { - return valid_; - } - - public static final int INUSEDSCHEDULENAME_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private volatile java.lang.Object inusedScheduleName_ = ""; - /** - * string inusedScheduleName = 4; - * @return The inusedScheduleName. - */ - @java.lang.Override - public java.lang.String getInusedScheduleName() { - java.lang.Object ref = inusedScheduleName_; - 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(); - inusedScheduleName_ = s; - return s; - } - } - /** - * string inusedScheduleName = 4; - * @return The bytes for inusedScheduleName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getInusedScheduleNameBytes() { - java.lang.Object ref = inusedScheduleName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inusedScheduleName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (lineId_ != 0) { - output.writeInt32(1, lineId_); - } - if (date_ != 0L) { - output.writeInt64(2, date_); - } - if (valid_ != false) { - output.writeBool(3, valid_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inusedScheduleName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, inusedScheduleName_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (lineId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, lineId_); - } - if (date_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, date_); - } - if (valid_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, valid_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inusedScheduleName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, inusedScheduleName_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof club.joylink.xiannccda.dto.protos.CollectMsgAppend.InUsedScheduleParameter)) { - return super.equals(obj); - } - club.joylink.xiannccda.dto.protos.CollectMsgAppend.InUsedScheduleParameter other = (club.joylink.xiannccda.dto.protos.CollectMsgAppend.InUsedScheduleParameter) obj; - - if (getLineId() - != other.getLineId()) return false; - if (getDate() - != other.getDate()) return false; - if (getValid() - != other.getValid()) return false; - if (!getInusedScheduleName() - .equals(other.getInusedScheduleName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + LINEID_FIELD_NUMBER; - hash = (53 * hash) + getLineId(); - hash = (37 * hash) + DATE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDate()); - hash = (37 * hash) + VALID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValid()); - hash = (37 * hash) + INUSEDSCHEDULENAME_FIELD_NUMBER; - hash = (53 * hash) + getInusedScheduleName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static club.joylink.xiannccda.dto.protos.CollectMsgAppend.InUsedScheduleParameter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static club.joylink.xiannccda.dto.protos.CollectMsgAppend.InUsedScheduleParameter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static club.joylink.xiannccda.dto.protos.CollectMsgAppend.InUsedScheduleParameter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static club.joylink.xiannccda.dto.protos.CollectMsgAppend.InUsedScheduleParameter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static club.joylink.xiannccda.dto.protos.CollectMsgAppend.InUsedScheduleParameter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static club.joylink.xiannccda.dto.protos.CollectMsgAppend.InUsedScheduleParameter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static club.joylink.xiannccda.dto.protos.CollectMsgAppend.InUsedScheduleParameter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static club.joylink.xiannccda.dto.protos.CollectMsgAppend.InUsedScheduleParameter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static club.joylink.xiannccda.dto.protos.CollectMsgAppend.InUsedScheduleParameter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static club.joylink.xiannccda.dto.protos.CollectMsgAppend.InUsedScheduleParameter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static club.joylink.xiannccda.dto.protos.CollectMsgAppend.InUsedScheduleParameter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static club.joylink.xiannccda.dto.protos.CollectMsgAppend.InUsedScheduleParameter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(club.joylink.xiannccda.dto.protos.CollectMsgAppend.InUsedScheduleParameter 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 state.InUsedScheduleParameter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:state.InUsedScheduleParameter) - club.joylink.xiannccda.dto.protos.CollectMsgAppend.InUsedScheduleParameterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return club.joylink.xiannccda.dto.protos.CollectMsgAppend.internal_static_state_InUsedScheduleParameter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return club.joylink.xiannccda.dto.protos.CollectMsgAppend.internal_static_state_InUsedScheduleParameter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - club.joylink.xiannccda.dto.protos.CollectMsgAppend.InUsedScheduleParameter.class, club.joylink.xiannccda.dto.protos.CollectMsgAppend.InUsedScheduleParameter.Builder.class); - } - - // Construct using club.joylink.xiannccda.dto.protos.CollectMsgAppend.InUsedScheduleParameter.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - lineId_ = 0; - date_ = 0L; - valid_ = false; - inusedScheduleName_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return club.joylink.xiannccda.dto.protos.CollectMsgAppend.internal_static_state_InUsedScheduleParameter_descriptor; - } - - @java.lang.Override - public club.joylink.xiannccda.dto.protos.CollectMsgAppend.InUsedScheduleParameter getDefaultInstanceForType() { - return club.joylink.xiannccda.dto.protos.CollectMsgAppend.InUsedScheduleParameter.getDefaultInstance(); - } - - @java.lang.Override - public club.joylink.xiannccda.dto.protos.CollectMsgAppend.InUsedScheduleParameter build() { - club.joylink.xiannccda.dto.protos.CollectMsgAppend.InUsedScheduleParameter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public club.joylink.xiannccda.dto.protos.CollectMsgAppend.InUsedScheduleParameter buildPartial() { - club.joylink.xiannccda.dto.protos.CollectMsgAppend.InUsedScheduleParameter result = new club.joylink.xiannccda.dto.protos.CollectMsgAppend.InUsedScheduleParameter(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(club.joylink.xiannccda.dto.protos.CollectMsgAppend.InUsedScheduleParameter result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.lineId_ = lineId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.date_ = date_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.valid_ = valid_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.inusedScheduleName_ = inusedScheduleName_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof club.joylink.xiannccda.dto.protos.CollectMsgAppend.InUsedScheduleParameter) { - return mergeFrom((club.joylink.xiannccda.dto.protos.CollectMsgAppend.InUsedScheduleParameter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(club.joylink.xiannccda.dto.protos.CollectMsgAppend.InUsedScheduleParameter other) { - if (other == club.joylink.xiannccda.dto.protos.CollectMsgAppend.InUsedScheduleParameter.getDefaultInstance()) return this; - if (other.getLineId() != 0) { - setLineId(other.getLineId()); - } - if (other.getDate() != 0L) { - setDate(other.getDate()); - } - if (other.getValid() != false) { - setValid(other.getValid()); - } - if (!other.getInusedScheduleName().isEmpty()) { - inusedScheduleName_ = other.inusedScheduleName_; - bitField0_ |= 0x00000008; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - lineId_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - date_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - valid_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - inusedScheduleName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int lineId_ ; - /** - * int32 lineId = 1; - * @return The lineId. - */ - @java.lang.Override - public int getLineId() { - return lineId_; - } - /** - * int32 lineId = 1; - * @param value The lineId to set. - * @return This builder for chaining. - */ - public Builder setLineId(int value) { - - lineId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 lineId = 1; - * @return This builder for chaining. - */ - public Builder clearLineId() { - bitField0_ = (bitField0_ & ~0x00000001); - lineId_ = 0; - onChanged(); - return this; - } - - private long date_ ; - /** - * int64 date = 2; - * @return The date. - */ - @java.lang.Override - public long getDate() { - return date_; - } - /** - * int64 date = 2; - * @param value The date to set. - * @return This builder for chaining. - */ - public Builder setDate(long value) { - - date_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * int64 date = 2; - * @return This builder for chaining. - */ - public Builder clearDate() { - bitField0_ = (bitField0_ & ~0x00000002); - date_ = 0L; - onChanged(); - return this; - } - - private boolean valid_ ; - /** - *
-       *0x01:参数有效 true
-       *0x02:参数无效 false
-       * 
- * - * bool valid = 3; - * @return The valid. - */ - @java.lang.Override - public boolean getValid() { - return valid_; - } - /** - *
-       *0x01:参数有效 true
-       *0x02:参数无效 false
-       * 
- * - * bool valid = 3; - * @param value The valid to set. - * @return This builder for chaining. - */ - public Builder setValid(boolean value) { - - valid_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       *0x01:参数有效 true
-       *0x02:参数无效 false
-       * 
- * - * bool valid = 3; - * @return This builder for chaining. - */ - public Builder clearValid() { - bitField0_ = (bitField0_ & ~0x00000004); - valid_ = false; - onChanged(); - return this; - } - - private java.lang.Object inusedScheduleName_ = ""; - /** - * string inusedScheduleName = 4; - * @return The inusedScheduleName. - */ - public java.lang.String getInusedScheduleName() { - java.lang.Object ref = inusedScheduleName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - inusedScheduleName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string inusedScheduleName = 4; - * @return The bytes for inusedScheduleName. - */ - public com.google.protobuf.ByteString - getInusedScheduleNameBytes() { - java.lang.Object ref = inusedScheduleName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inusedScheduleName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string inusedScheduleName = 4; - * @param value The inusedScheduleName to set. - * @return This builder for chaining. - */ - public Builder setInusedScheduleName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - inusedScheduleName_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * string inusedScheduleName = 4; - * @return This builder for chaining. - */ - public Builder clearInusedScheduleName() { - inusedScheduleName_ = getDefaultInstance().getInusedScheduleName(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * string inusedScheduleName = 4; - * @param value The bytes for inusedScheduleName to set. - * @return This builder for chaining. - */ - public Builder setInusedScheduleNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - inusedScheduleName_ = value; - bitField0_ |= 0x00000008; - 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:state.InUsedScheduleParameter) - } - - // @@protoc_insertion_point(class_scope:state.InUsedScheduleParameter) - private static final club.joylink.xiannccda.dto.protos.CollectMsgAppend.InUsedScheduleParameter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new club.joylink.xiannccda.dto.protos.CollectMsgAppend.InUsedScheduleParameter(); - } - - public static club.joylink.xiannccda.dto.protos.CollectMsgAppend.InUsedScheduleParameter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InUsedScheduleParameter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public club.joylink.xiannccda.dto.protos.CollectMsgAppend.InUsedScheduleParameter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_state_SignalRouteStatus_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_state_SignalRouteStatus_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_state_DeportPlan_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_state_DeportPlan_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_state_InUsedScheduleParameter_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_state_InUsedScheduleParameter_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\030collect_msg_append.proto\022\005state\"i\n\021Sig" + - "nalRouteStatus\022\022\n\nsignalName\030\001 \001(\t\022\021\n\tro" + - "uteName\030\002 \001(\t\022\016\n\006status\030\003 \001(\010\022\r\n\005rtuId\030\004" + - " \001(\005\022\016\n\006lineId\030\005 \001(\005\"\343\003\n\nDeportPlan\022\016\n\006l" + - "ineId\030\001 \001(\005\022\014\n\004date\030\002 \001(\003\022\024\n\014depotStatio" + - "n\030\004 \001(\005\022\017\n\007groupId\030\005 \001(\t\022\020\n\010driverId\030\006 \001" + - "(\t\022\017\n\007outFlag\030\007 \001(\010\022\023\n\013outSchedule\030\010 \001(\010" + - "\022\017\n\007outTime\030\t \001(\003\022\022\n\noutStation\030\n \001(\005\022\017\n" + - "\007outSide\030\013 \001(\005\022\017\n\007outName\030\014 \001(\t\022\022\n\noutTr" + - "ainid\030\r \001(\t\022\026\n\016outDestination\030\016 \001(\t\022\023\n\013o" + - "utGlobalid\030\017 \001(\t\022\025\n\routLocalSubid\030\020 \001(\005\022" + - "\016\n\006inFlag\030\021 \001(\010\022\022\n\ninSchedule\030\022 \001(\010\022\016\n\006i" + - "nTime\030\023 \001(\003\022\021\n\tinStation\030\024 \001(\005\022\016\n\006inSide" + - "\030\025 \001(\005\022\016\n\006inName\030\026 \001(\t\022\021\n\tinTrainid\030\027 \001(" + - "\t\022\025\n\rinDestination\030\030 \001(\t\022\022\n\ninGlobalid\030\031" + - " \001(\t\022\024\n\014inLocalSubid\030\032 \001(\005\"b\n\027InUsedSche" + - "duleParameter\022\016\n\006lineId\030\001 \001(\005\022\014\n\004date\030\002 " + - "\001(\003\022\r\n\005valid\030\003 \001(\010\022\032\n\022inusedScheduleName" + - "\030\004 \001(\tB5\n!club.joylink.xiannccda.dto.pro" + - "tosB\020CollectMsgAppendb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_state_SignalRouteStatus_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_state_SignalRouteStatus_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_state_SignalRouteStatus_descriptor, - new java.lang.String[] { "SignalName", "RouteName", "Status", "RtuId", "LineId", }); - internal_static_state_DeportPlan_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_state_DeportPlan_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_state_DeportPlan_descriptor, - new java.lang.String[] { "LineId", "Date", "DepotStation", "GroupId", "DriverId", "OutFlag", "OutSchedule", "OutTime", "OutStation", "OutSide", "OutName", "OutTrainid", "OutDestination", "OutGlobalid", "OutLocalSubid", "InFlag", "InSchedule", "InTime", "InStation", "InSide", "InName", "InTrainid", "InDestination", "InGlobalid", "InLocalSubid", }); - internal_static_state_InUsedScheduleParameter_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_state_InUsedScheduleParameter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_state_InUsedScheduleParameter_descriptor, - new java.lang.String[] { "LineId", "Date", "Valid", "InusedScheduleName", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/club/joylink/xiannccda/dto/protos/DeviceStatusProto.java b/src/main/java/club/joylink/xiannccda/dto/protos/DeviceStatusProto.java index 367de39..934675c 100644 --- a/src/main/java/club/joylink/xiannccda/dto/protos/DeviceStatusProto.java +++ b/src/main/java/club/joylink/xiannccda/dto/protos/DeviceStatusProto.java @@ -6384,7 +6384,7 @@ public final class DeviceStatusProto { /** *
-     * 连锁报告道岔占用
+     * 连锁报告道岔占用(非通信车占用- 红色)
      * 
* * bool ipSingleSwitchStusCiOccupied = 1; @@ -6394,7 +6394,7 @@ public final class DeviceStatusProto { /** *
-     * CBTC报告道岔占用
+     * CBTC报告道岔占用(粉)
      * 
* * bool ipSingleSwitchStusCbtcOccupied = 2; @@ -6404,7 +6404,7 @@ public final class DeviceStatusProto { /** *
-     * 道岔锁闭
+     * 道岔锁闭(白)
      * 
* * bool ipSingleSwitchStusLocked = 3; @@ -6414,7 +6414,7 @@ public final class DeviceStatusProto { /** *
-     * 道岔故障锁闭
+     * 道岔故障锁闭(棕)
      * 
* * bool ipSingleSwitchStusFailLocked = 4; @@ -6634,7 +6634,7 @@ public final class DeviceStatusProto { /** *
-     * 道岔封锁
+     * 道岔封锁(单封)
      * 
* * bool ipSingleSwitchStusBlocked2 = 26; @@ -6722,7 +6722,7 @@ public final class DeviceStatusProto { private boolean ipSingleSwitchStusCiOccupied_ = false; /** *
-     * 连锁报告道岔占用
+     * 连锁报告道岔占用(非通信车占用- 红色)
      * 
* * bool ipSingleSwitchStusCiOccupied = 1; @@ -6737,7 +6737,7 @@ public final class DeviceStatusProto { private boolean ipSingleSwitchStusCbtcOccupied_ = false; /** *
-     * CBTC报告道岔占用
+     * CBTC报告道岔占用(粉)
      * 
* * bool ipSingleSwitchStusCbtcOccupied = 2; @@ -6752,7 +6752,7 @@ public final class DeviceStatusProto { private boolean ipSingleSwitchStusLocked_ = false; /** *
-     * 道岔锁闭
+     * 道岔锁闭(白)
      * 
* * bool ipSingleSwitchStusLocked = 3; @@ -6767,7 +6767,7 @@ public final class DeviceStatusProto { private boolean ipSingleSwitchStusFailLocked_ = false; /** *
-     * 道岔故障锁闭
+     * 道岔故障锁闭(棕)
      * 
* * bool ipSingleSwitchStusFailLocked = 4; @@ -7097,7 +7097,7 @@ public final class DeviceStatusProto { private boolean ipSingleSwitchStusBlocked2_ = false; /** *
-     * 道岔封锁
+     * 道岔封锁(单封)
      * 
* * bool ipSingleSwitchStusBlocked2 = 26; @@ -8153,7 +8153,7 @@ public final class DeviceStatusProto { private boolean ipSingleSwitchStusCiOccupied_ ; /** *
-       * 连锁报告道岔占用
+       * 连锁报告道岔占用(非通信车占用- 红色)
        * 
* * bool ipSingleSwitchStusCiOccupied = 1; @@ -8165,7 +8165,7 @@ public final class DeviceStatusProto { } /** *
-       * 连锁报告道岔占用
+       * 连锁报告道岔占用(非通信车占用- 红色)
        * 
* * bool ipSingleSwitchStusCiOccupied = 1; @@ -8181,7 +8181,7 @@ public final class DeviceStatusProto { } /** *
-       * 连锁报告道岔占用
+       * 连锁报告道岔占用(非通信车占用- 红色)
        * 
* * bool ipSingleSwitchStusCiOccupied = 1; @@ -8197,7 +8197,7 @@ public final class DeviceStatusProto { private boolean ipSingleSwitchStusCbtcOccupied_ ; /** *
-       * CBTC报告道岔占用
+       * CBTC报告道岔占用(粉)
        * 
* * bool ipSingleSwitchStusCbtcOccupied = 2; @@ -8209,7 +8209,7 @@ public final class DeviceStatusProto { } /** *
-       * CBTC报告道岔占用
+       * CBTC报告道岔占用(粉)
        * 
* * bool ipSingleSwitchStusCbtcOccupied = 2; @@ -8225,7 +8225,7 @@ public final class DeviceStatusProto { } /** *
-       * CBTC报告道岔占用
+       * CBTC报告道岔占用(粉)
        * 
* * bool ipSingleSwitchStusCbtcOccupied = 2; @@ -8241,7 +8241,7 @@ public final class DeviceStatusProto { private boolean ipSingleSwitchStusLocked_ ; /** *
-       * 道岔锁闭
+       * 道岔锁闭(白)
        * 
* * bool ipSingleSwitchStusLocked = 3; @@ -8253,7 +8253,7 @@ public final class DeviceStatusProto { } /** *
-       * 道岔锁闭
+       * 道岔锁闭(白)
        * 
* * bool ipSingleSwitchStusLocked = 3; @@ -8269,7 +8269,7 @@ public final class DeviceStatusProto { } /** *
-       * 道岔锁闭
+       * 道岔锁闭(白)
        * 
* * bool ipSingleSwitchStusLocked = 3; @@ -8285,7 +8285,7 @@ public final class DeviceStatusProto { private boolean ipSingleSwitchStusFailLocked_ ; /** *
-       * 道岔故障锁闭
+       * 道岔故障锁闭(棕)
        * 
* * bool ipSingleSwitchStusFailLocked = 4; @@ -8297,7 +8297,7 @@ public final class DeviceStatusProto { } /** *
-       * 道岔故障锁闭
+       * 道岔故障锁闭(棕)
        * 
* * bool ipSingleSwitchStusFailLocked = 4; @@ -8313,7 +8313,7 @@ public final class DeviceStatusProto { } /** *
-       * 道岔故障锁闭
+       * 道岔故障锁闭(棕)
        * 
* * bool ipSingleSwitchStusFailLocked = 4; @@ -9253,7 +9253,7 @@ public final class DeviceStatusProto { private boolean ipSingleSwitchStusBlocked2_ ; /** *
-       * 道岔封锁
+       * 道岔封锁(单封)
        * 
* * bool ipSingleSwitchStusBlocked2 = 26; @@ -9265,7 +9265,7 @@ public final class DeviceStatusProto { } /** *
-       * 道岔封锁
+       * 道岔封锁(单封)
        * 
* * bool ipSingleSwitchStusBlocked2 = 26; @@ -9281,7 +9281,7 @@ public final class DeviceStatusProto { } /** *
-       * 道岔封锁
+       * 道岔封锁(单封)
        * 
* * bool ipSingleSwitchStusBlocked2 = 26; diff --git a/src/main/java/club/joylink/xiannccda/mapper/NccMockDataProtobufMapper.java b/src/main/java/club/joylink/xiannccda/mapper/NccMockDataProtobufMapper.java deleted file mode 100644 index c6e7bce..0000000 --- a/src/main/java/club/joylink/xiannccda/mapper/NccMockDataProtobufMapper.java +++ /dev/null @@ -1,22 +0,0 @@ -package club.joylink.xiannccda.mapper; - -import club.joylink.xiannccda.mock.message.NccMockData; -import club.joylink.xiannccda.mock.message.NccMockDataProtobuf; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.apache.ibatis.annotations.Mapper; - -/** - *

- * Mapper 接口 - *

- * - * @author walker-sheng - * @since 2023-06-13 - */ -@Mapper -public interface NccMockDataProtobufMapper extends BaseMapper { - -// @Options(resultSetType = ResultSetType.FORWARD_ONLY, fetchSize = 2) -// @Select("select * from ncc_mock_data ") -// Cursor findAllForCursor222(@Param("limit") int limit); -} diff --git a/src/main/java/club/joylink/xiannccda/mock/message/NccMockDataProtobuf.java b/src/main/java/club/joylink/xiannccda/mock/message/NccMockDataProtobuf.java deleted file mode 100644 index d3640d0..0000000 --- a/src/main/java/club/joylink/xiannccda/mock/message/NccMockDataProtobuf.java +++ /dev/null @@ -1,67 +0,0 @@ -package club.joylink.xiannccda.mock.message; - -import club.joylink.xiannccda.ats.message.MessageData; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import io.swagger.v3.oas.annotations.media.Schema; -import java.time.LocalDateTime; -import java.util.List; -import lombok.Getter; -import lombok.Setter; -import lombok.experimental.Accessors; - -/** - * @author walker-sheng - * @since 2023-06-13 - */ -@Getter -@Setter -@Accessors(chain = true) -@TableName("ncc_mock_data_protobuf") -@Schema(name = "NccMockDataProtobuf", description = "$!{table.comment}") -public class NccMockDataProtobuf { - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - private byte[] mockData; - - private LocalDateTime mockReceiveTime; - - private String msgType; - - private String actionType; - - private String msgId; - - private Short lineId; - private String builderType; - public static final String ID = "id"; - - public static final String MOCK_DATA = "mock_data"; - - public static final String MOCK_RECEIVE_TIME = "mock_receive_time"; - - public static final String MSG_TYPE = "msg_type"; - public static final String ACTION_TYPE = "action_type"; - - public static final String MSG_ID = "msg_id"; - - public static final String line_id = "line_id"; - public static final String BUILDER_TYPE = "builder_type"; - - public enum MsgTypeEnum { - REAL_TIME, - UNREAL_TIME - } - - public enum ActionTypeEnum { - ALL, - UPDATES - } - - @TableField(exist = false) - private List datas; -} diff --git a/src/main/java/club/joylink/xiannccda/mock/message/NccMockDataService.java b/src/main/java/club/joylink/xiannccda/mock/message/NccMockDataService.java index d2e4f89..c61056e 100644 --- a/src/main/java/club/joylink/xiannccda/mock/message/NccMockDataService.java +++ b/src/main/java/club/joylink/xiannccda/mock/message/NccMockDataService.java @@ -7,10 +7,9 @@ import club.joylink.xiannccda.mock.message.NccMockData.ActionTypeEnum; import club.joylink.xiannccda.mock.message.NccMockData.MsgTypeEnum; import club.joylink.xiannccda.repository.impl.NccMockDataRepository; import com.alibaba.fastjson2.JSONObject; -import com.alibaba.fastjson2.JSONReader; import com.alibaba.fastjson2.JSONReader.Feature; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.Wrapper; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.google.common.collect.Lists; diff --git a/src/main/java/club/joylink/xiannccda/mock/message/event/MockMessageDataHandle.java b/src/main/java/club/joylink/xiannccda/mock/message/event/MockMessageDataHandle.java index 57ca977..e6e3c05 100644 --- a/src/main/java/club/joylink/xiannccda/mock/message/event/MockMessageDataHandle.java +++ b/src/main/java/club/joylink/xiannccda/mock/message/event/MockMessageDataHandle.java @@ -20,7 +20,7 @@ import lombok.RequiredArgsConstructor; import org.springframework.context.event.EventListener; import org.springframework.stereotype.Component; -//@Component +@Component @RequiredArgsConstructor public class MockMessageDataHandle { diff --git a/src/main/java/club/joylink/xiannccda/mock/message/event/MockMessageDataProtobufHandle.java b/src/main/java/club/joylink/xiannccda/mock/message/event/MockMessageDataProtobufHandle.java deleted file mode 100644 index de6fbc5..0000000 --- a/src/main/java/club/joylink/xiannccda/mock/message/event/MockMessageDataProtobufHandle.java +++ /dev/null @@ -1,116 +0,0 @@ -package club.joylink.xiannccda.mock.message.event; - - -import club.joylink.xiannccda.ats.message.MessageData; -import club.joylink.xiannccda.ats.message.MessageId; -import club.joylink.xiannccda.ats.message.MessageResponse; -import club.joylink.xiannccda.dto.protos.DeviceStatusProto.Switch; -import club.joylink.xiannccda.mock.message.NccMockData; -import club.joylink.xiannccda.mock.message.NccMockData.ActionTypeEnum; -import club.joylink.xiannccda.mock.message.NccMockData.MsgTypeEnum; -import club.joylink.xiannccda.mock.message.NccMockDataProtobuf; -import club.joylink.xiannccda.repository.INccMockDataProtobufRepository; -import club.joylink.xiannccda.repository.INccMockDataRepository; -import com.alibaba.fastjson2.JSON; -import com.alibaba.fastjson2.JSONWriter.Feature; -import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; -import com.google.protobuf.GeneratedMessageV3; -import com.google.protobuf.GeneratedMessageV3.Builder; -import com.google.protobuf.Message; -import java.time.Instant; -import java.time.LocalDateTime; -import java.time.ZoneOffset; -import java.util.List; -import java.util.Objects; -import lombok.RequiredArgsConstructor; -import org.springframework.context.event.EventListener; -import org.springframework.stereotype.Component; - -@Component -@RequiredArgsConstructor -public class MockMessageDataProtobufHandle { - - private final INccMockDataProtobufRepository iNccMockDataProtobufRepository; - - @EventListener - public void mockData(MockMessageDataEvent event) { - Object obj = event.getSource(); - - if (obj instanceof List) { - List datas = (List) obj; - for (MessageData data : datas) { - this.insertData(data, event.getTimestamp()); - } - } else if (obj instanceof MessageData data) { - this.insertData(data, event.getTimestamp()); - } - } - - - private void insertData(MessageData data, long timeStamp) { - LocalDateTime localDateTime = Instant.ofEpochMilli(timeStamp).atZone(ZoneOffset.ofHours(8)).toLocalDateTime(); - if (data instanceof MessageResponse response) { - List builders = data.generateProto(); - if (CollectionUtils.isNotEmpty(builders)) { - for (Builder builder : builders) { - NccMockDataProtobuf td = new NccMockDataProtobuf(); - Message message = builder.build(); - td.setMockData(builder.build().toByteArray()); - td.setMockReceiveTime(localDateTime); - td.setMsgId(data.getMsgId().name()); - td.setLineId(response.getLineId()); - this.setMsgType(td, data); - td.setBuilderType(message.getClass().getSimpleName()); -// iNccMockDataRepository.save(td); - iNccMockDataProtobufRepository.save(td); - } - } - } - } - - public void setMsgType(NccMockDataProtobuf td, MessageData md) { - if (md.getMsgId() == MessageId.DEVICE_STATUS_BITMAP || md.getMsgId() == MessageId.TRAIN_INDICATION_INIT) { - td.setActionType(ActionTypeEnum.ALL.name()); - } - switch (md.getMsgId()) { - case NETWORK_ALIVE_STATUS: -// case LOAD_DEVICE_STATUS: - case DEVICE_STATUS_BITMAP: - case DEVICE_STATUS_CHANGE: - case SIGNAL_ROUTE_STATUS: - case DEPOT_PLAN: - case TRAIN_RECORD: - case TRAIN_INDICATION_INIT: - case TRAIN_INDICATION_UPDATE: - case TRAIN_INDICATION_REMOVE: - case MESSAGE_ALARM: - case TRAIN_BLOCK_INFO: - case INUSED_SCHEDULE_PARAMETER: - td.setMsgType(MsgTypeEnum.REAL_TIME.name()); - if (Objects.isNull(td.getActionType())) { - td.setActionType(ActionTypeEnum.UPDATES.name()); - } - break; - case REPORT_ASK: - case REPORT_BEGIN: - case REPORT_END: - case GROUP_RUNNING_REPORT: - case DRIVER_DISTANCE_REPORT: - case DISPATCHER_REPORT: - case GROUP_BAK_REPORT: - case GROUP_STATUS_REPORT: - case ALARM_ASK: - case ACTION_REPORT: - case ALARM_REPORT: - case REPORT_NACK: -// case LOAD_HISTORY_TG_DATA: - case INUSED_SCHEDULE: - case LOAD_DEVICE_STATUS: - case HISTORY_SCHEDULE: - td.setMsgType(MsgTypeEnum.UNREAL_TIME.name()); - break; - } - - - } -} diff --git a/src/main/java/club/joylink/xiannccda/repository/INccMockDataProtobufRepository.java b/src/main/java/club/joylink/xiannccda/repository/INccMockDataProtobufRepository.java deleted file mode 100644 index 5859bae..0000000 --- a/src/main/java/club/joylink/xiannccda/repository/INccMockDataProtobufRepository.java +++ /dev/null @@ -1,8 +0,0 @@ -package club.joylink.xiannccda.repository; - -import club.joylink.xiannccda.mock.message.NccMockDataProtobuf; -import com.baomidou.mybatisplus.extension.service.IService; - -public interface INccMockDataProtobufRepository extends IService { - -} diff --git a/src/main/java/club/joylink/xiannccda/repository/impl/NccMockDataProtobufRepository.java b/src/main/java/club/joylink/xiannccda/repository/impl/NccMockDataProtobufRepository.java deleted file mode 100644 index 5c2d120..0000000 --- a/src/main/java/club/joylink/xiannccda/repository/impl/NccMockDataProtobufRepository.java +++ /dev/null @@ -1,40 +0,0 @@ -package club.joylink.xiannccda.repository.impl; - -import club.joylink.xiannccda.mapper.NccMockDataMapper; -import club.joylink.xiannccda.mapper.NccMockDataProtobufMapper; -import club.joylink.xiannccda.mock.message.NccMockData; -import club.joylink.xiannccda.mock.message.NccMockDataProtobuf; -import club.joylink.xiannccda.repository.INccMockDataProtobufRepository; -import club.joylink.xiannccda.repository.INccMockDataRepository; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -/** - *

- * 服务实现类 - *

- * - * @author walker-sheng - * @since 2023-06-13 - */ -@Service -@Transactional -public class NccMockDataProtobufRepository extends ServiceImpl implements INccMockDataProtobufRepository { - - - /* @Override - public void dd() { - *//*List ddd = this.getBaseMapper().selectList(new QueryWrapper<>()); - for (NccMockData mockData : ddd) { - System.out.println(mockData.getId() + " -------->"); - }*//* - Cursor cursor = this.getBaseMapper().findAllForCursor222(10100); - for (NccMockData mockData : cursor) { - System.out.println(mockData.getId() + " --- >"); - } - System.out.println(cursor.isConsumed()); - System.out.println(cursor.isOpen()); - - }*/ -} diff --git a/src/test/java/club/joylink/xiannccda/service/MockMsgTest.java b/src/test/java/club/joylink/xiannccda/service/MockMsgTest.java index 1e218cc..74f6820 100644 --- a/src/test/java/club/joylink/xiannccda/service/MockMsgTest.java +++ b/src/test/java/club/joylink/xiannccda/service/MockMsgTest.java @@ -12,7 +12,10 @@ import club.joylink.xiannccda.mock.message.NccMockDataService; import club.joylink.xiannccda.mock.message.NccMockDataService.DataType; import club.joylink.xiannccda.protocal.x.TestUtil; import club.joylink.xiannccda.repository.INccMockDataRepository; +import com.alibaba.fastjson2.JSON; +import com.alibaba.fastjson2.JSONB; import com.alibaba.fastjson2.JSONObject; +import com.alibaba.fastjson2.util.JSONBDump; import com.fasterxml.jackson.databind.util.JSONPObject; import com.google.common.collect.Lists; import io.netty.buffer.ByteBuf; @@ -20,6 +23,7 @@ import io.netty.buffer.Unpooled; import java.time.LocalDateTime; import java.util.List; import java.util.concurrent.TimeUnit; +import lombok.Data; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; @@ -124,7 +128,33 @@ public class MockMsgTest { {"msgId": 4, "rtuId": 1, "lineId": 3, "typeCnt": 5, "entityList": [{"type": 5, "objCount": 199, "deviceList": [{"spare": 0, "status": 12, "devName": "T06301A"}, {"spare": 0, "status": 0, "devName": "T05301B"}, {"spare": 0, "status": 0, "devName": "T05301C"}, {"spare": 0, "status": 0, "devName": "T06301C"}, {"spare": 0, "status": 0, "devName": "T06301B"}, {"spare": 0, "status": 0, "devName": "T05301A"}, {"spare": 0, "status": 0, "devName": "T09301E"}, {"spare": 0, "status": 0, "devName": "T09301D"}, {"spare": 0, "status": 0, "devName": "T09301C"}, {"spare": 0, "status": 0, "devName": "T02301"}, {"spare": 0, "status": 0, "devName": "T09301B"}, {"spare": 0, "status": 0, "devName": "T09301A"}, {"spare": 0, "status": 0, "devName": "TP_D33G"}, {"spare": 0, "status": 0, "devName": "TP_2DG"}, {"spare": 0, "status": 0, "devName": "T10301D"}, {"spare": 0, "status": 0, "devName": "T10301C"}, {"spare": 0, "status": 0, "devName": "T10301B"}, {"spare": 0, "status": 0, "devName": "T10301A"}, {"spare": 0, "status": 0, "devName": "T10301E"}, {"spare": 0, "status": 0, "devName": "T13301C"}, {"spare": 0, "status": 0, "devName": "T13301B"}, {"spare": 0, "status": 0, "devName": "T17301B"}, {"spare": 0, "status": 0, "devName": "T11301"}, {"spare": 0, "status": 0, "devName": "T13301A"}, {"spare": 0, "status": 0, "devName": "T15301"}, {"spare": 0, "status": 0, "devName": "T17301A"}, {"spare": 0, "status": 0, "devName": "T19301C"}, {"spare": 0, "status": 0, "devName": "T19301B"}, {"spare": 0, "status": 8, "devName": "T14301C"}, {"spare": 0, "status": 8, "devName": "T14301B"}, {"spare": 0, "status": 8, "devName": "T18301B"}, {"spare": 0, "status": 8, "devName": "T12301"}, {"spare": 0, "status": 8, "devName": "T14301A"}, {"spare": 0, "status": 8, "devName": "T16301"}, {"spare": 0, "status": 8, "devName": "T18301A"}, {"spare": 0, "status": 8, "devName": "T20301C"}, {"spare": 0, "status": 8, "devName": "T20301B"}, {"spare": 0, "status": 0, "devName": "T01301"}, {"spare": 0, "status": 0, "devName": "T19301A"}, {"spare": 0, "status": 8, "devName": "T20301A"}, {"spare": 0, "status": 0, "devName": "T17301D"}, {"spare": 0, "status": 0, "devName": "T17301C"}, {"spare": 0, "status": 8, "devName": "T18301D"}, {"spare": 0, "status": 8, "devName": "T18301C"}, {"spare": 0, "status": 8, "devName": "T04302D"}, {"spare": 0, "status": 8, "devName": "T04302C"}, {"spare": 0, "status": 8, "devName": "T04302B"}, {"spare": 0, "status": 0, "devName": "T03302C"}, {"spare": 0, "status": 0, "devName": "T03302B"}, {"spare": 0, "status": 0, "devName": "T03302A"}, {"spare": 0, "status": 8, "devName": "T02302A"}, {"spare": 0, "status": 8, "devName": "T02302B"}, {"spare": 0, "status": 8, "devName": "T02302C"}, {"spare": 0, "status": 8, "devName": "T02302D"}, {"spare": 0, "status": 12, "devName": "T06302E"}, {"spare": 0, "status": 8, "devName": "T06302D"}, {"spare": 0, "status": 8, "devName": "T06302C"}, {"spare": 0, "status": 8, "devName": "T06302B"}, {"spare": 0, "status": 8, "devName": "T06302A"}, {"spare": 0, "status": 8, "devName": "T02302E"}, {"spare": 0, "status": 0, "devName": "T01302F"}, {"spare": 0, "status": 0, "devName": "T01302E"}, {"spare": 0, "status": 0, "devName": "T01302D"}, {"spare": 0, "status": 0, "devName": "T01302C"}, {"spare": 0, "status": 0, "devName": "T01302B"}, {"spare": 0, "status": 0, "devName": "T01302A"}, {"spare": 0, "status": 0, "devName": "T03302D"}, {"spare": 0, "status": 8, "devName": "T04302A"}, {"spare": 0, "status": 0, "devName": "T04303C"}, {"spare": 0, "status": 0, "devName": "T04303B"}, {"spare": 0, "status": 0, "devName": "T05303C"}, {"spare": 0, "status": 0, "devName": "T05303B"}, {"spare": 0, "status": 0, "devName": "T05303A"}, {"spare": 0, "status": 0, "devName": "T04303A"}, {"spare": 0, "status": 0, "devName": "T06303H"}, {"spare": 0, "status": 0, "devName": "T06303G"}, {"spare": 0, "status": 0, "devName": "T06303F"}, {"spare": 0, "status": 0, "devName": "T06303E"}, {"spare": 0, "status": 0, "devName": "T06303D"}, {"spare": 0, "status": 0, "devName": "T06303C"}, {"spare": 0, "status": 0, "devName": "T06303B"}, {"spare": 0, "status": 0, "devName": "T06303A"}, {"spare": 0, "status": 0, "devName": "T01303E"}, {"spare": 0, "status": 0, "devName": "T01303D"}, {"spare": 0, "status": 0, "devName": "T01303C"}, {"spare": 0, "status": 0, "devName": "T01303B"}, {"spare": 0, "status": 0, "devName": "T01303A"}, {"spare": 0, "status": 0, "devName": "T05303D"}, {"spare": 0, "status": 0, "devName": "T04303D"}, {"spare": 0, "status": 0, "devName": "T02304D"}, {"spare": 0, "status": 0, "devName": "T02304C"}, {"spare": 0, "status": 0, "devName": "T02304B"}, {"spare": 0, "status": 0, "devName": "T03304C"}, {"spare": 0, "status": 0, "devName": "T03304B"}, {"spare": 0, "status": 0, "devName": "T03304A"}, {"spare": 0, "status": 0, "devName": "T04304F"}, {"spare": 0, "status": 0, "devName": "T04304E"}, {"spare": 0, "status": 0, "devName": "T04304D"}, {"spare": 0, "status": 0, "devName": "T04304C"}, {"spare": 0, "status": 0, "devName": "T04304B"}, {"spare": 0, "status": 0, "devName": "T04304A"}, {"spare": 0, "status": 0, "devName": "T01304H"}, {"spare": 0, "status": 0, "devName": "T01304G"}, {"spare": 0, "status": 0, "devName": "T01304F"}, {"spare": 0, "status": 0, "devName": "T01304E"}, {"spare": 0, "status": 0, "devName": "T01304D"}, {"spare": 0, "status": 0, "devName": "T01304C"}, {"spare": 0, "status": 0, "devName": "T01304B"}, {"spare": 0, "status": 0, "devName": "T01304A"}, {"spare": 0, "status": 0, "devName": "T03304D"}, {"spare": 0, "status": 0, "devName": "T02304A"}, {"spare": 0, "status": 0, "devName": "T04305C"}, {"spare": 0, "status": 0, "devName": "T04305B"}, {"spare": 0, "status": 0, "devName": "T04305A"}, {"spare": 0, "status": 0, "devName": "T07305C"}, {"spare": 0, "status": 0, "devName": "T07305B"}, {"spare": 0, "status": 0, "devName": "T07305A"}, {"spare": 0, "status": 0, "devName": "T11305A"}, {"spare": 0, "status": 0, "devName": "T11305B"}, {"spare": 0, "status": 0, "devName": "T11305C"}, {"spare": 0, "status": 0, "devName": "T06305G"}, {"spare": 0, "status": 0, "devName": "T06305F"}, {"spare": 0, "status": 0, "devName": "T06305E"}, {"spare": 0, "status": 0, "devName": "T06305D"}, {"spare": 0, "status": 0, "devName": "T06305C"}, {"spare": 0, "status": 0, "devName": "T06305B"}, {"spare": 0, "status": 0, "devName": "T06305A"}, {"spare": 0, "status": 0, "devName": "T04305D"}, {"spare": 0, "status": 0, "devName": "T07305D"}, {"spare": 0, "status": 0, "devName": "T01305D"}, {"spare": 0, "status": 0, "devName": "T01305C"}, {"spare": 0, "status": 0, "devName": "T01305B"}, {"spare": 0, "status": 0, "devName": "T01305A"}, {"spare": 0, "status": 0, "devName": "T02306D"}, {"spare": 0, "status": 0, "devName": "T02306C"}, {"spare": 0, "status": 0, "devName": "T02306B"}, {"spare": 0, "status": 0, "devName": "T03306C"}, {"spare": 0, "status": 0, "devName": "T03306B"}, {"spare": 0, "status": 0, "devName": "T03306A"}, {"spare": 0, "status": 0, "devName": "T04306F"}, {"spare": 0, "status": 0, "devName": "T04306E"}, {"spare": 0, "status": 0, "devName": "T04306D"}, {"spare": 0, "status": 0, "devName": "T04306C"}, {"spare": 0, "status": 0, "devName": "T04306B"}, {"spare": 0, "status": 0, "devName": "T04306A"}, {"spare": 0, "status": 0, "devName": "T01306H"}, {"spare": 0, "status": 0, "devName": "T01306G"}, {"spare": 0, "status": 0, "devName": "T01306F"}, {"spare": 0, "status": 0, "devName": "T01306E"}, {"spare": 0, "status": 0, "devName": "T01306D"}, {"spare": 0, "status": 0, "devName": "T01306C"}, {"spare": 0, "status": 0, "devName": "T01306B"}, {"spare": 0, "status": 0, "devName": "T01306A"}, {"spare": 0, "status": 0, "devName": "T03306D"}, {"spare": 0, "status": 0, "devName": "T02306A"}, {"spare": 0, "status": 0, "devName": "T02307D"}, {"spare": 0, "status": 0, "devName": "T02307C"}, {"spare": 0, "status": 0, "devName": "T02307B"}, {"spare": 0, "status": 0, "devName": "T03307C"}, {"spare": 0, "status": 0, "devName": "T03307B"}, {"spare": 0, "status": 0, "devName": "T03307A"}, {"spare": 0, "status": 0, "devName": "T06307A"}, {"spare": 0, "status": 0, "devName": "T06307B"}, {"spare": 0, "status": 0, "devName": "T150406"}, {"spare": 0, "status": 0, "devName": "T10307F"}, {"spare": 0, "status": 0, "devName": "T10307E"}, {"spare": 0, "status": 0, "devName": "T10307D"}, {"spare": 0, "status": 0, "devName": "T10307C"}, {"spare": 0, "status": 0, "devName": "T10307B"}, {"spare": 0, "status": 0, "devName": "T10307A"}, {"spare": 0, "status": 0, "devName": "T03307E"}, {"spare": 0, "status": 0, "devName": "T01307F"}, {"spare": 0, "status": 0, "devName": "T01307E"}, {"spare": 0, "status": 0, "devName": "T01307D"}, {"spare": 0, "status": 0, "devName": "T01307C"}, {"spare": 0, "status": 0, "devName": "T01307B"}, {"spare": 0, "status": 0, "devName": "T01307A"}, {"spare": 0, "status": 0, "devName": "T03307D"}, {"spare": 0, "status": 0, "devName": "T02307A"}, {"spare": 0, "status": 0, "devName": "T02308D"}, {"spare": 0, "status": 0, "devName": "T02308C"}, {"spare": 0, "status": 0, "devName": "T02308B"}, {"spare": 0, "status": 0, "devName": "T03308C"}, {"spare": 0, "status": 0, "devName": "T03308B"}, {"spare": 0, "status": 0, "devName": "T03308A"}, {"spare": 0, "status": 0, "devName": "T04308F"}, {"spare": 0, "status": 0, "devName": "T04308E"}, {"spare": 0, "status": 0, "devName": "T04308D"}, {"spare": 0, "status": 0, "devName": "T04308C"}, {"spare": 0, "status": 0, "devName": "T04308B"}, {"spare": 0, "status": 0, "devName": "T04308A"}, {"spare": 0, "status": 0, "devName": "T01308F"}, {"spare": 0, "status": 0, "devName": "T01308E"}, {"spare": 0, "status": 0, "devName": "T01308D"}, {"spare": 0, "status": 0, "devName": "T01308C"}, {"spare": 0, "status": 0, "devName": "T01308B"}, {"spare": 0, "status": 0, "devName": "T01308A"}, {"spare": 0, "status": 0, "devName": "T03308D"}, {"spare": 0, "status": 0, "devName": "T02308A"}]}, {"type": 4, "objCount": 20, "deviceList": [{"spare": 0, "status": 160, "devName": "P09301"}, {"spare": 0, "status": 160, "devName": "P10301"}, {"spare": 0, "status": 64, "devName": "P07301"}, {"spare": 0, "status": 64, "devName": "P05301"}, {"spare": 0, "status": 32, "devName": "P01301"}, {"spare": 0, "status": 44, "devName": "P04301"}, {"spare": 0, "status": 32, "devName": "P03301"}, {"spare": 0, "status": 44, "devName": "P02301"}, {"spare": 0, "status": 76, "devName": "P06301"}, {"spare": 0, "status": 76, "devName": "P08301"}, {"spare": 0, "status": 160, "devName": "P01303"}, {"spare": 0, "status": 160, "devName": "P02303"}, {"spare": 0, "status": 160, "devName": "P01305"}, {"spare": 0, "status": 160, "devName": "P02305"}, {"spare": 0, "status": 32, "devName": "P03305"}, {"spare": 0, "status": 32, "devName": "P05305"}, {"spare": 0, "status": 160, "devName": "P07305"}, {"spare": 0, "status": 160, "devName": "P01307"}, {"spare": 0, "status": 160, "devName": "P04307"}, {"spare": 0, "status": 160, "devName": "P02307"}]}, {"type": 3, "objCount": 53, "deviceList": [{"spare": 0, "status": 1048577, "devName": "X10301"}, {"spare": 0, "status": 1, "devName": "XC"}, {"spare": 0, "status": 1048577, "devName": "S15301"}, {"spare": 0, "status": 1, "devName": "XR"}, {"spare": 0, "status": 1048577, "devName": "S14301"}, {"spare": 0, "status": 1048577, "devName": "X16301"}, {"spare": 0, "status": 1048577, "devName": "S07301"}, {"spare": 0, "status": 1048577, "devName": "S08301"}, {"spare": 0, "status": 9437185, "devName": "X05301"}, {"spare": 0, "status": 1048577, "devName": "X17301"}, {"spare": 0, "status": 1048577, "devName": "S19301"}, {"spare": 0, "status": 1048577, "devName": "S18301"}, {"spare": 0, "status": 1, "devName": "X02301"}, {"spare": 0, "status": 1048577, "devName": "S04301"}, {"spare": 0, "status": 1048577, "devName": "X06301"}, {"spare": 0, "status": 1, "devName": "X01301"}, {"spare": 0, "status": 1048577, "devName": "S03301"}, {"spare": 0, "status": 1, "devName": "S13301"}, {"spare": 0, "status": 1048577, "devName": "X09301"}, {"spare": 0, "status": 1, "devName": "S12301"}, {"spare": 0, "status": 1048577, "devName": "S11301"}, {"spare": 0, "status": 1048577, "devName": "S01302"}, {"spare": 0, "status": 1048580, "devName": "X04302"}, {"spare": 0, "status": 1048577, "devName": "X02302"}, {"spare": 0, "status": 1048577, "devName": "S01303"}, {"spare": 0, "status": 1048577, "devName": "S02303"}, {"spare": 0, "status": 1048577, "devName": "X03303"}, {"spare": 0, "status": 1048577, "devName": "X04303"}, {"spare": 0, "status": 1048577, "devName": "S05303"}, {"spare": 0, "status": 1048577, "devName": "S06303"}, {"spare": 0, "status": 1048577, "devName": "S01304"}, {"spare": 0, "status": 1048577, "devName": "X02304"}, {"spare": 0, "status": 1048577, "devName": "S01305"}, {"spare": 0, "status": 1048577, "devName": "S02305"}, {"spare": 0, "status": 1048577, "devName": "S03305"}, {"spare": 0, "status": 1048577, "devName": "X04305"}, {"spare": 0, "status": 1048577, "devName": "X05305"}, {"spare": 0, "status": 1048577, "devName": "S06305"}, {"spare": 0, "status": 1048577, "devName": "S07305"}, {"spare": 0, "status": 1048577, "devName": "X09305"}, {"spare": 0, "status": 1048577, "devName": "S11305"}, {"spare": 0, "status": 1048577, "devName": "S01306"}, {"spare": 0, "status": 1048577, "devName": "X02306"}, {"spare": 0, "status": 1048577, "devName": "S03307"}, {"spare": 0, "status": 1048577, "devName": "X02307"}, {"spare": 0, "status": 1048577, "devName": "X01307"}, {"spare": 0, "status": 1, "devName": "S06307"}, {"spare": 0, "status": 1, "devName": "X1506_L2"}, {"spare": 0, "status": 1048577, "devName": "S04307"}, {"spare": 0, "status": 1048577, "devName": "X08307"}, {"spare": 0, "status": 1048577, "devName": "X05307"}, {"spare": 0, "status": 1048577, "devName": "S01308"}, {"spare": 0, "status": 1048577, "devName": "X02308"}]}, {"type": 7, "objCount": 17, "deviceList": [{"spare": 0, "status": 2621440, "devName": "PF02301"}, {"spare": 0, "status": 0, "devName": "PF01301"}, {"spare": 0, "status": 0, "devName": "PF02302"}, {"spare": 0, "status": 1507328, "devName": "PF01302"}, {"spare": 0, "status": 1769472, "devName": "PF02303"}, {"spare": 0, "status": 0, "devName": "PF01303"}, {"spare": 0, "status": 0, "devName": "PF02304"}, {"spare": 0, "status": 0, "devName": "PF01304"}, {"spare": 0, "status": 0, "devName": "PF02305"}, {"spare": 0, "status": 1507328, "devName": "PF01305"}, {"spare": 0, "status": 0, "devName": "PF02306"}, {"spare": 0, "status": 0, "devName": "PF01306"}, {"spare": 0, "status": 0, "devName": "PF02307"}, {"spare": 0, "status": 2359296, "devName": "PF01307"}, {"spare": 0, "status": 0, "devName": "PF02308"}, {"spare": 0, "status": 0, "devName": "PF01308"}, {"spare": 0, "status": 2031616, "devName": "PF03301"}]}, {"type": 1, "objCount": 1, "deviceList": [{"spare": 0, "status": 2, "devName": "1"}]}]} """; DeviceStatusBitmapResponse bitmapResponse = JSONObject.parseObject(s, DeviceStatusBitmapResponse.class); +// byte[] bb = JSON.toJSONBytes(bitmapResponse); +// +// System.out.println(bb.length); +// bb = JSONB.toBytes(bitmapResponse); +// System.out.println(bb.length); MockAppContext.publish(bitmapResponse); TimeUnit.SECONDS.sleep(10); } + + public static void main(String[] args) { + // 创建一个Java对象 + MyObject myObject = new MyObject(); + myObject.setName("John"); + myObject.setAge(25); + // 将Java对象转换为JSON字符串 + String jsonString = JSON.toJSONString(myObject); + // 将JSON字符串包装在回调函数中 + String jsonpResponse = "callback(" + jsonString + ")"; + // 输出JSONP响应 + System.out.println(jsonpResponse); + } + + @Data + static class MyObject { + + private String name; + private int age; + // 省略构造函数、getter和setter + } } diff --git a/xian-ncc-da-message b/xian-ncc-da-message index 7567e29..ec5889f 160000 --- a/xian-ncc-da-message +++ b/xian-ncc-da-message @@ -1 +1 @@ -Subproject commit 7567e2953eae654a6de703b6b1dfaedcc53d0e84 +Subproject commit ec5889fd030d15bc93efdaf8f73d62039bde31a9