注掉old相关字段

This commit is contained in:
joylink_zhaoerwei 2024-03-29 15:18:31 +08:00
parent 6e80d2da85
commit 8e8b0fc42d
2 changed files with 38 additions and 866 deletions

View File

@ -7188,9 +7188,10 @@ export namespace state {
baliseState?: BaliseState[];
stationQc?: StationQc;
ckmStates?: CkmState[];
fymStates?: CkmState[];
}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14], this.#one_of_decls);
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") {
if ("trainState" in data && data.trainState != undefined) {
this.trainState = data.trainState;
@ -7234,6 +7235,9 @@ export namespace state {
if ("ckmStates" in data && data.ckmStates != undefined) {
this.ckmStates = data.ckmStates;
}
if ("fymStates" in data && data.fymStates != undefined) {
this.fymStates = data.fymStates;
}
}
}
get trainState() {
@ -7323,6 +7327,12 @@ export namespace state {
set ckmStates(value: CkmState[]) {
pb_1.Message.setRepeatedWrapperField(this, 14, value);
}
get fymStates() {
return pb_1.Message.getRepeatedWrapperField(this, CkmState, 15) as CkmState[];
}
set fymStates(value: CkmState[]) {
pb_1.Message.setRepeatedWrapperField(this, 15, value);
}
static fromObject(data: {
trainState?: ReturnType<typeof TrainMapState.prototype.toObject>[];
switchState?: ReturnType<typeof SwitchState.prototype.toObject>[];
@ -7338,6 +7348,7 @@ export namespace state {
baliseState?: ReturnType<typeof BaliseState.prototype.toObject>[];
stationQc?: ReturnType<typeof StationQc.prototype.toObject>;
ckmStates?: ReturnType<typeof CkmState.prototype.toObject>[];
fymStates?: ReturnType<typeof CkmState.prototype.toObject>[];
}): AllDevicesStatus {
const message = new AllDevicesStatus({});
if (data.trainState != null) {
@ -7382,6 +7393,9 @@ export namespace state {
if (data.ckmStates != null) {
message.ckmStates = data.ckmStates.map(item => CkmState.fromObject(item));
}
if (data.fymStates != null) {
message.fymStates = data.fymStates.map(item => CkmState.fromObject(item));
}
return message;
}
toObject() {
@ -7400,6 +7414,7 @@ export namespace state {
baliseState?: ReturnType<typeof BaliseState.prototype.toObject>[];
stationQc?: ReturnType<typeof StationQc.prototype.toObject>;
ckmStates?: ReturnType<typeof CkmState.prototype.toObject>[];
fymStates?: ReturnType<typeof CkmState.prototype.toObject>[];
} = {};
if (this.trainState != null) {
data.trainState = this.trainState.map((item: TrainMapState) => item.toObject());
@ -7443,6 +7458,9 @@ export namespace state {
if (this.ckmStates != null) {
data.ckmStates = this.ckmStates.map((item: CkmState) => item.toObject());
}
if (this.fymStates != null) {
data.fymStates = this.fymStates.map((item: CkmState) => item.toObject());
}
return data;
}
serialize(): Uint8Array;
@ -7477,6 +7495,8 @@ export namespace state {
writer.writeMessage(13, this.stationQc, () => this.stationQc.serialize(writer));
if (this.ckmStates.length)
writer.writeRepeatedMessage(14, this.ckmStates, (item: CkmState) => item.serialize(writer));
if (this.fymStates.length)
writer.writeRepeatedMessage(15, this.fymStates, (item: CkmState) => item.serialize(writer));
if (!w)
return writer.getResultBuffer();
}
@ -7528,6 +7548,9 @@ export namespace state {
case 14:
reader.readMessage(message.ckmStates, () => pb_1.Message.addToRepeatedWrapperField(message, 14, CkmState.deserialize(reader), CkmState));
break;
case 15:
reader.readMessage(message.fymStates, () => pb_1.Message.addToRepeatedWrapperField(message, 15, CkmState.deserialize(reader), CkmState));
break;
default: reader.skipField();
}
}

File diff suppressed because it is too large Load Diff