道岔物理区段构建与子道岔的关系
This commit is contained in:
parent
fa4b5e2b7d
commit
5fb9bb0e3c
@ -341,6 +341,18 @@ export class Section extends JlGraphic implements ILineGraphic {
|
||||
);
|
||||
});
|
||||
}
|
||||
if (
|
||||
this.datas.children &&
|
||||
this.datas.children &&
|
||||
this.datas.sectionType === SectionType.TurnoutPhysical
|
||||
) {
|
||||
this.datas.children.forEach((turnoutId) => {
|
||||
this.relationManage.addRelation(
|
||||
this,
|
||||
this.queryStore.queryById<Turnout>(turnoutId)
|
||||
);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -28,6 +28,7 @@ export namespace state {
|
||||
ipRtuStusInEmergencyCtrl?: boolean;
|
||||
id?: string;
|
||||
rtuId?: number;
|
||||
timestamp?: number;
|
||||
}) {
|
||||
super();
|
||||
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
||||
@ -50,6 +51,9 @@ export namespace state {
|
||||
if ("rtuId" in data && data.rtuId != undefined) {
|
||||
this.rtuId = data.rtuId;
|
||||
}
|
||||
if ("timestamp" in data && data.timestamp != undefined) {
|
||||
this.timestamp = data.timestamp;
|
||||
}
|
||||
}
|
||||
}
|
||||
get ipRtuStusDown() {
|
||||
@ -88,6 +92,12 @@ export namespace state {
|
||||
set rtuId(value: number) {
|
||||
pb_1.Message.setField(this, 6, value);
|
||||
}
|
||||
get timestamp() {
|
||||
return pb_1.Message.getFieldWithDefault(this, 7, 0) as number;
|
||||
}
|
||||
set timestamp(value: number) {
|
||||
pb_1.Message.setField(this, 7, value);
|
||||
}
|
||||
static fromObject(data: {
|
||||
ipRtuStusDown?: boolean;
|
||||
ipRtuStusInLocalCtrl?: boolean;
|
||||
@ -95,6 +105,7 @@ export namespace state {
|
||||
ipRtuStusInEmergencyCtrl?: boolean;
|
||||
id?: string;
|
||||
rtuId?: number;
|
||||
timestamp?: number;
|
||||
}): Rtu {
|
||||
const message = new Rtu({});
|
||||
if (data.ipRtuStusDown != null) {
|
||||
@ -115,6 +126,9 @@ export namespace state {
|
||||
if (data.rtuId != null) {
|
||||
message.rtuId = data.rtuId;
|
||||
}
|
||||
if (data.timestamp != null) {
|
||||
message.timestamp = data.timestamp;
|
||||
}
|
||||
return message;
|
||||
}
|
||||
toObject() {
|
||||
@ -125,6 +139,7 @@ export namespace state {
|
||||
ipRtuStusInEmergencyCtrl?: boolean;
|
||||
id?: string;
|
||||
rtuId?: number;
|
||||
timestamp?: number;
|
||||
} = {};
|
||||
if (this.ipRtuStusDown != null) {
|
||||
data.ipRtuStusDown = this.ipRtuStusDown;
|
||||
@ -144,6 +159,9 @@ export namespace state {
|
||||
if (this.rtuId != null) {
|
||||
data.rtuId = this.rtuId;
|
||||
}
|
||||
if (this.timestamp != null) {
|
||||
data.timestamp = this.timestamp;
|
||||
}
|
||||
return data;
|
||||
}
|
||||
serialize(): Uint8Array;
|
||||
@ -162,6 +180,8 @@ export namespace state {
|
||||
writer.writeString(5, this.id);
|
||||
if (this.rtuId != 0)
|
||||
writer.writeInt32(6, this.rtuId);
|
||||
if (this.timestamp != 0)
|
||||
writer.writeInt64(7, this.timestamp);
|
||||
if (!w)
|
||||
return writer.getResultBuffer();
|
||||
}
|
||||
@ -189,6 +209,9 @@ export namespace state {
|
||||
case 6:
|
||||
message.rtuId = reader.readInt32();
|
||||
break;
|
||||
case 7:
|
||||
message.timestamp = reader.readInt64();
|
||||
break;
|
||||
default: reader.skipField();
|
||||
}
|
||||
}
|
||||
@ -230,6 +253,7 @@ export namespace state {
|
||||
ipStaStusExpectCycle6?: boolean;
|
||||
id?: string;
|
||||
rtuId?: number;
|
||||
timestamp?: number;
|
||||
}) {
|
||||
super();
|
||||
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
||||
@ -312,6 +336,9 @@ export namespace state {
|
||||
if ("rtuId" in data && data.rtuId != undefined) {
|
||||
this.rtuId = data.rtuId;
|
||||
}
|
||||
if ("timestamp" in data && data.timestamp != undefined) {
|
||||
this.timestamp = data.timestamp;
|
||||
}
|
||||
}
|
||||
}
|
||||
get ipStaStusTermMode1() {
|
||||
@ -470,6 +497,12 @@ export namespace state {
|
||||
set rtuId(value: number) {
|
||||
pb_1.Message.setField(this, 26, value);
|
||||
}
|
||||
get timestamp() {
|
||||
return pb_1.Message.getFieldWithDefault(this, 27, 0) as number;
|
||||
}
|
||||
set timestamp(value: number) {
|
||||
pb_1.Message.setField(this, 27, value);
|
||||
}
|
||||
static fromObject(data: {
|
||||
ipStaStusTermMode1?: boolean;
|
||||
ipStaStusTermMode2?: boolean;
|
||||
@ -497,6 +530,7 @@ export namespace state {
|
||||
ipStaStusExpectCycle6?: boolean;
|
||||
id?: string;
|
||||
rtuId?: number;
|
||||
timestamp?: number;
|
||||
}): Station {
|
||||
const message = new Station({});
|
||||
if (data.ipStaStusTermMode1 != null) {
|
||||
@ -577,6 +611,9 @@ export namespace state {
|
||||
if (data.rtuId != null) {
|
||||
message.rtuId = data.rtuId;
|
||||
}
|
||||
if (data.timestamp != null) {
|
||||
message.timestamp = data.timestamp;
|
||||
}
|
||||
return message;
|
||||
}
|
||||
toObject() {
|
||||
@ -607,6 +644,7 @@ export namespace state {
|
||||
ipStaStusExpectCycle6?: boolean;
|
||||
id?: string;
|
||||
rtuId?: number;
|
||||
timestamp?: number;
|
||||
} = {};
|
||||
if (this.ipStaStusTermMode1 != null) {
|
||||
data.ipStaStusTermMode1 = this.ipStaStusTermMode1;
|
||||
@ -686,6 +724,9 @@ export namespace state {
|
||||
if (this.rtuId != null) {
|
||||
data.rtuId = this.rtuId;
|
||||
}
|
||||
if (this.timestamp != null) {
|
||||
data.timestamp = this.timestamp;
|
||||
}
|
||||
return data;
|
||||
}
|
||||
serialize(): Uint8Array;
|
||||
@ -744,6 +785,8 @@ export namespace state {
|
||||
writer.writeString(25, this.id);
|
||||
if (this.rtuId != 0)
|
||||
writer.writeInt32(26, this.rtuId);
|
||||
if (this.timestamp != 0)
|
||||
writer.writeInt64(27, this.timestamp);
|
||||
if (!w)
|
||||
return writer.getResultBuffer();
|
||||
}
|
||||
@ -831,6 +874,9 @@ export namespace state {
|
||||
case 26:
|
||||
message.rtuId = reader.readInt32();
|
||||
break;
|
||||
case 27:
|
||||
message.timestamp = reader.readInt64();
|
||||
break;
|
||||
default: reader.skipField();
|
||||
}
|
||||
}
|
||||
@ -871,6 +917,7 @@ export namespace state {
|
||||
lampFailure?: boolean;
|
||||
id?: string;
|
||||
rtuId?: number;
|
||||
timestamp?: number;
|
||||
}) {
|
||||
super();
|
||||
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
||||
@ -950,6 +997,9 @@ export namespace state {
|
||||
if ("rtuId" in data && data.rtuId != undefined) {
|
||||
this.rtuId = data.rtuId;
|
||||
}
|
||||
if ("timestamp" in data && data.timestamp != undefined) {
|
||||
this.timestamp = data.timestamp;
|
||||
}
|
||||
}
|
||||
}
|
||||
get redOpen() {
|
||||
@ -1102,6 +1152,12 @@ export namespace state {
|
||||
set rtuId(value: number) {
|
||||
pb_1.Message.setField(this, 25, value);
|
||||
}
|
||||
get timestamp() {
|
||||
return pb_1.Message.getFieldWithDefault(this, 26, 0) as number;
|
||||
}
|
||||
set timestamp(value: number) {
|
||||
pb_1.Message.setField(this, 26, value);
|
||||
}
|
||||
static fromObject(data: {
|
||||
redOpen?: boolean;
|
||||
redFlash?: boolean;
|
||||
@ -1128,6 +1184,7 @@ export namespace state {
|
||||
lampFailure?: boolean;
|
||||
id?: string;
|
||||
rtuId?: number;
|
||||
timestamp?: number;
|
||||
}): Signal {
|
||||
const message = new Signal({});
|
||||
if (data.redOpen != null) {
|
||||
@ -1205,6 +1262,9 @@ export namespace state {
|
||||
if (data.rtuId != null) {
|
||||
message.rtuId = data.rtuId;
|
||||
}
|
||||
if (data.timestamp != null) {
|
||||
message.timestamp = data.timestamp;
|
||||
}
|
||||
return message;
|
||||
}
|
||||
toObject() {
|
||||
@ -1234,6 +1294,7 @@ export namespace state {
|
||||
lampFailure?: boolean;
|
||||
id?: string;
|
||||
rtuId?: number;
|
||||
timestamp?: number;
|
||||
} = {};
|
||||
if (this.redOpen != null) {
|
||||
data.redOpen = this.redOpen;
|
||||
@ -1310,6 +1371,9 @@ export namespace state {
|
||||
if (this.rtuId != null) {
|
||||
data.rtuId = this.rtuId;
|
||||
}
|
||||
if (this.timestamp != null) {
|
||||
data.timestamp = this.timestamp;
|
||||
}
|
||||
return data;
|
||||
}
|
||||
serialize(): Uint8Array;
|
||||
@ -1366,6 +1430,8 @@ export namespace state {
|
||||
writer.writeString(24, this.id);
|
||||
if (this.rtuId != 0)
|
||||
writer.writeInt32(25, this.rtuId);
|
||||
if (this.timestamp != 0)
|
||||
writer.writeInt64(26, this.timestamp);
|
||||
if (!w)
|
||||
return writer.getResultBuffer();
|
||||
}
|
||||
@ -1450,6 +1516,9 @@ export namespace state {
|
||||
case 25:
|
||||
message.rtuId = reader.readInt32();
|
||||
break;
|
||||
case 26:
|
||||
message.timestamp = reader.readInt64();
|
||||
break;
|
||||
default: reader.skipField();
|
||||
}
|
||||
}
|
||||
@ -1470,6 +1539,7 @@ export namespace state {
|
||||
dirLocked?: boolean;
|
||||
id?: string;
|
||||
rtuId?: number;
|
||||
timestamp?: number;
|
||||
}) {
|
||||
super();
|
||||
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
||||
@ -1489,6 +1559,9 @@ export namespace state {
|
||||
if ("rtuId" in data && data.rtuId != undefined) {
|
||||
this.rtuId = data.rtuId;
|
||||
}
|
||||
if ("timestamp" in data && data.timestamp != undefined) {
|
||||
this.timestamp = data.timestamp;
|
||||
}
|
||||
}
|
||||
}
|
||||
get dirLeft() {
|
||||
@ -1521,12 +1594,19 @@ export namespace state {
|
||||
set rtuId(value: number) {
|
||||
pb_1.Message.setField(this, 5, value);
|
||||
}
|
||||
get timestamp() {
|
||||
return pb_1.Message.getFieldWithDefault(this, 6, 0) as number;
|
||||
}
|
||||
set timestamp(value: number) {
|
||||
pb_1.Message.setField(this, 6, value);
|
||||
}
|
||||
static fromObject(data: {
|
||||
dirLeft?: boolean;
|
||||
dirRight?: boolean;
|
||||
dirLocked?: boolean;
|
||||
id?: string;
|
||||
rtuId?: number;
|
||||
timestamp?: number;
|
||||
}): Entry {
|
||||
const message = new Entry({});
|
||||
if (data.dirLeft != null) {
|
||||
@ -1544,6 +1624,9 @@ export namespace state {
|
||||
if (data.rtuId != null) {
|
||||
message.rtuId = data.rtuId;
|
||||
}
|
||||
if (data.timestamp != null) {
|
||||
message.timestamp = data.timestamp;
|
||||
}
|
||||
return message;
|
||||
}
|
||||
toObject() {
|
||||
@ -1553,6 +1636,7 @@ export namespace state {
|
||||
dirLocked?: boolean;
|
||||
id?: string;
|
||||
rtuId?: number;
|
||||
timestamp?: number;
|
||||
} = {};
|
||||
if (this.dirLeft != null) {
|
||||
data.dirLeft = this.dirLeft;
|
||||
@ -1569,6 +1653,9 @@ export namespace state {
|
||||
if (this.rtuId != null) {
|
||||
data.rtuId = this.rtuId;
|
||||
}
|
||||
if (this.timestamp != null) {
|
||||
data.timestamp = this.timestamp;
|
||||
}
|
||||
return data;
|
||||
}
|
||||
serialize(): Uint8Array;
|
||||
@ -1585,6 +1672,8 @@ export namespace state {
|
||||
writer.writeString(4, this.id);
|
||||
if (this.rtuId != 0)
|
||||
writer.writeInt32(5, this.rtuId);
|
||||
if (this.timestamp != 0)
|
||||
writer.writeInt64(6, this.timestamp);
|
||||
if (!w)
|
||||
return writer.getResultBuffer();
|
||||
}
|
||||
@ -1609,6 +1698,9 @@ export namespace state {
|
||||
case 5:
|
||||
message.rtuId = reader.readInt32();
|
||||
break;
|
||||
case 6:
|
||||
message.timestamp = reader.readInt64();
|
||||
break;
|
||||
default: reader.skipField();
|
||||
}
|
||||
}
|
||||
@ -1654,6 +1746,7 @@ export namespace state {
|
||||
id?: string;
|
||||
speedLimit?: number;
|
||||
rtuId?: number;
|
||||
timestamp?: number;
|
||||
}) {
|
||||
super();
|
||||
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
||||
@ -1748,6 +1841,9 @@ export namespace state {
|
||||
if ("rtuId" in data && data.rtuId != undefined) {
|
||||
this.rtuId = data.rtuId;
|
||||
}
|
||||
if ("timestamp" in data && data.timestamp != undefined) {
|
||||
this.timestamp = data.timestamp;
|
||||
}
|
||||
}
|
||||
}
|
||||
get ipSingleSwitchStusCiOccupied() {
|
||||
@ -1930,6 +2026,12 @@ export namespace state {
|
||||
set rtuId(value: number) {
|
||||
pb_1.Message.setField(this, 30, value);
|
||||
}
|
||||
get timestamp() {
|
||||
return pb_1.Message.getFieldWithDefault(this, 31, 0) as number;
|
||||
}
|
||||
set timestamp(value: number) {
|
||||
pb_1.Message.setField(this, 31, value);
|
||||
}
|
||||
static fromObject(data: {
|
||||
ipSingleSwitchStusCiOccupied?: boolean;
|
||||
ipSingleSwitchStusCbtcOccupied?: boolean;
|
||||
@ -1961,6 +2063,7 @@ export namespace state {
|
||||
id?: string;
|
||||
speedLimit?: number;
|
||||
rtuId?: number;
|
||||
timestamp?: number;
|
||||
}): Switch {
|
||||
const message = new Switch({});
|
||||
if (data.ipSingleSwitchStusCiOccupied != null) {
|
||||
@ -2053,6 +2156,9 @@ export namespace state {
|
||||
if (data.rtuId != null) {
|
||||
message.rtuId = data.rtuId;
|
||||
}
|
||||
if (data.timestamp != null) {
|
||||
message.timestamp = data.timestamp;
|
||||
}
|
||||
return message;
|
||||
}
|
||||
toObject() {
|
||||
@ -2087,6 +2193,7 @@ export namespace state {
|
||||
id?: string;
|
||||
speedLimit?: number;
|
||||
rtuId?: number;
|
||||
timestamp?: number;
|
||||
} = {};
|
||||
if (this.ipSingleSwitchStusCiOccupied != null) {
|
||||
data.ipSingleSwitchStusCiOccupied = this.ipSingleSwitchStusCiOccupied;
|
||||
@ -2178,6 +2285,9 @@ export namespace state {
|
||||
if (this.rtuId != null) {
|
||||
data.rtuId = this.rtuId;
|
||||
}
|
||||
if (this.timestamp != null) {
|
||||
data.timestamp = this.timestamp;
|
||||
}
|
||||
return data;
|
||||
}
|
||||
serialize(): Uint8Array;
|
||||
@ -2244,6 +2354,8 @@ export namespace state {
|
||||
writer.writeInt32(29, this.speedLimit);
|
||||
if (this.rtuId != 0)
|
||||
writer.writeInt32(30, this.rtuId);
|
||||
if (this.timestamp != 0)
|
||||
writer.writeInt64(31, this.timestamp);
|
||||
if (!w)
|
||||
return writer.getResultBuffer();
|
||||
}
|
||||
@ -2343,6 +2455,9 @@ export namespace state {
|
||||
case 30:
|
||||
message.rtuId = reader.readInt32();
|
||||
break;
|
||||
case 31:
|
||||
message.timestamp = reader.readInt64();
|
||||
break;
|
||||
default: reader.skipField();
|
||||
}
|
||||
}
|
||||
@ -2373,6 +2488,7 @@ export namespace state {
|
||||
speedLimit?: number;
|
||||
limitType?: Track.LimitType;
|
||||
rtuId?: number;
|
||||
timestamp?: number;
|
||||
}) {
|
||||
super();
|
||||
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
||||
@ -2422,6 +2538,9 @@ export namespace state {
|
||||
if ("rtuId" in data && data.rtuId != undefined) {
|
||||
this.rtuId = data.rtuId;
|
||||
}
|
||||
if ("timestamp" in data && data.timestamp != undefined) {
|
||||
this.timestamp = data.timestamp;
|
||||
}
|
||||
}
|
||||
}
|
||||
get ciOccupied() {
|
||||
@ -2514,6 +2633,12 @@ export namespace state {
|
||||
set rtuId(value: number) {
|
||||
pb_1.Message.setField(this, 15, value);
|
||||
}
|
||||
get timestamp() {
|
||||
return pb_1.Message.getFieldWithDefault(this, 16, 0) as number;
|
||||
}
|
||||
set timestamp(value: number) {
|
||||
pb_1.Message.setField(this, 16, value);
|
||||
}
|
||||
static fromObject(data: {
|
||||
ciOccupied?: boolean;
|
||||
cbtcOccupied?: boolean;
|
||||
@ -2530,6 +2655,7 @@ export namespace state {
|
||||
speedLimit?: number;
|
||||
limitType?: Track.LimitType;
|
||||
rtuId?: number;
|
||||
timestamp?: number;
|
||||
}): Track {
|
||||
const message = new Track({});
|
||||
if (data.ciOccupied != null) {
|
||||
@ -2577,6 +2703,9 @@ export namespace state {
|
||||
if (data.rtuId != null) {
|
||||
message.rtuId = data.rtuId;
|
||||
}
|
||||
if (data.timestamp != null) {
|
||||
message.timestamp = data.timestamp;
|
||||
}
|
||||
return message;
|
||||
}
|
||||
toObject() {
|
||||
@ -2596,6 +2725,7 @@ export namespace state {
|
||||
speedLimit?: number;
|
||||
limitType?: Track.LimitType;
|
||||
rtuId?: number;
|
||||
timestamp?: number;
|
||||
} = {};
|
||||
if (this.ciOccupied != null) {
|
||||
data.ciOccupied = this.ciOccupied;
|
||||
@ -2642,6 +2772,9 @@ export namespace state {
|
||||
if (this.rtuId != null) {
|
||||
data.rtuId = this.rtuId;
|
||||
}
|
||||
if (this.timestamp != null) {
|
||||
data.timestamp = this.timestamp;
|
||||
}
|
||||
return data;
|
||||
}
|
||||
serialize(): Uint8Array;
|
||||
@ -2678,6 +2811,8 @@ export namespace state {
|
||||
writer.writeEnum(14, this.limitType);
|
||||
if (this.rtuId != 0)
|
||||
writer.writeInt32(15, this.rtuId);
|
||||
if (this.timestamp != 0)
|
||||
writer.writeInt64(16, this.timestamp);
|
||||
if (!w)
|
||||
return writer.getResultBuffer();
|
||||
}
|
||||
@ -2732,6 +2867,9 @@ export namespace state {
|
||||
case 15:
|
||||
message.rtuId = reader.readInt32();
|
||||
break;
|
||||
case 16:
|
||||
message.timestamp = reader.readInt64();
|
||||
break;
|
||||
default: reader.skipField();
|
||||
}
|
||||
}
|
||||
@ -2773,6 +2911,7 @@ export namespace state {
|
||||
nextSectionRunLevel?: number;
|
||||
stopTime?: number;
|
||||
rtuId?: number;
|
||||
timestamp?: number;
|
||||
}) {
|
||||
super();
|
||||
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
||||
@ -2831,6 +2970,9 @@ export namespace state {
|
||||
if ("rtuId" in data && data.rtuId != undefined) {
|
||||
this.rtuId = data.rtuId;
|
||||
}
|
||||
if ("timestamp" in data && data.timestamp != undefined) {
|
||||
this.timestamp = data.timestamp;
|
||||
}
|
||||
}
|
||||
}
|
||||
get emergstop() {
|
||||
@ -2941,6 +3083,12 @@ export namespace state {
|
||||
set rtuId(value: number) {
|
||||
pb_1.Message.setField(this, 18, value);
|
||||
}
|
||||
get timestamp() {
|
||||
return pb_1.Message.getFieldWithDefault(this, 19, 0) as number;
|
||||
}
|
||||
set timestamp(value: number) {
|
||||
pb_1.Message.setField(this, 19, value);
|
||||
}
|
||||
static fromObject(data: {
|
||||
emergstop?: boolean;
|
||||
trainberth?: boolean;
|
||||
@ -2960,6 +3108,7 @@ export namespace state {
|
||||
nextSectionRunLevel?: number;
|
||||
stopTime?: number;
|
||||
rtuId?: number;
|
||||
timestamp?: number;
|
||||
}): Platform {
|
||||
const message = new Platform({});
|
||||
if (data.emergstop != null) {
|
||||
@ -3016,6 +3165,9 @@ export namespace state {
|
||||
if (data.rtuId != null) {
|
||||
message.rtuId = data.rtuId;
|
||||
}
|
||||
if (data.timestamp != null) {
|
||||
message.timestamp = data.timestamp;
|
||||
}
|
||||
return message;
|
||||
}
|
||||
toObject() {
|
||||
@ -3038,6 +3190,7 @@ export namespace state {
|
||||
nextSectionRunLevel?: number;
|
||||
stopTime?: number;
|
||||
rtuId?: number;
|
||||
timestamp?: number;
|
||||
} = {};
|
||||
if (this.emergstop != null) {
|
||||
data.emergstop = this.emergstop;
|
||||
@ -3093,6 +3246,9 @@ export namespace state {
|
||||
if (this.rtuId != null) {
|
||||
data.rtuId = this.rtuId;
|
||||
}
|
||||
if (this.timestamp != null) {
|
||||
data.timestamp = this.timestamp;
|
||||
}
|
||||
return data;
|
||||
}
|
||||
serialize(): Uint8Array;
|
||||
@ -3135,6 +3291,8 @@ export namespace state {
|
||||
writer.writeInt32(17, this.stopTime);
|
||||
if (this.rtuId != 0)
|
||||
writer.writeInt32(18, this.rtuId);
|
||||
if (this.timestamp != 0)
|
||||
writer.writeInt64(19, this.timestamp);
|
||||
if (!w)
|
||||
return writer.getResultBuffer();
|
||||
}
|
||||
@ -3198,6 +3356,9 @@ export namespace state {
|
||||
case 18:
|
||||
message.rtuId = reader.readInt32();
|
||||
break;
|
||||
case 19:
|
||||
message.timestamp = reader.readInt64();
|
||||
break;
|
||||
default: reader.skipField();
|
||||
}
|
||||
}
|
||||
@ -3218,6 +3379,7 @@ export namespace state {
|
||||
scadaUnkown?: boolean;
|
||||
id?: string;
|
||||
rtuId?: number;
|
||||
timestamp?: number;
|
||||
}) {
|
||||
super();
|
||||
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
||||
@ -3237,6 +3399,9 @@ export namespace state {
|
||||
if ("rtuId" in data && data.rtuId != undefined) {
|
||||
this.rtuId = data.rtuId;
|
||||
}
|
||||
if ("timestamp" in data && data.timestamp != undefined) {
|
||||
this.timestamp = data.timestamp;
|
||||
}
|
||||
}
|
||||
}
|
||||
get scadaOn() {
|
||||
@ -3269,12 +3434,19 @@ export namespace state {
|
||||
set rtuId(value: number) {
|
||||
pb_1.Message.setField(this, 5, value);
|
||||
}
|
||||
get timestamp() {
|
||||
return pb_1.Message.getFieldWithDefault(this, 6, 0) as number;
|
||||
}
|
||||
set timestamp(value: number) {
|
||||
pb_1.Message.setField(this, 6, value);
|
||||
}
|
||||
static fromObject(data: {
|
||||
scadaOn?: boolean;
|
||||
scadaSinglePower?: boolean;
|
||||
scadaUnkown?: boolean;
|
||||
id?: string;
|
||||
rtuId?: number;
|
||||
timestamp?: number;
|
||||
}): Scada {
|
||||
const message = new Scada({});
|
||||
if (data.scadaOn != null) {
|
||||
@ -3292,6 +3464,9 @@ export namespace state {
|
||||
if (data.rtuId != null) {
|
||||
message.rtuId = data.rtuId;
|
||||
}
|
||||
if (data.timestamp != null) {
|
||||
message.timestamp = data.timestamp;
|
||||
}
|
||||
return message;
|
||||
}
|
||||
toObject() {
|
||||
@ -3301,6 +3476,7 @@ export namespace state {
|
||||
scadaUnkown?: boolean;
|
||||
id?: string;
|
||||
rtuId?: number;
|
||||
timestamp?: number;
|
||||
} = {};
|
||||
if (this.scadaOn != null) {
|
||||
data.scadaOn = this.scadaOn;
|
||||
@ -3317,6 +3493,9 @@ export namespace state {
|
||||
if (this.rtuId != null) {
|
||||
data.rtuId = this.rtuId;
|
||||
}
|
||||
if (this.timestamp != null) {
|
||||
data.timestamp = this.timestamp;
|
||||
}
|
||||
return data;
|
||||
}
|
||||
serialize(): Uint8Array;
|
||||
@ -3333,6 +3512,8 @@ export namespace state {
|
||||
writer.writeString(4, this.id);
|
||||
if (this.rtuId != 0)
|
||||
writer.writeInt32(5, this.rtuId);
|
||||
if (this.timestamp != 0)
|
||||
writer.writeInt64(6, this.timestamp);
|
||||
if (!w)
|
||||
return writer.getResultBuffer();
|
||||
}
|
||||
@ -3357,6 +3538,9 @@ export namespace state {
|
||||
case 5:
|
||||
message.rtuId = reader.readInt32();
|
||||
break;
|
||||
case 6:
|
||||
message.timestamp = reader.readInt64();
|
||||
break;
|
||||
default: reader.skipField();
|
||||
}
|
||||
}
|
||||
@ -3379,6 +3563,7 @@ export namespace state {
|
||||
doorOpenLock?: boolean;
|
||||
id?: string;
|
||||
rtuId?: number;
|
||||
timestamp?: number;
|
||||
}) {
|
||||
super();
|
||||
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
||||
@ -3404,6 +3589,9 @@ export namespace state {
|
||||
if ("rtuId" in data && data.rtuId != undefined) {
|
||||
this.rtuId = data.rtuId;
|
||||
}
|
||||
if ("timestamp" in data && data.timestamp != undefined) {
|
||||
this.timestamp = data.timestamp;
|
||||
}
|
||||
}
|
||||
}
|
||||
get doorClosed() {
|
||||
@ -3448,6 +3636,12 @@ export namespace state {
|
||||
set rtuId(value: number) {
|
||||
pb_1.Message.setField(this, 7, value);
|
||||
}
|
||||
get timestamp() {
|
||||
return pb_1.Message.getFieldWithDefault(this, 8, 0) as number;
|
||||
}
|
||||
set timestamp(value: number) {
|
||||
pb_1.Message.setField(this, 8, value);
|
||||
}
|
||||
static fromObject(data: {
|
||||
doorClosed?: boolean;
|
||||
doorExpectClose?: boolean;
|
||||
@ -3456,6 +3650,7 @@ export namespace state {
|
||||
doorOpenLock?: boolean;
|
||||
id?: string;
|
||||
rtuId?: number;
|
||||
timestamp?: number;
|
||||
}): WaterProofDoor {
|
||||
const message = new WaterProofDoor({});
|
||||
if (data.doorClosed != null) {
|
||||
@ -3479,6 +3674,9 @@ export namespace state {
|
||||
if (data.rtuId != null) {
|
||||
message.rtuId = data.rtuId;
|
||||
}
|
||||
if (data.timestamp != null) {
|
||||
message.timestamp = data.timestamp;
|
||||
}
|
||||
return message;
|
||||
}
|
||||
toObject() {
|
||||
@ -3490,6 +3688,7 @@ export namespace state {
|
||||
doorOpenLock?: boolean;
|
||||
id?: string;
|
||||
rtuId?: number;
|
||||
timestamp?: number;
|
||||
} = {};
|
||||
if (this.doorClosed != null) {
|
||||
data.doorClosed = this.doorClosed;
|
||||
@ -3512,6 +3711,9 @@ export namespace state {
|
||||
if (this.rtuId != null) {
|
||||
data.rtuId = this.rtuId;
|
||||
}
|
||||
if (this.timestamp != null) {
|
||||
data.timestamp = this.timestamp;
|
||||
}
|
||||
return data;
|
||||
}
|
||||
serialize(): Uint8Array;
|
||||
@ -3532,6 +3734,8 @@ export namespace state {
|
||||
writer.writeString(6, this.id);
|
||||
if (this.rtuId != 0)
|
||||
writer.writeInt32(7, this.rtuId);
|
||||
if (this.timestamp != 0)
|
||||
writer.writeInt64(8, this.timestamp);
|
||||
if (!w)
|
||||
return writer.getResultBuffer();
|
||||
}
|
||||
@ -3562,6 +3766,9 @@ export namespace state {
|
||||
case 7:
|
||||
message.rtuId = reader.readInt32();
|
||||
break;
|
||||
case 8:
|
||||
message.timestamp = reader.readInt64();
|
||||
break;
|
||||
default: reader.skipField();
|
||||
}
|
||||
}
|
||||
@ -3580,6 +3787,7 @@ export namespace state {
|
||||
ipStusWorkAreaEnable?: boolean;
|
||||
id?: string;
|
||||
rtuId?: number;
|
||||
timestamp?: number;
|
||||
}) {
|
||||
super();
|
||||
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
||||
@ -3593,6 +3801,9 @@ export namespace state {
|
||||
if ("rtuId" in data && data.rtuId != undefined) {
|
||||
this.rtuId = data.rtuId;
|
||||
}
|
||||
if ("timestamp" in data && data.timestamp != undefined) {
|
||||
this.timestamp = data.timestamp;
|
||||
}
|
||||
}
|
||||
}
|
||||
get ipStusWorkAreaEnable() {
|
||||
@ -3613,10 +3824,17 @@ export namespace state {
|
||||
set rtuId(value: number) {
|
||||
pb_1.Message.setField(this, 3, value);
|
||||
}
|
||||
get timestamp() {
|
||||
return pb_1.Message.getFieldWithDefault(this, 4, 0) as number;
|
||||
}
|
||||
set timestamp(value: number) {
|
||||
pb_1.Message.setField(this, 4, value);
|
||||
}
|
||||
static fromObject(data: {
|
||||
ipStusWorkAreaEnable?: boolean;
|
||||
id?: string;
|
||||
rtuId?: number;
|
||||
timestamp?: number;
|
||||
}): WorkArea {
|
||||
const message = new WorkArea({});
|
||||
if (data.ipStusWorkAreaEnable != null) {
|
||||
@ -3628,6 +3846,9 @@ export namespace state {
|
||||
if (data.rtuId != null) {
|
||||
message.rtuId = data.rtuId;
|
||||
}
|
||||
if (data.timestamp != null) {
|
||||
message.timestamp = data.timestamp;
|
||||
}
|
||||
return message;
|
||||
}
|
||||
toObject() {
|
||||
@ -3635,6 +3856,7 @@ export namespace state {
|
||||
ipStusWorkAreaEnable?: boolean;
|
||||
id?: string;
|
||||
rtuId?: number;
|
||||
timestamp?: number;
|
||||
} = {};
|
||||
if (this.ipStusWorkAreaEnable != null) {
|
||||
data.ipStusWorkAreaEnable = this.ipStusWorkAreaEnable;
|
||||
@ -3645,6 +3867,9 @@ export namespace state {
|
||||
if (this.rtuId != null) {
|
||||
data.rtuId = this.rtuId;
|
||||
}
|
||||
if (this.timestamp != null) {
|
||||
data.timestamp = this.timestamp;
|
||||
}
|
||||
return data;
|
||||
}
|
||||
serialize(): Uint8Array;
|
||||
@ -3657,6 +3882,8 @@ export namespace state {
|
||||
writer.writeString(2, this.id);
|
||||
if (this.rtuId != 0)
|
||||
writer.writeInt32(3, this.rtuId);
|
||||
if (this.timestamp != 0)
|
||||
writer.writeInt64(4, this.timestamp);
|
||||
if (!w)
|
||||
return writer.getResultBuffer();
|
||||
}
|
||||
@ -3675,6 +3902,9 @@ export namespace state {
|
||||
case 3:
|
||||
message.rtuId = reader.readInt32();
|
||||
break;
|
||||
case 4:
|
||||
message.timestamp = reader.readInt64();
|
||||
break;
|
||||
default: reader.skipField();
|
||||
}
|
||||
}
|
||||
@ -3693,6 +3923,7 @@ export namespace state {
|
||||
ipStusGamaDisable?: boolean;
|
||||
id?: string;
|
||||
rtuId?: number;
|
||||
timestamp?: number;
|
||||
}) {
|
||||
super();
|
||||
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
||||
@ -3706,6 +3937,9 @@ export namespace state {
|
||||
if ("rtuId" in data && data.rtuId != undefined) {
|
||||
this.rtuId = data.rtuId;
|
||||
}
|
||||
if ("timestamp" in data && data.timestamp != undefined) {
|
||||
this.timestamp = data.timestamp;
|
||||
}
|
||||
}
|
||||
}
|
||||
get ipStusGamaDisable() {
|
||||
@ -3726,10 +3960,17 @@ export namespace state {
|
||||
set rtuId(value: number) {
|
||||
pb_1.Message.setField(this, 3, value);
|
||||
}
|
||||
get timestamp() {
|
||||
return pb_1.Message.getFieldWithDefault(this, 4, 0) as number;
|
||||
}
|
||||
set timestamp(value: number) {
|
||||
pb_1.Message.setField(this, 4, value);
|
||||
}
|
||||
static fromObject(data: {
|
||||
ipStusGamaDisable?: boolean;
|
||||
id?: string;
|
||||
rtuId?: number;
|
||||
timestamp?: number;
|
||||
}): Gama {
|
||||
const message = new Gama({});
|
||||
if (data.ipStusGamaDisable != null) {
|
||||
@ -3741,6 +3982,9 @@ export namespace state {
|
||||
if (data.rtuId != null) {
|
||||
message.rtuId = data.rtuId;
|
||||
}
|
||||
if (data.timestamp != null) {
|
||||
message.timestamp = data.timestamp;
|
||||
}
|
||||
return message;
|
||||
}
|
||||
toObject() {
|
||||
@ -3748,6 +3992,7 @@ export namespace state {
|
||||
ipStusGamaDisable?: boolean;
|
||||
id?: string;
|
||||
rtuId?: number;
|
||||
timestamp?: number;
|
||||
} = {};
|
||||
if (this.ipStusGamaDisable != null) {
|
||||
data.ipStusGamaDisable = this.ipStusGamaDisable;
|
||||
@ -3758,6 +4003,9 @@ export namespace state {
|
||||
if (this.rtuId != null) {
|
||||
data.rtuId = this.rtuId;
|
||||
}
|
||||
if (this.timestamp != null) {
|
||||
data.timestamp = this.timestamp;
|
||||
}
|
||||
return data;
|
||||
}
|
||||
serialize(): Uint8Array;
|
||||
@ -3770,6 +4018,8 @@ export namespace state {
|
||||
writer.writeString(2, this.id);
|
||||
if (this.rtuId != 0)
|
||||
writer.writeInt32(3, this.rtuId);
|
||||
if (this.timestamp != 0)
|
||||
writer.writeInt64(4, this.timestamp);
|
||||
if (!w)
|
||||
return writer.getResultBuffer();
|
||||
}
|
||||
@ -3788,6 +4038,9 @@ export namespace state {
|
||||
case 3:
|
||||
message.rtuId = reader.readInt32();
|
||||
break;
|
||||
case 4:
|
||||
message.timestamp = reader.readInt64();
|
||||
break;
|
||||
default: reader.skipField();
|
||||
}
|
||||
}
|
||||
|
@ -32,6 +32,7 @@ export namespace train {
|
||||
remove?: TrainRemove;
|
||||
block?: TrainBlock;
|
||||
record?: TrainRecord;
|
||||
timestamp?: number;
|
||||
}) {
|
||||
super();
|
||||
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
||||
@ -105,6 +106,9 @@ export namespace train {
|
||||
if ("record" in data && data.record != undefined) {
|
||||
this.record = data.record;
|
||||
}
|
||||
if ("timestamp" in data && data.timestamp != undefined) {
|
||||
this.timestamp = data.timestamp;
|
||||
}
|
||||
}
|
||||
}
|
||||
get lineId() {
|
||||
@ -260,6 +264,12 @@ export namespace train {
|
||||
get has_record() {
|
||||
return pb_1.Message.getField(this, 23) != null;
|
||||
}
|
||||
get timestamp() {
|
||||
return pb_1.Message.getFieldWithDefault(this, 24, 0) as number;
|
||||
}
|
||||
set timestamp(value: number) {
|
||||
pb_1.Message.setField(this, 24, value);
|
||||
}
|
||||
static fromObject(data: {
|
||||
lineId?: number;
|
||||
rtuId?: number;
|
||||
@ -284,6 +294,7 @@ export namespace train {
|
||||
remove?: ReturnType<typeof TrainRemove.prototype.toObject>;
|
||||
block?: ReturnType<typeof TrainBlock.prototype.toObject>;
|
||||
record?: ReturnType<typeof TrainRecord.prototype.toObject>;
|
||||
timestamp?: number;
|
||||
}): TrainInfo {
|
||||
const message = new TrainInfo({});
|
||||
if (data.lineId != null) {
|
||||
@ -355,6 +366,9 @@ export namespace train {
|
||||
if (data.record != null) {
|
||||
message.record = TrainRecord.fromObject(data.record);
|
||||
}
|
||||
if (data.timestamp != null) {
|
||||
message.timestamp = data.timestamp;
|
||||
}
|
||||
return message;
|
||||
}
|
||||
toObject() {
|
||||
@ -382,6 +396,7 @@ export namespace train {
|
||||
remove?: ReturnType<typeof TrainRemove.prototype.toObject>;
|
||||
block?: ReturnType<typeof TrainBlock.prototype.toObject>;
|
||||
record?: ReturnType<typeof TrainRecord.prototype.toObject>;
|
||||
timestamp?: number;
|
||||
} = {};
|
||||
if (this.lineId != null) {
|
||||
data.lineId = this.lineId;
|
||||
@ -452,6 +467,9 @@ export namespace train {
|
||||
if (this.record != null) {
|
||||
data.record = this.record.toObject();
|
||||
}
|
||||
if (this.timestamp != null) {
|
||||
data.timestamp = this.timestamp;
|
||||
}
|
||||
return data;
|
||||
}
|
||||
serialize(): Uint8Array;
|
||||
@ -504,6 +522,8 @@ export namespace train {
|
||||
writer.writeMessage(22, this.block, () => this.block.serialize(writer));
|
||||
if (this.has_record)
|
||||
writer.writeMessage(23, this.record, () => this.record.serialize(writer));
|
||||
if (this.timestamp != 0)
|
||||
writer.writeInt64(24, this.timestamp);
|
||||
if (!w)
|
||||
return writer.getResultBuffer();
|
||||
}
|
||||
@ -582,6 +602,9 @@ export namespace train {
|
||||
case 23:
|
||||
reader.readMessage(message.record, () => message.record = TrainRecord.deserialize(reader));
|
||||
break;
|
||||
case 24:
|
||||
message.timestamp = reader.readInt64();
|
||||
break;
|
||||
default: reader.skipField();
|
||||
}
|
||||
}
|
||||
@ -694,6 +717,7 @@ export namespace train {
|
||||
devName?: string;
|
||||
trainIndex?: string;
|
||||
groupId?: string;
|
||||
timestamp?: number;
|
||||
}) {
|
||||
super();
|
||||
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
||||
@ -719,6 +743,9 @@ export namespace train {
|
||||
if ("groupId" in data && data.groupId != undefined) {
|
||||
this.groupId = data.groupId;
|
||||
}
|
||||
if ("timestamp" in data && data.timestamp != undefined) {
|
||||
this.timestamp = data.timestamp;
|
||||
}
|
||||
}
|
||||
}
|
||||
get lineId() {
|
||||
@ -766,6 +793,12 @@ export namespace train {
|
||||
set groupId(value: string) {
|
||||
pb_1.Message.setField(this, 7, value);
|
||||
}
|
||||
get timestamp() {
|
||||
return pb_1.Message.getFieldWithDefault(this, 8, 0) as number;
|
||||
}
|
||||
set timestamp(value: number) {
|
||||
pb_1.Message.setField(this, 8, value);
|
||||
}
|
||||
static fromObject(data: {
|
||||
lineId?: number;
|
||||
rtuId?: number;
|
||||
@ -774,6 +807,7 @@ export namespace train {
|
||||
devName?: string;
|
||||
trainIndex?: string;
|
||||
groupId?: string;
|
||||
timestamp?: number;
|
||||
}): TrainRemove {
|
||||
const message = new TrainRemove({});
|
||||
if (data.lineId != null) {
|
||||
@ -797,6 +831,9 @@ export namespace train {
|
||||
if (data.groupId != null) {
|
||||
message.groupId = data.groupId;
|
||||
}
|
||||
if (data.timestamp != null) {
|
||||
message.timestamp = data.timestamp;
|
||||
}
|
||||
return message;
|
||||
}
|
||||
toObject() {
|
||||
@ -808,6 +845,7 @@ export namespace train {
|
||||
devName?: string;
|
||||
trainIndex?: string;
|
||||
groupId?: string;
|
||||
timestamp?: number;
|
||||
} = {};
|
||||
if (this.lineId != null) {
|
||||
data.lineId = this.lineId;
|
||||
@ -830,6 +868,9 @@ export namespace train {
|
||||
if (this.groupId != null) {
|
||||
data.groupId = this.groupId;
|
||||
}
|
||||
if (this.timestamp != null) {
|
||||
data.timestamp = this.timestamp;
|
||||
}
|
||||
return data;
|
||||
}
|
||||
serialize(): Uint8Array;
|
||||
@ -850,6 +891,8 @@ export namespace train {
|
||||
writer.writeString(6, this.trainIndex);
|
||||
if (this.groupId.length)
|
||||
writer.writeString(7, this.groupId);
|
||||
if (this.timestamp != 0)
|
||||
writer.writeInt64(8, this.timestamp);
|
||||
if (!w)
|
||||
return writer.getResultBuffer();
|
||||
}
|
||||
@ -880,6 +923,9 @@ export namespace train {
|
||||
case 7:
|
||||
message.groupId = reader.readString();
|
||||
break;
|
||||
case 8:
|
||||
message.timestamp = reader.readInt64();
|
||||
break;
|
||||
default: reader.skipField();
|
||||
}
|
||||
}
|
||||
@ -905,6 +951,7 @@ export namespace train {
|
||||
deviceType?: dependency_1.state.DeviceType;
|
||||
DevName?: string;
|
||||
blockFlag?: number;
|
||||
timestamp?: number;
|
||||
}) {
|
||||
super();
|
||||
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
||||
@ -939,6 +986,9 @@ export namespace train {
|
||||
if ("blockFlag" in data && data.blockFlag != undefined) {
|
||||
this.blockFlag = data.blockFlag;
|
||||
}
|
||||
if ("timestamp" in data && data.timestamp != undefined) {
|
||||
this.timestamp = data.timestamp;
|
||||
}
|
||||
}
|
||||
}
|
||||
get lineId() {
|
||||
@ -1001,6 +1051,12 @@ export namespace train {
|
||||
set blockFlag(value: number) {
|
||||
pb_1.Message.setField(this, 10, value);
|
||||
}
|
||||
get timestamp() {
|
||||
return pb_1.Message.getFieldWithDefault(this, 11, 0) as number;
|
||||
}
|
||||
set timestamp(value: number) {
|
||||
pb_1.Message.setField(this, 11, value);
|
||||
}
|
||||
static fromObject(data: {
|
||||
lineId?: number;
|
||||
groupId?: string;
|
||||
@ -1012,6 +1068,7 @@ export namespace train {
|
||||
deviceType?: dependency_1.state.DeviceType;
|
||||
DevName?: string;
|
||||
blockFlag?: number;
|
||||
timestamp?: number;
|
||||
}): TrainBlock {
|
||||
const message = new TrainBlock({});
|
||||
if (data.lineId != null) {
|
||||
@ -1044,6 +1101,9 @@ export namespace train {
|
||||
if (data.blockFlag != null) {
|
||||
message.blockFlag = data.blockFlag;
|
||||
}
|
||||
if (data.timestamp != null) {
|
||||
message.timestamp = data.timestamp;
|
||||
}
|
||||
return message;
|
||||
}
|
||||
toObject() {
|
||||
@ -1058,6 +1118,7 @@ export namespace train {
|
||||
deviceType?: dependency_1.state.DeviceType;
|
||||
DevName?: string;
|
||||
blockFlag?: number;
|
||||
timestamp?: number;
|
||||
} = {};
|
||||
if (this.lineId != null) {
|
||||
data.lineId = this.lineId;
|
||||
@ -1089,6 +1150,9 @@ export namespace train {
|
||||
if (this.blockFlag != null) {
|
||||
data.blockFlag = this.blockFlag;
|
||||
}
|
||||
if (this.timestamp != null) {
|
||||
data.timestamp = this.timestamp;
|
||||
}
|
||||
return data;
|
||||
}
|
||||
serialize(): Uint8Array;
|
||||
@ -1115,6 +1179,8 @@ export namespace train {
|
||||
writer.writeString(9, this.DevName);
|
||||
if (this.blockFlag != 0)
|
||||
writer.writeInt32(10, this.blockFlag);
|
||||
if (this.timestamp != 0)
|
||||
writer.writeInt64(11, this.timestamp);
|
||||
if (!w)
|
||||
return writer.getResultBuffer();
|
||||
}
|
||||
@ -1154,6 +1220,9 @@ export namespace train {
|
||||
case 10:
|
||||
message.blockFlag = reader.readInt32();
|
||||
break;
|
||||
case 11:
|
||||
message.timestamp = reader.readInt64();
|
||||
break;
|
||||
default: reader.skipField();
|
||||
}
|
||||
}
|
||||
@ -1182,6 +1251,7 @@ export namespace train {
|
||||
trackName?: string;
|
||||
recordType?: boolean;
|
||||
recordTime?: number;
|
||||
timestamp?: number;
|
||||
}) {
|
||||
super();
|
||||
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
||||
@ -1225,6 +1295,9 @@ export namespace train {
|
||||
if ("recordTime" in data && data.recordTime != undefined) {
|
||||
this.recordTime = data.recordTime;
|
||||
}
|
||||
if ("timestamp" in data && data.timestamp != undefined) {
|
||||
this.timestamp = data.timestamp;
|
||||
}
|
||||
}
|
||||
}
|
||||
get lineId() {
|
||||
@ -1305,6 +1378,12 @@ export namespace train {
|
||||
set recordTime(value: number) {
|
||||
pb_1.Message.setField(this, 13, value);
|
||||
}
|
||||
get timestamp() {
|
||||
return pb_1.Message.getFieldWithDefault(this, 14, 0) as number;
|
||||
}
|
||||
set timestamp(value: number) {
|
||||
pb_1.Message.setField(this, 14, value);
|
||||
}
|
||||
static fromObject(data: {
|
||||
lineId?: number;
|
||||
trainId?: string;
|
||||
@ -1319,6 +1398,7 @@ export namespace train {
|
||||
trackName?: string;
|
||||
recordType?: boolean;
|
||||
recordTime?: number;
|
||||
timestamp?: number;
|
||||
}): TrainRecord {
|
||||
const message = new TrainRecord({});
|
||||
if (data.lineId != null) {
|
||||
@ -1360,6 +1440,9 @@ export namespace train {
|
||||
if (data.recordTime != null) {
|
||||
message.recordTime = data.recordTime;
|
||||
}
|
||||
if (data.timestamp != null) {
|
||||
message.timestamp = data.timestamp;
|
||||
}
|
||||
return message;
|
||||
}
|
||||
toObject() {
|
||||
@ -1377,6 +1460,7 @@ export namespace train {
|
||||
trackName?: string;
|
||||
recordType?: boolean;
|
||||
recordTime?: number;
|
||||
timestamp?: number;
|
||||
} = {};
|
||||
if (this.lineId != null) {
|
||||
data.lineId = this.lineId;
|
||||
@ -1417,6 +1501,9 @@ export namespace train {
|
||||
if (this.recordTime != null) {
|
||||
data.recordTime = this.recordTime;
|
||||
}
|
||||
if (this.timestamp != null) {
|
||||
data.timestamp = this.timestamp;
|
||||
}
|
||||
return data;
|
||||
}
|
||||
serialize(): Uint8Array;
|
||||
@ -1449,6 +1536,8 @@ export namespace train {
|
||||
writer.writeBool(12, this.recordType);
|
||||
if (this.recordTime != 0)
|
||||
writer.writeInt64(13, this.recordTime);
|
||||
if (this.timestamp != 0)
|
||||
writer.writeInt64(14, this.timestamp);
|
||||
if (!w)
|
||||
return writer.getResultBuffer();
|
||||
}
|
||||
@ -1497,6 +1586,9 @@ export namespace train {
|
||||
case 13:
|
||||
message.recordTime = reader.readInt64();
|
||||
break;
|
||||
case 14:
|
||||
message.timestamp = reader.readInt64();
|
||||
break;
|
||||
default: reader.skipField();
|
||||
}
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit a41cd63038a19b47ebaa8008411a1ac75cf6d59c
|
||||
Subproject commit 13927cc464f0a602381032fd45308308df02eab9
|
Loading…
Reference in New Issue
Block a user