更新列车目的地码

This commit is contained in:
tiger_zhou 2023-07-17 17:30:32 +08:00
parent cf49960128
commit c7759c1372
5 changed files with 2256 additions and 221 deletions

View File

@ -1,5 +1,6 @@
package club.joylink.xiannccda.ats.message.line3.device;
import club.joylink.xiannccda.dto.protos.DeviceStatusProto.Signal;
import com.google.common.collect.Lists;
import java.util.Arrays;
import java.util.Collections;
@ -170,6 +171,13 @@ public class DeviceStatus {
}
}
public static void main(String[] args) {
for (RTU value : RTU.values()) {
boolean b = value.isSet((short) 3, 1);
System.out.println(value.name() + " " + b);
}
}
/**
* 表6.3-4设备状态定义表 ENTRY 西安3号线信号系统不提供此类型设备的状态
*/

View File

@ -76,7 +76,7 @@ public class TrainIndicationUpdateResponse extends MessageResponse {
/**
* 目的地号(4)
*/
private Integer destinationId;
private String destinationId;
/**
* 编组数量(1)
*/
@ -184,6 +184,7 @@ public class TrainIndicationUpdateResponse extends MessageResponse {
final byte[] driverId = new byte[13];
final byte[] arriveTime = new byte[7];
final byte[] departTime = new byte[7];
//
this.lineId = buf.readShort();
type = buf.readShort();
@ -196,7 +197,7 @@ public class TrainIndicationUpdateResponse extends MessageResponse {
buf.readBytes(groupId);
buf.readBytes(trainId);
buf.readBytes(globalId);
this.destinationId = buf.readInt();
this.destinationId = EntityParseUtil.convertStr(buf, 4);
this.rollingStock = buf.readByte();
buf.readBytes(driverId);
this.routeId = buf.readShort();

View File

@ -15,39 +15,39 @@ public final class NccAlertInfoMessageProto {
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface NccAlertInfoMessageOrBuilder extends
// @@protoc_insertion_point(interface_extends:state.NccAlertInfoMessage)
// @@protoc_insertion_point(interface_extends:alert.NccAlertInfoMessage)
com.google.protobuf.MessageOrBuilder {
/**
* <code>repeated .state.NccAlertInfoMessage.Message messages = 1;</code>
* <code>repeated .alert.NccAlertInfoMessage.Message messages = 1;</code>
*/
java.util.List<club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessage.Message>
getMessagesList();
/**
* <code>repeated .state.NccAlertInfoMessage.Message messages = 1;</code>
* <code>repeated .alert.NccAlertInfoMessage.Message messages = 1;</code>
*/
club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessage.Message getMessages(int index);
/**
* <code>repeated .state.NccAlertInfoMessage.Message messages = 1;</code>
* <code>repeated .alert.NccAlertInfoMessage.Message messages = 1;</code>
*/
int getMessagesCount();
/**
* <code>repeated .state.NccAlertInfoMessage.Message messages = 1;</code>
* <code>repeated .alert.NccAlertInfoMessage.Message messages = 1;</code>
*/
java.util.List<? extends club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessage.MessageOrBuilder>
getMessagesOrBuilderList();
/**
* <code>repeated .state.NccAlertInfoMessage.Message messages = 1;</code>
* <code>repeated .alert.NccAlertInfoMessage.Message messages = 1;</code>
*/
club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessage.MessageOrBuilder getMessagesOrBuilder(
int index);
}
/**
* Protobuf type {@code state.NccAlertInfoMessage}
* Protobuf type {@code alert.NccAlertInfoMessage}
*/
public static final class NccAlertInfoMessage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:state.NccAlertInfoMessage)
// @@protoc_insertion_point(message_implements:alert.NccAlertInfoMessage)
NccAlertInfoMessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use NccAlertInfoMessage.newBuilder() to construct.
@ -67,19 +67,19 @@ public final class NccAlertInfoMessageProto {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.internal_static_state_NccAlertInfoMessage_descriptor;
return club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.internal_static_alert_NccAlertInfoMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.internal_static_state_NccAlertInfoMessage_fieldAccessorTable
return club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.internal_static_alert_NccAlertInfoMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessage.class, club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessage.Builder.class);
}
public interface MessageOrBuilder extends
// @@protoc_insertion_point(interface_extends:state.NccAlertInfoMessage.Message)
// @@protoc_insertion_point(interface_extends:alert.NccAlertInfoMessage.Message)
com.google.protobuf.MessageOrBuilder {
/**
@ -135,13 +135,53 @@ public final class NccAlertInfoMessageProto {
* @return The alertTipId.
*/
int getAlertTipId();
/**
* <pre>
*故障设备信息
* </pre>
*
* <code>string device_info = 6;</code>
* @return The deviceInfo.
*/
java.lang.String getDeviceInfo();
/**
* <pre>
*故障设备信息
* </pre>
*
* <code>string device_info = 6;</code>
* @return The bytes for deviceInfo.
*/
com.google.protobuf.ByteString
getDeviceInfoBytes();
/**
* <pre>
*导致报警的原因
* </pre>
*
* <code>string reason = 7;</code>
* @return The reason.
*/
java.lang.String getReason();
/**
* <pre>
*导致报警的原因
* </pre>
*
* <code>string reason = 7;</code>
* @return The bytes for reason.
*/
com.google.protobuf.ByteString
getReasonBytes();
}
/**
* Protobuf type {@code state.NccAlertInfoMessage.Message}
* Protobuf type {@code alert.NccAlertInfoMessage.Message}
*/
public static final class Message extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:state.NccAlertInfoMessage.Message)
// @@protoc_insertion_point(message_implements:alert.NccAlertInfoMessage.Message)
MessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use Message.newBuilder() to construct.
@ -153,6 +193,8 @@ public final class NccAlertInfoMessageProto {
level_ = "";
alertTime_ = "";
info_ = "";
deviceInfo_ = "";
reason_ = "";
}
@java.lang.Override
@ -164,13 +206,13 @@ public final class NccAlertInfoMessageProto {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.internal_static_state_NccAlertInfoMessage_Message_descriptor;
return club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.internal_static_alert_NccAlertInfoMessage_Message_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.internal_static_state_NccAlertInfoMessage_Message_fieldAccessorTable
return club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.internal_static_alert_NccAlertInfoMessage_Message_fieldAccessorTable
.ensureFieldAccessorsInitialized(
club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessage.Message.class, club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessage.Message.Builder.class);
}
@ -342,6 +384,100 @@ public final class NccAlertInfoMessageProto {
return alertTipId_;
}
public static final int DEVICE_INFO_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private volatile java.lang.Object deviceInfo_ = "";
/**
* <pre>
*故障设备信息
* </pre>
*
* <code>string device_info = 6;</code>
* @return The deviceInfo.
*/
@java.lang.Override
public java.lang.String getDeviceInfo() {
java.lang.Object ref = deviceInfo_;
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();
deviceInfo_ = s;
return s;
}
}
/**
* <pre>
*故障设备信息
* </pre>
*
* <code>string device_info = 6;</code>
* @return The bytes for deviceInfo.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDeviceInfoBytes() {
java.lang.Object ref = deviceInfo_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deviceInfo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REASON_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private volatile java.lang.Object reason_ = "";
/**
* <pre>
*导致报警的原因
* </pre>
*
* <code>string reason = 7;</code>
* @return The reason.
*/
@java.lang.Override
public java.lang.String getReason() {
java.lang.Object ref = reason_;
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();
reason_ = s;
return s;
}
}
/**
* <pre>
*导致报警的原因
* </pre>
*
* <code>string reason = 7;</code>
* @return The bytes for reason.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getReasonBytes() {
java.lang.Object ref = reason_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
reason_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@ -371,6 +507,12 @@ public final class NccAlertInfoMessageProto {
if (alertTipId_ != 0) {
output.writeInt32(5, alertTipId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceInfo_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, deviceInfo_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, reason_);
}
getUnknownFields().writeTo(output);
}
@ -396,6 +538,12 @@ public final class NccAlertInfoMessageProto {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, alertTipId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceInfo_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, deviceInfo_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, reason_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@ -421,6 +569,10 @@ public final class NccAlertInfoMessageProto {
.equals(other.getInfo())) return false;
if (getAlertTipId()
!= other.getAlertTipId()) return false;
if (!getDeviceInfo()
.equals(other.getDeviceInfo())) return false;
if (!getReason()
.equals(other.getReason())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@ -442,6 +594,10 @@ public final class NccAlertInfoMessageProto {
hash = (53 * hash) + getInfo().hashCode();
hash = (37 * hash) + ALERT_TIP_ID_FIELD_NUMBER;
hash = (53 * hash) + getAlertTipId();
hash = (37 * hash) + DEVICE_INFO_FIELD_NUMBER;
hash = (53 * hash) + getDeviceInfo().hashCode();
hash = (37 * hash) + REASON_FIELD_NUMBER;
hash = (53 * hash) + getReason().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@ -540,21 +696,21 @@ public final class NccAlertInfoMessageProto {
return builder;
}
/**
* Protobuf type {@code state.NccAlertInfoMessage.Message}
* Protobuf type {@code alert.NccAlertInfoMessage.Message}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:state.NccAlertInfoMessage.Message)
// @@protoc_insertion_point(builder_implements:alert.NccAlertInfoMessage.Message)
club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessage.MessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.internal_static_state_NccAlertInfoMessage_Message_descriptor;
return club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.internal_static_alert_NccAlertInfoMessage_Message_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.internal_static_state_NccAlertInfoMessage_Message_fieldAccessorTable
return club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.internal_static_alert_NccAlertInfoMessage_Message_fieldAccessorTable
.ensureFieldAccessorsInitialized(
club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessage.Message.class, club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessage.Message.Builder.class);
}
@ -578,13 +734,15 @@ public final class NccAlertInfoMessageProto {
alertTime_ = "";
info_ = "";
alertTipId_ = 0;
deviceInfo_ = "";
reason_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.internal_static_state_NccAlertInfoMessage_Message_descriptor;
return club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.internal_static_alert_NccAlertInfoMessage_Message_descriptor;
}
@java.lang.Override
@ -626,6 +784,12 @@ public final class NccAlertInfoMessageProto {
if (((from_bitField0_ & 0x00000010) != 0)) {
result.alertTipId_ = alertTipId_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.deviceInfo_ = deviceInfo_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.reason_ = reason_;
}
}
@java.lang.Override
@ -663,6 +827,16 @@ public final class NccAlertInfoMessageProto {
if (other.getAlertTipId() != 0) {
setAlertTipId(other.getAlertTipId());
}
if (!other.getDeviceInfo().isEmpty()) {
deviceInfo_ = other.deviceInfo_;
bitField0_ |= 0x00000020;
onChanged();
}
if (!other.getReason().isEmpty()) {
reason_ = other.reason_;
bitField0_ |= 0x00000040;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@ -714,6 +888,16 @@ public final class NccAlertInfoMessageProto {
bitField0_ |= 0x00000010;
break;
} // case 40
case 50: {
deviceInfo_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
reason_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 58
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
@ -1050,6 +1234,190 @@ public final class NccAlertInfoMessageProto {
onChanged();
return this;
}
private java.lang.Object deviceInfo_ = "";
/**
* <pre>
*故障设备信息
* </pre>
*
* <code>string device_info = 6;</code>
* @return The deviceInfo.
*/
public java.lang.String getDeviceInfo() {
java.lang.Object ref = deviceInfo_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
deviceInfo_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
*故障设备信息
* </pre>
*
* <code>string device_info = 6;</code>
* @return The bytes for deviceInfo.
*/
public com.google.protobuf.ByteString
getDeviceInfoBytes() {
java.lang.Object ref = deviceInfo_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deviceInfo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
*故障设备信息
* </pre>
*
* <code>string device_info = 6;</code>
* @param value The deviceInfo to set.
* @return This builder for chaining.
*/
public Builder setDeviceInfo(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
deviceInfo_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* <pre>
*故障设备信息
* </pre>
*
* <code>string device_info = 6;</code>
* @return This builder for chaining.
*/
public Builder clearDeviceInfo() {
deviceInfo_ = getDefaultInstance().getDeviceInfo();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
* <pre>
*故障设备信息
* </pre>
*
* <code>string device_info = 6;</code>
* @param value The bytes for deviceInfo to set.
* @return This builder for chaining.
*/
public Builder setDeviceInfoBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
deviceInfo_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
private java.lang.Object reason_ = "";
/**
* <pre>
*导致报警的原因
* </pre>
*
* <code>string reason = 7;</code>
* @return The reason.
*/
public java.lang.String getReason() {
java.lang.Object ref = reason_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
reason_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
*导致报警的原因
* </pre>
*
* <code>string reason = 7;</code>
* @return The bytes for reason.
*/
public com.google.protobuf.ByteString
getReasonBytes() {
java.lang.Object ref = reason_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
reason_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
*导致报警的原因
* </pre>
*
* <code>string reason = 7;</code>
* @param value The reason to set.
* @return This builder for chaining.
*/
public Builder setReason(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
reason_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* <pre>
*导致报警的原因
* </pre>
*
* <code>string reason = 7;</code>
* @return This builder for chaining.
*/
public Builder clearReason() {
reason_ = getDefaultInstance().getReason();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
* <pre>
*导致报警的原因
* </pre>
*
* <code>string reason = 7;</code>
* @param value The bytes for reason to set.
* @return This builder for chaining.
*/
public Builder setReasonBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
reason_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@ -1063,10 +1431,10 @@ public final class NccAlertInfoMessageProto {
}
// @@protoc_insertion_point(builder_scope:state.NccAlertInfoMessage.Message)
// @@protoc_insertion_point(builder_scope:alert.NccAlertInfoMessage.Message)
}
// @@protoc_insertion_point(class_scope:state.NccAlertInfoMessage.Message)
// @@protoc_insertion_point(class_scope:alert.NccAlertInfoMessage.Message)
private static final club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessage.Message DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessage.Message();
@ -1118,14 +1486,14 @@ public final class NccAlertInfoMessageProto {
@SuppressWarnings("serial")
private java.util.List<club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessage.Message> messages_;
/**
* <code>repeated .state.NccAlertInfoMessage.Message messages = 1;</code>
* <code>repeated .alert.NccAlertInfoMessage.Message messages = 1;</code>
*/
@java.lang.Override
public java.util.List<club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessage.Message> getMessagesList() {
return messages_;
}
/**
* <code>repeated .state.NccAlertInfoMessage.Message messages = 1;</code>
* <code>repeated .alert.NccAlertInfoMessage.Message messages = 1;</code>
*/
@java.lang.Override
public java.util.List<? extends club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessage.MessageOrBuilder>
@ -1133,21 +1501,21 @@ public final class NccAlertInfoMessageProto {
return messages_;
}
/**
* <code>repeated .state.NccAlertInfoMessage.Message messages = 1;</code>
* <code>repeated .alert.NccAlertInfoMessage.Message messages = 1;</code>
*/
@java.lang.Override
public int getMessagesCount() {
return messages_.size();
}
/**
* <code>repeated .state.NccAlertInfoMessage.Message messages = 1;</code>
* <code>repeated .alert.NccAlertInfoMessage.Message messages = 1;</code>
*/
@java.lang.Override
public club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessage.Message getMessages(int index) {
return messages_.get(index);
}
/**
* <code>repeated .state.NccAlertInfoMessage.Message messages = 1;</code>
* <code>repeated .alert.NccAlertInfoMessage.Message messages = 1;</code>
*/
@java.lang.Override
public club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessage.MessageOrBuilder getMessagesOrBuilder(
@ -1315,21 +1683,21 @@ public final class NccAlertInfoMessageProto {
return builder;
}
/**
* Protobuf type {@code state.NccAlertInfoMessage}
* Protobuf type {@code alert.NccAlertInfoMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:state.NccAlertInfoMessage)
// @@protoc_insertion_point(builder_implements:alert.NccAlertInfoMessage)
club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.internal_static_state_NccAlertInfoMessage_descriptor;
return club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.internal_static_alert_NccAlertInfoMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.internal_static_state_NccAlertInfoMessage_fieldAccessorTable
return club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.internal_static_alert_NccAlertInfoMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessage.class, club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessage.Builder.class);
}
@ -1361,7 +1729,7 @@ public final class NccAlertInfoMessageProto {
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.internal_static_state_NccAlertInfoMessage_descriptor;
return club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.internal_static_alert_NccAlertInfoMessage_descriptor;
}
@java.lang.Override
@ -1510,7 +1878,7 @@ public final class NccAlertInfoMessageProto {
club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessage.Message, club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessage.Message.Builder, club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessage.MessageOrBuilder> messagesBuilder_;
/**
* <code>repeated .state.NccAlertInfoMessage.Message messages = 1;</code>
* <code>repeated .alert.NccAlertInfoMessage.Message messages = 1;</code>
*/
public java.util.List<club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessage.Message> getMessagesList() {
if (messagesBuilder_ == null) {
@ -1520,7 +1888,7 @@ public final class NccAlertInfoMessageProto {
}
}
/**
* <code>repeated .state.NccAlertInfoMessage.Message messages = 1;</code>
* <code>repeated .alert.NccAlertInfoMessage.Message messages = 1;</code>
*/
public int getMessagesCount() {
if (messagesBuilder_ == null) {
@ -1530,7 +1898,7 @@ public final class NccAlertInfoMessageProto {
}
}
/**
* <code>repeated .state.NccAlertInfoMessage.Message messages = 1;</code>
* <code>repeated .alert.NccAlertInfoMessage.Message messages = 1;</code>
*/
public club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessage.Message getMessages(int index) {
if (messagesBuilder_ == null) {
@ -1540,7 +1908,7 @@ public final class NccAlertInfoMessageProto {
}
}
/**
* <code>repeated .state.NccAlertInfoMessage.Message messages = 1;</code>
* <code>repeated .alert.NccAlertInfoMessage.Message messages = 1;</code>
*/
public Builder setMessages(
int index, club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessage.Message value) {
@ -1557,7 +1925,7 @@ public final class NccAlertInfoMessageProto {
return this;
}
/**
* <code>repeated .state.NccAlertInfoMessage.Message messages = 1;</code>
* <code>repeated .alert.NccAlertInfoMessage.Message messages = 1;</code>
*/
public Builder setMessages(
int index, club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessage.Message.Builder builderForValue) {
@ -1571,7 +1939,7 @@ public final class NccAlertInfoMessageProto {
return this;
}
/**
* <code>repeated .state.NccAlertInfoMessage.Message messages = 1;</code>
* <code>repeated .alert.NccAlertInfoMessage.Message messages = 1;</code>
*/
public Builder addMessages(club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessage.Message value) {
if (messagesBuilder_ == null) {
@ -1587,7 +1955,7 @@ public final class NccAlertInfoMessageProto {
return this;
}
/**
* <code>repeated .state.NccAlertInfoMessage.Message messages = 1;</code>
* <code>repeated .alert.NccAlertInfoMessage.Message messages = 1;</code>
*/
public Builder addMessages(
int index, club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessage.Message value) {
@ -1604,7 +1972,7 @@ public final class NccAlertInfoMessageProto {
return this;
}
/**
* <code>repeated .state.NccAlertInfoMessage.Message messages = 1;</code>
* <code>repeated .alert.NccAlertInfoMessage.Message messages = 1;</code>
*/
public Builder addMessages(
club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessage.Message.Builder builderForValue) {
@ -1618,7 +1986,7 @@ public final class NccAlertInfoMessageProto {
return this;
}
/**
* <code>repeated .state.NccAlertInfoMessage.Message messages = 1;</code>
* <code>repeated .alert.NccAlertInfoMessage.Message messages = 1;</code>
*/
public Builder addMessages(
int index, club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessage.Message.Builder builderForValue) {
@ -1632,7 +2000,7 @@ public final class NccAlertInfoMessageProto {
return this;
}
/**
* <code>repeated .state.NccAlertInfoMessage.Message messages = 1;</code>
* <code>repeated .alert.NccAlertInfoMessage.Message messages = 1;</code>
*/
public Builder addAllMessages(
java.lang.Iterable<? extends club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessage.Message> values) {
@ -1647,7 +2015,7 @@ public final class NccAlertInfoMessageProto {
return this;
}
/**
* <code>repeated .state.NccAlertInfoMessage.Message messages = 1;</code>
* <code>repeated .alert.NccAlertInfoMessage.Message messages = 1;</code>
*/
public Builder clearMessages() {
if (messagesBuilder_ == null) {
@ -1660,7 +2028,7 @@ public final class NccAlertInfoMessageProto {
return this;
}
/**
* <code>repeated .state.NccAlertInfoMessage.Message messages = 1;</code>
* <code>repeated .alert.NccAlertInfoMessage.Message messages = 1;</code>
*/
public Builder removeMessages(int index) {
if (messagesBuilder_ == null) {
@ -1673,14 +2041,14 @@ public final class NccAlertInfoMessageProto {
return this;
}
/**
* <code>repeated .state.NccAlertInfoMessage.Message messages = 1;</code>
* <code>repeated .alert.NccAlertInfoMessage.Message messages = 1;</code>
*/
public club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessage.Message.Builder getMessagesBuilder(
int index) {
return getMessagesFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .state.NccAlertInfoMessage.Message messages = 1;</code>
* <code>repeated .alert.NccAlertInfoMessage.Message messages = 1;</code>
*/
public club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessage.MessageOrBuilder getMessagesOrBuilder(
int index) {
@ -1690,7 +2058,7 @@ public final class NccAlertInfoMessageProto {
}
}
/**
* <code>repeated .state.NccAlertInfoMessage.Message messages = 1;</code>
* <code>repeated .alert.NccAlertInfoMessage.Message messages = 1;</code>
*/
public java.util.List<? extends club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessage.MessageOrBuilder>
getMessagesOrBuilderList() {
@ -1701,14 +2069,14 @@ public final class NccAlertInfoMessageProto {
}
}
/**
* <code>repeated .state.NccAlertInfoMessage.Message messages = 1;</code>
* <code>repeated .alert.NccAlertInfoMessage.Message messages = 1;</code>
*/
public club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessage.Message.Builder addMessagesBuilder() {
return getMessagesFieldBuilder().addBuilder(
club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessage.Message.getDefaultInstance());
}
/**
* <code>repeated .state.NccAlertInfoMessage.Message messages = 1;</code>
* <code>repeated .alert.NccAlertInfoMessage.Message messages = 1;</code>
*/
public club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessage.Message.Builder addMessagesBuilder(
int index) {
@ -1716,7 +2084,7 @@ public final class NccAlertInfoMessageProto {
index, club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessage.Message.getDefaultInstance());
}
/**
* <code>repeated .state.NccAlertInfoMessage.Message messages = 1;</code>
* <code>repeated .alert.NccAlertInfoMessage.Message messages = 1;</code>
*/
public java.util.List<club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessage.Message.Builder>
getMessagesBuilderList() {
@ -1749,10 +2117,10 @@ public final class NccAlertInfoMessageProto {
}
// @@protoc_insertion_point(builder_scope:state.NccAlertInfoMessage)
// @@protoc_insertion_point(builder_scope:alert.NccAlertInfoMessage)
}
// @@protoc_insertion_point(class_scope:state.NccAlertInfoMessage)
// @@protoc_insertion_point(class_scope:alert.NccAlertInfoMessage)
private static final club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new club.joylink.xiannccda.dto.protos.NccAlertInfoMessageProto.NccAlertInfoMessage();
@ -1801,15 +2169,15 @@ public final class NccAlertInfoMessageProto {
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_state_NccAlertInfoMessage_descriptor;
internal_static_alert_NccAlertInfoMessage_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_state_NccAlertInfoMessage_fieldAccessorTable;
internal_static_alert_NccAlertInfoMessage_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_state_NccAlertInfoMessage_Message_descriptor;
internal_static_alert_NccAlertInfoMessage_Message_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_state_NccAlertInfoMessage_Message_fieldAccessorTable;
internal_static_alert_NccAlertInfoMessage_Message_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
@ -1819,30 +2187,31 @@ public final class NccAlertInfoMessageProto {
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\017alertInfo.proto\022\005state\"\251\001\n\023NccAlertInf" +
"oMessage\0224\n\010messages\030\001 \003(\0132\".state.NccAl" +
"ertInfoMessage.Message\032\\\n\007Message\022\n\n\002id\030" +
"\001 \001(\t\022\r\n\005level\030\002 \001(\t\022\022\n\nalert_time\030\003 \001(\t" +
"\022\014\n\004info\030\004 \001(\t\022\024\n\014alert_tip_id\030\005 \001(\005B=\n!" +
"club.joylink.xiannccda.dto.protosB\030NccAl" +
"ertInfoMessageProtob\006proto3"
"\n\017alertInfo.proto\022\005alert\"\317\001\n\023NccAlertInf" +
"oMessage\0224\n\010messages\030\001 \003(\0132\".alert.NccAl" +
"ertInfoMessage.Message\032\201\001\n\007Message\022\n\n\002id" +
"\030\001 \001(\t\022\r\n\005level\030\002 \001(\t\022\022\n\nalert_time\030\003 \001(" +
"\t\022\014\n\004info\030\004 \001(\t\022\024\n\014alert_tip_id\030\005 \001(\005\022\023\n" +
"\013device_info\030\006 \001(\t\022\016\n\006reason\030\007 \001(\tB=\n!cl" +
"ub.joylink.xiannccda.dto.protosB\030NccAler" +
"tInfoMessageProtob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_state_NccAlertInfoMessage_descriptor =
internal_static_alert_NccAlertInfoMessage_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_state_NccAlertInfoMessage_fieldAccessorTable = new
internal_static_alert_NccAlertInfoMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_state_NccAlertInfoMessage_descriptor,
internal_static_alert_NccAlertInfoMessage_descriptor,
new java.lang.String[] { "Messages", });
internal_static_state_NccAlertInfoMessage_Message_descriptor =
internal_static_state_NccAlertInfoMessage_descriptor.getNestedTypes().get(0);
internal_static_state_NccAlertInfoMessage_Message_fieldAccessorTable = new
internal_static_alert_NccAlertInfoMessage_Message_descriptor =
internal_static_alert_NccAlertInfoMessage_descriptor.getNestedTypes().get(0);
internal_static_alert_NccAlertInfoMessage_Message_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_state_NccAlertInfoMessage_Message_descriptor,
new java.lang.String[] { "Id", "Level", "AlertTime", "Info", "AlertTipId", });
internal_static_alert_NccAlertInfoMessage_Message_descriptor,
new java.lang.String[] { "Id", "Level", "AlertTime", "Info", "AlertTipId", "DeviceInfo", "Reason", });
}
// @@protoc_insertion_point(outer_class_scope)

View File

@ -177,10 +177,20 @@ public final class TrainProto {
* 目的地ID
* </pre>
*
* <code>int32 destinationId = 10;</code>
* <code>string destinationId = 10;</code>
* @return The destinationId.
*/
int getDestinationId();
java.lang.String getDestinationId();
/**
* <pre>
* 目的地ID
* </pre>
*
* <code>string destinationId = 10;</code>
* @return The bytes for destinationId.
*/
com.google.protobuf.ByteString
getDestinationIdBytes();
/**
* <pre>
@ -380,6 +390,7 @@ public final class TrainProto {
groupId_ = "";
trainId_ = "";
globalId_ = "";
destinationId_ = "";
driverId_ = "";
}
@ -721,18 +732,50 @@ public final class TrainProto {
}
public static final int DESTINATIONID_FIELD_NUMBER = 10;
private int destinationId_ = 0;
@SuppressWarnings("serial")
private volatile java.lang.Object destinationId_ = "";
/**
* <pre>
* 目的地ID
* </pre>
*
* <code>int32 destinationId = 10;</code>
* <code>string destinationId = 10;</code>
* @return The destinationId.
*/
@java.lang.Override
public int getDestinationId() {
return destinationId_;
public java.lang.String getDestinationId() {
java.lang.Object ref = destinationId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
destinationId_ = s;
return s;
}
}
/**
* <pre>
* 目的地ID
* </pre>
*
* <code>string destinationId = 10;</code>
* @return The bytes for destinationId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDestinationIdBytes() {
java.lang.Object ref = destinationId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
destinationId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ROLLINGSTOCK_FIELD_NUMBER = 11;
@ -1062,8 +1105,8 @@ public final class TrainProto {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(globalId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, globalId_);
}
if (destinationId_ != 0) {
output.writeInt32(10, destinationId_);
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, destinationId_);
}
if (rollingStock_ != 0) {
output.writeInt32(11, rollingStock_);
@ -1144,9 +1187,8 @@ public final class TrainProto {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(globalId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, globalId_);
}
if (destinationId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(10, destinationId_);
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, destinationId_);
}
if (rollingStock_ != 0) {
size += com.google.protobuf.CodedOutputStream
@ -1234,8 +1276,8 @@ public final class TrainProto {
.equals(other.getTrainId())) return false;
if (!getGlobalId()
.equals(other.getGlobalId())) return false;
if (getDestinationId()
!= other.getDestinationId()) return false;
if (!getDestinationId()
.equals(other.getDestinationId())) return false;
if (getRollingStock()
!= other.getRollingStock()) return false;
if (!getDriverId()
@ -1307,7 +1349,7 @@ public final class TrainProto {
hash = (37 * hash) + GLOBALID_FIELD_NUMBER;
hash = (53 * hash) + getGlobalId().hashCode();
hash = (37 * hash) + DESTINATIONID_FIELD_NUMBER;
hash = (53 * hash) + getDestinationId();
hash = (53 * hash) + getDestinationId().hashCode();
hash = (37 * hash) + ROLLINGSTOCK_FIELD_NUMBER;
hash = (53 * hash) + getRollingStock();
hash = (37 * hash) + DRIVERID_FIELD_NUMBER;
@ -1494,7 +1536,7 @@ public final class TrainProto {
groupId_ = "";
trainId_ = "";
globalId_ = "";
destinationId_ = 0;
destinationId_ = "";
rollingStock_ = 0;
driverId_ = "";
otpTime_ = 0;
@ -1687,8 +1729,10 @@ public final class TrainProto {
bitField0_ |= 0x00000100;
onChanged();
}
if (other.getDestinationId() != 0) {
setDestinationId(other.getDestinationId());
if (!other.getDestinationId().isEmpty()) {
destinationId_ = other.destinationId_;
bitField0_ |= 0x00000200;
onChanged();
}
if (other.getRollingStock() != 0) {
setRollingStock(other.getRollingStock());
@ -1804,11 +1848,11 @@ public final class TrainProto {
bitField0_ |= 0x00000100;
break;
} // case 74
case 80: {
destinationId_ = input.readInt32();
case 82: {
destinationId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000200;
break;
} // case 80
} // case 82
case 88: {
rollingStock_ = input.readInt32();
bitField0_ |= 0x00000400;
@ -2639,30 +2683,60 @@ public final class TrainProto {
return this;
}
private int destinationId_ ;
private java.lang.Object destinationId_ = "";
/**
* <pre>
* 目的地ID
* </pre>
*
* <code>int32 destinationId = 10;</code>
* <code>string destinationId = 10;</code>
* @return The destinationId.
*/
@java.lang.Override
public int getDestinationId() {
return destinationId_;
public java.lang.String getDestinationId() {
java.lang.Object ref = destinationId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
destinationId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* 目的地ID
* </pre>
*
* <code>int32 destinationId = 10;</code>
* <code>string destinationId = 10;</code>
* @return The bytes for destinationId.
*/
public com.google.protobuf.ByteString
getDestinationIdBytes() {
java.lang.Object ref = destinationId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
destinationId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* 目的地ID
* </pre>
*
* <code>string destinationId = 10;</code>
* @param value The destinationId to set.
* @return This builder for chaining.
*/
public Builder setDestinationId(int value) {
public Builder setDestinationId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
destinationId_ = value;
bitField0_ |= 0x00000200;
onChanged();
@ -2673,12 +2747,30 @@ public final class TrainProto {
* 目的地ID
* </pre>
*
* <code>int32 destinationId = 10;</code>
* <code>string destinationId = 10;</code>
* @return This builder for chaining.
*/
public Builder clearDestinationId() {
destinationId_ = getDefaultInstance().getDestinationId();
bitField0_ = (bitField0_ & ~0x00000200);
destinationId_ = 0;
onChanged();
return this;
}
/**
* <pre>
* 目的地ID
* </pre>
*
* <code>string destinationId = 10;</code>
* @param value The bytes for destinationId to set.
* @return This builder for chaining.
*/
public Builder setDestinationIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
destinationId_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
@ -9446,7 +9538,7 @@ public final class TrainProto {
"\022\"\n\007devType\030\004 \001(\0162\021.state.DeviceType\022\017\n\007" +
"devName\030\005 \001(\t\022\022\n\ntrainIndex\030\006 \001(\t\022\017\n\007gro" +
"upId\030\007 \001(\t\022\017\n\007trainId\030\010 \001(\t\022\020\n\010globalId\030" +
"\t \001(\t\022\025\n\rdestinationId\030\n \001(\005\022\024\n\014rollingS" +
"\t \001(\t\022\025\n\rdestinationId\030\n \001(\t\022\024\n\014rollingS" +
"tock\030\013 \001(\005\022\020\n\010driverId\030\014 \001(\t\022\017\n\007otpTime\030" +
"\r \001(\005\022\036\n\004mode\030\016 \001(\0132\020.state.TrainMode\022\022\n" +
"\narriveTime\030\017 \001(\003\022\022\n\ndepartTime\030\020 \001(\003\022\r\n" +