diff --git a/rtss-proto-msg b/rtss-proto-msg index 2896028..4ce6d52 160000 --- a/rtss-proto-msg +++ b/rtss-proto-msg @@ -1 +1 @@ -Subproject commit 2896028ab268260cbce2725503686bf399228d37 +Subproject commit 4ce6d5206d9ac578adb4305df8cbff59746d8d2f diff --git a/src/protos/iscs_graphic_data.ts b/src/protos/iscs_graphic_data.ts index 670ee08..ea741fc 100644 --- a/src/protos/iscs_graphic_data.ts +++ b/src/protos/iscs_graphic_data.ts @@ -2105,9 +2105,35 @@ export namespace iscsGraphicData { canvas?: dependency_1.common.Canvas; commonGraphicStorage?: CommonGraphicStorage; partition?: string; + fasFailureControlHosts?: FasFailureControlHost[]; + fasAlarms?: FasAlarm[]; + manualAlarmButtons?: ManualAlarmButton[]; + hydrantAlarmButtons?: HydrantAlarmButton[]; + gasExtinguishings?: GasExtinguishing[]; + smokeDetectors?: SmokeDetector[]; + temperatureDetectors?: TemperatureDetector[]; + fireShutters?: FireShutter[]; + firePumps?: FirePump[]; + sprayPumps?: SprayPump[]; + stabilizedPressurePumps?: StabilizedPressurePump[]; + acs?: Acs[]; + afc?: Afc[]; + nonFirePowerSupplies?: NonFirePowerSupply[]; + waterFlowIndicators?: WaterFlowIndicator[]; + signalButterflyValves?: SignalButterflyValve[]; + pressureSwitches?: PressureSwitch[]; + faultValves?: FaultValve[]; + startPumpButtons?: StartPumpButton[]; + temperatureCables?: TemperatureCable[]; + emergencyLightings?: EmergencyLighting[]; + elevatorLiftToTops?: ElevatorLiftToTop[]; + electricButterflyValves?: ElectricButterflyValve[]; + fireValves?: FireValve[]; + electricFireExtinguishingValves?: ElectricFireExtinguishingValve[]; + fireIntercommunicationSignals?: FireIntercommunicationSignal[]; }) { super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30], this.#one_of_decls); if (!Array.isArray(data) && typeof data == "object") { if ("stationName" in data && data.stationName != undefined) { this.stationName = data.stationName; @@ -2121,6 +2147,84 @@ export namespace iscsGraphicData { if ("partition" in data && data.partition != undefined) { this.partition = data.partition; } + if ("fasFailureControlHosts" in data && data.fasFailureControlHosts != undefined) { + this.fasFailureControlHosts = data.fasFailureControlHosts; + } + if ("fasAlarms" in data && data.fasAlarms != undefined) { + this.fasAlarms = data.fasAlarms; + } + if ("manualAlarmButtons" in data && data.manualAlarmButtons != undefined) { + this.manualAlarmButtons = data.manualAlarmButtons; + } + if ("hydrantAlarmButtons" in data && data.hydrantAlarmButtons != undefined) { + this.hydrantAlarmButtons = data.hydrantAlarmButtons; + } + if ("gasExtinguishings" in data && data.gasExtinguishings != undefined) { + this.gasExtinguishings = data.gasExtinguishings; + } + if ("smokeDetectors" in data && data.smokeDetectors != undefined) { + this.smokeDetectors = data.smokeDetectors; + } + if ("temperatureDetectors" in data && data.temperatureDetectors != undefined) { + this.temperatureDetectors = data.temperatureDetectors; + } + if ("fireShutters" in data && data.fireShutters != undefined) { + this.fireShutters = data.fireShutters; + } + if ("firePumps" in data && data.firePumps != undefined) { + this.firePumps = data.firePumps; + } + if ("sprayPumps" in data && data.sprayPumps != undefined) { + this.sprayPumps = data.sprayPumps; + } + if ("stabilizedPressurePumps" in data && data.stabilizedPressurePumps != undefined) { + this.stabilizedPressurePumps = data.stabilizedPressurePumps; + } + if ("acs" in data && data.acs != undefined) { + this.acs = data.acs; + } + if ("afc" in data && data.afc != undefined) { + this.afc = data.afc; + } + if ("nonFirePowerSupplies" in data && data.nonFirePowerSupplies != undefined) { + this.nonFirePowerSupplies = data.nonFirePowerSupplies; + } + if ("waterFlowIndicators" in data && data.waterFlowIndicators != undefined) { + this.waterFlowIndicators = data.waterFlowIndicators; + } + if ("signalButterflyValves" in data && data.signalButterflyValves != undefined) { + this.signalButterflyValves = data.signalButterflyValves; + } + if ("pressureSwitches" in data && data.pressureSwitches != undefined) { + this.pressureSwitches = data.pressureSwitches; + } + if ("faultValves" in data && data.faultValves != undefined) { + this.faultValves = data.faultValves; + } + if ("startPumpButtons" in data && data.startPumpButtons != undefined) { + this.startPumpButtons = data.startPumpButtons; + } + if ("temperatureCables" in data && data.temperatureCables != undefined) { + this.temperatureCables = data.temperatureCables; + } + if ("emergencyLightings" in data && data.emergencyLightings != undefined) { + this.emergencyLightings = data.emergencyLightings; + } + if ("elevatorLiftToTops" in data && data.elevatorLiftToTops != undefined) { + this.elevatorLiftToTops = data.elevatorLiftToTops; + } + if ("electricButterflyValves" in data && data.electricButterflyValves != undefined) { + this.electricButterflyValves = data.electricButterflyValves; + } + if ("fireValves" in data && data.fireValves != undefined) { + this.fireValves = data.fireValves; + } + if ("electricFireExtinguishingValves" in data && data.electricFireExtinguishingValves != undefined) { + this.electricFireExtinguishingValves = data.electricFireExtinguishingValves; + } + if ("fireIntercommunicationSignals" in data && data.fireIntercommunicationSignals != undefined) { + this.fireIntercommunicationSignals = data.fireIntercommunicationSignals; + } } } get stationName() { @@ -2153,11 +2257,193 @@ export namespace iscsGraphicData { set partition(value: string) { pb_1.Message.setField(this, 4, value); } + get fasFailureControlHosts() { + return pb_1.Message.getRepeatedWrapperField(this, FasFailureControlHost, 5) as FasFailureControlHost[]; + } + set fasFailureControlHosts(value: FasFailureControlHost[]) { + pb_1.Message.setRepeatedWrapperField(this, 5, value); + } + get fasAlarms() { + return pb_1.Message.getRepeatedWrapperField(this, FasAlarm, 6) as FasAlarm[]; + } + set fasAlarms(value: FasAlarm[]) { + pb_1.Message.setRepeatedWrapperField(this, 6, value); + } + get manualAlarmButtons() { + return pb_1.Message.getRepeatedWrapperField(this, ManualAlarmButton, 7) as ManualAlarmButton[]; + } + set manualAlarmButtons(value: ManualAlarmButton[]) { + pb_1.Message.setRepeatedWrapperField(this, 7, value); + } + get hydrantAlarmButtons() { + return pb_1.Message.getRepeatedWrapperField(this, HydrantAlarmButton, 8) as HydrantAlarmButton[]; + } + set hydrantAlarmButtons(value: HydrantAlarmButton[]) { + pb_1.Message.setRepeatedWrapperField(this, 8, value); + } + get gasExtinguishings() { + return pb_1.Message.getRepeatedWrapperField(this, GasExtinguishing, 9) as GasExtinguishing[]; + } + set gasExtinguishings(value: GasExtinguishing[]) { + pb_1.Message.setRepeatedWrapperField(this, 9, value); + } + get smokeDetectors() { + return pb_1.Message.getRepeatedWrapperField(this, SmokeDetector, 10) as SmokeDetector[]; + } + set smokeDetectors(value: SmokeDetector[]) { + pb_1.Message.setRepeatedWrapperField(this, 10, value); + } + get temperatureDetectors() { + return pb_1.Message.getRepeatedWrapperField(this, TemperatureDetector, 11) as TemperatureDetector[]; + } + set temperatureDetectors(value: TemperatureDetector[]) { + pb_1.Message.setRepeatedWrapperField(this, 11, value); + } + get fireShutters() { + return pb_1.Message.getRepeatedWrapperField(this, FireShutter, 12) as FireShutter[]; + } + set fireShutters(value: FireShutter[]) { + pb_1.Message.setRepeatedWrapperField(this, 12, value); + } + get firePumps() { + return pb_1.Message.getRepeatedWrapperField(this, FirePump, 13) as FirePump[]; + } + set firePumps(value: FirePump[]) { + pb_1.Message.setRepeatedWrapperField(this, 13, value); + } + get sprayPumps() { + return pb_1.Message.getRepeatedWrapperField(this, SprayPump, 14) as SprayPump[]; + } + set sprayPumps(value: SprayPump[]) { + pb_1.Message.setRepeatedWrapperField(this, 14, value); + } + get stabilizedPressurePumps() { + return pb_1.Message.getRepeatedWrapperField(this, StabilizedPressurePump, 15) as StabilizedPressurePump[]; + } + set stabilizedPressurePumps(value: StabilizedPressurePump[]) { + pb_1.Message.setRepeatedWrapperField(this, 15, value); + } + get acs() { + return pb_1.Message.getRepeatedWrapperField(this, Acs, 16) as Acs[]; + } + set acs(value: Acs[]) { + pb_1.Message.setRepeatedWrapperField(this, 16, value); + } + get afc() { + return pb_1.Message.getRepeatedWrapperField(this, Afc, 17) as Afc[]; + } + set afc(value: Afc[]) { + pb_1.Message.setRepeatedWrapperField(this, 17, value); + } + get nonFirePowerSupplies() { + return pb_1.Message.getRepeatedWrapperField(this, NonFirePowerSupply, 18) as NonFirePowerSupply[]; + } + set nonFirePowerSupplies(value: NonFirePowerSupply[]) { + pb_1.Message.setRepeatedWrapperField(this, 18, value); + } + get waterFlowIndicators() { + return pb_1.Message.getRepeatedWrapperField(this, WaterFlowIndicator, 19) as WaterFlowIndicator[]; + } + set waterFlowIndicators(value: WaterFlowIndicator[]) { + pb_1.Message.setRepeatedWrapperField(this, 19, value); + } + get signalButterflyValves() { + return pb_1.Message.getRepeatedWrapperField(this, SignalButterflyValve, 20) as SignalButterflyValve[]; + } + set signalButterflyValves(value: SignalButterflyValve[]) { + pb_1.Message.setRepeatedWrapperField(this, 20, value); + } + get pressureSwitches() { + return pb_1.Message.getRepeatedWrapperField(this, PressureSwitch, 21) as PressureSwitch[]; + } + set pressureSwitches(value: PressureSwitch[]) { + pb_1.Message.setRepeatedWrapperField(this, 21, value); + } + get faultValves() { + return pb_1.Message.getRepeatedWrapperField(this, FaultValve, 22) as FaultValve[]; + } + set faultValves(value: FaultValve[]) { + pb_1.Message.setRepeatedWrapperField(this, 22, value); + } + get startPumpButtons() { + return pb_1.Message.getRepeatedWrapperField(this, StartPumpButton, 23) as StartPumpButton[]; + } + set startPumpButtons(value: StartPumpButton[]) { + pb_1.Message.setRepeatedWrapperField(this, 23, value); + } + get temperatureCables() { + return pb_1.Message.getRepeatedWrapperField(this, TemperatureCable, 24) as TemperatureCable[]; + } + set temperatureCables(value: TemperatureCable[]) { + pb_1.Message.setRepeatedWrapperField(this, 24, value); + } + get emergencyLightings() { + return pb_1.Message.getRepeatedWrapperField(this, EmergencyLighting, 25) as EmergencyLighting[]; + } + set emergencyLightings(value: EmergencyLighting[]) { + pb_1.Message.setRepeatedWrapperField(this, 25, value); + } + get elevatorLiftToTops() { + return pb_1.Message.getRepeatedWrapperField(this, ElevatorLiftToTop, 26) as ElevatorLiftToTop[]; + } + set elevatorLiftToTops(value: ElevatorLiftToTop[]) { + pb_1.Message.setRepeatedWrapperField(this, 26, value); + } + get electricButterflyValves() { + return pb_1.Message.getRepeatedWrapperField(this, ElectricButterflyValve, 27) as ElectricButterflyValve[]; + } + set electricButterflyValves(value: ElectricButterflyValve[]) { + pb_1.Message.setRepeatedWrapperField(this, 27, value); + } + get fireValves() { + return pb_1.Message.getRepeatedWrapperField(this, FireValve, 28) as FireValve[]; + } + set fireValves(value: FireValve[]) { + pb_1.Message.setRepeatedWrapperField(this, 28, value); + } + get electricFireExtinguishingValves() { + return pb_1.Message.getRepeatedWrapperField(this, ElectricFireExtinguishingValve, 29) as ElectricFireExtinguishingValve[]; + } + set electricFireExtinguishingValves(value: ElectricFireExtinguishingValve[]) { + pb_1.Message.setRepeatedWrapperField(this, 29, value); + } + get fireIntercommunicationSignals() { + return pb_1.Message.getRepeatedWrapperField(this, FireIntercommunicationSignal, 30) as FireIntercommunicationSignal[]; + } + set fireIntercommunicationSignals(value: FireIntercommunicationSignal[]) { + pb_1.Message.setRepeatedWrapperField(this, 30, value); + } static fromObject(data: { stationName?: string; canvas?: ReturnType; commonGraphicStorage?: ReturnType; partition?: string; + fasFailureControlHosts?: ReturnType[]; + fasAlarms?: ReturnType[]; + manualAlarmButtons?: ReturnType[]; + hydrantAlarmButtons?: ReturnType[]; + gasExtinguishings?: ReturnType[]; + smokeDetectors?: ReturnType[]; + temperatureDetectors?: ReturnType[]; + fireShutters?: ReturnType[]; + firePumps?: ReturnType[]; + sprayPumps?: ReturnType[]; + stabilizedPressurePumps?: ReturnType[]; + acs?: ReturnType[]; + afc?: ReturnType[]; + nonFirePowerSupplies?: ReturnType[]; + waterFlowIndicators?: ReturnType[]; + signalButterflyValves?: ReturnType[]; + pressureSwitches?: ReturnType[]; + faultValves?: ReturnType[]; + startPumpButtons?: ReturnType[]; + temperatureCables?: ReturnType[]; + emergencyLightings?: ReturnType[]; + elevatorLiftToTops?: ReturnType[]; + electricButterflyValves?: ReturnType[]; + fireValves?: ReturnType[]; + electricFireExtinguishingValves?: ReturnType[]; + fireIntercommunicationSignals?: ReturnType[]; }): FASOfPlatformAlarmStorage { const message = new FASOfPlatformAlarmStorage({}); if (data.stationName != null) { @@ -2172,6 +2458,84 @@ export namespace iscsGraphicData { if (data.partition != null) { message.partition = data.partition; } + if (data.fasFailureControlHosts != null) { + message.fasFailureControlHosts = data.fasFailureControlHosts.map(item => FasFailureControlHost.fromObject(item)); + } + if (data.fasAlarms != null) { + message.fasAlarms = data.fasAlarms.map(item => FasAlarm.fromObject(item)); + } + if (data.manualAlarmButtons != null) { + message.manualAlarmButtons = data.manualAlarmButtons.map(item => ManualAlarmButton.fromObject(item)); + } + if (data.hydrantAlarmButtons != null) { + message.hydrantAlarmButtons = data.hydrantAlarmButtons.map(item => HydrantAlarmButton.fromObject(item)); + } + if (data.gasExtinguishings != null) { + message.gasExtinguishings = data.gasExtinguishings.map(item => GasExtinguishing.fromObject(item)); + } + if (data.smokeDetectors != null) { + message.smokeDetectors = data.smokeDetectors.map(item => SmokeDetector.fromObject(item)); + } + if (data.temperatureDetectors != null) { + message.temperatureDetectors = data.temperatureDetectors.map(item => TemperatureDetector.fromObject(item)); + } + if (data.fireShutters != null) { + message.fireShutters = data.fireShutters.map(item => FireShutter.fromObject(item)); + } + if (data.firePumps != null) { + message.firePumps = data.firePumps.map(item => FirePump.fromObject(item)); + } + if (data.sprayPumps != null) { + message.sprayPumps = data.sprayPumps.map(item => SprayPump.fromObject(item)); + } + if (data.stabilizedPressurePumps != null) { + message.stabilizedPressurePumps = data.stabilizedPressurePumps.map(item => StabilizedPressurePump.fromObject(item)); + } + if (data.acs != null) { + message.acs = data.acs.map(item => Acs.fromObject(item)); + } + if (data.afc != null) { + message.afc = data.afc.map(item => Afc.fromObject(item)); + } + if (data.nonFirePowerSupplies != null) { + message.nonFirePowerSupplies = data.nonFirePowerSupplies.map(item => NonFirePowerSupply.fromObject(item)); + } + if (data.waterFlowIndicators != null) { + message.waterFlowIndicators = data.waterFlowIndicators.map(item => WaterFlowIndicator.fromObject(item)); + } + if (data.signalButterflyValves != null) { + message.signalButterflyValves = data.signalButterflyValves.map(item => SignalButterflyValve.fromObject(item)); + } + if (data.pressureSwitches != null) { + message.pressureSwitches = data.pressureSwitches.map(item => PressureSwitch.fromObject(item)); + } + if (data.faultValves != null) { + message.faultValves = data.faultValves.map(item => FaultValve.fromObject(item)); + } + if (data.startPumpButtons != null) { + message.startPumpButtons = data.startPumpButtons.map(item => StartPumpButton.fromObject(item)); + } + if (data.temperatureCables != null) { + message.temperatureCables = data.temperatureCables.map(item => TemperatureCable.fromObject(item)); + } + if (data.emergencyLightings != null) { + message.emergencyLightings = data.emergencyLightings.map(item => EmergencyLighting.fromObject(item)); + } + if (data.elevatorLiftToTops != null) { + message.elevatorLiftToTops = data.elevatorLiftToTops.map(item => ElevatorLiftToTop.fromObject(item)); + } + if (data.electricButterflyValves != null) { + message.electricButterflyValves = data.electricButterflyValves.map(item => ElectricButterflyValve.fromObject(item)); + } + if (data.fireValves != null) { + message.fireValves = data.fireValves.map(item => FireValve.fromObject(item)); + } + if (data.electricFireExtinguishingValves != null) { + message.electricFireExtinguishingValves = data.electricFireExtinguishingValves.map(item => ElectricFireExtinguishingValve.fromObject(item)); + } + if (data.fireIntercommunicationSignals != null) { + message.fireIntercommunicationSignals = data.fireIntercommunicationSignals.map(item => FireIntercommunicationSignal.fromObject(item)); + } return message; } toObject() { @@ -2180,6 +2544,32 @@ export namespace iscsGraphicData { canvas?: ReturnType; commonGraphicStorage?: ReturnType; partition?: string; + fasFailureControlHosts?: ReturnType[]; + fasAlarms?: ReturnType[]; + manualAlarmButtons?: ReturnType[]; + hydrantAlarmButtons?: ReturnType[]; + gasExtinguishings?: ReturnType[]; + smokeDetectors?: ReturnType[]; + temperatureDetectors?: ReturnType[]; + fireShutters?: ReturnType[]; + firePumps?: ReturnType[]; + sprayPumps?: ReturnType[]; + stabilizedPressurePumps?: ReturnType[]; + acs?: ReturnType[]; + afc?: ReturnType[]; + nonFirePowerSupplies?: ReturnType[]; + waterFlowIndicators?: ReturnType[]; + signalButterflyValves?: ReturnType[]; + pressureSwitches?: ReturnType[]; + faultValves?: ReturnType[]; + startPumpButtons?: ReturnType[]; + temperatureCables?: ReturnType[]; + emergencyLightings?: ReturnType[]; + elevatorLiftToTops?: ReturnType[]; + electricButterflyValves?: ReturnType[]; + fireValves?: ReturnType[]; + electricFireExtinguishingValves?: ReturnType[]; + fireIntercommunicationSignals?: ReturnType[]; } = {}; if (this.stationName != null) { data.stationName = this.stationName; @@ -2193,6 +2583,84 @@ export namespace iscsGraphicData { if (this.partition != null) { data.partition = this.partition; } + if (this.fasFailureControlHosts != null) { + data.fasFailureControlHosts = this.fasFailureControlHosts.map((item: FasFailureControlHost) => item.toObject()); + } + if (this.fasAlarms != null) { + data.fasAlarms = this.fasAlarms.map((item: FasAlarm) => item.toObject()); + } + if (this.manualAlarmButtons != null) { + data.manualAlarmButtons = this.manualAlarmButtons.map((item: ManualAlarmButton) => item.toObject()); + } + if (this.hydrantAlarmButtons != null) { + data.hydrantAlarmButtons = this.hydrantAlarmButtons.map((item: HydrantAlarmButton) => item.toObject()); + } + if (this.gasExtinguishings != null) { + data.gasExtinguishings = this.gasExtinguishings.map((item: GasExtinguishing) => item.toObject()); + } + if (this.smokeDetectors != null) { + data.smokeDetectors = this.smokeDetectors.map((item: SmokeDetector) => item.toObject()); + } + if (this.temperatureDetectors != null) { + data.temperatureDetectors = this.temperatureDetectors.map((item: TemperatureDetector) => item.toObject()); + } + if (this.fireShutters != null) { + data.fireShutters = this.fireShutters.map((item: FireShutter) => item.toObject()); + } + if (this.firePumps != null) { + data.firePumps = this.firePumps.map((item: FirePump) => item.toObject()); + } + if (this.sprayPumps != null) { + data.sprayPumps = this.sprayPumps.map((item: SprayPump) => item.toObject()); + } + if (this.stabilizedPressurePumps != null) { + data.stabilizedPressurePumps = this.stabilizedPressurePumps.map((item: StabilizedPressurePump) => item.toObject()); + } + if (this.acs != null) { + data.acs = this.acs.map((item: Acs) => item.toObject()); + } + if (this.afc != null) { + data.afc = this.afc.map((item: Afc) => item.toObject()); + } + if (this.nonFirePowerSupplies != null) { + data.nonFirePowerSupplies = this.nonFirePowerSupplies.map((item: NonFirePowerSupply) => item.toObject()); + } + if (this.waterFlowIndicators != null) { + data.waterFlowIndicators = this.waterFlowIndicators.map((item: WaterFlowIndicator) => item.toObject()); + } + if (this.signalButterflyValves != null) { + data.signalButterflyValves = this.signalButterflyValves.map((item: SignalButterflyValve) => item.toObject()); + } + if (this.pressureSwitches != null) { + data.pressureSwitches = this.pressureSwitches.map((item: PressureSwitch) => item.toObject()); + } + if (this.faultValves != null) { + data.faultValves = this.faultValves.map((item: FaultValve) => item.toObject()); + } + if (this.startPumpButtons != null) { + data.startPumpButtons = this.startPumpButtons.map((item: StartPumpButton) => item.toObject()); + } + if (this.temperatureCables != null) { + data.temperatureCables = this.temperatureCables.map((item: TemperatureCable) => item.toObject()); + } + if (this.emergencyLightings != null) { + data.emergencyLightings = this.emergencyLightings.map((item: EmergencyLighting) => item.toObject()); + } + if (this.elevatorLiftToTops != null) { + data.elevatorLiftToTops = this.elevatorLiftToTops.map((item: ElevatorLiftToTop) => item.toObject()); + } + if (this.electricButterflyValves != null) { + data.electricButterflyValves = this.electricButterflyValves.map((item: ElectricButterflyValve) => item.toObject()); + } + if (this.fireValves != null) { + data.fireValves = this.fireValves.map((item: FireValve) => item.toObject()); + } + if (this.electricFireExtinguishingValves != null) { + data.electricFireExtinguishingValves = this.electricFireExtinguishingValves.map((item: ElectricFireExtinguishingValve) => item.toObject()); + } + if (this.fireIntercommunicationSignals != null) { + data.fireIntercommunicationSignals = this.fireIntercommunicationSignals.map((item: FireIntercommunicationSignal) => item.toObject()); + } return data; } serialize(): Uint8Array; @@ -2207,6 +2675,58 @@ export namespace iscsGraphicData { writer.writeMessage(3, this.commonGraphicStorage, () => this.commonGraphicStorage.serialize(writer)); if (this.partition.length) writer.writeString(4, this.partition); + if (this.fasFailureControlHosts.length) + writer.writeRepeatedMessage(5, this.fasFailureControlHosts, (item: FasFailureControlHost) => item.serialize(writer)); + if (this.fasAlarms.length) + writer.writeRepeatedMessage(6, this.fasAlarms, (item: FasAlarm) => item.serialize(writer)); + if (this.manualAlarmButtons.length) + writer.writeRepeatedMessage(7, this.manualAlarmButtons, (item: ManualAlarmButton) => item.serialize(writer)); + if (this.hydrantAlarmButtons.length) + writer.writeRepeatedMessage(8, this.hydrantAlarmButtons, (item: HydrantAlarmButton) => item.serialize(writer)); + if (this.gasExtinguishings.length) + writer.writeRepeatedMessage(9, this.gasExtinguishings, (item: GasExtinguishing) => item.serialize(writer)); + if (this.smokeDetectors.length) + writer.writeRepeatedMessage(10, this.smokeDetectors, (item: SmokeDetector) => item.serialize(writer)); + if (this.temperatureDetectors.length) + writer.writeRepeatedMessage(11, this.temperatureDetectors, (item: TemperatureDetector) => item.serialize(writer)); + if (this.fireShutters.length) + writer.writeRepeatedMessage(12, this.fireShutters, (item: FireShutter) => item.serialize(writer)); + if (this.firePumps.length) + writer.writeRepeatedMessage(13, this.firePumps, (item: FirePump) => item.serialize(writer)); + if (this.sprayPumps.length) + writer.writeRepeatedMessage(14, this.sprayPumps, (item: SprayPump) => item.serialize(writer)); + if (this.stabilizedPressurePumps.length) + writer.writeRepeatedMessage(15, this.stabilizedPressurePumps, (item: StabilizedPressurePump) => item.serialize(writer)); + if (this.acs.length) + writer.writeRepeatedMessage(16, this.acs, (item: Acs) => item.serialize(writer)); + if (this.afc.length) + writer.writeRepeatedMessage(17, this.afc, (item: Afc) => item.serialize(writer)); + if (this.nonFirePowerSupplies.length) + writer.writeRepeatedMessage(18, this.nonFirePowerSupplies, (item: NonFirePowerSupply) => item.serialize(writer)); + if (this.waterFlowIndicators.length) + writer.writeRepeatedMessage(19, this.waterFlowIndicators, (item: WaterFlowIndicator) => item.serialize(writer)); + if (this.signalButterflyValves.length) + writer.writeRepeatedMessage(20, this.signalButterflyValves, (item: SignalButterflyValve) => item.serialize(writer)); + if (this.pressureSwitches.length) + writer.writeRepeatedMessage(21, this.pressureSwitches, (item: PressureSwitch) => item.serialize(writer)); + if (this.faultValves.length) + writer.writeRepeatedMessage(22, this.faultValves, (item: FaultValve) => item.serialize(writer)); + if (this.startPumpButtons.length) + writer.writeRepeatedMessage(23, this.startPumpButtons, (item: StartPumpButton) => item.serialize(writer)); + if (this.temperatureCables.length) + writer.writeRepeatedMessage(24, this.temperatureCables, (item: TemperatureCable) => item.serialize(writer)); + if (this.emergencyLightings.length) + writer.writeRepeatedMessage(25, this.emergencyLightings, (item: EmergencyLighting) => item.serialize(writer)); + if (this.elevatorLiftToTops.length) + writer.writeRepeatedMessage(26, this.elevatorLiftToTops, (item: ElevatorLiftToTop) => item.serialize(writer)); + if (this.electricButterflyValves.length) + writer.writeRepeatedMessage(27, this.electricButterflyValves, (item: ElectricButterflyValve) => item.serialize(writer)); + if (this.fireValves.length) + writer.writeRepeatedMessage(28, this.fireValves, (item: FireValve) => item.serialize(writer)); + if (this.electricFireExtinguishingValves.length) + writer.writeRepeatedMessage(29, this.electricFireExtinguishingValves, (item: ElectricFireExtinguishingValve) => item.serialize(writer)); + if (this.fireIntercommunicationSignals.length) + writer.writeRepeatedMessage(30, this.fireIntercommunicationSignals, (item: FireIntercommunicationSignal) => item.serialize(writer)); if (!w) return writer.getResultBuffer(); } @@ -2228,6 +2748,84 @@ export namespace iscsGraphicData { case 4: message.partition = reader.readString(); break; + case 5: + reader.readMessage(message.fasFailureControlHosts, () => pb_1.Message.addToRepeatedWrapperField(message, 5, FasFailureControlHost.deserialize(reader), FasFailureControlHost)); + break; + case 6: + reader.readMessage(message.fasAlarms, () => pb_1.Message.addToRepeatedWrapperField(message, 6, FasAlarm.deserialize(reader), FasAlarm)); + break; + case 7: + reader.readMessage(message.manualAlarmButtons, () => pb_1.Message.addToRepeatedWrapperField(message, 7, ManualAlarmButton.deserialize(reader), ManualAlarmButton)); + break; + case 8: + reader.readMessage(message.hydrantAlarmButtons, () => pb_1.Message.addToRepeatedWrapperField(message, 8, HydrantAlarmButton.deserialize(reader), HydrantAlarmButton)); + break; + case 9: + reader.readMessage(message.gasExtinguishings, () => pb_1.Message.addToRepeatedWrapperField(message, 9, GasExtinguishing.deserialize(reader), GasExtinguishing)); + break; + case 10: + reader.readMessage(message.smokeDetectors, () => pb_1.Message.addToRepeatedWrapperField(message, 10, SmokeDetector.deserialize(reader), SmokeDetector)); + break; + case 11: + reader.readMessage(message.temperatureDetectors, () => pb_1.Message.addToRepeatedWrapperField(message, 11, TemperatureDetector.deserialize(reader), TemperatureDetector)); + break; + case 12: + reader.readMessage(message.fireShutters, () => pb_1.Message.addToRepeatedWrapperField(message, 12, FireShutter.deserialize(reader), FireShutter)); + break; + case 13: + reader.readMessage(message.firePumps, () => pb_1.Message.addToRepeatedWrapperField(message, 13, FirePump.deserialize(reader), FirePump)); + break; + case 14: + reader.readMessage(message.sprayPumps, () => pb_1.Message.addToRepeatedWrapperField(message, 14, SprayPump.deserialize(reader), SprayPump)); + break; + case 15: + reader.readMessage(message.stabilizedPressurePumps, () => pb_1.Message.addToRepeatedWrapperField(message, 15, StabilizedPressurePump.deserialize(reader), StabilizedPressurePump)); + break; + case 16: + reader.readMessage(message.acs, () => pb_1.Message.addToRepeatedWrapperField(message, 16, Acs.deserialize(reader), Acs)); + break; + case 17: + reader.readMessage(message.afc, () => pb_1.Message.addToRepeatedWrapperField(message, 17, Afc.deserialize(reader), Afc)); + break; + case 18: + reader.readMessage(message.nonFirePowerSupplies, () => pb_1.Message.addToRepeatedWrapperField(message, 18, NonFirePowerSupply.deserialize(reader), NonFirePowerSupply)); + break; + case 19: + reader.readMessage(message.waterFlowIndicators, () => pb_1.Message.addToRepeatedWrapperField(message, 19, WaterFlowIndicator.deserialize(reader), WaterFlowIndicator)); + break; + case 20: + reader.readMessage(message.signalButterflyValves, () => pb_1.Message.addToRepeatedWrapperField(message, 20, SignalButterflyValve.deserialize(reader), SignalButterflyValve)); + break; + case 21: + reader.readMessage(message.pressureSwitches, () => pb_1.Message.addToRepeatedWrapperField(message, 21, PressureSwitch.deserialize(reader), PressureSwitch)); + break; + case 22: + reader.readMessage(message.faultValves, () => pb_1.Message.addToRepeatedWrapperField(message, 22, FaultValve.deserialize(reader), FaultValve)); + break; + case 23: + reader.readMessage(message.startPumpButtons, () => pb_1.Message.addToRepeatedWrapperField(message, 23, StartPumpButton.deserialize(reader), StartPumpButton)); + break; + case 24: + reader.readMessage(message.temperatureCables, () => pb_1.Message.addToRepeatedWrapperField(message, 24, TemperatureCable.deserialize(reader), TemperatureCable)); + break; + case 25: + reader.readMessage(message.emergencyLightings, () => pb_1.Message.addToRepeatedWrapperField(message, 25, EmergencyLighting.deserialize(reader), EmergencyLighting)); + break; + case 26: + reader.readMessage(message.elevatorLiftToTops, () => pb_1.Message.addToRepeatedWrapperField(message, 26, ElevatorLiftToTop.deserialize(reader), ElevatorLiftToTop)); + break; + case 27: + reader.readMessage(message.electricButterflyValves, () => pb_1.Message.addToRepeatedWrapperField(message, 27, ElectricButterflyValve.deserialize(reader), ElectricButterflyValve)); + break; + case 28: + reader.readMessage(message.fireValves, () => pb_1.Message.addToRepeatedWrapperField(message, 28, FireValve.deserialize(reader), FireValve)); + break; + case 29: + reader.readMessage(message.electricFireExtinguishingValves, () => pb_1.Message.addToRepeatedWrapperField(message, 29, ElectricFireExtinguishingValve.deserialize(reader), ElectricFireExtinguishingValve)); + break; + case 30: + reader.readMessage(message.fireIntercommunicationSignals, () => pb_1.Message.addToRepeatedWrapperField(message, 30, FireIntercommunicationSignal.deserialize(reader), FireIntercommunicationSignal)); + break; default: reader.skipField(); } } @@ -2240,4 +2838,1986 @@ export namespace iscsGraphicData { return FASOfPlatformAlarmStorage.deserialize(bytes); } } + export class FasFailureControlHost extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + }): FasFailureControlHost { + const message = new FasFailureControlHost({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): FasFailureControlHost { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new FasFailureControlHost(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): FasFailureControlHost { + return FasFailureControlHost.deserialize(bytes); + } + } + export class FasAlarm extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + }): FasAlarm { + const message = new FasAlarm({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): FasAlarm { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new FasAlarm(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): FasAlarm { + return FasAlarm.deserialize(bytes); + } + } + export class FireShutter extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + type?: FireShutter.ShutterType; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + if ("type" in data && data.type != undefined) { + this.type = data.type; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + get type() { + return pb_1.Message.getFieldWithDefault(this, 3, FireShutter.ShutterType.partition) as FireShutter.ShutterType; + } + set type(value: FireShutter.ShutterType) { + pb_1.Message.setField(this, 3, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + type?: FireShutter.ShutterType; + }): FireShutter { + const message = new FireShutter({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + if (data.type != null) { + message.type = data.type; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + type?: FireShutter.ShutterType; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + if (this.type != null) { + data.type = this.type; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (this.type != FireShutter.ShutterType.partition) + writer.writeEnum(3, this.type); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): FireShutter { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new FireShutter(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + case 3: + message.type = reader.readEnum(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): FireShutter { + return FireShutter.deserialize(bytes); + } + } + export namespace FireShutter { + export enum ShutterType { + partition = 0, + dispersal = 1 + } + } + export class FirePump extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + }): FirePump { + const message = new FirePump({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): FirePump { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new FirePump(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): FirePump { + return FirePump.deserialize(bytes); + } + } + export class SprayPump extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + }): SprayPump { + const message = new SprayPump({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): SprayPump { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new SprayPump(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): SprayPump { + return SprayPump.deserialize(bytes); + } + } + export class StabilizedPressurePump extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + }): StabilizedPressurePump { + const message = new StabilizedPressurePump({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): StabilizedPressurePump { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new StabilizedPressurePump(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): StabilizedPressurePump { + return StabilizedPressurePump.deserialize(bytes); + } + } + export class Acs extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + }): Acs { + const message = new Acs({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Acs { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Acs(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): Acs { + return Acs.deserialize(bytes); + } + } + export class Afc extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + }): Afc { + const message = new Afc({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Afc { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Afc(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): Afc { + return Afc.deserialize(bytes); + } + } + export class NonFirePowerSupply extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + }): NonFirePowerSupply { + const message = new NonFirePowerSupply({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): NonFirePowerSupply { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new NonFirePowerSupply(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): NonFirePowerSupply { + return NonFirePowerSupply.deserialize(bytes); + } + } + export class WaterFlowIndicator extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + }): WaterFlowIndicator { + const message = new WaterFlowIndicator({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): WaterFlowIndicator { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new WaterFlowIndicator(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): WaterFlowIndicator { + return WaterFlowIndicator.deserialize(bytes); + } + } + export class SignalButterflyValve extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + }): SignalButterflyValve { + const message = new SignalButterflyValve({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): SignalButterflyValve { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new SignalButterflyValve(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): SignalButterflyValve { + return SignalButterflyValve.deserialize(bytes); + } + } + export class PressureSwitch extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + }): PressureSwitch { + const message = new PressureSwitch({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): PressureSwitch { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new PressureSwitch(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): PressureSwitch { + return PressureSwitch.deserialize(bytes); + } + } + export class FaultValve extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + }): FaultValve { + const message = new FaultValve({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): FaultValve { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new FaultValve(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): FaultValve { + return FaultValve.deserialize(bytes); + } + } + export class StartPumpButton extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + }): StartPumpButton { + const message = new StartPumpButton({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): StartPumpButton { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new StartPumpButton(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): StartPumpButton { + return StartPumpButton.deserialize(bytes); + } + } + export class TemperatureCable extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + }): TemperatureCable { + const message = new TemperatureCable({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): TemperatureCable { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new TemperatureCable(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): TemperatureCable { + return TemperatureCable.deserialize(bytes); + } + } + export class EmergencyLighting extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + }): EmergencyLighting { + const message = new EmergencyLighting({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): EmergencyLighting { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new EmergencyLighting(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): EmergencyLighting { + return EmergencyLighting.deserialize(bytes); + } + } + export class ElevatorLiftToTop extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + }): ElevatorLiftToTop { + const message = new ElevatorLiftToTop({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ElevatorLiftToTop { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ElevatorLiftToTop(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): ElevatorLiftToTop { + return ElevatorLiftToTop.deserialize(bytes); + } + } + export class ElectricButterflyValve extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + }): ElectricButterflyValve { + const message = new ElectricButterflyValve({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ElectricButterflyValve { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ElectricButterflyValve(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): ElectricButterflyValve { + return ElectricButterflyValve.deserialize(bytes); + } + } + export class FireValve extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + }): FireValve { + const message = new FireValve({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): FireValve { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new FireValve(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): FireValve { + return FireValve.deserialize(bytes); + } + } + export class ElectricFireExtinguishingValve extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + }): ElectricFireExtinguishingValve { + const message = new ElectricFireExtinguishingValve({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ElectricFireExtinguishingValve { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ElectricFireExtinguishingValve(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): ElectricFireExtinguishingValve { + return ElectricFireExtinguishingValve.deserialize(bytes); + } + } + export class FireIntercommunicationSignal extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + common?: dependency_1.common.CommonInfo; + code?: string; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("common" in data && data.common != undefined) { + this.common = data.common; + } + if ("code" in data && data.code != undefined) { + this.code = data.code; + } + } + } + get common() { + return pb_1.Message.getWrapperField(this, dependency_1.common.CommonInfo, 1) as dependency_1.common.CommonInfo; + } + set common(value: dependency_1.common.CommonInfo) { + pb_1.Message.setWrapperField(this, 1, value); + } + get has_common() { + return pb_1.Message.getField(this, 1) != null; + } + get code() { + return pb_1.Message.getFieldWithDefault(this, 2, "") as string; + } + set code(value: string) { + pb_1.Message.setField(this, 2, value); + } + static fromObject(data: { + common?: ReturnType; + code?: string; + }): FireIntercommunicationSignal { + const message = new FireIntercommunicationSignal({}); + if (data.common != null) { + message.common = dependency_1.common.CommonInfo.fromObject(data.common); + } + if (data.code != null) { + message.code = data.code; + } + return message; + } + toObject() { + const data: { + common?: ReturnType; + code?: string; + } = {}; + if (this.common != null) { + data.common = this.common.toObject(); + } + if (this.code != null) { + data.code = this.code; + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.has_common) + writer.writeMessage(1, this.common, () => this.common.serialize(writer)); + if (this.code.length) + writer.writeString(2, this.code); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): FireIntercommunicationSignal { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new FireIntercommunicationSignal(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.common, () => message.common = dependency_1.common.CommonInfo.deserialize(reader)); + break; + case 2: + message.code = reader.readString(); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): FireIntercommunicationSignal { + return FireIntercommunicationSignal.deserialize(bytes); + } + } }