From 8e8b0fc42d78ca590dc1b81b1a5e9bff97467617 Mon Sep 17 00:00:00 2001 From: joylink_zhaoerwei Date: Fri, 29 Mar 2024 15:18:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E6=8E=89old=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/protos/device_state.ts | 25 +- src/protos/stationLayoutGraphics.ts | 879 +--------------------------- 2 files changed, 38 insertions(+), 866 deletions(-) diff --git a/src/protos/device_state.ts b/src/protos/device_state.ts index 86fa582..d13e99e 100644 --- a/src/protos/device_state.ts +++ b/src/protos/device_state.ts @@ -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[]; switchState?: ReturnType[]; @@ -7338,6 +7348,7 @@ export namespace state { baliseState?: ReturnType[]; stationQc?: ReturnType; ckmStates?: ReturnType[]; + fymStates?: ReturnType[]; }): 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[]; stationQc?: ReturnType; ckmStates?: ReturnType[]; + fymStates?: ReturnType[]; } = {}; 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(); } } diff --git a/src/protos/stationLayoutGraphics.ts b/src/protos/stationLayoutGraphics.ts index 82fb195..50de0e4 100644 --- a/src/protos/stationLayoutGraphics.ts +++ b/src/protos/stationLayoutGraphics.ts @@ -1641,7 +1641,6 @@ export namespace graphicData { export class CommonInfo extends pb_1.Message { #one_of_decls: number[][] = []; constructor(data?: any[] | { - oldid?: string; graphicType?: string; transform?: Transform; childTransforms?: ChildTransform[]; @@ -1650,9 +1649,6 @@ export namespace graphicData { super(); pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [4], this.#one_of_decls); if (!Array.isArray(data) && typeof data == "object") { - if ("oldid" in data && data.oldid != undefined) { - this.oldid = data.oldid; - } if ("graphicType" in data && data.graphicType != undefined) { this.graphicType = data.graphicType; } @@ -1667,12 +1663,6 @@ export namespace graphicData { } } } - get oldid() { - return pb_1.Message.getFieldWithDefault(this, 1, "") as string; - } - set oldid(value: string) { - pb_1.Message.setField(this, 1, value); - } get graphicType() { return pb_1.Message.getFieldWithDefault(this, 2, "") as string; } @@ -1701,16 +1691,12 @@ export namespace graphicData { pb_1.Message.setField(this, 5, value); } static fromObject(data: { - oldid?: string; graphicType?: string; transform?: ReturnType; childTransforms?: ReturnType[]; id?: number; }): CommonInfo { const message = new CommonInfo({}); - if (data.oldid != null) { - message.oldid = data.oldid; - } if (data.graphicType != null) { message.graphicType = data.graphicType; } @@ -1727,15 +1713,11 @@ export namespace graphicData { } toObject() { const data: { - oldid?: string; graphicType?: string; transform?: ReturnType; childTransforms?: ReturnType[]; id?: number; } = {}; - if (this.oldid != null) { - data.oldid = this.oldid; - } if (this.graphicType != null) { data.graphicType = this.graphicType; } @@ -1754,8 +1736,6 @@ export namespace graphicData { serialize(w: pb_1.BinaryWriter): void; serialize(w?: pb_1.BinaryWriter): Uint8Array | void { const writer = w || new pb_1.BinaryWriter(); - if (this.oldid.length) - writer.writeString(1, this.oldid); if (this.graphicType.length) writer.writeString(2, this.graphicType); if (this.has_transform) @@ -1773,9 +1753,6 @@ export namespace graphicData { if (reader.isEndGroup()) break; switch (reader.getFieldNumber()) { - case 1: - message.oldid = reader.readString(); - break; case 2: message.graphicType = reader.readString(); break; @@ -1950,8 +1927,6 @@ export namespace graphicData { common?: CommonInfo; code?: string; points?: Point[]; - oldrefLeftStationId?: string; - oldrefRightStationId?: string; nodeConWithSecs?: NodeConWithSec[]; isOtherLineConcentrationDividingLine?: boolean; refLeftStationId?: number; @@ -1969,12 +1944,6 @@ export namespace graphicData { if ("points" in data && data.points != undefined) { this.points = data.points; } - if ("oldrefLeftStationId" in data && data.oldrefLeftStationId != undefined) { - this.oldrefLeftStationId = data.oldrefLeftStationId; - } - if ("oldrefRightStationId" in data && data.oldrefRightStationId != undefined) { - this.oldrefRightStationId = data.oldrefRightStationId; - } if ("nodeConWithSecs" in data && data.nodeConWithSecs != undefined) { this.nodeConWithSecs = data.nodeConWithSecs; } @@ -2010,18 +1979,6 @@ export namespace graphicData { set points(value: Point[]) { pb_1.Message.setRepeatedWrapperField(this, 3, value); } - get oldrefLeftStationId() { - return pb_1.Message.getFieldWithDefault(this, 4, "") as string; - } - set oldrefLeftStationId(value: string) { - pb_1.Message.setField(this, 4, value); - } - get oldrefRightStationId() { - return pb_1.Message.getFieldWithDefault(this, 5, "") as string; - } - set oldrefRightStationId(value: string) { - pb_1.Message.setField(this, 5, value); - } get nodeConWithSecs() { return pb_1.Message.getRepeatedWrapperField(this, NodeConWithSec, 6) as NodeConWithSec[]; } @@ -2050,8 +2007,6 @@ export namespace graphicData { common?: ReturnType; code?: string; points?: ReturnType[]; - oldrefLeftStationId?: string; - oldrefRightStationId?: string; nodeConWithSecs?: ReturnType[]; isOtherLineConcentrationDividingLine?: boolean; refLeftStationId?: number; @@ -2067,12 +2022,6 @@ export namespace graphicData { if (data.points != null) { message.points = data.points.map(item => Point.fromObject(item)); } - if (data.oldrefLeftStationId != null) { - message.oldrefLeftStationId = data.oldrefLeftStationId; - } - if (data.oldrefRightStationId != null) { - message.oldrefRightStationId = data.oldrefRightStationId; - } if (data.nodeConWithSecs != null) { message.nodeConWithSecs = data.nodeConWithSecs.map(item => NodeConWithSec.fromObject(item)); } @@ -2092,8 +2041,6 @@ export namespace graphicData { common?: ReturnType; code?: string; points?: ReturnType[]; - oldrefLeftStationId?: string; - oldrefRightStationId?: string; nodeConWithSecs?: ReturnType[]; isOtherLineConcentrationDividingLine?: boolean; refLeftStationId?: number; @@ -2108,12 +2055,6 @@ export namespace graphicData { if (this.points != null) { data.points = this.points.map((item: Point) => item.toObject()); } - if (this.oldrefLeftStationId != null) { - data.oldrefLeftStationId = this.oldrefLeftStationId; - } - if (this.oldrefRightStationId != null) { - data.oldrefRightStationId = this.oldrefRightStationId; - } if (this.nodeConWithSecs != null) { data.nodeConWithSecs = this.nodeConWithSecs.map((item: NodeConWithSec) => item.toObject()); } @@ -2138,10 +2079,6 @@ export namespace graphicData { writer.writeString(2, this.code); if (this.points.length) writer.writeRepeatedMessage(3, this.points, (item: Point) => item.serialize(writer)); - if (this.oldrefLeftStationId.length) - writer.writeString(4, this.oldrefLeftStationId); - if (this.oldrefRightStationId.length) - writer.writeString(5, this.oldrefRightStationId); if (this.nodeConWithSecs.length) writer.writeRepeatedMessage(6, this.nodeConWithSecs, (item: NodeConWithSec) => item.serialize(writer)); if (this.isOtherLineConcentrationDividingLine != false) @@ -2168,12 +2105,6 @@ export namespace graphicData { case 3: reader.readMessage(message.points, () => pb_1.Message.addToRepeatedWrapperField(message, 3, Point.deserialize(reader), Point)); break; - case 4: - message.oldrefLeftStationId = reader.readString(); - break; - case 5: - message.oldrefRightStationId = reader.readString(); - break; case 6: reader.readMessage(message.nodeConWithSecs, () => pb_1.Message.addToRepeatedWrapperField(message, 6, NodeConWithSec.deserialize(reader), NodeConWithSec)); break; @@ -2299,8 +2230,6 @@ export namespace graphicData { constructor(data?: any[] | { common?: CommonInfo; code?: string; - oldrefStationId?: string; - oldrefSectionId?: string; refEsbRelayCode?: string; type?: Platform.TypeOfPlatform; refStationId?: number; @@ -2315,12 +2244,6 @@ export namespace graphicData { if ("code" in data && data.code != undefined) { this.code = data.code; } - if ("oldrefStationId" in data && data.oldrefStationId != undefined) { - this.oldrefStationId = data.oldrefStationId; - } - if ("oldrefSectionId" in data && data.oldrefSectionId != undefined) { - this.oldrefSectionId = data.oldrefSectionId; - } if ("refEsbRelayCode" in data && data.refEsbRelayCode != undefined) { this.refEsbRelayCode = data.refEsbRelayCode; } @@ -2350,18 +2273,6 @@ export namespace graphicData { set code(value: string) { pb_1.Message.setField(this, 2, value); } - get oldrefStationId() { - return pb_1.Message.getFieldWithDefault(this, 9, "") as string; - } - set oldrefStationId(value: string) { - pb_1.Message.setField(this, 9, value); - } - get oldrefSectionId() { - return pb_1.Message.getFieldWithDefault(this, 10, "") as string; - } - set oldrefSectionId(value: string) { - pb_1.Message.setField(this, 10, value); - } get refEsbRelayCode() { return pb_1.Message.getFieldWithDefault(this, 11, "") as string; } @@ -2389,8 +2300,6 @@ export namespace graphicData { static fromObject(data: { common?: ReturnType; code?: string; - oldrefStationId?: string; - oldrefSectionId?: string; refEsbRelayCode?: string; type?: Platform.TypeOfPlatform; refStationId?: number; @@ -2403,12 +2312,6 @@ export namespace graphicData { if (data.code != null) { message.code = data.code; } - if (data.oldrefStationId != null) { - message.oldrefStationId = data.oldrefStationId; - } - if (data.oldrefSectionId != null) { - message.oldrefSectionId = data.oldrefSectionId; - } if (data.refEsbRelayCode != null) { message.refEsbRelayCode = data.refEsbRelayCode; } @@ -2427,8 +2330,6 @@ export namespace graphicData { const data: { common?: ReturnType; code?: string; - oldrefStationId?: string; - oldrefSectionId?: string; refEsbRelayCode?: string; type?: Platform.TypeOfPlatform; refStationId?: number; @@ -2440,12 +2341,6 @@ export namespace graphicData { if (this.code != null) { data.code = this.code; } - if (this.oldrefStationId != null) { - data.oldrefStationId = this.oldrefStationId; - } - if (this.oldrefSectionId != null) { - data.oldrefSectionId = this.oldrefSectionId; - } if (this.refEsbRelayCode != null) { data.refEsbRelayCode = this.refEsbRelayCode; } @@ -2468,10 +2363,6 @@ export namespace graphicData { writer.writeMessage(1, this.common, () => this.common.serialize(writer)); if (this.code.length) writer.writeString(2, this.code); - if (this.oldrefStationId.length) - writer.writeString(9, this.oldrefStationId); - if (this.oldrefSectionId.length) - writer.writeString(10, this.oldrefSectionId); if (this.refEsbRelayCode.length) writer.writeString(11, this.refEsbRelayCode); if (this.type != Platform.TypeOfPlatform.Unknown) @@ -2495,12 +2386,6 @@ export namespace graphicData { case 2: message.code = reader.readString(); break; - case 9: - message.oldrefStationId = reader.readString(); - break; - case 10: - message.oldrefSectionId = reader.readString(); - break; case 11: message.refEsbRelayCode = reader.readString(); break; @@ -2537,7 +2422,6 @@ export namespace graphicData { constructor(data?: any[] | { common?: CommonInfo; code?: string; - oldrefPlatformId?: string; refPlatformId?: number; }) { super(); @@ -2549,9 +2433,6 @@ export namespace graphicData { if ("code" in data && data.code != undefined) { this.code = data.code; } - if ("oldrefPlatformId" in data && data.oldrefPlatformId != undefined) { - this.oldrefPlatformId = data.oldrefPlatformId; - } if ("refPlatformId" in data && data.refPlatformId != undefined) { this.refPlatformId = data.refPlatformId; } @@ -2572,12 +2453,6 @@ export namespace graphicData { set code(value: string) { pb_1.Message.setField(this, 2, value); } - get oldrefPlatformId() { - return pb_1.Message.getFieldWithDefault(this, 4, "") as string; - } - set oldrefPlatformId(value: string) { - pb_1.Message.setField(this, 4, value); - } get refPlatformId() { return pb_1.Message.getFieldWithDefault(this, 6, 0) as number; } @@ -2587,7 +2462,6 @@ export namespace graphicData { static fromObject(data: { common?: ReturnType; code?: string; - oldrefPlatformId?: string; refPlatformId?: number; }): ScreenDoor { const message = new ScreenDoor({}); @@ -2597,9 +2471,6 @@ export namespace graphicData { if (data.code != null) { message.code = data.code; } - if (data.oldrefPlatformId != null) { - message.oldrefPlatformId = data.oldrefPlatformId; - } if (data.refPlatformId != null) { message.refPlatformId = data.refPlatformId; } @@ -2609,7 +2480,6 @@ export namespace graphicData { const data: { common?: ReturnType; code?: string; - oldrefPlatformId?: string; refPlatformId?: number; } = {}; if (this.common != null) { @@ -2618,9 +2488,6 @@ export namespace graphicData { if (this.code != null) { data.code = this.code; } - if (this.oldrefPlatformId != null) { - data.oldrefPlatformId = this.oldrefPlatformId; - } if (this.refPlatformId != null) { data.refPlatformId = this.refPlatformId; } @@ -2634,8 +2501,6 @@ export namespace graphicData { writer.writeMessage(1, this.common, () => this.common.serialize(writer)); if (this.code.length) writer.writeString(2, this.code); - if (this.oldrefPlatformId.length) - writer.writeString(4, this.oldrefPlatformId); if (this.refPlatformId != 0) writer.writeUint32(6, this.refPlatformId); if (!w) @@ -2653,9 +2518,6 @@ export namespace graphicData { case 2: message.code = reader.readString(); break; - case 4: - message.oldrefPlatformId = reader.readString(); - break; case 6: message.refPlatformId = reader.readUint32(); break; @@ -2884,11 +2746,10 @@ export namespace graphicData { stationName?: string; stationNameAcronym?: string; depots?: boolean; - oldmanageStations?: string[]; manageStations?: number[]; }) { super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [12, 13], this.#one_of_decls); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [13], this.#one_of_decls); if (!Array.isArray(data) && typeof data == "object") { if ("common" in data && data.common != undefined) { this.common = data.common; @@ -2911,9 +2772,6 @@ export namespace graphicData { if ("depots" in data && data.depots != undefined) { this.depots = data.depots; } - if ("oldmanageStations" in data && data.oldmanageStations != undefined) { - this.oldmanageStations = data.oldmanageStations; - } if ("manageStations" in data && data.manageStations != undefined) { this.manageStations = data.manageStations; } @@ -2967,12 +2825,6 @@ export namespace graphicData { set depots(value: boolean) { pb_1.Message.setField(this, 11, value); } - get oldmanageStations() { - return pb_1.Message.getFieldWithDefault(this, 12, []) as string[]; - } - set oldmanageStations(value: string[]) { - pb_1.Message.setField(this, 12, value); - } get manageStations() { return pb_1.Message.getFieldWithDefault(this, 13, []) as number[]; } @@ -2987,7 +2839,6 @@ export namespace graphicData { stationName?: string; stationNameAcronym?: string; depots?: boolean; - oldmanageStations?: string[]; manageStations?: number[]; }): Station { const message = new Station({}); @@ -3012,9 +2863,6 @@ export namespace graphicData { if (data.depots != null) { message.depots = data.depots; } - if (data.oldmanageStations != null) { - message.oldmanageStations = data.oldmanageStations; - } if (data.manageStations != null) { message.manageStations = data.manageStations; } @@ -3029,7 +2877,6 @@ export namespace graphicData { stationName?: string; stationNameAcronym?: string; depots?: boolean; - oldmanageStations?: string[]; manageStations?: number[]; } = {}; if (this.common != null) { @@ -3053,9 +2900,6 @@ export namespace graphicData { if (this.depots != null) { data.depots = this.depots; } - if (this.oldmanageStations != null) { - data.oldmanageStations = this.oldmanageStations; - } if (this.manageStations != null) { data.manageStations = this.manageStations; } @@ -3079,8 +2923,6 @@ export namespace graphicData { writer.writeString(10, this.stationNameAcronym); if (this.depots != false) writer.writeBool(11, this.depots); - if (this.oldmanageStations.length) - writer.writeRepeatedString(12, this.oldmanageStations); if (this.manageStations.length) writer.writePackedUint32(13, this.manageStations); if (!w) @@ -3113,9 +2955,6 @@ export namespace graphicData { case 11: message.depots = reader.readBool(); break; - case 12: - pb_1.Message.addToRepeatedField(message, 12, reader.readString()); - break; case 13: message.manageStations = reader.readPackedUint32(); break; @@ -3255,11 +3094,10 @@ export namespace graphicData { kilometerSystem?: KilometerSystem; axleCountingRef?: RelatedRef[]; type?: AxleCounting.TypeDetectionPoint; - oldcentralizedStations?: string[]; centralizedStations?: number[]; }) { super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [4, 8, 9], this.#one_of_decls); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [4, 9], this.#one_of_decls); if (!Array.isArray(data) && typeof data == "object") { if ("common" in data && data.common != undefined) { this.common = data.common; @@ -3276,9 +3114,6 @@ export namespace graphicData { if ("type" in data && data.type != undefined) { this.type = data.type; } - if ("oldcentralizedStations" in data && data.oldcentralizedStations != undefined) { - this.oldcentralizedStations = data.oldcentralizedStations; - } if ("centralizedStations" in data && data.centralizedStations != undefined) { this.centralizedStations = data.centralizedStations; } @@ -3320,12 +3155,6 @@ export namespace graphicData { set type(value: AxleCounting.TypeDetectionPoint) { pb_1.Message.setField(this, 7, value); } - get oldcentralizedStations() { - return pb_1.Message.getFieldWithDefault(this, 8, []) as string[]; - } - set oldcentralizedStations(value: string[]) { - pb_1.Message.setField(this, 8, value); - } get centralizedStations() { return pb_1.Message.getFieldWithDefault(this, 9, []) as number[]; } @@ -3338,7 +3167,6 @@ export namespace graphicData { kilometerSystem?: ReturnType; axleCountingRef?: ReturnType[]; type?: AxleCounting.TypeDetectionPoint; - oldcentralizedStations?: string[]; centralizedStations?: number[]; }): AxleCounting { const message = new AxleCounting({}); @@ -3357,9 +3185,6 @@ export namespace graphicData { if (data.type != null) { message.type = data.type; } - if (data.oldcentralizedStations != null) { - message.oldcentralizedStations = data.oldcentralizedStations; - } if (data.centralizedStations != null) { message.centralizedStations = data.centralizedStations; } @@ -3372,7 +3197,6 @@ export namespace graphicData { kilometerSystem?: ReturnType; axleCountingRef?: ReturnType[]; type?: AxleCounting.TypeDetectionPoint; - oldcentralizedStations?: string[]; centralizedStations?: number[]; } = {}; if (this.common != null) { @@ -3390,9 +3214,6 @@ export namespace graphicData { if (this.type != null) { data.type = this.type; } - if (this.oldcentralizedStations != null) { - data.oldcentralizedStations = this.oldcentralizedStations; - } if (this.centralizedStations != null) { data.centralizedStations = this.centralizedStations; } @@ -3412,8 +3233,6 @@ export namespace graphicData { writer.writeRepeatedMessage(4, this.axleCountingRef, (item: RelatedRef) => item.serialize(writer)); if (this.type != AxleCounting.TypeDetectionPoint.AxleCounting) writer.writeEnum(7, this.type); - if (this.oldcentralizedStations.length) - writer.writeRepeatedString(8, this.oldcentralizedStations); if (this.centralizedStations.length) writer.writePackedUint32(9, this.centralizedStations); if (!w) @@ -3440,9 +3259,6 @@ export namespace graphicData { case 7: message.type = reader.readEnum(); break; - case 8: - pb_1.Message.addToRepeatedField(message, 8, reader.readString()); - break; case 9: message.centralizedStations = reader.readPackedUint32(); break; @@ -3467,20 +3283,12 @@ export namespace graphicData { export class GenerateAxleCountingConfig extends pb_1.Message { #one_of_decls: number[][] = []; constructor(data?: any[] | { - oldbbConnect?: string[]; - oldnoGenerateGroup?: string[]; bbConnect?: number[]; noGenerateGroup?: number[]; }) { super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1, 2, 3, 4], this.#one_of_decls); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [3, 4], this.#one_of_decls); if (!Array.isArray(data) && typeof data == "object") { - if ("oldbbConnect" in data && data.oldbbConnect != undefined) { - this.oldbbConnect = data.oldbbConnect; - } - if ("oldnoGenerateGroup" in data && data.oldnoGenerateGroup != undefined) { - this.oldnoGenerateGroup = data.oldnoGenerateGroup; - } if ("bbConnect" in data && data.bbConnect != undefined) { this.bbConnect = data.bbConnect; } @@ -3489,18 +3297,6 @@ export namespace graphicData { } } } - get oldbbConnect() { - return pb_1.Message.getFieldWithDefault(this, 1, []) as string[]; - } - set oldbbConnect(value: string[]) { - pb_1.Message.setField(this, 1, value); - } - get oldnoGenerateGroup() { - return pb_1.Message.getFieldWithDefault(this, 2, []) as string[]; - } - set oldnoGenerateGroup(value: string[]) { - pb_1.Message.setField(this, 2, value); - } get bbConnect() { return pb_1.Message.getFieldWithDefault(this, 3, []) as number[]; } @@ -3514,18 +3310,10 @@ export namespace graphicData { pb_1.Message.setField(this, 4, value); } static fromObject(data: { - oldbbConnect?: string[]; - oldnoGenerateGroup?: string[]; bbConnect?: number[]; noGenerateGroup?: number[]; }): GenerateAxleCountingConfig { const message = new GenerateAxleCountingConfig({}); - if (data.oldbbConnect != null) { - message.oldbbConnect = data.oldbbConnect; - } - if (data.oldnoGenerateGroup != null) { - message.oldnoGenerateGroup = data.oldnoGenerateGroup; - } if (data.bbConnect != null) { message.bbConnect = data.bbConnect; } @@ -3536,17 +3324,9 @@ export namespace graphicData { } toObject() { const data: { - oldbbConnect?: string[]; - oldnoGenerateGroup?: string[]; bbConnect?: number[]; noGenerateGroup?: number[]; } = {}; - if (this.oldbbConnect != null) { - data.oldbbConnect = this.oldbbConnect; - } - if (this.oldnoGenerateGroup != null) { - data.oldnoGenerateGroup = this.oldnoGenerateGroup; - } if (this.bbConnect != null) { data.bbConnect = this.bbConnect; } @@ -3559,10 +3339,6 @@ export namespace graphicData { serialize(w: pb_1.BinaryWriter): void; serialize(w?: pb_1.BinaryWriter): Uint8Array | void { const writer = w || new pb_1.BinaryWriter(); - if (this.oldbbConnect.length) - writer.writeRepeatedString(1, this.oldbbConnect); - if (this.oldnoGenerateGroup.length) - writer.writeRepeatedString(2, this.oldnoGenerateGroup); if (this.bbConnect.length) writer.writePackedUint32(3, this.bbConnect); if (this.noGenerateGroup.length) @@ -3576,12 +3352,6 @@ export namespace graphicData { if (reader.isEndGroup()) break; switch (reader.getFieldNumber()) { - case 1: - pb_1.Message.addToRepeatedField(message, 1, reader.readString()); - break; - case 2: - pb_1.Message.addToRepeatedField(message, 2, reader.readString()); - break; case 3: message.bbConnect = reader.readPackedUint32(); break; @@ -3612,18 +3382,14 @@ export namespace graphicData { pbRef?: RelatedRef; pcRef?: RelatedRef; kilometerSystem?: KilometerSystem[]; - oldpaTrackSectionId?: string; - oldpbTrackSectionId?: string; - oldpcTrackSectionId?: string; switchMachineType?: Turnout.SwitchMachineType; - oldcentralizedStations?: string[]; centralizedStations?: number[]; paTrackSectionId?: number; pbTrackSectionId?: number; pcTrackSectionId?: number; }) { super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [6, 7, 8, 13, 19, 20], this.#one_of_decls); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [6, 7, 8, 13, 20], this.#one_of_decls); if (!Array.isArray(data) && typeof data == "object") { if ("common" in data && data.common != undefined) { this.common = data.common; @@ -3652,21 +3418,9 @@ export namespace graphicData { if ("kilometerSystem" in data && data.kilometerSystem != undefined) { this.kilometerSystem = data.kilometerSystem; } - if ("oldpaTrackSectionId" in data && data.oldpaTrackSectionId != undefined) { - this.oldpaTrackSectionId = data.oldpaTrackSectionId; - } - if ("oldpbTrackSectionId" in data && data.oldpbTrackSectionId != undefined) { - this.oldpbTrackSectionId = data.oldpbTrackSectionId; - } - if ("oldpcTrackSectionId" in data && data.oldpcTrackSectionId != undefined) { - this.oldpcTrackSectionId = data.oldpcTrackSectionId; - } if ("switchMachineType" in data && data.switchMachineType != undefined) { this.switchMachineType = data.switchMachineType; } - if ("oldcentralizedStations" in data && data.oldcentralizedStations != undefined) { - this.oldcentralizedStations = data.oldcentralizedStations; - } if ("centralizedStations" in data && data.centralizedStations != undefined) { this.centralizedStations = data.centralizedStations; } @@ -3747,36 +3501,12 @@ export namespace graphicData { set kilometerSystem(value: KilometerSystem[]) { pb_1.Message.setRepeatedWrapperField(this, 13, value); } - get oldpaTrackSectionId() { - return pb_1.Message.getFieldWithDefault(this, 15, "") as string; - } - set oldpaTrackSectionId(value: string) { - pb_1.Message.setField(this, 15, value); - } - get oldpbTrackSectionId() { - return pb_1.Message.getFieldWithDefault(this, 16, "") as string; - } - set oldpbTrackSectionId(value: string) { - pb_1.Message.setField(this, 16, value); - } - get oldpcTrackSectionId() { - return pb_1.Message.getFieldWithDefault(this, 17, "") as string; - } - set oldpcTrackSectionId(value: string) { - pb_1.Message.setField(this, 17, value); - } get switchMachineType() { return pb_1.Message.getFieldWithDefault(this, 18, Turnout.SwitchMachineType.Unknown) as Turnout.SwitchMachineType; } set switchMachineType(value: Turnout.SwitchMachineType) { pb_1.Message.setField(this, 18, value); } - get oldcentralizedStations() { - return pb_1.Message.getFieldWithDefault(this, 19, []) as string[]; - } - set oldcentralizedStations(value: string[]) { - pb_1.Message.setField(this, 19, value); - } get centralizedStations() { return pb_1.Message.getFieldWithDefault(this, 20, []) as number[]; } @@ -3811,11 +3541,7 @@ export namespace graphicData { pbRef?: ReturnType; pcRef?: ReturnType; kilometerSystem?: ReturnType[]; - oldpaTrackSectionId?: string; - oldpbTrackSectionId?: string; - oldpcTrackSectionId?: string; switchMachineType?: Turnout.SwitchMachineType; - oldcentralizedStations?: string[]; centralizedStations?: number[]; paTrackSectionId?: number; pbTrackSectionId?: number; @@ -3849,21 +3575,9 @@ export namespace graphicData { if (data.kilometerSystem != null) { message.kilometerSystem = data.kilometerSystem.map(item => KilometerSystem.fromObject(item)); } - if (data.oldpaTrackSectionId != null) { - message.oldpaTrackSectionId = data.oldpaTrackSectionId; - } - if (data.oldpbTrackSectionId != null) { - message.oldpbTrackSectionId = data.oldpbTrackSectionId; - } - if (data.oldpcTrackSectionId != null) { - message.oldpcTrackSectionId = data.oldpcTrackSectionId; - } if (data.switchMachineType != null) { message.switchMachineType = data.switchMachineType; } - if (data.oldcentralizedStations != null) { - message.oldcentralizedStations = data.oldcentralizedStations; - } if (data.centralizedStations != null) { message.centralizedStations = data.centralizedStations; } @@ -3889,11 +3603,7 @@ export namespace graphicData { pbRef?: ReturnType; pcRef?: ReturnType; kilometerSystem?: ReturnType[]; - oldpaTrackSectionId?: string; - oldpbTrackSectionId?: string; - oldpcTrackSectionId?: string; switchMachineType?: Turnout.SwitchMachineType; - oldcentralizedStations?: string[]; centralizedStations?: number[]; paTrackSectionId?: number; pbTrackSectionId?: number; @@ -3926,21 +3636,9 @@ export namespace graphicData { if (this.kilometerSystem != null) { data.kilometerSystem = this.kilometerSystem.map((item: KilometerSystem) => item.toObject()); } - if (this.oldpaTrackSectionId != null) { - data.oldpaTrackSectionId = this.oldpaTrackSectionId; - } - if (this.oldpbTrackSectionId != null) { - data.oldpbTrackSectionId = this.oldpbTrackSectionId; - } - if (this.oldpcTrackSectionId != null) { - data.oldpcTrackSectionId = this.oldpcTrackSectionId; - } if (this.switchMachineType != null) { data.switchMachineType = this.switchMachineType; } - if (this.oldcentralizedStations != null) { - data.oldcentralizedStations = this.oldcentralizedStations; - } if (this.centralizedStations != null) { data.centralizedStations = this.centralizedStations; } @@ -3977,16 +3675,8 @@ export namespace graphicData { writer.writeMessage(11, this.pcRef, () => this.pcRef.serialize(writer)); if (this.kilometerSystem.length) writer.writeRepeatedMessage(13, this.kilometerSystem, (item: KilometerSystem) => item.serialize(writer)); - if (this.oldpaTrackSectionId.length) - writer.writeString(15, this.oldpaTrackSectionId); - if (this.oldpbTrackSectionId.length) - writer.writeString(16, this.oldpbTrackSectionId); - if (this.oldpcTrackSectionId.length) - writer.writeString(17, this.oldpcTrackSectionId); if (this.switchMachineType != Turnout.SwitchMachineType.Unknown) writer.writeEnum(18, this.switchMachineType); - if (this.oldcentralizedStations.length) - writer.writeRepeatedString(19, this.oldcentralizedStations); if (this.centralizedStations.length) writer.writePackedUint32(20, this.centralizedStations); if (this.paTrackSectionId != 0) @@ -4031,21 +3721,9 @@ export namespace graphicData { case 13: reader.readMessage(message.kilometerSystem, () => pb_1.Message.addToRepeatedWrapperField(message, 13, KilometerSystem.deserialize(reader), KilometerSystem)); break; - case 15: - message.oldpaTrackSectionId = reader.readString(); - break; - case 16: - message.oldpbTrackSectionId = reader.readString(); - break; - case 17: - message.oldpcTrackSectionId = reader.readString(); - break; case 18: message.switchMachineType = reader.readEnum(); break; - case 19: - pb_1.Message.addToRepeatedField(message, 19, reader.readString()); - break; case 20: message.centralizedStations = reader.readPackedUint32(); break; @@ -4204,13 +3882,12 @@ export namespace graphicData { mirror?: boolean; kilometerSystem?: KilometerSystem; refDev?: RelatedRef; - oldcentralizedStations?: string[]; mt?: Signal.Model; direction?: Direction; centralizedStations?: number[]; }) { super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [9, 13], this.#one_of_decls); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [13], this.#one_of_decls); if (!Array.isArray(data) && typeof data == "object") { if ("common" in data && data.common != undefined) { this.common = data.common; @@ -4227,9 +3904,6 @@ export namespace graphicData { if ("refDev" in data && data.refDev != undefined) { this.refDev = data.refDev; } - if ("oldcentralizedStations" in data && data.oldcentralizedStations != undefined) { - this.oldcentralizedStations = data.oldcentralizedStations; - } if ("mt" in data && data.mt != undefined) { this.mt = data.mt; } @@ -4280,12 +3954,6 @@ export namespace graphicData { get has_refDev() { return pb_1.Message.getField(this, 8) != null; } - get oldcentralizedStations() { - return pb_1.Message.getFieldWithDefault(this, 9, []) as string[]; - } - set oldcentralizedStations(value: string[]) { - pb_1.Message.setField(this, 9, value); - } get mt() { return pb_1.Message.getFieldWithDefault(this, 10, Signal.Model.HL) as Signal.Model; } @@ -4310,7 +3978,6 @@ export namespace graphicData { mirror?: boolean; kilometerSystem?: ReturnType; refDev?: ReturnType; - oldcentralizedStations?: string[]; mt?: Signal.Model; direction?: Direction; centralizedStations?: number[]; @@ -4331,9 +3998,6 @@ export namespace graphicData { if (data.refDev != null) { message.refDev = RelatedRef.fromObject(data.refDev); } - if (data.oldcentralizedStations != null) { - message.oldcentralizedStations = data.oldcentralizedStations; - } if (data.mt != null) { message.mt = data.mt; } @@ -4352,7 +4016,6 @@ export namespace graphicData { mirror?: boolean; kilometerSystem?: ReturnType; refDev?: ReturnType; - oldcentralizedStations?: string[]; mt?: Signal.Model; direction?: Direction; centralizedStations?: number[]; @@ -4372,9 +4035,6 @@ export namespace graphicData { if (this.refDev != null) { data.refDev = this.refDev.toObject(); } - if (this.oldcentralizedStations != null) { - data.oldcentralizedStations = this.oldcentralizedStations; - } if (this.mt != null) { data.mt = this.mt; } @@ -4400,8 +4060,6 @@ export namespace graphicData { writer.writeMessage(6, this.kilometerSystem, () => this.kilometerSystem.serialize(writer)); if (this.has_refDev) writer.writeMessage(8, this.refDev, () => this.refDev.serialize(writer)); - if (this.oldcentralizedStations.length) - writer.writeRepeatedString(9, this.oldcentralizedStations); if (this.mt != Signal.Model.HL) writer.writeEnum(10, this.mt); if (this.direction != Direction.UP) @@ -4432,9 +4090,6 @@ export namespace graphicData { case 8: reader.readMessage(message.refDev, () => message.refDev = RelatedRef.deserialize(reader)); break; - case 9: - pb_1.Message.addToRepeatedField(message, 9, reader.readString()); - break; case 10: message.mt = reader.readEnum(); break; @@ -4477,11 +4132,8 @@ export namespace graphicData { paRef?: RelatedRef; pbRef?: RelatedRef; sectionType?: Section.SectionType; - oldaxleCountings?: string[]; - oldtrackSectionId?: string; isCurve?: boolean; segmentsCount?: number; - oldcentralizedStations?: string[]; normalRunningDirection?: Section.RunningDirection; isTurnBackZone?: boolean; direction?: Direction; @@ -4490,7 +4142,7 @@ export namespace graphicData { centralizedStations?: number[]; }) { super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [3, 7, 13, 17, 19], this.#one_of_decls); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [3, 17, 19], this.#one_of_decls); if (!Array.isArray(data) && typeof data == "object") { if ("common" in data && data.common != undefined) { this.common = data.common; @@ -4510,21 +4162,12 @@ export namespace graphicData { if ("sectionType" in data && data.sectionType != undefined) { this.sectionType = data.sectionType; } - if ("oldaxleCountings" in data && data.oldaxleCountings != undefined) { - this.oldaxleCountings = data.oldaxleCountings; - } - if ("oldtrackSectionId" in data && data.oldtrackSectionId != undefined) { - this.oldtrackSectionId = data.oldtrackSectionId; - } if ("isCurve" in data && data.isCurve != undefined) { this.isCurve = data.isCurve; } if ("segmentsCount" in data && data.segmentsCount != undefined) { this.segmentsCount = data.segmentsCount; } - if ("oldcentralizedStations" in data && data.oldcentralizedStations != undefined) { - this.oldcentralizedStations = data.oldcentralizedStations; - } if ("normalRunningDirection" in data && data.normalRunningDirection != undefined) { this.normalRunningDirection = data.normalRunningDirection; } @@ -4590,18 +4233,6 @@ export namespace graphicData { set sectionType(value: Section.SectionType) { pb_1.Message.setField(this, 6, value); } - get oldaxleCountings() { - return pb_1.Message.getFieldWithDefault(this, 7, []) as string[]; - } - set oldaxleCountings(value: string[]) { - pb_1.Message.setField(this, 7, value); - } - get oldtrackSectionId() { - return pb_1.Message.getFieldWithDefault(this, 9, "") as string; - } - set oldtrackSectionId(value: string) { - pb_1.Message.setField(this, 9, value); - } get isCurve() { return pb_1.Message.getFieldWithDefault(this, 10, false) as boolean; } @@ -4614,12 +4245,6 @@ export namespace graphicData { set segmentsCount(value: number) { pb_1.Message.setField(this, 12, value); } - get oldcentralizedStations() { - return pb_1.Message.getFieldWithDefault(this, 13, []) as string[]; - } - set oldcentralizedStations(value: string[]) { - pb_1.Message.setField(this, 13, value); - } get normalRunningDirection() { return pb_1.Message.getFieldWithDefault(this, 14, Section.RunningDirection.AtoB) as Section.RunningDirection; } @@ -4663,11 +4288,8 @@ export namespace graphicData { paRef?: ReturnType; pbRef?: ReturnType; sectionType?: Section.SectionType; - oldaxleCountings?: string[]; - oldtrackSectionId?: string; isCurve?: boolean; segmentsCount?: number; - oldcentralizedStations?: string[]; normalRunningDirection?: Section.RunningDirection; isTurnBackZone?: boolean; direction?: Direction; @@ -4694,21 +4316,12 @@ export namespace graphicData { if (data.sectionType != null) { message.sectionType = data.sectionType; } - if (data.oldaxleCountings != null) { - message.oldaxleCountings = data.oldaxleCountings; - } - if (data.oldtrackSectionId != null) { - message.oldtrackSectionId = data.oldtrackSectionId; - } if (data.isCurve != null) { message.isCurve = data.isCurve; } if (data.segmentsCount != null) { message.segmentsCount = data.segmentsCount; } - if (data.oldcentralizedStations != null) { - message.oldcentralizedStations = data.oldcentralizedStations; - } if (data.normalRunningDirection != null) { message.normalRunningDirection = data.normalRunningDirection; } @@ -4737,11 +4350,8 @@ export namespace graphicData { paRef?: ReturnType; pbRef?: ReturnType; sectionType?: Section.SectionType; - oldaxleCountings?: string[]; - oldtrackSectionId?: string; isCurve?: boolean; segmentsCount?: number; - oldcentralizedStations?: string[]; normalRunningDirection?: Section.RunningDirection; isTurnBackZone?: boolean; direction?: Direction; @@ -4767,21 +4377,12 @@ export namespace graphicData { if (this.sectionType != null) { data.sectionType = this.sectionType; } - if (this.oldaxleCountings != null) { - data.oldaxleCountings = this.oldaxleCountings; - } - if (this.oldtrackSectionId != null) { - data.oldtrackSectionId = this.oldtrackSectionId; - } if (this.isCurve != null) { data.isCurve = this.isCurve; } if (this.segmentsCount != null) { data.segmentsCount = this.segmentsCount; } - if (this.oldcentralizedStations != null) { - data.oldcentralizedStations = this.oldcentralizedStations; - } if (this.normalRunningDirection != null) { data.normalRunningDirection = this.normalRunningDirection; } @@ -4818,16 +4419,10 @@ export namespace graphicData { writer.writeMessage(5, this.pbRef, () => this.pbRef.serialize(writer)); if (this.sectionType != Section.SectionType.Physical) writer.writeEnum(6, this.sectionType); - if (this.oldaxleCountings.length) - writer.writeRepeatedString(7, this.oldaxleCountings); - if (this.oldtrackSectionId.length) - writer.writeString(9, this.oldtrackSectionId); if (this.isCurve != false) writer.writeBool(10, this.isCurve); if (this.segmentsCount != 0) writer.writeInt32(12, this.segmentsCount); - if (this.oldcentralizedStations.length) - writer.writeRepeatedString(13, this.oldcentralizedStations); if (this.normalRunningDirection != Section.RunningDirection.AtoB) writer.writeEnum(14, this.normalRunningDirection); if (this.isTurnBackZone != false) @@ -4867,21 +4462,12 @@ export namespace graphicData { case 6: message.sectionType = reader.readEnum(); break; - case 7: - pb_1.Message.addToRepeatedField(message, 7, reader.readString()); - break; - case 9: - message.oldtrackSectionId = reader.readString(); - break; case 10: message.isCurve = reader.readBool(); break; case 12: message.segmentsCount = reader.readInt32(); break; - case 13: - pb_1.Message.addToRepeatedField(message, 13, reader.readString()); - break; case 14: message.normalRunningDirection = reader.readEnum(); break; @@ -4927,7 +4513,6 @@ export namespace graphicData { #one_of_decls: number[][] = []; constructor(data?: any[] | { deviceType?: RelatedRef.DeviceType; - oldid?: string; devicePort?: RelatedRef.DevicePort; id?: number; }) { @@ -4937,9 +4522,6 @@ export namespace graphicData { if ("deviceType" in data && data.deviceType != undefined) { this.deviceType = data.deviceType; } - if ("oldid" in data && data.oldid != undefined) { - this.oldid = data.oldid; - } if ("devicePort" in data && data.devicePort != undefined) { this.devicePort = data.devicePort; } @@ -4954,12 +4536,6 @@ export namespace graphicData { set deviceType(value: RelatedRef.DeviceType) { pb_1.Message.setField(this, 1, value); } - get oldid() { - return pb_1.Message.getFieldWithDefault(this, 2, "") as string; - } - set oldid(value: string) { - pb_1.Message.setField(this, 2, value); - } get devicePort() { return pb_1.Message.getFieldWithDefault(this, 3, RelatedRef.DevicePort.A) as RelatedRef.DevicePort; } @@ -4974,7 +4550,6 @@ export namespace graphicData { } static fromObject(data: { deviceType?: RelatedRef.DeviceType; - oldid?: string; devicePort?: RelatedRef.DevicePort; id?: number; }): RelatedRef { @@ -4982,9 +4557,6 @@ export namespace graphicData { if (data.deviceType != null) { message.deviceType = data.deviceType; } - if (data.oldid != null) { - message.oldid = data.oldid; - } if (data.devicePort != null) { message.devicePort = data.devicePort; } @@ -4996,16 +4568,12 @@ export namespace graphicData { toObject() { const data: { deviceType?: RelatedRef.DeviceType; - oldid?: string; devicePort?: RelatedRef.DevicePort; id?: number; } = {}; if (this.deviceType != null) { data.deviceType = this.deviceType; } - if (this.oldid != null) { - data.oldid = this.oldid; - } if (this.devicePort != null) { data.devicePort = this.devicePort; } @@ -5020,8 +4588,6 @@ export namespace graphicData { const writer = w || new pb_1.BinaryWriter(); if (this.deviceType != RelatedRef.DeviceType.Section) writer.writeEnum(1, this.deviceType); - if (this.oldid.length) - writer.writeString(2, this.oldid); if (this.devicePort != RelatedRef.DevicePort.A) writer.writeEnum(3, this.devicePort); if (this.id != 0) @@ -5038,9 +4604,6 @@ export namespace graphicData { case 1: message.deviceType = reader.readEnum(); break; - case 2: - message.oldid = reader.readString(); - break; case 3: message.devicePort = reader.readEnum(); break; @@ -5084,16 +4647,12 @@ export namespace graphicData { export class TurnoutPosRef extends pb_1.Message { #one_of_decls: number[][] = []; constructor(data?: any[] | { - oldid?: string; position?: number; id?: number; }) { super(); pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); if (!Array.isArray(data) && typeof data == "object") { - if ("oldid" in data && data.oldid != undefined) { - this.oldid = data.oldid; - } if ("position" in data && data.position != undefined) { this.position = data.position; } @@ -5102,12 +4661,6 @@ export namespace graphicData { } } } - get oldid() { - return pb_1.Message.getFieldWithDefault(this, 1, "") as string; - } - set oldid(value: string) { - pb_1.Message.setField(this, 1, value); - } get position() { return pb_1.Message.getFieldWithDefault(this, 2, 0) as number; } @@ -5121,14 +4674,10 @@ export namespace graphicData { pb_1.Message.setField(this, 3, value); } static fromObject(data: { - oldid?: string; position?: number; id?: number; }): TurnoutPosRef { const message = new TurnoutPosRef({}); - if (data.oldid != null) { - message.oldid = data.oldid; - } if (data.position != null) { message.position = data.position; } @@ -5139,13 +4688,9 @@ export namespace graphicData { } toObject() { const data: { - oldid?: string; position?: number; id?: number; } = {}; - if (this.oldid != null) { - data.oldid = this.oldid; - } if (this.position != null) { data.position = this.position; } @@ -5158,8 +4703,6 @@ export namespace graphicData { serialize(w: pb_1.BinaryWriter): void; serialize(w?: pb_1.BinaryWriter): Uint8Array | void { const writer = w || new pb_1.BinaryWriter(); - if (this.oldid.length) - writer.writeString(1, this.oldid); if (this.position != 0) writer.writeInt32(2, this.position); if (this.id != 0) @@ -5173,9 +4716,6 @@ export namespace graphicData { if (reader.isEndGroup()) break; switch (reader.getFieldNumber()) { - case 1: - message.oldid = reader.readString(); - break; case 2: message.position = reader.readInt32(); break; @@ -5317,7 +4857,6 @@ export namespace graphicData { code?: string; kilometerSystem?: KilometerSystem; TransponderRef?: RelatedRef; - oldcentralizedStations?: string[]; type?: Transponder.TransponderTypeEnum; centralizedStations?: number[]; fixedTelegram?: string; @@ -5325,7 +4864,7 @@ export namespace graphicData { originalCode?: string; }) { super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [7, 10], this.#one_of_decls); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [10], this.#one_of_decls); if (!Array.isArray(data) && typeof data == "object") { if ("common" in data && data.common != undefined) { this.common = data.common; @@ -5339,9 +4878,6 @@ export namespace graphicData { if ("TransponderRef" in data && data.TransponderRef != undefined) { this.TransponderRef = data.TransponderRef; } - if ("oldcentralizedStations" in data && data.oldcentralizedStations != undefined) { - this.oldcentralizedStations = data.oldcentralizedStations; - } if ("type" in data && data.type != undefined) { this.type = data.type; } @@ -5392,12 +4928,6 @@ export namespace graphicData { get has_TransponderRef() { return pb_1.Message.getField(this, 6) != null; } - get oldcentralizedStations() { - return pb_1.Message.getFieldWithDefault(this, 7, []) as string[]; - } - set oldcentralizedStations(value: string[]) { - pb_1.Message.setField(this, 7, value); - } get type() { return pb_1.Message.getFieldWithDefault(this, 9, Transponder.TransponderTypeEnum.FB) as Transponder.TransponderTypeEnum; } @@ -5433,7 +4963,6 @@ export namespace graphicData { code?: string; kilometerSystem?: ReturnType; TransponderRef?: ReturnType; - oldcentralizedStations?: string[]; type?: Transponder.TransponderTypeEnum; centralizedStations?: number[]; fixedTelegram?: string; @@ -5453,9 +4982,6 @@ export namespace graphicData { if (data.TransponderRef != null) { message.TransponderRef = RelatedRef.fromObject(data.TransponderRef); } - if (data.oldcentralizedStations != null) { - message.oldcentralizedStations = data.oldcentralizedStations; - } if (data.type != null) { message.type = data.type; } @@ -5479,7 +5005,6 @@ export namespace graphicData { code?: string; kilometerSystem?: ReturnType; TransponderRef?: ReturnType; - oldcentralizedStations?: string[]; type?: Transponder.TransponderTypeEnum; centralizedStations?: number[]; fixedTelegram?: string; @@ -5498,9 +5023,6 @@ export namespace graphicData { if (this.TransponderRef != null) { data.TransponderRef = this.TransponderRef.toObject(); } - if (this.oldcentralizedStations != null) { - data.oldcentralizedStations = this.oldcentralizedStations; - } if (this.type != null) { data.type = this.type; } @@ -5530,8 +5052,6 @@ export namespace graphicData { writer.writeMessage(5, this.kilometerSystem, () => this.kilometerSystem.serialize(writer)); if (this.has_TransponderRef) writer.writeMessage(6, this.TransponderRef, () => this.TransponderRef.serialize(writer)); - if (this.oldcentralizedStations.length) - writer.writeRepeatedString(7, this.oldcentralizedStations); if (this.type != Transponder.TransponderTypeEnum.FB) writer.writeEnum(9, this.type); if (this.centralizedStations.length) @@ -5563,9 +5083,6 @@ export namespace graphicData { case 6: reader.readMessage(message.TransponderRef, () => message.TransponderRef = RelatedRef.deserialize(reader)); break; - case 7: - pb_1.Message.addToRepeatedField(message, 7, reader.readString()); - break; case 9: message.type = reader.readEnum(); break; @@ -5606,7 +5123,6 @@ export namespace graphicData { #one_of_decls: number[][] = []; constructor(data?: any[] | { deviceType?: SimpleRef.DeviceType; - oldid?: string; id?: number; }) { super(); @@ -5615,9 +5131,6 @@ export namespace graphicData { if ("deviceType" in data && data.deviceType != undefined) { this.deviceType = data.deviceType; } - if ("oldid" in data && data.oldid != undefined) { - this.oldid = data.oldid; - } if ("id" in data && data.id != undefined) { this.id = data.id; } @@ -5629,12 +5142,6 @@ export namespace graphicData { set deviceType(value: SimpleRef.DeviceType) { pb_1.Message.setField(this, 1, value); } - get oldid() { - return pb_1.Message.getFieldWithDefault(this, 2, "") as string; - } - set oldid(value: string) { - pb_1.Message.setField(this, 2, value); - } get id() { return pb_1.Message.getFieldWithDefault(this, 3, 0) as number; } @@ -5643,16 +5150,12 @@ export namespace graphicData { } static fromObject(data: { deviceType?: SimpleRef.DeviceType; - oldid?: string; id?: number; }): SimpleRef { const message = new SimpleRef({}); if (data.deviceType != null) { message.deviceType = data.deviceType; } - if (data.oldid != null) { - message.oldid = data.oldid; - } if (data.id != null) { message.id = data.id; } @@ -5661,15 +5164,11 @@ export namespace graphicData { toObject() { const data: { deviceType?: SimpleRef.DeviceType; - oldid?: string; id?: number; } = {}; if (this.deviceType != null) { data.deviceType = this.deviceType; } - if (this.oldid != null) { - data.oldid = this.oldid; - } if (this.id != null) { data.id = this.id; } @@ -5681,8 +5180,6 @@ export namespace graphicData { const writer = w || new pb_1.BinaryWriter(); if (this.deviceType != SimpleRef.DeviceType.Turnout) writer.writeEnum(1, this.deviceType); - if (this.oldid.length) - writer.writeString(2, this.oldid); if (this.id != 0) writer.writeUint32(3, this.id); if (!w) @@ -5697,9 +5194,6 @@ export namespace graphicData { case 1: message.deviceType = reader.readEnum(); break; - case 2: - message.oldid = reader.readString(); - break; case 3: message.id = reader.readUint32(); break; @@ -6161,8 +5655,6 @@ export namespace graphicData { common?: CommonInfo; code?: string; points?: Point[]; - oldaxleSectionId?: string; - oldturnoutId?: string; axleSectionId?: number; turnoutId?: number; }) { @@ -6178,12 +5670,6 @@ export namespace graphicData { if ("points" in data && data.points != undefined) { this.points = data.points; } - if ("oldaxleSectionId" in data && data.oldaxleSectionId != undefined) { - this.oldaxleSectionId = data.oldaxleSectionId; - } - if ("oldturnoutId" in data && data.oldturnoutId != undefined) { - this.oldturnoutId = data.oldturnoutId; - } if ("axleSectionId" in data && data.axleSectionId != undefined) { this.axleSectionId = data.axleSectionId; } @@ -6213,18 +5699,6 @@ export namespace graphicData { set points(value: Point[]) { pb_1.Message.setRepeatedWrapperField(this, 3, value); } - get oldaxleSectionId() { - return pb_1.Message.getFieldWithDefault(this, 4, "") as string; - } - set oldaxleSectionId(value: string) { - pb_1.Message.setField(this, 4, value); - } - get oldturnoutId() { - return pb_1.Message.getFieldWithDefault(this, 6, "") as string; - } - set oldturnoutId(value: string) { - pb_1.Message.setField(this, 6, value); - } get axleSectionId() { return pb_1.Message.getFieldWithDefault(this, 7, 0) as number; } @@ -6241,8 +5715,6 @@ export namespace graphicData { common?: ReturnType; code?: string; points?: ReturnType[]; - oldaxleSectionId?: string; - oldturnoutId?: string; axleSectionId?: number; turnoutId?: number; }): LogicSection { @@ -6256,12 +5728,6 @@ export namespace graphicData { if (data.points != null) { message.points = data.points.map(item => Point.fromObject(item)); } - if (data.oldaxleSectionId != null) { - message.oldaxleSectionId = data.oldaxleSectionId; - } - if (data.oldturnoutId != null) { - message.oldturnoutId = data.oldturnoutId; - } if (data.axleSectionId != null) { message.axleSectionId = data.axleSectionId; } @@ -6275,8 +5741,6 @@ export namespace graphicData { common?: ReturnType; code?: string; points?: ReturnType[]; - oldaxleSectionId?: string; - oldturnoutId?: string; axleSectionId?: number; turnoutId?: number; } = {}; @@ -6289,12 +5753,6 @@ export namespace graphicData { if (this.points != null) { data.points = this.points.map((item: Point) => item.toObject()); } - if (this.oldaxleSectionId != null) { - data.oldaxleSectionId = this.oldaxleSectionId; - } - if (this.oldturnoutId != null) { - data.oldturnoutId = this.oldturnoutId; - } if (this.axleSectionId != null) { data.axleSectionId = this.axleSectionId; } @@ -6313,10 +5771,6 @@ export namespace graphicData { writer.writeString(2, this.code); if (this.points.length) writer.writeRepeatedMessage(3, this.points, (item: Point) => item.serialize(writer)); - if (this.oldaxleSectionId.length) - writer.writeString(4, this.oldaxleSectionId); - if (this.oldturnoutId.length) - writer.writeString(6, this.oldturnoutId); if (this.axleSectionId != 0) writer.writeUint32(7, this.axleSectionId); if (this.turnoutId != 0) @@ -6339,12 +5793,6 @@ export namespace graphicData { case 3: reader.readMessage(message.points, () => pb_1.Message.addToRepeatedWrapperField(message, 3, Point.deserialize(reader), Point)); break; - case 4: - message.oldaxleSectionId = reader.readString(); - break; - case 6: - message.oldturnoutId = reader.readString(); - break; case 7: message.axleSectionId = reader.readUint32(); break; @@ -6371,13 +5819,12 @@ export namespace graphicData { code?: string; type?: TrackSection.TrackSectionType; destinationCode?: string; - oldtrackLogicSection?: string[]; isCurve?: boolean; segmentsCount?: number; trackLogicSection?: number[]; }) { super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2, 7, 10], this.#one_of_decls); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2, 10], this.#one_of_decls); if (!Array.isArray(data) && typeof data == "object") { if ("common" in data && data.common != undefined) { this.common = data.common; @@ -6394,9 +5841,6 @@ export namespace graphicData { if ("destinationCode" in data && data.destinationCode != undefined) { this.destinationCode = data.destinationCode; } - if ("oldtrackLogicSection" in data && data.oldtrackLogicSection != undefined) { - this.oldtrackLogicSection = data.oldtrackLogicSection; - } if ("isCurve" in data && data.isCurve != undefined) { this.isCurve = data.isCurve; } @@ -6441,12 +5885,6 @@ export namespace graphicData { set destinationCode(value: string) { pb_1.Message.setField(this, 6, value); } - get oldtrackLogicSection() { - return pb_1.Message.getFieldWithDefault(this, 7, []) as string[]; - } - set oldtrackLogicSection(value: string[]) { - pb_1.Message.setField(this, 7, value); - } get isCurve() { return pb_1.Message.getFieldWithDefault(this, 8, false) as boolean; } @@ -6471,7 +5909,6 @@ export namespace graphicData { code?: string; type?: TrackSection.TrackSectionType; destinationCode?: string; - oldtrackLogicSection?: string[]; isCurve?: boolean; segmentsCount?: number; trackLogicSection?: number[]; @@ -6492,9 +5929,6 @@ export namespace graphicData { if (data.destinationCode != null) { message.destinationCode = data.destinationCode; } - if (data.oldtrackLogicSection != null) { - message.oldtrackLogicSection = data.oldtrackLogicSection; - } if (data.isCurve != null) { message.isCurve = data.isCurve; } @@ -6513,7 +5947,6 @@ export namespace graphicData { code?: string; type?: TrackSection.TrackSectionType; destinationCode?: string; - oldtrackLogicSection?: string[]; isCurve?: boolean; segmentsCount?: number; trackLogicSection?: number[]; @@ -6533,9 +5966,6 @@ export namespace graphicData { if (this.destinationCode != null) { data.destinationCode = this.destinationCode; } - if (this.oldtrackLogicSection != null) { - data.oldtrackLogicSection = this.oldtrackLogicSection; - } if (this.isCurve != null) { data.isCurve = this.isCurve; } @@ -6561,8 +5991,6 @@ export namespace graphicData { writer.writeEnum(5, this.type); if (this.destinationCode.length) writer.writeString(6, this.destinationCode); - if (this.oldtrackLogicSection.length) - writer.writeRepeatedString(7, this.oldtrackLogicSection); if (this.isCurve != false) writer.writeBool(8, this.isCurve); if (this.segmentsCount != 0) @@ -6593,9 +6021,6 @@ export namespace graphicData { case 6: message.destinationCode = reader.readString(); break; - case 7: - pb_1.Message.addToRepeatedField(message, 7, reader.readString()); - break; case 8: message.isCurve = reader.readBool(); break; @@ -6966,13 +6391,11 @@ export namespace graphicData { common?: CommonInfo; code?: string; flip?: boolean; - oldrefSections?: string[]; - oldrefStand?: string; refSections?: number[]; refStand?: number; }) { super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [6, 8], this.#one_of_decls); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [8], this.#one_of_decls); if (!Array.isArray(data) && typeof data == "object") { if ("common" in data && data.common != undefined) { this.common = data.common; @@ -6983,12 +6406,6 @@ export namespace graphicData { if ("flip" in data && data.flip != undefined) { this.flip = data.flip; } - if ("oldrefSections" in data && data.oldrefSections != undefined) { - this.oldrefSections = data.oldrefSections; - } - if ("oldrefStand" in data && data.oldrefStand != undefined) { - this.oldrefStand = data.oldrefStand; - } if ("refSections" in data && data.refSections != undefined) { this.refSections = data.refSections; } @@ -7018,18 +6435,6 @@ export namespace graphicData { set flip(value: boolean) { pb_1.Message.setField(this, 3, value); } - get oldrefSections() { - return pb_1.Message.getFieldWithDefault(this, 6, []) as string[]; - } - set oldrefSections(value: string[]) { - pb_1.Message.setField(this, 6, value); - } - get oldrefStand() { - return pb_1.Message.getFieldWithDefault(this, 7, "") as string; - } - set oldrefStand(value: string) { - pb_1.Message.setField(this, 7, value); - } get refSections() { return pb_1.Message.getFieldWithDefault(this, 8, []) as number[]; } @@ -7046,8 +6451,6 @@ export namespace graphicData { common?: ReturnType; code?: string; flip?: boolean; - oldrefSections?: string[]; - oldrefStand?: string; refSections?: number[]; refStand?: number; }): SpksSwitch { @@ -7061,12 +6464,6 @@ export namespace graphicData { if (data.flip != null) { message.flip = data.flip; } - if (data.oldrefSections != null) { - message.oldrefSections = data.oldrefSections; - } - if (data.oldrefStand != null) { - message.oldrefStand = data.oldrefStand; - } if (data.refSections != null) { message.refSections = data.refSections; } @@ -7080,8 +6477,6 @@ export namespace graphicData { common?: ReturnType; code?: string; flip?: boolean; - oldrefSections?: string[]; - oldrefStand?: string; refSections?: number[]; refStand?: number; } = {}; @@ -7094,12 +6489,6 @@ export namespace graphicData { if (this.flip != null) { data.flip = this.flip; } - if (this.oldrefSections != null) { - data.oldrefSections = this.oldrefSections; - } - if (this.oldrefStand != null) { - data.oldrefStand = this.oldrefStand; - } if (this.refSections != null) { data.refSections = this.refSections; } @@ -7118,10 +6507,6 @@ export namespace graphicData { writer.writeString(2, this.code); if (this.flip != false) writer.writeBool(3, this.flip); - if (this.oldrefSections.length) - writer.writeRepeatedString(6, this.oldrefSections); - if (this.oldrefStand.length) - writer.writeString(7, this.oldrefStand); if (this.refSections.length) writer.writePackedUint32(8, this.refSections); if (this.refStand != 0) @@ -7144,12 +6529,6 @@ export namespace graphicData { case 3: message.flip = reader.readBool(); break; - case 6: - pb_1.Message.addToRepeatedField(message, 6, reader.readString()); - break; - case 7: - message.oldrefStand = reader.readString(); - break; case 8: message.refSections = reader.readPackedUint32(); break; @@ -7174,7 +6553,6 @@ export namespace graphicData { common?: CommonInfo; code?: string; flip?: boolean; - oldrefStand?: string; refStand?: number; }) { super(); @@ -7189,9 +6567,6 @@ export namespace graphicData { if ("flip" in data && data.flip != undefined) { this.flip = data.flip; } - if ("oldrefStand" in data && data.oldrefStand != undefined) { - this.oldrefStand = data.oldrefStand; - } if ("refStand" in data && data.refStand != undefined) { this.refStand = data.refStand; } @@ -7218,12 +6593,6 @@ export namespace graphicData { set flip(value: boolean) { pb_1.Message.setField(this, 3, value); } - get oldrefStand() { - return pb_1.Message.getFieldWithDefault(this, 6, "") as string; - } - set oldrefStand(value: string) { - pb_1.Message.setField(this, 6, value); - } get refStand() { return pb_1.Message.getFieldWithDefault(this, 7, 0) as number; } @@ -7234,7 +6603,6 @@ export namespace graphicData { common?: ReturnType; code?: string; flip?: boolean; - oldrefStand?: string; refStand?: number; }): EsbButton { const message = new EsbButton({}); @@ -7247,9 +6615,6 @@ export namespace graphicData { if (data.flip != null) { message.flip = data.flip; } - if (data.oldrefStand != null) { - message.oldrefStand = data.oldrefStand; - } if (data.refStand != null) { message.refStand = data.refStand; } @@ -7260,7 +6625,6 @@ export namespace graphicData { common?: ReturnType; code?: string; flip?: boolean; - oldrefStand?: string; refStand?: number; } = {}; if (this.common != null) { @@ -7272,9 +6636,6 @@ export namespace graphicData { if (this.flip != null) { data.flip = this.flip; } - if (this.oldrefStand != null) { - data.oldrefStand = this.oldrefStand; - } if (this.refStand != null) { data.refStand = this.refStand; } @@ -7290,8 +6651,6 @@ export namespace graphicData { writer.writeString(2, this.code); if (this.flip != false) writer.writeBool(3, this.flip); - if (this.oldrefStand.length) - writer.writeString(6, this.oldrefStand); if (this.refStand != 0) writer.writeUint32(7, this.refStand); if (!w) @@ -7312,9 +6671,6 @@ export namespace graphicData { case 3: message.flip = reader.readBool(); break; - case 6: - message.oldrefStand = reader.readString(); - break; case 7: message.refStand = reader.readUint32(); break; @@ -7336,7 +6692,6 @@ export namespace graphicData { common?: CommonInfo; code?: string; flip?: boolean; - oldrefScreenDoor?: string; refGatedBoxMapCode?: string; refScreenDoor?: number; }) { @@ -7352,9 +6707,6 @@ export namespace graphicData { if ("flip" in data && data.flip != undefined) { this.flip = data.flip; } - if ("oldrefScreenDoor" in data && data.oldrefScreenDoor != undefined) { - this.oldrefScreenDoor = data.oldrefScreenDoor; - } if ("refGatedBoxMapCode" in data && data.refGatedBoxMapCode != undefined) { this.refGatedBoxMapCode = data.refGatedBoxMapCode; } @@ -7384,12 +6736,6 @@ export namespace graphicData { set flip(value: boolean) { pb_1.Message.setField(this, 3, value); } - get oldrefScreenDoor() { - return pb_1.Message.getFieldWithDefault(this, 5, "") as string; - } - set oldrefScreenDoor(value: string) { - pb_1.Message.setField(this, 5, value); - } get refGatedBoxMapCode() { return pb_1.Message.getFieldWithDefault(this, 6, "") as string; } @@ -7406,7 +6752,6 @@ export namespace graphicData { common?: ReturnType; code?: string; flip?: boolean; - oldrefScreenDoor?: string; refGatedBoxMapCode?: string; refScreenDoor?: number; }): GatedBox { @@ -7420,9 +6765,6 @@ export namespace graphicData { if (data.flip != null) { message.flip = data.flip; } - if (data.oldrefScreenDoor != null) { - message.oldrefScreenDoor = data.oldrefScreenDoor; - } if (data.refGatedBoxMapCode != null) { message.refGatedBoxMapCode = data.refGatedBoxMapCode; } @@ -7436,7 +6778,6 @@ export namespace graphicData { common?: ReturnType; code?: string; flip?: boolean; - oldrefScreenDoor?: string; refGatedBoxMapCode?: string; refScreenDoor?: number; } = {}; @@ -7449,9 +6790,6 @@ export namespace graphicData { if (this.flip != null) { data.flip = this.flip; } - if (this.oldrefScreenDoor != null) { - data.oldrefScreenDoor = this.oldrefScreenDoor; - } if (this.refGatedBoxMapCode != null) { data.refGatedBoxMapCode = this.refGatedBoxMapCode; } @@ -7470,8 +6808,6 @@ export namespace graphicData { writer.writeString(2, this.code); if (this.flip != false) writer.writeBool(3, this.flip); - if (this.oldrefScreenDoor.length) - writer.writeString(5, this.oldrefScreenDoor); if (this.refGatedBoxMapCode.length) writer.writeString(6, this.refGatedBoxMapCode); if (this.refScreenDoor != 0) @@ -7494,9 +6830,6 @@ export namespace graphicData { case 3: message.flip = reader.readBool(); break; - case 5: - message.oldrefScreenDoor = reader.readString(); - break; case 6: message.refGatedBoxMapCode = reader.readString(); break; @@ -8477,11 +7810,10 @@ export namespace graphicData { common?: CommonInfo; points?: Point[]; slopeNumber?: number; - oldrefDeviceId?: string[]; refDeviceId?: number[]; }) { super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2, 4, 5], this.#one_of_decls); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2, 5], this.#one_of_decls); if (!Array.isArray(data) && typeof data == "object") { if ("common" in data && data.common != undefined) { this.common = data.common; @@ -8492,9 +7824,6 @@ export namespace graphicData { if ("slopeNumber" in data && data.slopeNumber != undefined) { this.slopeNumber = data.slopeNumber; } - if ("oldrefDeviceId" in data && data.oldrefDeviceId != undefined) { - this.oldrefDeviceId = data.oldrefDeviceId; - } if ("refDeviceId" in data && data.refDeviceId != undefined) { this.refDeviceId = data.refDeviceId; } @@ -8521,12 +7850,6 @@ export namespace graphicData { set slopeNumber(value: number) { pb_1.Message.setField(this, 3, value); } - get oldrefDeviceId() { - return pb_1.Message.getFieldWithDefault(this, 4, []) as string[]; - } - set oldrefDeviceId(value: string[]) { - pb_1.Message.setField(this, 4, value); - } get refDeviceId() { return pb_1.Message.getFieldWithDefault(this, 5, []) as number[]; } @@ -8537,7 +7860,6 @@ export namespace graphicData { common?: ReturnType; points?: ReturnType[]; slopeNumber?: number; - oldrefDeviceId?: string[]; refDeviceId?: number[]; }): Slope { const message = new Slope({}); @@ -8550,9 +7872,6 @@ export namespace graphicData { if (data.slopeNumber != null) { message.slopeNumber = data.slopeNumber; } - if (data.oldrefDeviceId != null) { - message.oldrefDeviceId = data.oldrefDeviceId; - } if (data.refDeviceId != null) { message.refDeviceId = data.refDeviceId; } @@ -8563,7 +7882,6 @@ export namespace graphicData { common?: ReturnType; points?: ReturnType[]; slopeNumber?: number; - oldrefDeviceId?: string[]; refDeviceId?: number[]; } = {}; if (this.common != null) { @@ -8575,9 +7893,6 @@ export namespace graphicData { if (this.slopeNumber != null) { data.slopeNumber = this.slopeNumber; } - if (this.oldrefDeviceId != null) { - data.oldrefDeviceId = this.oldrefDeviceId; - } if (this.refDeviceId != null) { data.refDeviceId = this.refDeviceId; } @@ -8593,8 +7908,6 @@ export namespace graphicData { writer.writeRepeatedMessage(2, this.points, (item: Point) => item.serialize(writer)); if (this.slopeNumber != 0) writer.writeSint32(3, this.slopeNumber); - if (this.oldrefDeviceId.length) - writer.writeRepeatedString(4, this.oldrefDeviceId); if (this.refDeviceId.length) writer.writePackedUint32(5, this.refDeviceId); if (!w) @@ -8615,9 +7928,6 @@ export namespace graphicData { case 3: message.slopeNumber = reader.readSint32(); break; - case 4: - pb_1.Message.addToRepeatedField(message, 4, reader.readString()); - break; case 5: message.refDeviceId = reader.readPackedUint32(); break; @@ -8639,11 +7949,10 @@ export namespace graphicData { common?: CommonInfo; points?: Point[]; curvatureNumber?: number; - oldrefDeviceId?: string[]; refDeviceId?: number[]; }) { super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2, 4, 5], this.#one_of_decls); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2, 5], this.#one_of_decls); if (!Array.isArray(data) && typeof data == "object") { if ("common" in data && data.common != undefined) { this.common = data.common; @@ -8654,9 +7963,6 @@ export namespace graphicData { if ("curvatureNumber" in data && data.curvatureNumber != undefined) { this.curvatureNumber = data.curvatureNumber; } - if ("oldrefDeviceId" in data && data.oldrefDeviceId != undefined) { - this.oldrefDeviceId = data.oldrefDeviceId; - } if ("refDeviceId" in data && data.refDeviceId != undefined) { this.refDeviceId = data.refDeviceId; } @@ -8683,12 +7989,6 @@ export namespace graphicData { set curvatureNumber(value: number) { pb_1.Message.setField(this, 3, value); } - get oldrefDeviceId() { - return pb_1.Message.getFieldWithDefault(this, 4, []) as string[]; - } - set oldrefDeviceId(value: string[]) { - pb_1.Message.setField(this, 4, value); - } get refDeviceId() { return pb_1.Message.getFieldWithDefault(this, 5, []) as number[]; } @@ -8699,7 +7999,6 @@ export namespace graphicData { common?: ReturnType; points?: ReturnType[]; curvatureNumber?: number; - oldrefDeviceId?: string[]; refDeviceId?: number[]; }): Curvature { const message = new Curvature({}); @@ -8712,9 +8011,6 @@ export namespace graphicData { if (data.curvatureNumber != null) { message.curvatureNumber = data.curvatureNumber; } - if (data.oldrefDeviceId != null) { - message.oldrefDeviceId = data.oldrefDeviceId; - } if (data.refDeviceId != null) { message.refDeviceId = data.refDeviceId; } @@ -8725,7 +8021,6 @@ export namespace graphicData { common?: ReturnType; points?: ReturnType[]; curvatureNumber?: number; - oldrefDeviceId?: string[]; refDeviceId?: number[]; } = {}; if (this.common != null) { @@ -8737,9 +8032,6 @@ export namespace graphicData { if (this.curvatureNumber != null) { data.curvatureNumber = this.curvatureNumber; } - if (this.oldrefDeviceId != null) { - data.oldrefDeviceId = this.oldrefDeviceId; - } if (this.refDeviceId != null) { data.refDeviceId = this.refDeviceId; } @@ -8755,8 +8047,6 @@ export namespace graphicData { writer.writeRepeatedMessage(2, this.points, (item: Point) => item.serialize(writer)); if (this.curvatureNumber != 0) writer.writeSint32(3, this.curvatureNumber); - if (this.oldrefDeviceId.length) - writer.writeRepeatedString(4, this.oldrefDeviceId); if (this.refDeviceId.length) writer.writePackedUint32(5, this.refDeviceId); if (!w) @@ -8777,9 +8067,6 @@ export namespace graphicData { case 3: message.curvatureNumber = reader.readSint32(); break; - case 4: - pb_1.Message.addToRepeatedField(message, 4, reader.readString()); - break; case 5: message.refDeviceId = reader.readPackedUint32(); break; @@ -8800,7 +8087,6 @@ export namespace graphicData { constructor(data?: any[] | { common?: CommonInfo; code?: string; - oldrefStand?: string; runDirection?: string; refStand?: number; }) { @@ -8813,9 +8099,6 @@ export namespace graphicData { if ("code" in data && data.code != undefined) { this.code = data.code; } - if ("oldrefStand" in data && data.oldrefStand != undefined) { - this.oldrefStand = data.oldrefStand; - } if ("runDirection" in data && data.runDirection != undefined) { this.runDirection = data.runDirection; } @@ -8839,12 +8122,6 @@ export namespace graphicData { set code(value: string) { pb_1.Message.setField(this, 2, value); } - get oldrefStand() { - return pb_1.Message.getFieldWithDefault(this, 3, "") as string; - } - set oldrefStand(value: string) { - pb_1.Message.setField(this, 3, value); - } get runDirection() { return pb_1.Message.getFieldWithDefault(this, 4, "") as string; } @@ -8860,7 +8137,6 @@ export namespace graphicData { static fromObject(data: { common?: ReturnType; code?: string; - oldrefStand?: string; runDirection?: string; refStand?: number; }): DepartureTimer { @@ -8871,9 +8147,6 @@ export namespace graphicData { if (data.code != null) { message.code = data.code; } - if (data.oldrefStand != null) { - message.oldrefStand = data.oldrefStand; - } if (data.runDirection != null) { message.runDirection = data.runDirection; } @@ -8886,7 +8159,6 @@ export namespace graphicData { const data: { common?: ReturnType; code?: string; - oldrefStand?: string; runDirection?: string; refStand?: number; } = {}; @@ -8896,9 +8168,6 @@ export namespace graphicData { if (this.code != null) { data.code = this.code; } - if (this.oldrefStand != null) { - data.oldrefStand = this.oldrefStand; - } if (this.runDirection != null) { data.runDirection = this.runDirection; } @@ -8915,8 +8184,6 @@ export namespace graphicData { writer.writeMessage(1, this.common, () => this.common.serialize(writer)); if (this.code.length) writer.writeString(2, this.code); - if (this.oldrefStand.length) - writer.writeString(3, this.oldrefStand); if (this.runDirection.length) writer.writeString(4, this.runDirection); if (this.refStand != 0) @@ -8936,9 +8203,6 @@ export namespace graphicData { case 2: message.code = reader.readString(); break; - case 3: - message.oldrefStand = reader.readString(); - break; case 4: message.runDirection = reader.readString(); break; @@ -8964,7 +8228,6 @@ export namespace graphicData { code?: string; flip?: boolean; index?: number; - oldrefStand?: string; refStand?: number; }) { super(); @@ -8982,9 +8245,6 @@ export namespace graphicData { if ("index" in data && data.index != undefined) { this.index = data.index; } - if ("oldrefStand" in data && data.oldrefStand != undefined) { - this.oldrefStand = data.oldrefStand; - } if ("refStand" in data && data.refStand != undefined) { this.refStand = data.refStand; } @@ -9017,12 +8277,6 @@ export namespace graphicData { set index(value: number) { pb_1.Message.setField(this, 4, value); } - get oldrefStand() { - return pb_1.Message.getFieldWithDefault(this, 5, "") as string; - } - set oldrefStand(value: string) { - pb_1.Message.setField(this, 5, value); - } get refStand() { return pb_1.Message.getFieldWithDefault(this, 6, 0) as number; } @@ -9034,7 +8288,6 @@ export namespace graphicData { code?: string; flip?: boolean; index?: number; - oldrefStand?: string; refStand?: number; }): AutoReturnBox { const message = new AutoReturnBox({}); @@ -9050,9 +8303,6 @@ export namespace graphicData { if (data.index != null) { message.index = data.index; } - if (data.oldrefStand != null) { - message.oldrefStand = data.oldrefStand; - } if (data.refStand != null) { message.refStand = data.refStand; } @@ -9064,7 +8314,6 @@ export namespace graphicData { code?: string; flip?: boolean; index?: number; - oldrefStand?: string; refStand?: number; } = {}; if (this.common != null) { @@ -9079,9 +8328,6 @@ export namespace graphicData { if (this.index != null) { data.index = this.index; } - if (this.oldrefStand != null) { - data.oldrefStand = this.oldrefStand; - } if (this.refStand != null) { data.refStand = this.refStand; } @@ -9099,8 +8345,6 @@ export namespace graphicData { writer.writeBool(3, this.flip); if (this.index != 0) writer.writeInt32(4, this.index); - if (this.oldrefStand.length) - writer.writeString(5, this.oldrefStand); if (this.refStand != 0) writer.writeUint32(6, this.refStand); if (!w) @@ -9124,9 +8368,6 @@ export namespace graphicData { case 4: message.index = reader.readInt32(); break; - case 5: - message.oldrefStand = reader.readString(); - break; case 6: message.refStand = reader.readUint32(); break; @@ -9491,18 +8732,14 @@ export namespace graphicData { #one_of_decls: number[][] = []; constructor(data?: any[] | { code?: string; - oldrefDevices?: string[]; refDevices?: number[]; }) { super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2, 3], this.#one_of_decls); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [3], this.#one_of_decls); if (!Array.isArray(data) && typeof data == "object") { if ("code" in data && data.code != undefined) { this.code = data.code; } - if ("oldrefDevices" in data && data.oldrefDevices != undefined) { - this.oldrefDevices = data.oldrefDevices; - } if ("refDevices" in data && data.refDevices != undefined) { this.refDevices = data.refDevices; } @@ -9514,12 +8751,6 @@ export namespace graphicData { set code(value: string) { pb_1.Message.setField(this, 1, value); } - get oldrefDevices() { - return pb_1.Message.getFieldWithDefault(this, 2, []) as string[]; - } - set oldrefDevices(value: string[]) { - pb_1.Message.setField(this, 2, value); - } get refDevices() { return pb_1.Message.getFieldWithDefault(this, 3, []) as number[]; } @@ -9528,16 +8759,12 @@ export namespace graphicData { } static fromObject(data: { code?: string; - oldrefDevices?: string[]; refDevices?: number[]; }): DeviceCombinationtype { const message = new DeviceCombinationtype({}); if (data.code != null) { message.code = data.code; } - if (data.oldrefDevices != null) { - message.oldrefDevices = data.oldrefDevices; - } if (data.refDevices != null) { message.refDevices = data.refDevices; } @@ -9546,15 +8773,11 @@ export namespace graphicData { toObject() { const data: { code?: string; - oldrefDevices?: string[]; refDevices?: number[]; } = {}; if (this.code != null) { data.code = this.code; } - if (this.oldrefDevices != null) { - data.oldrefDevices = this.oldrefDevices; - } if (this.refDevices != null) { data.refDevices = this.refDevices; } @@ -9566,8 +8789,6 @@ export namespace graphicData { const writer = w || new pb_1.BinaryWriter(); if (this.code.length) writer.writeString(1, this.code); - if (this.oldrefDevices.length) - writer.writeRepeatedString(2, this.oldrefDevices); if (this.refDevices.length) writer.writePackedUint32(3, this.refDevices); if (!w) @@ -9582,9 +8803,6 @@ export namespace graphicData { case 1: message.code = reader.readString(); break; - case 2: - pb_1.Message.addToRepeatedField(message, 2, reader.readString()); - break; case 3: message.refDevices = reader.readPackedUint32(); break; @@ -9603,20 +8821,12 @@ export namespace graphicData { export class SectionCodePoint extends pb_1.Message { #one_of_decls: number[][] = []; constructor(data?: any[] | { - oldCentralizedStation?: string; - oldsectionIds?: string[]; sectionIds?: number[]; centralizedStation?: number; }) { super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2, 3], this.#one_of_decls); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [3], this.#one_of_decls); if (!Array.isArray(data) && typeof data == "object") { - if ("oldCentralizedStation" in data && data.oldCentralizedStation != undefined) { - this.oldCentralizedStation = data.oldCentralizedStation; - } - if ("oldsectionIds" in data && data.oldsectionIds != undefined) { - this.oldsectionIds = data.oldsectionIds; - } if ("sectionIds" in data && data.sectionIds != undefined) { this.sectionIds = data.sectionIds; } @@ -9625,18 +8835,6 @@ export namespace graphicData { } } } - get oldCentralizedStation() { - return pb_1.Message.getFieldWithDefault(this, 1, "") as string; - } - set oldCentralizedStation(value: string) { - pb_1.Message.setField(this, 1, value); - } - get oldsectionIds() { - return pb_1.Message.getFieldWithDefault(this, 2, []) as string[]; - } - set oldsectionIds(value: string[]) { - pb_1.Message.setField(this, 2, value); - } get sectionIds() { return pb_1.Message.getFieldWithDefault(this, 3, []) as number[]; } @@ -9650,18 +8848,10 @@ export namespace graphicData { pb_1.Message.setField(this, 4, value); } static fromObject(data: { - oldCentralizedStation?: string; - oldsectionIds?: string[]; sectionIds?: number[]; centralizedStation?: number; }): SectionCodePoint { const message = new SectionCodePoint({}); - if (data.oldCentralizedStation != null) { - message.oldCentralizedStation = data.oldCentralizedStation; - } - if (data.oldsectionIds != null) { - message.oldsectionIds = data.oldsectionIds; - } if (data.sectionIds != null) { message.sectionIds = data.sectionIds; } @@ -9672,17 +8862,9 @@ export namespace graphicData { } toObject() { const data: { - oldCentralizedStation?: string; - oldsectionIds?: string[]; sectionIds?: number[]; centralizedStation?: number; } = {}; - if (this.oldCentralizedStation != null) { - data.oldCentralizedStation = this.oldCentralizedStation; - } - if (this.oldsectionIds != null) { - data.oldsectionIds = this.oldsectionIds; - } if (this.sectionIds != null) { data.sectionIds = this.sectionIds; } @@ -9695,10 +8877,6 @@ export namespace graphicData { serialize(w: pb_1.BinaryWriter): void; serialize(w?: pb_1.BinaryWriter): Uint8Array | void { const writer = w || new pb_1.BinaryWriter(); - if (this.oldCentralizedStation.length) - writer.writeString(1, this.oldCentralizedStation); - if (this.oldsectionIds.length) - writer.writeRepeatedString(2, this.oldsectionIds); if (this.sectionIds.length) writer.writePackedUint32(3, this.sectionIds); if (this.centralizedStation != 0) @@ -9712,12 +8890,6 @@ export namespace graphicData { if (reader.isEndGroup()) break; switch (reader.getFieldNumber()) { - case 1: - message.oldCentralizedStation = reader.readString(); - break; - case 2: - pb_1.Message.addToRepeatedField(message, 2, reader.readString()); - break; case 3: message.sectionIds = reader.readPackedUint32(); break; @@ -9933,18 +9105,14 @@ export namespace graphicData { #one_of_decls: number[][] = []; constructor(data?: any[] | { name?: string; - oldids?: string[]; ids?: number[]; }) { super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2, 3], this.#one_of_decls); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [3], this.#one_of_decls); if (!Array.isArray(data) && typeof data == "object") { if ("name" in data && data.name != undefined) { this.name = data.name; } - if ("oldids" in data && data.oldids != undefined) { - this.oldids = data.oldids; - } if ("ids" in data && data.ids != undefined) { this.ids = data.ids; } @@ -9956,12 +9124,6 @@ export namespace graphicData { set name(value: string) { pb_1.Message.setField(this, 1, value); } - get oldids() { - return pb_1.Message.getFieldWithDefault(this, 2, []) as string[]; - } - set oldids(value: string[]) { - pb_1.Message.setField(this, 2, value); - } get ids() { return pb_1.Message.getFieldWithDefault(this, 3, []) as number[]; } @@ -9970,16 +9132,12 @@ export namespace graphicData { } static fromObject(data: { name?: string; - oldids?: string[]; ids?: number[]; }): OtherLine { const message = new OtherLine({}); if (data.name != null) { message.name = data.name; } - if (data.oldids != null) { - message.oldids = data.oldids; - } if (data.ids != null) { message.ids = data.ids; } @@ -9988,15 +9146,11 @@ export namespace graphicData { toObject() { const data: { name?: string; - oldids?: string[]; ids?: number[]; } = {}; if (this.name != null) { data.name = this.name; } - if (this.oldids != null) { - data.oldids = this.oldids; - } if (this.ids != null) { data.ids = this.ids; } @@ -10008,8 +9162,6 @@ export namespace graphicData { const writer = w || new pb_1.BinaryWriter(); if (this.name.length) writer.writeString(1, this.name); - if (this.oldids.length) - writer.writeRepeatedString(2, this.oldids); if (this.ids.length) writer.writePackedUint32(3, this.ids); if (!w) @@ -10024,9 +9176,6 @@ export namespace graphicData { case 1: message.name = reader.readString(); break; - case 2: - pb_1.Message.addToRepeatedField(message, 2, reader.readString()); - break; case 3: message.ids = reader.readPackedUint32(); break;