@kvaser/canking-api 7.1.0-beta.231
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/EULA.pdf +0 -0
- package/README.md +87 -0
- package/REDISTRIBUTABLES.txt +5 -0
- package/dist/ElectronAPIFake.js +1 -0
- package/dist/ElectronAPIFake.mjs +266 -0
- package/dist/controls/CanChannelSelectControl.d.ts +35 -0
- package/dist/controls/CanIdentifierControl.d.ts +176 -0
- package/dist/controls/CanKingDataProvider.d.ts +116 -0
- package/dist/controls/CheckboxControl.d.ts +30 -0
- package/dist/controls/ContextMenu.d.ts +44 -0
- package/dist/controls/DropdownButton.d.ts +73 -0
- package/dist/controls/DropdownPanel.d.ts +41 -0
- package/dist/controls/FillBox.d.ts +8 -0
- package/dist/controls/FormControlRow.d.ts +30 -0
- package/dist/controls/InlineEditor.d.ts +26 -0
- package/dist/controls/LocalizedStrings.d.ts +21 -0
- package/dist/controls/NumberRangeControl.d.ts +80 -0
- package/dist/controls/OneLineButton.d.ts +9 -0
- package/dist/controls/RadioControl.d.ts +25 -0
- package/dist/controls/RadioGroupControl.d.ts +31 -0
- package/dist/controls/SectionControl.d.ts +40 -0
- package/dist/controls/SelectControl.d.ts +55 -0
- package/dist/controls/SizedBox.d.ts +11 -0
- package/dist/controls/TableControl.d.ts +61 -0
- package/dist/controls/TabsPanel.d.ts +5 -0
- package/dist/controls/TextControl.d.ts +56 -0
- package/dist/controls/ToolbarControl.d.ts +143 -0
- package/dist/controls/ValidateableTextControl.d.ts +82 -0
- package/dist/controls/index.d.ts +103 -0
- package/dist/controls.js +1 -0
- package/dist/controls.mjs +1714 -0
- package/dist/grpc/index.d.ts +7 -0
- package/dist/grpc.js +1 -0
- package/dist/grpc.mjs +917 -0
- package/dist/hooks/index.d.ts +112 -0
- package/dist/hooks.js +1 -0
- package/dist/hooks.mjs +28 -0
- package/dist/icons/index.d.ts +121 -0
- package/dist/icons.js +1 -0
- package/dist/icons.mjs +1237 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +596 -0
- package/dist/ipc/index.d.ts +160 -0
- package/dist/ipc.js +1 -0
- package/dist/ipc.mjs +123 -0
- package/dist/measurement_settings.js +1 -0
- package/dist/measurement_settings.mjs +4132 -0
- package/dist/models/DataBuffer.d.ts +100 -0
- package/dist/models/ElectronAPIFake.d.ts +13 -0
- package/dist/models/Point.d.ts +30 -0
- package/dist/models/index.d.ts +95 -0
- package/dist/models.js +1 -0
- package/dist/models.mjs +448 -0
- package/dist/protos/app_params.d.ts +208 -0
- package/dist/protos/app_service.d.ts +354 -0
- package/dist/protos/common_params.d.ts +33 -0
- package/dist/protos/device_params.d.ts +271 -0
- package/dist/protos/device_service.d.ts +154 -0
- package/dist/protos/frame_params.d.ts +189 -0
- package/dist/protos/google/protobuf/empty.d.ts +35 -0
- package/dist/protos/measurement_params.d.ts +308 -0
- package/dist/protos/measurement_service.d.ts +1333 -0
- package/dist/protos/measurement_settings.d.ts +453 -0
- package/dist/protos/signal_params.d.ts +72 -0
- package/dist/protos/status_params.d.ts +118 -0
- package/dist/status_params.js +1 -0
- package/dist/status_params.mjs +5045 -0
- package/doc/.nojekyll +1 -0
- package/doc/assets/highlight.css +120 -0
- package/doc/assets/icons.js +18 -0
- package/doc/assets/icons.svg +1 -0
- package/doc/assets/main.js +60 -0
- package/doc/assets/material-style.css +247 -0
- package/doc/assets/navigation.js +1 -0
- package/doc/assets/search.js +1 -0
- package/doc/assets/style.css +1493 -0
- package/doc/classes/controls.LocalizedStrings.html +177 -0
- package/doc/classes/models.DataBuffer.html +205 -0
- package/doc/classes/models.DataBufferView.html +193 -0
- package/doc/classes/models.Point.html +187 -0
- package/doc/enums/models.AccessMode.html +188 -0
- package/doc/enums/models.AppEvent.html +179 -0
- package/doc/enums/models.CanChannelCap.html +217 -0
- package/doc/enums/models.CanFrameFlag.html +200 -0
- package/doc/enums/models.CanMode.html +180 -0
- package/doc/enums/models.DecimalChar.html +178 -0
- package/doc/enums/models.DeviceEvent.html +179 -0
- package/doc/enums/models.FileConflictAction.html +180 -0
- package/doc/enums/models.LinFrameFlag.html +185 -0
- package/doc/enums/models.LogFileFormat.html +221 -0
- package/doc/enums/models.LogLevel.html +195 -0
- package/doc/enums/models.LogReplayState.html +179 -0
- package/doc/enums/models.MeasurementEvent.html +185 -0
- package/doc/enums/models.MessageLoggerState.html +180 -0
- package/doc/enums/models.Protocols.html +182 -0
- package/doc/enums/models.Separator.html +178 -0
- package/doc/enums/models.SignalEncoding.html +178 -0
- package/doc/enums/models.SignalType.html +185 -0
- package/doc/enums/models.SignalValueTriggerOperator.html +186 -0
- package/doc/enums/models.StatusLevel.html +180 -0
- package/doc/enums/models.TimeReference.html +178 -0
- package/doc/enums/models.TriggerOperator.html +179 -0
- package/doc/functions/controls.CanChannelSelectControl.html +177 -0
- package/doc/functions/controls.CanIdentifierControl.html +177 -0
- package/doc/functions/controls.CanIdentifierFrameControl.html +177 -0
- package/doc/functions/controls.CanIdentifierGeneratorControl.html +177 -0
- package/doc/functions/controls.CanIdentifierGeneratorSettingsControl.html +178 -0
- package/doc/functions/controls.CanKingDataProvider.html +182 -0
- package/doc/functions/controls.CheckboxControl.html +177 -0
- package/doc/functions/controls.ContextMenu.html +177 -0
- package/doc/functions/controls.DropdownButton.html +177 -0
- package/doc/functions/controls.DropdownButtonTextItems.html +177 -0
- package/doc/functions/controls.DropdownPanel.html +177 -0
- package/doc/functions/controls.FillBox.html +206 -0
- package/doc/functions/controls.FormControlRow.html +177 -0
- package/doc/functions/controls.InlineEditor.html +177 -0
- package/doc/functions/controls.NumberRangeControl.html +177 -0
- package/doc/functions/controls.OneLineButton.html +205 -0
- package/doc/functions/controls.RadioControl.html +177 -0
- package/doc/functions/controls.RadioGroupControl.html +177 -0
- package/doc/functions/controls.SectionControl.html +177 -0
- package/doc/functions/controls.SelectControl.html +177 -0
- package/doc/functions/controls.SizedBox.html +206 -0
- package/doc/functions/controls.TableControl.html +177 -0
- package/doc/functions/controls.TabsPanel.html +205 -0
- package/doc/functions/controls.TextControl.html +177 -0
- package/doc/functions/controls.ToolbarControl.html +177 -0
- package/doc/functions/controls.ValidateableTextControl.html +177 -0
- package/doc/functions/hooks.useDevices.html +176 -0
- package/doc/functions/hooks.useIsOnline.html +176 -0
- package/doc/functions/hooks.useLanguage.html +176 -0
- package/doc/functions/hooks.useLocalizedStrings.html +176 -0
- package/doc/functions/hooks.useLogMessages.html +176 -0
- package/doc/functions/hooks.useMaxDataBytes.html +175 -0
- package/doc/functions/hooks.useMeasurementSetup.html +176 -0
- package/doc/functions/hooks.useMeasurementStatus.html +176 -0
- package/doc/functions/hooks.useMessageLogFileFormats.html +175 -0
- package/doc/functions/hooks.useNewMeasurementData.html +178 -0
- package/doc/functions/hooks.useNodeStatus.html +176 -0
- package/doc/functions/hooks.useNumericRadix.html +176 -0
- package/doc/functions/hooks.useOnlineStatus.html +176 -0
- package/doc/functions/hooks.useOverallStatusLevel.html +176 -0
- package/doc/functions/hooks.useProjectData.html +178 -0
- package/doc/functions/hooks.useRecentProjectFiles.html +175 -0
- package/doc/functions/hooks.useRunningPeriodicTransmissions.html +176 -0
- package/doc/functions/hooks.useSessionData.html +178 -0
- package/doc/functions/hooks.useUserSettings.html +176 -0
- package/doc/functions/hooks.useWorkspacePaneWithId.html +175 -0
- package/doc/functions/icons.AddIcon.html +175 -0
- package/doc/functions/icons.ArrowDownIcon.html +175 -0
- package/doc/functions/icons.ArrowLeftIcon.html +175 -0
- package/doc/functions/icons.ArrowRightIcon.html +175 -0
- package/doc/functions/icons.ArrowUpIcon.html +175 -0
- package/doc/functions/icons.BusIsOffIcon.html +175 -0
- package/doc/functions/icons.BusIsOnIcon.html +175 -0
- package/doc/functions/icons.CloseIcon.html +175 -0
- package/doc/functions/icons.CopyIcon.html +175 -0
- package/doc/functions/icons.DarkModeIcon.html +175 -0
- package/doc/functions/icons.DeleteIcon.html +175 -0
- package/doc/functions/icons.DisableIcon.html +175 -0
- package/doc/functions/icons.EditIcon.html +175 -0
- package/doc/functions/icons.FilterIcon.html +175 -0
- package/doc/functions/icons.FixedPositionIcon.html +175 -0
- package/doc/functions/icons.LeaveFullScreenIcon.html +175 -0
- package/doc/functions/icons.LightModeIcon.html +175 -0
- package/doc/functions/icons.LineArrowDownIcon.html +175 -0
- package/doc/functions/icons.LineArrowUpIcon.html +175 -0
- package/doc/functions/icons.MaximizeWindowIcon.html +175 -0
- package/doc/functions/icons.MeasurementSetupIcon.html +175 -0
- package/doc/functions/icons.MoreHorizIcon.html +175 -0
- package/doc/functions/icons.MoreVertIcon.html +175 -0
- package/doc/functions/icons.NewIcon.html +175 -0
- package/doc/functions/icons.OpenExternallyIcon.html +175 -0
- package/doc/functions/icons.OpenIcon.html +175 -0
- package/doc/functions/icons.PauseIcon.html +175 -0
- package/doc/functions/icons.PlayIcon.html +175 -0
- package/doc/functions/icons.PlaySolidIcon.html +175 -0
- package/doc/functions/icons.SaveIcon.html +175 -0
- package/doc/functions/icons.SelectAllIcon.html +175 -0
- package/doc/functions/icons.ServiceIconActive.html +175 -0
- package/doc/functions/icons.ServiceIconInactive.html +175 -0
- package/doc/functions/icons.SettingsIcon.html +175 -0
- package/doc/functions/icons.StopIcon.html +175 -0
- package/doc/functions/icons.StopSolidIcon.html +175 -0
- package/doc/functions/icons.ToolsPanelHiddenIcon.html +175 -0
- package/doc/functions/icons.ToolsPanelVisibleIcon.html +175 -0
- package/doc/functions/icons.UnmaximizeWindowIcon.html +175 -0
- package/doc/functions/icons.WorkspacesIcon.html +175 -0
- package/doc/functions/ipc.addDataProcessor.html +178 -0
- package/doc/functions/ipc.addSource.html +176 -0
- package/doc/functions/ipc.addTarget.html +176 -0
- package/doc/functions/ipc.connectNodes.html +177 -0
- package/doc/functions/ipc.deleteDataProcessor.html +176 -0
- package/doc/functions/ipc.deleteSource.html +176 -0
- package/doc/functions/ipc.deleteTarget.html +176 -0
- package/doc/functions/ipc.disableNode.html +176 -0
- package/doc/functions/ipc.disconnectNodes.html +177 -0
- package/doc/functions/ipc.enableNode.html +176 -0
- package/doc/functions/ipc.getFrameDefinitions.html +178 -0
- package/doc/functions/ipc.getLogger.html +177 -0
- package/doc/functions/ipc.getMessageLogFileFormats.html +176 -0
- package/doc/functions/ipc.sendCanMessage.html +179 -0
- package/doc/functions/ipc.sendMessage.html +177 -0
- package/doc/functions/ipc.showMessageBox.html +177 -0
- package/doc/functions/ipc.showQuestionBox.html +183 -0
- package/doc/functions/ipc.startLogReplay.html +176 -0
- package/doc/functions/ipc.startMeasurement.html +175 -0
- package/doc/functions/ipc.startPeriodicTransmission.html +177 -0
- package/doc/functions/ipc.stopLogReplay.html +176 -0
- package/doc/functions/ipc.stopMeasurement.html +175 -0
- package/doc/functions/ipc.stopPeriodicTransmission.html +176 -0
- package/doc/functions/ipc.updateDataProcessor.html +176 -0
- package/doc/functions/ipc.updateSource.html +176 -0
- package/doc/functions/ipc.updateTarget.html +176 -0
- package/doc/functions/models.accessModeFromJSON.html +174 -0
- package/doc/functions/models.accessModeToJSON.html +174 -0
- package/doc/functions/models.appEventFromJSON.html +174 -0
- package/doc/functions/models.appEventToJSON.html +174 -0
- package/doc/functions/models.canChannelCapFromJSON.html +174 -0
- package/doc/functions/models.canChannelCapToJSON.html +174 -0
- package/doc/functions/models.canFrameFlagFromJSON.html +174 -0
- package/doc/functions/models.canFrameFlagToJSON.html +174 -0
- package/doc/functions/models.canModeFromJSON.html +174 -0
- package/doc/functions/models.canModeToJSON.html +174 -0
- package/doc/functions/models.createElectronApiFake.html +177 -0
- package/doc/functions/models.decimalCharFromJSON.html +174 -0
- package/doc/functions/models.decimalCharToJSON.html +174 -0
- package/doc/functions/models.decimalToFixed.html +174 -0
- package/doc/functions/models.decimalToHex.html +174 -0
- package/doc/functions/models.deviceEventFromJSON.html +174 -0
- package/doc/functions/models.deviceEventToJSON.html +174 -0
- package/doc/functions/models.fileConflictActionFromJSON.html +174 -0
- package/doc/functions/models.fileConflictActionToJSON.html +174 -0
- package/doc/functions/models.linFrameFlagFromJSON.html +174 -0
- package/doc/functions/models.linFrameFlagToJSON.html +174 -0
- package/doc/functions/models.logFileFormatFromJSON.html +174 -0
- package/doc/functions/models.logFileFormatToJSON.html +174 -0
- package/doc/functions/models.logLevelFromJSON.html +174 -0
- package/doc/functions/models.logLevelToJSON.html +174 -0
- package/doc/functions/models.logReplayStateFromJSON.html +174 -0
- package/doc/functions/models.logReplayStateToJSON.html +174 -0
- package/doc/functions/models.longToNumber.html +174 -0
- package/doc/functions/models.measurementEventFromJSON.html +174 -0
- package/doc/functions/models.measurementEventToJSON.html +174 -0
- package/doc/functions/models.messageLoggerStateFromJSON.html +174 -0
- package/doc/functions/models.messageLoggerStateToJSON.html +174 -0
- package/doc/functions/models.protocolsFromJSON.html +174 -0
- package/doc/functions/models.protocolsToJSON.html +174 -0
- package/doc/functions/models.separatorFromJSON.html +174 -0
- package/doc/functions/models.separatorToJSON.html +174 -0
- package/doc/functions/models.signalEncodingFromJSON.html +174 -0
- package/doc/functions/models.signalEncodingToJSON.html +174 -0
- package/doc/functions/models.signalTypeFromJSON.html +174 -0
- package/doc/functions/models.signalTypeToJSON.html +174 -0
- package/doc/functions/models.signalValueTriggerOperatorFromJSON.html +174 -0
- package/doc/functions/models.signalValueTriggerOperatorToJSON.html +174 -0
- package/doc/functions/models.statusLevelFromJSON.html +174 -0
- package/doc/functions/models.statusLevelToJSON.html +174 -0
- package/doc/functions/models.timeReferenceFromJSON.html +174 -0
- package/doc/functions/models.timeReferenceToJSON.html +174 -0
- package/doc/functions/models.triggerOperatorFromJSON.html +174 -0
- package/doc/functions/models.triggerOperatorToJSON.html +174 -0
- package/doc/hierarchy.html +174 -0
- package/doc/index.html +244 -0
- package/doc/interfaces/controls.ButtonGroupProps.html +183 -0
- package/doc/interfaces/controls.ButtonProps.html +195 -0
- package/doc/interfaces/controls.CanChannelSelectControlProps.html +194 -0
- package/doc/interfaces/controls.CanIdentifierControlProps.html +195 -0
- package/doc/interfaces/controls.CanIdentifierFrameControlProps.html +190 -0
- package/doc/interfaces/controls.CanIdentifierGeneratorControlProps.html +208 -0
- package/doc/interfaces/controls.CanIdentifierGeneratorSettingsControlProps.html +194 -0
- package/doc/interfaces/controls.CheckboxControlProps.html +190 -0
- package/doc/interfaces/controls.ContextMenuProps.html +182 -0
- package/doc/interfaces/controls.DropdownButtonChildrenProps.html +177 -0
- package/doc/interfaces/controls.DropdownButtonProps.html +193 -0
- package/doc/interfaces/controls.DropdownButtonTextItemsProps.html +183 -0
- package/doc/interfaces/controls.DropdownPanelProps.html +193 -0
- package/doc/interfaces/controls.FormControlRowProps.html +181 -0
- package/doc/interfaces/controls.ILocalizedStrings.html +176 -0
- package/doc/interfaces/controls.InlineEditorProps.html +186 -0
- package/doc/interfaces/controls.LabelProps.html +179 -0
- package/doc/interfaces/controls.NumberRangeControlProps.html +225 -0
- package/doc/interfaces/controls.RadioControlProps.html +187 -0
- package/doc/interfaces/controls.RadioGroupControlProps.html +182 -0
- package/doc/interfaces/controls.SectionControlProps.html +190 -0
- package/doc/interfaces/controls.SelectControlProps.html +205 -0
- package/doc/interfaces/controls.TableColumn.html +185 -0
- package/doc/interfaces/controls.TableControlProps.html +197 -0
- package/doc/interfaces/controls.TextControlProps.html +214 -0
- package/doc/interfaces/controls.ToggleButtonGroupProps.html +190 -0
- package/doc/interfaces/controls.ToggleButtonProps.html +187 -0
- package/doc/interfaces/controls.ToolbarControlProps.html +191 -0
- package/doc/interfaces/controls.ValidateableTextControlProps.html +233 -0
- package/doc/interfaces/controls.toolbarItem.html +185 -0
- package/doc/interfaces/ipc.ILogger.html +181 -0
- package/doc/interfaces/models.AboutInformation.html +181 -0
- package/doc/interfaces/models.ActivateLicenseRequest.html +181 -0
- package/doc/interfaces/models.AddAllConnectedCanChannelsRequest.html +177 -0
- package/doc/interfaces/models.AddAllConnectedLinChannelsRequest.html +177 -0
- package/doc/interfaces/models.AddOrUpdateDataProcessorRequest.html +185 -0
- package/doc/interfaces/models.AddOrUpdateSourceRequest.html +181 -0
- package/doc/interfaces/models.AddOrUpdateTargetRequest.html +181 -0
- package/doc/interfaces/models.ApiPreferences.html +183 -0
- package/doc/interfaces/models.AppEventArgs.html +179 -0
- package/doc/interfaces/models.BaseNodeProperties.html +181 -0
- package/doc/interfaces/models.BusStatus.html +190 -0
- package/doc/interfaces/models.CanBusParamLimits.html +180 -0
- package/doc/interfaces/models.CanBusParams.html +197 -0
- package/doc/interfaces/models.CanBusSpeed.html +187 -0
- package/doc/interfaces/models.CanBusSpeedInfo.html +193 -0
- package/doc/interfaces/models.CanChannelCapacity.html +180 -0
- package/doc/interfaces/models.CanChannelConfiguration.html +185 -0
- package/doc/interfaces/models.CanFDBusSpeedCombination.html +177 -0
- package/doc/interfaces/models.CanFDBusSpeedInfo.html +191 -0
- package/doc/interfaces/models.CanFrameFlags.html +177 -0
- package/doc/interfaces/models.CanMessageFilterSettings.html +178 -0
- package/doc/interfaces/models.Channel.html +180 -0
- package/doc/interfaces/models.ChannelSettings.html +193 -0
- package/doc/interfaces/models.ClearLinMessageRequest.html +180 -0
- package/doc/interfaces/models.ConnectNodesRequest.html +178 -0
- package/doc/interfaces/models.DataProcessingStatus.html +179 -0
- package/doc/interfaces/models.DataProcessorNodeProperties.html +181 -0
- package/doc/interfaces/models.DatabasesSettings.html +176 -0
- package/doc/interfaces/models.Device.html +182 -0
- package/doc/interfaces/models.DeviceEventArgs.html +177 -0
- package/doc/interfaces/models.Devices.html +175 -0
- package/doc/interfaces/models.DisconnectNodesRequest.html +178 -0
- package/doc/interfaces/models.Empty.html +182 -0
- package/doc/interfaces/models.ErrorStatus.html +177 -0
- package/doc/interfaces/models.Frame.html +203 -0
- package/doc/interfaces/models.FrameDefinition.html +185 -0
- package/doc/interfaces/models.FrameDefinitions.html +175 -0
- package/doc/interfaces/models.FramePropertyValue.html +177 -0
- package/doc/interfaces/models.FrameReceivedTrigger.html +179 -0
- package/doc/interfaces/models.Frame_PropertiesEntry.html +176 -0
- package/doc/interfaces/models.Frames.html +175 -0
- package/doc/interfaces/models.GetCanChannelBusSpeedsRequest.html +177 -0
- package/doc/interfaces/models.GetCanChannelBusSpeedsResponse.html +179 -0
- package/doc/interfaces/models.GetCanFdBusSpeedsRequest.html +179 -0
- package/doc/interfaces/models.GetCanFdBusSpeedsResponse.html +177 -0
- package/doc/interfaces/models.GetChannelsFromLogFileRequest.html +178 -0
- package/doc/interfaces/models.GetChannelsFromLogFileResponse.html +177 -0
- package/doc/interfaces/models.GetClassicCanBusSpeedsRequest.html +178 -0
- package/doc/interfaces/models.GetClassicCanBusSpeedsResponse.html +177 -0
- package/doc/interfaces/models.GetDataProcessorResponse.html +176 -0
- package/doc/interfaces/models.GetDevicesRequest.html +177 -0
- package/doc/interfaces/models.GetDevicesResponse.html +176 -0
- package/doc/interfaces/models.GetFrameDefinitionsFromDatabaseFilesRequest.html +178 -0
- package/doc/interfaces/models.GetLicensesResponse.html +177 -0
- package/doc/interfaces/models.GetLogFileFormatsRequest.html +180 -0
- package/doc/interfaces/models.GetLogFileFormatsResponse.html +183 -0
- package/doc/interfaces/models.GetLogLevelResponse.html +177 -0
- package/doc/interfaces/models.GetScheduleTablesFromDatabaseFilesRequest.html +178 -0
- package/doc/interfaces/models.GetScheduleTablesFromDatabaseFilesResponse.html +177 -0
- package/doc/interfaces/models.GetServiceExtensionInfoRequest.html +181 -0
- package/doc/interfaces/models.GetServiceExtensionInfoResponse.html +187 -0
- package/doc/interfaces/models.GetSignalDataFromMessageDataRequest.html +180 -0
- package/doc/interfaces/models.GetSignalDataFromMessageDataResponse.html +177 -0
- package/doc/interfaces/models.GetSourceResponse.html +176 -0
- package/doc/interfaces/models.GetTargetResponse.html +176 -0
- package/doc/interfaces/models.ILogFileFormat.html +179 -0
- package/doc/interfaces/models.IProject.html +179 -0
- package/doc/interfaces/models.IUserSettings.html +187 -0
- package/doc/interfaces/models.IWorkspaceComponentPaneData.html +177 -0
- package/doc/interfaces/models.IWorkspaceContainerPaneData.html +178 -0
- package/doc/interfaces/models.IWorkspaceData.html +178 -0
- package/doc/interfaces/models.IWorkspacePaneData.html +178 -0
- package/doc/interfaces/models.IdentifierRequest.html +178 -0
- package/doc/interfaces/models.IdentifiersRequest.html +178 -0
- package/doc/interfaces/models.InstallServiceExtensionRequest.html +181 -0
- package/doc/interfaces/models.InterpreterSettings.html +177 -0
- package/doc/interfaces/models.J1939InterpreterSettings.html +175 -0
- package/doc/interfaces/models.LicenseInformation.html +191 -0
- package/doc/interfaces/models.Licenses.html +177 -0
- package/doc/interfaces/models.LinChannelConfiguration.html +185 -0
- package/doc/interfaces/models.LinFrameFlags.html +177 -0
- package/doc/interfaces/models.LogMessage.html +185 -0
- package/doc/interfaces/models.LogMessages.html +177 -0
- package/doc/interfaces/models.LogReplaySettings.html +199 -0
- package/doc/interfaces/models.LogReplaySettings_ChannelIdentifiersEntry.html +176 -0
- package/doc/interfaces/models.LogReplayStatus.html +176 -0
- package/doc/interfaces/models.MeasurementEventArgs.html +179 -0
- package/doc/interfaces/models.MeasurementSetup.html +179 -0
- package/doc/interfaces/models.MessageLoggerSettings.html +213 -0
- package/doc/interfaces/models.MessageLoggerStatus.html +176 -0
- package/doc/interfaces/models.NodeStatus.html +191 -0
- package/doc/interfaces/models.NodeStatuses.html +176 -0
- package/doc/interfaces/models.OnlineStatus.html +176 -0
- package/doc/interfaces/models.PeriodicTransmissionSettings.html +209 -0
- package/doc/interfaces/models.RequestLinMessageRequest.html +180 -0
- package/doc/interfaces/models.ScheduleTable.html +181 -0
- package/doc/interfaces/models.ScheduleTableEntry.html +179 -0
- package/doc/interfaces/models.SendLinWakeupFrameRequest.html +182 -0
- package/doc/interfaces/models.SendMessageRequest.html +178 -0
- package/doc/interfaces/models.ServiceExtensionSettings.html +177 -0
- package/doc/interfaces/models.SetLogLevelRequest.html +179 -0
- package/doc/interfaces/models.SetMeasurementSetupRequest.html +177 -0
- package/doc/interfaces/models.SetSignalDataToMessageDataRequest.html +182 -0
- package/doc/interfaces/models.SetSignalDataToMessageDataResponse.html +180 -0
- package/doc/interfaces/models.SignalDefinition.html +188 -0
- package/doc/interfaces/models.SignalDefinition_EnumValuesEntry.html +176 -0
- package/doc/interfaces/models.SignalDefinitions.html +175 -0
- package/doc/interfaces/models.SignalValue.html +180 -0
- package/doc/interfaces/models.SignalValueTrigger.html +189 -0
- package/doc/interfaces/models.SourceNodeProperties.html +180 -0
- package/doc/interfaces/models.StartPeriodicTransmissionRequest.html +178 -0
- package/doc/interfaces/models.StartPeriodicTransmissionResponse.html +176 -0
- package/doc/interfaces/models.TargetNodeProperties.html +178 -0
- package/doc/interfaces/models.TriggerSettings.html +181 -0
- package/doc/interfaces/models.UninstallServiceExtensionRequest.html +179 -0
- package/doc/interfaces/models.UpdateLinMessageRequest.html +181 -0
- package/doc/interfaces/models.WriteFrame.html +183 -0
- package/doc/modules/controls.html +242 -0
- package/doc/modules/hooks.html +201 -0
- package/doc/modules/icons.html +216 -0
- package/doc/modules/ipc.html +202 -0
- package/doc/modules/models.html +478 -0
- package/doc/modules.html +179 -0
- package/doc/types/controls.ContextMenuOption.html +179 -0
- package/doc/types/controls.SelectOption.html +177 -0
- package/doc/types/controls.StringsMap.html +175 -0
- package/doc/types/controls.canIdentifierType.html +175 -0
- package/doc/types/models.IReadOnlyDataBuffer.html +174 -0
- package/doc/types/models.themes.html +174 -0
- package/doc/variables/models.AboutInformation-1.html +174 -0
- package/doc/variables/models.ActivateLicenseRequest-1.html +174 -0
- package/doc/variables/models.AddAllConnectedCanChannelsRequest-1.html +174 -0
- package/doc/variables/models.AddAllConnectedLinChannelsRequest-1.html +174 -0
- package/doc/variables/models.AddOrUpdateDataProcessorRequest-1.html +174 -0
- package/doc/variables/models.AddOrUpdateSourceRequest-1.html +174 -0
- package/doc/variables/models.AddOrUpdateTargetRequest-1.html +174 -0
- package/doc/variables/models.ApiPreferences-1.html +174 -0
- package/doc/variables/models.AppEventArgs-1.html +174 -0
- package/doc/variables/models.BaseNodeProperties-1.html +174 -0
- package/doc/variables/models.BusStatus-1.html +174 -0
- package/doc/variables/models.CanBusParamLimits-1.html +174 -0
- package/doc/variables/models.CanBusParams-1.html +174 -0
- package/doc/variables/models.CanBusSpeed-1.html +174 -0
- package/doc/variables/models.CanBusSpeedInfo-1.html +174 -0
- package/doc/variables/models.CanChannelCapacity-1.html +174 -0
- package/doc/variables/models.CanChannelConfiguration-1.html +174 -0
- package/doc/variables/models.CanFDBusSpeedCombination-1.html +174 -0
- package/doc/variables/models.CanFDBusSpeedInfo-1.html +174 -0
- package/doc/variables/models.CanFrameFlags-1.html +174 -0
- package/doc/variables/models.CanMessageFilterSettings-1.html +174 -0
- package/doc/variables/models.Channel-1.html +174 -0
- package/doc/variables/models.ChannelSettings-1.html +174 -0
- package/doc/variables/models.ClearLinMessageRequest-1.html +174 -0
- package/doc/variables/models.ConnectNodesRequest-1.html +174 -0
- package/doc/variables/models.DataProcessingStatus-1.html +174 -0
- package/doc/variables/models.DataProcessorNodeProperties-1.html +174 -0
- package/doc/variables/models.DatabasesSettings-1.html +174 -0
- package/doc/variables/models.Device-1.html +174 -0
- package/doc/variables/models.DeviceEventArgs-1.html +174 -0
- package/doc/variables/models.Devices-1.html +174 -0
- package/doc/variables/models.DisconnectNodesRequest-1.html +174 -0
- package/doc/variables/models.Empty-1.html +174 -0
- package/doc/variables/models.ErrorStatus-1.html +174 -0
- package/doc/variables/models.Frame-1.html +174 -0
- package/doc/variables/models.FrameDefinition-1.html +174 -0
- package/doc/variables/models.FrameDefinitions-1.html +174 -0
- package/doc/variables/models.FramePropertyValue-1.html +174 -0
- package/doc/variables/models.FrameReceivedTrigger-1.html +174 -0
- package/doc/variables/models.Frame_PropertiesEntry-1.html +174 -0
- package/doc/variables/models.Frames-1.html +174 -0
- package/doc/variables/models.GetCanChannelBusSpeedsRequest-1.html +174 -0
- package/doc/variables/models.GetCanChannelBusSpeedsResponse-1.html +174 -0
- package/doc/variables/models.GetCanFdBusSpeedsRequest-1.html +174 -0
- package/doc/variables/models.GetCanFdBusSpeedsResponse-1.html +174 -0
- package/doc/variables/models.GetChannelsFromLogFileRequest-1.html +174 -0
- package/doc/variables/models.GetChannelsFromLogFileResponse-1.html +174 -0
- package/doc/variables/models.GetClassicCanBusSpeedsRequest-1.html +174 -0
- package/doc/variables/models.GetClassicCanBusSpeedsResponse-1.html +174 -0
- package/doc/variables/models.GetDataProcessorResponse-1.html +174 -0
- package/doc/variables/models.GetDevicesRequest-1.html +174 -0
- package/doc/variables/models.GetDevicesResponse-1.html +174 -0
- package/doc/variables/models.GetFrameDefinitionsFromDatabaseFilesRequest-1.html +174 -0
- package/doc/variables/models.GetLicensesResponse-1.html +174 -0
- package/doc/variables/models.GetLogFileFormatsRequest-1.html +174 -0
- package/doc/variables/models.GetLogFileFormatsResponse-1.html +174 -0
- package/doc/variables/models.GetLogLevelResponse-1.html +174 -0
- package/doc/variables/models.GetScheduleTablesFromDatabaseFilesRequest-1.html +174 -0
- package/doc/variables/models.GetScheduleTablesFromDatabaseFilesResponse-1.html +174 -0
- package/doc/variables/models.GetServiceExtensionInfoRequest-1.html +174 -0
- package/doc/variables/models.GetServiceExtensionInfoResponse-1.html +174 -0
- package/doc/variables/models.GetSignalDataFromMessageDataRequest-1.html +174 -0
- package/doc/variables/models.GetSignalDataFromMessageDataResponse-1.html +174 -0
- package/doc/variables/models.GetSourceResponse-1.html +174 -0
- package/doc/variables/models.GetTargetResponse-1.html +174 -0
- package/doc/variables/models.IdentifierRequest-1.html +174 -0
- package/doc/variables/models.IdentifiersRequest-1.html +174 -0
- package/doc/variables/models.InstallServiceExtensionRequest-1.html +174 -0
- package/doc/variables/models.InterpreterSettings-1.html +174 -0
- package/doc/variables/models.J1939InterpreterSettings-1.html +174 -0
- package/doc/variables/models.LicenseInformation-1.html +174 -0
- package/doc/variables/models.Licenses-1.html +174 -0
- package/doc/variables/models.LinChannelConfiguration-1.html +174 -0
- package/doc/variables/models.LinFrameFlags-1.html +174 -0
- package/doc/variables/models.LogMessage-1.html +174 -0
- package/doc/variables/models.LogMessages-1.html +174 -0
- package/doc/variables/models.LogReplaySettings-1.html +174 -0
- package/doc/variables/models.LogReplaySettings_ChannelIdentifiersEntry-1.html +174 -0
- package/doc/variables/models.LogReplayStatus-1.html +174 -0
- package/doc/variables/models.MeasurementEventArgs-1.html +174 -0
- package/doc/variables/models.MeasurementSetup-1.html +174 -0
- package/doc/variables/models.MessageLoggerSettings-1.html +174 -0
- package/doc/variables/models.MessageLoggerStatus-1.html +174 -0
- package/doc/variables/models.NodeStatus-1.html +174 -0
- package/doc/variables/models.NodeStatuses-1.html +174 -0
- package/doc/variables/models.OnlineStatus-1.html +174 -0
- package/doc/variables/models.PeriodicTransmissionSettings-1.html +174 -0
- package/doc/variables/models.RequestLinMessageRequest-1.html +174 -0
- package/doc/variables/models.ScheduleTable-1.html +174 -0
- package/doc/variables/models.ScheduleTableEntry-1.html +174 -0
- package/doc/variables/models.SendLinWakeupFrameRequest-1.html +174 -0
- package/doc/variables/models.SendMessageRequest-1.html +174 -0
- package/doc/variables/models.ServiceExtensionSettings-1.html +174 -0
- package/doc/variables/models.SetLogLevelRequest-1.html +174 -0
- package/doc/variables/models.SetMeasurementSetupRequest-1.html +174 -0
- package/doc/variables/models.SetSignalDataToMessageDataRequest-1.html +174 -0
- package/doc/variables/models.SetSignalDataToMessageDataResponse-1.html +174 -0
- package/doc/variables/models.SignalDefinition-1.html +174 -0
- package/doc/variables/models.SignalDefinition_EnumValuesEntry-1.html +174 -0
- package/doc/variables/models.SignalDefinitions-1.html +174 -0
- package/doc/variables/models.SignalValue-1.html +174 -0
- package/doc/variables/models.SignalValueTrigger-1.html +174 -0
- package/doc/variables/models.SourceNodeProperties-1.html +174 -0
- package/doc/variables/models.StartPeriodicTransmissionRequest-1.html +174 -0
- package/doc/variables/models.StartPeriodicTransmissionResponse-1.html +174 -0
- package/doc/variables/models.TargetNodeProperties-1.html +174 -0
- package/doc/variables/models.TriggerSettings-1.html +174 -0
- package/doc/variables/models.UninstallServiceExtensionRequest-1.html +174 -0
- package/doc/variables/models.UpdateLinMessageRequest-1.html +174 -0
- package/doc/variables/models.WriteFrame-1.html +174 -0
- package/doc/variables/models.defaultUserSettings.html +175 -0
- package/package.json +129 -0
- package/scripts/createCanKingExtension.js +403 -0
- package/scripts/index.js +39 -0
- package/scripts/template/_.eslintrc.cjs +38 -0
- package/scripts/template/_.gitignore +24 -0
- package/scripts/template/_.npmrc +2 -0
- package/scripts/template/_.prettierrc +8 -0
- package/scripts/template/_.vscode/_launch.json +28 -0
- package/scripts/template/_index.html +15 -0
- package/scripts/template/_tsconfig.app.json +27 -0
- package/scripts/template/_tsconfig.json +11 -0
- package/scripts/template/_tsconfig.node.json +13 -0
- package/scripts/template/_vite.config.ts +7 -0
- package/scripts/template/src/App.tsx +12 -0
- package/scripts/template/src/WorkspaceView/index.tsx +47 -0
- package/scripts/template/src/main.css +9 -0
- package/scripts/template/src/main.tsx +19 -0
- package/scripts/template/src/vite-env.d.ts +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a=require("./measurement_settings.js"),d=require("long");function F(){return{}}const or={encode(e,r=new a.BinaryWriter){return r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=F();for(;n.pos<o;){const i=n.uint32();if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{}},toJSON(e){return{}},create(e){return or.fromPartial(e??{})},fromPartial(e){return F()}};function U(){return{version:"",language:"",useHexNumericBase:!1,username:""}}const s={encode(e,r=new a.BinaryWriter){return e.version!==""&&r.uint32(10).string(e.version),e.language!==""&&r.uint32(18).string(e.language),e.useHexNumericBase!==!1&&r.uint32(24).bool(e.useHexNumericBase),e.username!==""&&r.uint32(34).string(e.username),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=U();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.version=n.string();continue}case 2:{if(i!==18)break;t.language=n.string();continue}case 3:{if(i!==24)break;t.useHexNumericBase=n.bool();continue}case 4:{if(i!==34)break;t.username=n.string();continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{version:J(e.version)?globalThis.String(e.version):"",language:J(e.language)?globalThis.String(e.language):"",useHexNumericBase:J(e.useHexNumericBase)?globalThis.Boolean(e.useHexNumericBase):!1,username:J(e.username)?globalThis.String(e.username):""}},toJSON(e){const r={};return e.version!==""&&(r.version=e.version),e.language!==""&&(r.language=e.language),e.useHexNumericBase!==!1&&(r.useHexNumericBase=e.useHexNumericBase),e.username!==""&&(r.username=e.username),r},create(e){return s.fromPartial(e??{})},fromPartial(e){const r=U();return r.version=e.version??"",r.language=e.language??"",r.useHexNumericBase=e.useHexNumericBase??!1,r.username=e.username??"",r}};function J(e){return e!=null}var sr=(e=>(e[e.LOG_LEVEL_TRACE=0]="LOG_LEVEL_TRACE",e[e.LOG_LEVEL_DEBUG=1]="LOG_LEVEL_DEBUG",e[e.LOG_LEVEL_INFORMATION=2]="LOG_LEVEL_INFORMATION",e[e.LOG_LEVEL_WARNING=3]="LOG_LEVEL_WARNING",e[e.LOG_LEVEL_ERROR=4]="LOG_LEVEL_ERROR",e[e.LOG_LEVEL_CRITICAL=5]="LOG_LEVEL_CRITICAL",e[e.LOG_LEVEL_NONE=6]="LOG_LEVEL_NONE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(sr||{});function x(e){switch(e){case 0:case"LOG_LEVEL_TRACE":return 0;case 1:case"LOG_LEVEL_DEBUG":return 1;case 2:case"LOG_LEVEL_INFORMATION":return 2;case 3:case"LOG_LEVEL_WARNING":return 3;case 4:case"LOG_LEVEL_ERROR":return 4;case 5:case"LOG_LEVEL_CRITICAL":return 5;case 6:case"LOG_LEVEL_NONE":return 6;case-1:case"UNRECOGNIZED":default:return-1}}function G(e){switch(e){case 0:return"LOG_LEVEL_TRACE";case 1:return"LOG_LEVEL_DEBUG";case 2:return"LOG_LEVEL_INFORMATION";case 3:return"LOG_LEVEL_WARNING";case 4:return"LOG_LEVEL_ERROR";case 5:return"LOG_LEVEL_CRITICAL";case 6:return"LOG_LEVEL_NONE";case-1:default:return"UNRECOGNIZED"}}var ur=(e=>(e[e.APP_EVENT_UNSPECIFIED=0]="APP_EVENT_UNSPECIFIED",e[e.APP_EVENT_LICENSE_INFO_CHANGED=1]="APP_EVENT_LICENSE_INFO_CHANGED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(ur||{});function cr(e){switch(e){case 0:case"APP_EVENT_UNSPECIFIED":return 0;case 1:case"APP_EVENT_LICENSE_INFO_CHANGED":return 1;case-1:case"UNRECOGNIZED":default:return-1}}function dr(e){switch(e){case 0:return"APP_EVENT_UNSPECIFIED";case 1:return"APP_EVENT_LICENSE_INFO_CHANGED";case-1:default:return"UNRECOGNIZED"}}function q(){return{preferences:void 0,logLevel:0}}const fr={encode(e,r=new a.BinaryWriter){return e.preferences!==void 0&&s.encode(e.preferences,r.uint32(10).fork()).join(),e.logLevel!==0&&r.uint32(16).int32(e.logLevel),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=q();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=s.decode(n,n.uint32());continue}case 2:{if(i!==16)break;t.logLevel=n.int32();continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{preferences:f(e.preferences)?s.fromJSON(e.preferences):void 0,logLevel:f(e.logLevel)?x(e.logLevel):0}},toJSON(e){const r={};return e.preferences!==void 0&&(r.preferences=s.toJSON(e.preferences)),e.logLevel!==0&&(r.logLevel=G(e.logLevel)),r},create(e){return fr.fromPartial(e??{})},fromPartial(e){const r=q();return r.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,r.logLevel=e.logLevel??0,r}};function W(){return{logLevel:0}}const lr={encode(e,r=new a.BinaryWriter){return e.logLevel!==0&&r.uint32(8).int32(e.logLevel),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=W();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==8)break;t.logLevel=n.int32();continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{logLevel:f(e.logLevel)?x(e.logLevel):0}},toJSON(e){const r={};return e.logLevel!==0&&(r.logLevel=G(e.logLevel)),r},create(e){return lr.fromPartial(e??{})},fromPartial(e){const r=W();return r.logLevel=e.logLevel??0,r}};function H(){return{time:d.ZERO,logLevel:0,eventId:0,categoryName:"",message:""}}const h={encode(e,r=new a.BinaryWriter){return e.time.equals(d.ZERO)||r.uint32(8).int64(e.time.toString()),e.logLevel!==0&&r.uint32(16).int32(e.logLevel),e.eventId!==0&&r.uint32(24).int32(e.eventId),e.categoryName!==""&&r.uint32(34).string(e.categoryName),e.message!==""&&r.uint32(42).string(e.message),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=H();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==8)break;t.time=d.fromString(n.int64().toString());continue}case 2:{if(i!==16)break;t.logLevel=n.int32();continue}case 3:{if(i!==24)break;t.eventId=n.int32();continue}case 4:{if(i!==34)break;t.categoryName=n.string();continue}case 5:{if(i!==42)break;t.message=n.string();continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{time:f(e.time)?d.fromValue(e.time):d.ZERO,logLevel:f(e.logLevel)?x(e.logLevel):0,eventId:f(e.eventId)?globalThis.Number(e.eventId):0,categoryName:f(e.categoryName)?globalThis.String(e.categoryName):"",message:f(e.message)?globalThis.String(e.message):""}},toJSON(e){const r={};return e.time.equals(d.ZERO)||(r.time=(e.time||d.ZERO).toString()),e.logLevel!==0&&(r.logLevel=G(e.logLevel)),e.eventId!==0&&(r.eventId=Math.round(e.eventId)),e.categoryName!==""&&(r.categoryName=e.categoryName),e.message!==""&&(r.message=e.message),r},create(e){return h.fromPartial(e??{})},fromPartial(e){const r=H();return r.time=e.time!==void 0&&e.time!==null?d.fromValue(e.time):d.ZERO,r.logLevel=e.logLevel??0,r.eventId=e.eventId??0,r.categoryName=e.categoryName??"",r.message=e.message??"",r}};function w(){return{items:[]}}const pr={encode(e,r=new a.BinaryWriter){for(const n of e.items)h.encode(n,r.uint32(10).fork()).join();return r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=w();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.items.push(h.decode(n,n.uint32()));continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{items:globalThis.Array.isArray(e==null?void 0:e.items)?e.items.map(r=>h.fromJSON(r)):[]}},toJSON(e){var n;const r={};return(n=e.items)!=null&&n.length&&(r.items=e.items.map(o=>h.toJSON(o))),r},create(e){return pr.fromPartial(e??{})},fromPartial(e){var n;const r=w();return r.items=((n=e.items)==null?void 0:n.map(o=>h.fromPartial(o)))||[],r}};function Z(){return{licenseKey:"",productId:"",productName:"",productVersion:"",instanceId:"",instanceName:"",expirationDate:d.ZERO,isValid:!1}}const m={encode(e,r=new a.BinaryWriter){return e.licenseKey!==""&&r.uint32(10).string(e.licenseKey),e.productId!==""&&r.uint32(18).string(e.productId),e.productName!==""&&r.uint32(26).string(e.productName),e.productVersion!==""&&r.uint32(34).string(e.productVersion),e.instanceId!==""&&r.uint32(42).string(e.instanceId),e.instanceName!==""&&r.uint32(50).string(e.instanceName),e.expirationDate.equals(d.ZERO)||r.uint32(56).int64(e.expirationDate.toString()),e.isValid!==!1&&r.uint32(64).bool(e.isValid),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=Z();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.licenseKey=n.string();continue}case 2:{if(i!==18)break;t.productId=n.string();continue}case 3:{if(i!==26)break;t.productName=n.string();continue}case 4:{if(i!==34)break;t.productVersion=n.string();continue}case 5:{if(i!==42)break;t.instanceId=n.string();continue}case 6:{if(i!==50)break;t.instanceName=n.string();continue}case 7:{if(i!==56)break;t.expirationDate=d.fromString(n.int64().toString());continue}case 8:{if(i!==64)break;t.isValid=n.bool();continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{licenseKey:f(e.licenseKey)?globalThis.String(e.licenseKey):"",productId:f(e.productId)?globalThis.String(e.productId):"",productName:f(e.productName)?globalThis.String(e.productName):"",productVersion:f(e.productVersion)?globalThis.String(e.productVersion):"",instanceId:f(e.instanceId)?globalThis.String(e.instanceId):"",instanceName:f(e.instanceName)?globalThis.String(e.instanceName):"",expirationDate:f(e.expirationDate)?d.fromValue(e.expirationDate):d.ZERO,isValid:f(e.isValid)?globalThis.Boolean(e.isValid):!1}},toJSON(e){const r={};return e.licenseKey!==""&&(r.licenseKey=e.licenseKey),e.productId!==""&&(r.productId=e.productId),e.productName!==""&&(r.productName=e.productName),e.productVersion!==""&&(r.productVersion=e.productVersion),e.instanceId!==""&&(r.instanceId=e.instanceId),e.instanceName!==""&&(r.instanceName=e.instanceName),e.expirationDate.equals(d.ZERO)||(r.expirationDate=(e.expirationDate||d.ZERO).toString()),e.isValid!==!1&&(r.isValid=e.isValid),r},create(e){return m.fromPartial(e??{})},fromPartial(e){const r=Z();return r.licenseKey=e.licenseKey??"",r.productId=e.productId??"",r.productName=e.productName??"",r.productVersion=e.productVersion??"",r.instanceId=e.instanceId??"",r.instanceName=e.instanceName??"",r.expirationDate=e.expirationDate!==void 0&&e.expirationDate!==null?d.fromValue(e.expirationDate):d.ZERO,r.isValid=e.isValid??!1,r}};function K(){return{items:[]}}const O={encode(e,r=new a.BinaryWriter){for(const n of e.items)m.encode(n,r.uint32(10).fork()).join();return r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=K();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.items.push(m.decode(n,n.uint32()));continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{items:globalThis.Array.isArray(e==null?void 0:e.items)?e.items.map(r=>m.fromJSON(r)):[]}},toJSON(e){var n;const r={};return(n=e.items)!=null&&n.length&&(r.items=e.items.map(o=>m.toJSON(o))),r},create(e){return O.fromPartial(e??{})},fromPartial(e){var n;const r=K();return r.items=((n=e.items)==null?void 0:n.map(o=>m.fromPartial(o)))||[],r}};function Q(){return{eventType:0,licenses:void 0}}const Nr={encode(e,r=new a.BinaryWriter){return e.eventType!==0&&r.uint32(8).int32(e.eventType),e.licenses!==void 0&&O.encode(e.licenses,r.uint32(18).fork()).join(),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=Q();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==8)break;t.eventType=n.int32();continue}case 2:{if(i!==18)break;t.licenses=O.decode(n,n.uint32());continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{eventType:f(e.eventType)?cr(e.eventType):0,licenses:f(e.licenses)?O.fromJSON(e.licenses):void 0}},toJSON(e){const r={};return e.eventType!==0&&(r.eventType=dr(e.eventType)),e.licenses!==void 0&&(r.licenses=O.toJSON(e.licenses)),r},create(e){return Nr.fromPartial(e??{})},fromPartial(e){const r=Q();return r.eventType=e.eventType??0,r.licenses=e.licenses!==void 0&&e.licenses!==null?O.fromPartial(e.licenses):void 0,r}};function Y(){return{preferences:void 0,filePath:"",replaceExisting:void 0}}const Sr={encode(e,r=new a.BinaryWriter){return e.preferences!==void 0&&s.encode(e.preferences,r.uint32(10).fork()).join(),e.filePath!==""&&r.uint32(18).string(e.filePath),e.replaceExisting!==void 0&&r.uint32(24).bool(e.replaceExisting),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=Y();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=s.decode(n,n.uint32());continue}case 2:{if(i!==18)break;t.filePath=n.string();continue}case 3:{if(i!==24)break;t.replaceExisting=n.bool();continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{preferences:f(e.preferences)?s.fromJSON(e.preferences):void 0,filePath:f(e.filePath)?globalThis.String(e.filePath):"",replaceExisting:f(e.replaceExisting)?globalThis.Boolean(e.replaceExisting):void 0}},toJSON(e){const r={};return e.preferences!==void 0&&(r.preferences=s.toJSON(e.preferences)),e.filePath!==""&&(r.filePath=e.filePath),e.replaceExisting!==void 0&&(r.replaceExisting=e.replaceExisting),r},create(e){return Sr.fromPartial(e??{})},fromPartial(e){const r=Y();return r.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,r.filePath=e.filePath??"",r.replaceExisting=e.replaceExisting??void 0,r}};function X(){return{preferences:void 0,name:""}}const mr={encode(e,r=new a.BinaryWriter){return e.preferences!==void 0&&s.encode(e.preferences,r.uint32(10).fork()).join(),e.name!==""&&r.uint32(18).string(e.name),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=X();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=s.decode(n,n.uint32());continue}case 2:{if(i!==18)break;t.name=n.string();continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{preferences:f(e.preferences)?s.fromJSON(e.preferences):void 0,name:f(e.name)?globalThis.String(e.name):""}},toJSON(e){const r={};return e.preferences!==void 0&&(r.preferences=s.toJSON(e.preferences)),e.name!==""&&(r.name=e.name),r},create(e){return mr.fromPartial(e??{})},fromPartial(e){const r=X();return r.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,r.name=e.name??"",r}};function $(){return{preferences:void 0,filePathOrName:""}}const Er={encode(e,r=new a.BinaryWriter){return e.preferences!==void 0&&s.encode(e.preferences,r.uint32(10).fork()).join(),e.filePathOrName!==""&&r.uint32(18).string(e.filePathOrName),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=$();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=s.decode(n,n.uint32());continue}case 2:{if(i!==18)break;t.filePathOrName=n.string();continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{preferences:f(e.preferences)?s.fromJSON(e.preferences):void 0,filePathOrName:f(e.filePathOrName)?globalThis.String(e.filePathOrName):""}},toJSON(e){const r={};return e.preferences!==void 0&&(r.preferences=s.toJSON(e.preferences)),e.filePathOrName!==""&&(r.filePathOrName=e.filePathOrName),r},create(e){return Er.fromPartial(e??{})},fromPartial(e){const r=$();return r.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,r.filePathOrName=e.filePathOrName??"",r}};function z(){return{name:"",displayName:"",description:"",version:"",author:"",defaultConfig:""}}const vr={encode(e,r=new a.BinaryWriter){return e.name!==""&&r.uint32(10).string(e.name),e.displayName!==""&&r.uint32(18).string(e.displayName),e.description!==""&&r.uint32(26).string(e.description),e.version!==""&&r.uint32(34).string(e.version),e.author!==""&&r.uint32(42).string(e.author),e.defaultConfig!==""&&r.uint32(50).string(e.defaultConfig),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=z();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.name=n.string();continue}case 2:{if(i!==18)break;t.displayName=n.string();continue}case 3:{if(i!==26)break;t.description=n.string();continue}case 4:{if(i!==34)break;t.version=n.string();continue}case 5:{if(i!==42)break;t.author=n.string();continue}case 6:{if(i!==50)break;t.defaultConfig=n.string();continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{name:f(e.name)?globalThis.String(e.name):"",displayName:f(e.displayName)?globalThis.String(e.displayName):"",description:f(e.description)?globalThis.String(e.description):"",version:f(e.version)?globalThis.String(e.version):"",author:f(e.author)?globalThis.String(e.author):"",defaultConfig:f(e.defaultConfig)?globalThis.String(e.defaultConfig):""}},toJSON(e){const r={};return e.name!==""&&(r.name=e.name),e.displayName!==""&&(r.displayName=e.displayName),e.description!==""&&(r.description=e.description),e.version!==""&&(r.version=e.version),e.author!==""&&(r.author=e.author),e.defaultConfig!==""&&(r.defaultConfig=e.defaultConfig),r},create(e){return vr.fromPartial(e??{})},fromPartial(e){const r=z();return r.name=e.name??"",r.displayName=e.displayName??"",r.description=e.description??"",r.version=e.version??"",r.author=e.author??"",r.defaultConfig=e.defaultConfig??"",r}};function j(){return{licenses:[]}}const Pr={encode(e,r=new a.BinaryWriter){for(const n of e.licenses)m.encode(n,r.uint32(10).fork()).join();return r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=j();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.licenses.push(m.decode(n,n.uint32()));continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{licenses:globalThis.Array.isArray(e==null?void 0:e.licenses)?e.licenses.map(r=>m.fromJSON(r)):[]}},toJSON(e){var n;const r={};return(n=e.licenses)!=null&&n.length&&(r.licenses=e.licenses.map(o=>m.toJSON(o))),r},create(e){return Pr.fromPartial(e??{})},fromPartial(e){var n;const r=j();return r.licenses=((n=e.licenses)==null?void 0:n.map(o=>m.fromPartial(o)))||[],r}};function ee(){return{preferences:void 0,licenseKey:"",productId:""}}const hr={encode(e,r=new a.BinaryWriter){return e.preferences!==void 0&&s.encode(e.preferences,r.uint32(10).fork()).join(),e.licenseKey!==""&&r.uint32(18).string(e.licenseKey),e.productId!==""&&r.uint32(26).string(e.productId),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=ee();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=s.decode(n,n.uint32());continue}case 2:{if(i!==18)break;t.licenseKey=n.string();continue}case 3:{if(i!==26)break;t.productId=n.string();continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{preferences:f(e.preferences)?s.fromJSON(e.preferences):void 0,licenseKey:f(e.licenseKey)?globalThis.String(e.licenseKey):"",productId:f(e.productId)?globalThis.String(e.productId):""}},toJSON(e){const r={};return e.preferences!==void 0&&(r.preferences=s.toJSON(e.preferences)),e.licenseKey!==""&&(r.licenseKey=e.licenseKey),e.productId!==""&&(r.productId=e.productId),r},create(e){return hr.fromPartial(e??{})},fromPartial(e){const r=ee();return r.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,r.licenseKey=e.licenseKey??"",r.productId=e.productId??"",r}};function re(){return{apiVersion:"",serviceVersion:"",canlibVersion:""}}const Or={encode(e,r=new a.BinaryWriter){return e.apiVersion!==""&&r.uint32(10).string(e.apiVersion),e.serviceVersion!==""&&r.uint32(18).string(e.serviceVersion),e.canlibVersion!==""&&r.uint32(26).string(e.canlibVersion),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=re();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.apiVersion=n.string();continue}case 2:{if(i!==18)break;t.serviceVersion=n.string();continue}case 3:{if(i!==26)break;t.canlibVersion=n.string();continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{apiVersion:f(e.apiVersion)?globalThis.String(e.apiVersion):"",serviceVersion:f(e.serviceVersion)?globalThis.String(e.serviceVersion):"",canlibVersion:f(e.canlibVersion)?globalThis.String(e.canlibVersion):""}},toJSON(e){const r={};return e.apiVersion!==""&&(r.apiVersion=e.apiVersion),e.serviceVersion!==""&&(r.serviceVersion=e.serviceVersion),e.canlibVersion!==""&&(r.canlibVersion=e.canlibVersion),r},create(e){return Or.fromPartial(e??{})},fromPartial(e){const r=re();return r.apiVersion=e.apiVersion??"",r.serviceVersion=e.serviceVersion??"",r.canlibVersion=e.canlibVersion??"",r}};function f(e){return e!=null}var Rr=(e=>(e[e.CAN_CHANNEL_CAP_UNSPECIFIED=0]="CAN_CHANNEL_CAP_UNSPECIFIED",e[e.CAN_CHANNEL_CAP_EXTENDED_CAN=1]="CAN_CHANNEL_CAP_EXTENDED_CAN",e[e.CAN_CHANNEL_CAP_BUS_STATISTICS=2]="CAN_CHANNEL_CAP_BUS_STATISTICS",e[e.CAN_CHANNEL_CAP_ERROR_COUNTERS=3]="CAN_CHANNEL_CAP_ERROR_COUNTERS",e[e.CAN_CHANNEL_CAP_GENERATE_ERROR=4]="CAN_CHANNEL_CAP_GENERATE_ERROR",e[e.CAN_CHANNEL_CAP_GENERATE_OVERLOAD=5]="CAN_CHANNEL_CAP_GENERATE_OVERLOAD",e[e.CAN_CHANNEL_CAP_TXREQUEST=6]="CAN_CHANNEL_CAP_TXREQUEST",e[e.CAN_CHANNEL_CAP_TXACKNOWLEDGE=7]="CAN_CHANNEL_CAP_TXACKNOWLEDGE",e[e.CAN_CHANNEL_CAP_VIRTUAL=8]="CAN_CHANNEL_CAP_VIRTUAL",e[e.CAN_CHANNEL_CAP_SIMULATED=9]="CAN_CHANNEL_CAP_SIMULATED",e[e.CAN_CHANNEL_CAP_CAN_FD=10]="CAN_CHANNEL_CAP_CAN_FD",e[e.CAN_CHANNEL_CAP_CAN_FD_NONISO=11]="CAN_CHANNEL_CAP_CAN_FD_NONISO",e[e.CAN_CHANNEL_CAP_SILENT_MODE=12]="CAN_CHANNEL_CAP_SILENT_MODE",e[e.CAN_CHANNEL_CAP_SINGLE_SHOT=13]="CAN_CHANNEL_CAP_SINGLE_SHOT",e[e.CAN_CHANNEL_CAP_LOGGER=14]="CAN_CHANNEL_CAP_LOGGER",e[e.CAN_CHANNEL_CAP_REMOTE_ACCESS=15]="CAN_CHANNEL_CAP_REMOTE_ACCESS",e[e.CAN_CHANNEL_CAP_SCRIPT=16]="CAN_CHANNEL_CAP_SCRIPT",e[e.CAN_CHANNEL_CAP_LIN_HYBRID=17]="CAN_CHANNEL_CAP_LIN_HYBRID",e[e.CAN_CHANNEL_CAP_IO_API=18]="CAN_CHANNEL_CAP_IO_API",e[e.CAN_CHANNEL_CAP_CANTEGRITY=19]="CAN_CHANNEL_CAP_CANTEGRITY",e[e.CAN_CHANNEL_CAP_EX_BUSPARAMS_TQ=20]="CAN_CHANNEL_CAP_EX_BUSPARAMS_TQ",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(Rr||{});function Ar(e){switch(e){case 0:case"CAN_CHANNEL_CAP_UNSPECIFIED":return 0;case 1:case"CAN_CHANNEL_CAP_EXTENDED_CAN":return 1;case 2:case"CAN_CHANNEL_CAP_BUS_STATISTICS":return 2;case 3:case"CAN_CHANNEL_CAP_ERROR_COUNTERS":return 3;case 4:case"CAN_CHANNEL_CAP_GENERATE_ERROR":return 4;case 5:case"CAN_CHANNEL_CAP_GENERATE_OVERLOAD":return 5;case 6:case"CAN_CHANNEL_CAP_TXREQUEST":return 6;case 7:case"CAN_CHANNEL_CAP_TXACKNOWLEDGE":return 7;case 8:case"CAN_CHANNEL_CAP_VIRTUAL":return 8;case 9:case"CAN_CHANNEL_CAP_SIMULATED":return 9;case 10:case"CAN_CHANNEL_CAP_CAN_FD":return 10;case 11:case"CAN_CHANNEL_CAP_CAN_FD_NONISO":return 11;case 12:case"CAN_CHANNEL_CAP_SILENT_MODE":return 12;case 13:case"CAN_CHANNEL_CAP_SINGLE_SHOT":return 13;case 14:case"CAN_CHANNEL_CAP_LOGGER":return 14;case 15:case"CAN_CHANNEL_CAP_REMOTE_ACCESS":return 15;case 16:case"CAN_CHANNEL_CAP_SCRIPT":return 16;case 17:case"CAN_CHANNEL_CAP_LIN_HYBRID":return 17;case 18:case"CAN_CHANNEL_CAP_IO_API":return 18;case 19:case"CAN_CHANNEL_CAP_CANTEGRITY":return 19;case 20:case"CAN_CHANNEL_CAP_EX_BUSPARAMS_TQ":return 20;case-1:case"UNRECOGNIZED":default:return-1}}function Tr(e){switch(e){case 0:return"CAN_CHANNEL_CAP_UNSPECIFIED";case 1:return"CAN_CHANNEL_CAP_EXTENDED_CAN";case 2:return"CAN_CHANNEL_CAP_BUS_STATISTICS";case 3:return"CAN_CHANNEL_CAP_ERROR_COUNTERS";case 4:return"CAN_CHANNEL_CAP_GENERATE_ERROR";case 5:return"CAN_CHANNEL_CAP_GENERATE_OVERLOAD";case 6:return"CAN_CHANNEL_CAP_TXREQUEST";case 7:return"CAN_CHANNEL_CAP_TXACKNOWLEDGE";case 8:return"CAN_CHANNEL_CAP_VIRTUAL";case 9:return"CAN_CHANNEL_CAP_SIMULATED";case 10:return"CAN_CHANNEL_CAP_CAN_FD";case 11:return"CAN_CHANNEL_CAP_CAN_FD_NONISO";case 12:return"CAN_CHANNEL_CAP_SILENT_MODE";case 13:return"CAN_CHANNEL_CAP_SINGLE_SHOT";case 14:return"CAN_CHANNEL_CAP_LOGGER";case 15:return"CAN_CHANNEL_CAP_REMOTE_ACCESS";case 16:return"CAN_CHANNEL_CAP_SCRIPT";case 17:return"CAN_CHANNEL_CAP_LIN_HYBRID";case 18:return"CAN_CHANNEL_CAP_IO_API";case 19:return"CAN_CHANNEL_CAP_CANTEGRITY";case 20:return"CAN_CHANNEL_CAP_EX_BUSPARAMS_TQ";case-1:default:return"UNRECOGNIZED"}}var _r=(e=>(e[e.PROTOCOLS_UNSPECIFIED=0]="PROTOCOLS_UNSPECIFIED",e[e.PROTOCOLS_CAN=1]="PROTOCOLS_CAN",e[e.PROTOCOLS_LIN=2]="PROTOCOLS_LIN",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(_r||{});function b(e){switch(e){case 0:case"PROTOCOLS_UNSPECIFIED":return 0;case 1:case"PROTOCOLS_CAN":return 1;case 2:case"PROTOCOLS_LIN":return 2;case-1:case"UNRECOGNIZED":default:return-1}}function V(e){switch(e){case 0:return"PROTOCOLS_UNSPECIFIED";case 1:return"PROTOCOLS_CAN";case 2:return"PROTOCOLS_LIN";case-1:default:return"UNRECOGNIZED"}}var Cr=(e=>(e[e.DEVICE_EVENT_UNSPECIFIED=0]="DEVICE_EVENT_UNSPECIFIED",e[e.DEVICE_EVENT_DEVICES_CHANGED=1]="DEVICE_EVENT_DEVICES_CHANGED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(Cr||{});function kr(e){switch(e){case 0:case"DEVICE_EVENT_UNSPECIFIED":return 0;case 1:case"DEVICE_EVENT_DEVICES_CHANGED":return 1;case-1:case"UNRECOGNIZED":default:return-1}}function gr(e){switch(e){case 0:return"DEVICE_EVENT_UNSPECIFIED";case 1:return"DEVICE_EVENT_DEVICES_CHANGED";case-1:default:return"UNRECOGNIZED"}}function ne(){return{tq:0,phase1:0,phase2:0,sjw:0,prop:0,prescaler:0}}const N={encode(e,r=new a.BinaryWriter){return e.tq!==0&&r.uint32(8).int32(e.tq),e.phase1!==0&&r.uint32(16).int32(e.phase1),e.phase2!==0&&r.uint32(24).int32(e.phase2),e.sjw!==0&&r.uint32(32).int32(e.sjw),e.prop!==0&&r.uint32(40).int32(e.prop),e.prescaler!==0&&r.uint32(48).int32(e.prescaler),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=ne();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==8)break;t.tq=n.int32();continue}case 2:{if(i!==16)break;t.phase1=n.int32();continue}case 3:{if(i!==24)break;t.phase2=n.int32();continue}case 4:{if(i!==32)break;t.sjw=n.int32();continue}case 5:{if(i!==40)break;t.prop=n.int32();continue}case 6:{if(i!==48)break;t.prescaler=n.int32();continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{tq:c(e.tq)?globalThis.Number(e.tq):0,phase1:c(e.phase1)?globalThis.Number(e.phase1):0,phase2:c(e.phase2)?globalThis.Number(e.phase2):0,sjw:c(e.sjw)?globalThis.Number(e.sjw):0,prop:c(e.prop)?globalThis.Number(e.prop):0,prescaler:c(e.prescaler)?globalThis.Number(e.prescaler):0}},toJSON(e){const r={};return e.tq!==0&&(r.tq=Math.round(e.tq)),e.phase1!==0&&(r.phase1=Math.round(e.phase1)),e.phase2!==0&&(r.phase2=Math.round(e.phase2)),e.sjw!==0&&(r.sjw=Math.round(e.sjw)),e.prop!==0&&(r.prop=Math.round(e.prop)),e.prescaler!==0&&(r.prescaler=Math.round(e.prescaler)),r},create(e){return N.fromPartial(e??{})},fromPartial(e){const r=ne();return r.tq=e.tq??0,r.phase1=e.phase1??0,r.phase2=e.phase2??0,r.sjw=e.sjw??0,r.prop=e.prop??0,r.prescaler=e.prescaler??0,r}};function ie(){return{arbitrationMin:void 0,arbitrationMax:void 0,dataMin:void 0,dataMax:void 0,isValid:!1}}const R={encode(e,r=new a.BinaryWriter){return e.arbitrationMin!==void 0&&N.encode(e.arbitrationMin,r.uint32(10).fork()).join(),e.arbitrationMax!==void 0&&N.encode(e.arbitrationMax,r.uint32(18).fork()).join(),e.dataMin!==void 0&&N.encode(e.dataMin,r.uint32(26).fork()).join(),e.dataMax!==void 0&&N.encode(e.dataMax,r.uint32(34).fork()).join(),e.isValid!==!1&&r.uint32(40).bool(e.isValid),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=ie();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.arbitrationMin=N.decode(n,n.uint32());continue}case 2:{if(i!==18)break;t.arbitrationMax=N.decode(n,n.uint32());continue}case 3:{if(i!==26)break;t.dataMin=N.decode(n,n.uint32());continue}case 4:{if(i!==34)break;t.dataMax=N.decode(n,n.uint32());continue}case 5:{if(i!==40)break;t.isValid=n.bool();continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{arbitrationMin:c(e.arbitrationMin)?N.fromJSON(e.arbitrationMin):void 0,arbitrationMax:c(e.arbitrationMax)?N.fromJSON(e.arbitrationMax):void 0,dataMin:c(e.dataMin)?N.fromJSON(e.dataMin):void 0,dataMax:c(e.dataMax)?N.fromJSON(e.dataMax):void 0,isValid:c(e.isValid)?globalThis.Boolean(e.isValid):!1}},toJSON(e){const r={};return e.arbitrationMin!==void 0&&(r.arbitrationMin=N.toJSON(e.arbitrationMin)),e.arbitrationMax!==void 0&&(r.arbitrationMax=N.toJSON(e.arbitrationMax)),e.dataMin!==void 0&&(r.dataMin=N.toJSON(e.dataMin)),e.dataMax!==void 0&&(r.dataMax=N.toJSON(e.dataMax)),e.isValid!==!1&&(r.isValid=e.isValid),r},create(e){return R.fromPartial(e??{})},fromPartial(e){const r=ie();return r.arbitrationMin=e.arbitrationMin!==void 0&&e.arbitrationMin!==null?N.fromPartial(e.arbitrationMin):void 0,r.arbitrationMax=e.arbitrationMax!==void 0&&e.arbitrationMax!==null?N.fromPartial(e.arbitrationMax):void 0,r.dataMin=e.dataMin!==void 0&&e.dataMin!==null?N.fromPartial(e.dataMin):void 0,r.dataMax=e.dataMax!==void 0&&e.dataMax!==null?N.fromPartial(e.dataMax):void 0,r.isValid=e.isValid??!1,r}};function te(){return{bitRate:0,actualBitRate:0,bitRateError:0,timeSegment1:0,timeSegment2:0,samplingPoint:0,numberOfSamplingPoints:0,maxSyncJumpWidth:0,description:""}}const E={encode(e,r=new a.BinaryWriter){return e.bitRate!==0&&r.uint32(8).int32(e.bitRate),e.actualBitRate!==0&&r.uint32(16).int32(e.actualBitRate),e.bitRateError!==0&&r.uint32(25).double(e.bitRateError),e.timeSegment1!==0&&r.uint32(32).int32(e.timeSegment1),e.timeSegment2!==0&&r.uint32(40).int32(e.timeSegment2),e.samplingPoint!==0&&r.uint32(49).double(e.samplingPoint),e.numberOfSamplingPoints!==0&&r.uint32(56).int32(e.numberOfSamplingPoints),e.maxSyncJumpWidth!==0&&r.uint32(64).int32(e.maxSyncJumpWidth),e.description!==""&&r.uint32(74).string(e.description),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=te();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==8)break;t.bitRate=n.int32();continue}case 2:{if(i!==16)break;t.actualBitRate=n.int32();continue}case 3:{if(i!==25)break;t.bitRateError=n.double();continue}case 4:{if(i!==32)break;t.timeSegment1=n.int32();continue}case 5:{if(i!==40)break;t.timeSegment2=n.int32();continue}case 6:{if(i!==49)break;t.samplingPoint=n.double();continue}case 7:{if(i!==56)break;t.numberOfSamplingPoints=n.int32();continue}case 8:{if(i!==64)break;t.maxSyncJumpWidth=n.int32();continue}case 9:{if(i!==74)break;t.description=n.string();continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{bitRate:c(e.bitRate)?globalThis.Number(e.bitRate):0,actualBitRate:c(e.actualBitRate)?globalThis.Number(e.actualBitRate):0,bitRateError:c(e.bitRateError)?globalThis.Number(e.bitRateError):0,timeSegment1:c(e.timeSegment1)?globalThis.Number(e.timeSegment1):0,timeSegment2:c(e.timeSegment2)?globalThis.Number(e.timeSegment2):0,samplingPoint:c(e.samplingPoint)?globalThis.Number(e.samplingPoint):0,numberOfSamplingPoints:c(e.numberOfSamplingPoints)?globalThis.Number(e.numberOfSamplingPoints):0,maxSyncJumpWidth:c(e.maxSyncJumpWidth)?globalThis.Number(e.maxSyncJumpWidth):0,description:c(e.description)?globalThis.String(e.description):""}},toJSON(e){const r={};return e.bitRate!==0&&(r.bitRate=Math.round(e.bitRate)),e.actualBitRate!==0&&(r.actualBitRate=Math.round(e.actualBitRate)),e.bitRateError!==0&&(r.bitRateError=e.bitRateError),e.timeSegment1!==0&&(r.timeSegment1=Math.round(e.timeSegment1)),e.timeSegment2!==0&&(r.timeSegment2=Math.round(e.timeSegment2)),e.samplingPoint!==0&&(r.samplingPoint=e.samplingPoint),e.numberOfSamplingPoints!==0&&(r.numberOfSamplingPoints=Math.round(e.numberOfSamplingPoints)),e.maxSyncJumpWidth!==0&&(r.maxSyncJumpWidth=Math.round(e.maxSyncJumpWidth)),e.description!==""&&(r.description=e.description),r},create(e){return E.fromPartial(e??{})},fromPartial(e){const r=te();return r.bitRate=e.bitRate??0,r.actualBitRate=e.actualBitRate??0,r.bitRateError=e.bitRateError??0,r.timeSegment1=e.timeSegment1??0,r.timeSegment2=e.timeSegment2??0,r.samplingPoint=e.samplingPoint??0,r.numberOfSamplingPoints=e.numberOfSamplingPoints??0,r.maxSyncJumpWidth=e.maxSyncJumpWidth??0,r.description=e.description??"",r}};function ae(){return{bitRate:0,timeSegment1:0,timeSegment2:0,samplingPoint:0,numberOfSamplingPoints:0,maxSyncJumpWidth:0,prescaler:0,description:""}}const S={encode(e,r=new a.BinaryWriter){return e.bitRate!==0&&r.uint32(8).int32(e.bitRate),e.timeSegment1!==0&&r.uint32(16).int32(e.timeSegment1),e.timeSegment2!==0&&r.uint32(24).int32(e.timeSegment2),e.samplingPoint!==0&&r.uint32(33).double(e.samplingPoint),e.numberOfSamplingPoints!==0&&r.uint32(40).int32(e.numberOfSamplingPoints),e.maxSyncJumpWidth!==0&&r.uint32(48).int32(e.maxSyncJumpWidth),e.prescaler!==0&&r.uint32(56).int32(e.prescaler),e.description!==""&&r.uint32(66).string(e.description),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=ae();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==8)break;t.bitRate=n.int32();continue}case 2:{if(i!==16)break;t.timeSegment1=n.int32();continue}case 3:{if(i!==24)break;t.timeSegment2=n.int32();continue}case 4:{if(i!==33)break;t.samplingPoint=n.double();continue}case 5:{if(i!==40)break;t.numberOfSamplingPoints=n.int32();continue}case 6:{if(i!==48)break;t.maxSyncJumpWidth=n.int32();continue}case 7:{if(i!==56)break;t.prescaler=n.int32();continue}case 8:{if(i!==66)break;t.description=n.string();continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{bitRate:c(e.bitRate)?globalThis.Number(e.bitRate):0,timeSegment1:c(e.timeSegment1)?globalThis.Number(e.timeSegment1):0,timeSegment2:c(e.timeSegment2)?globalThis.Number(e.timeSegment2):0,samplingPoint:c(e.samplingPoint)?globalThis.Number(e.samplingPoint):0,numberOfSamplingPoints:c(e.numberOfSamplingPoints)?globalThis.Number(e.numberOfSamplingPoints):0,maxSyncJumpWidth:c(e.maxSyncJumpWidth)?globalThis.Number(e.maxSyncJumpWidth):0,prescaler:c(e.prescaler)?globalThis.Number(e.prescaler):0,description:c(e.description)?globalThis.String(e.description):""}},toJSON(e){const r={};return e.bitRate!==0&&(r.bitRate=Math.round(e.bitRate)),e.timeSegment1!==0&&(r.timeSegment1=Math.round(e.timeSegment1)),e.timeSegment2!==0&&(r.timeSegment2=Math.round(e.timeSegment2)),e.samplingPoint!==0&&(r.samplingPoint=e.samplingPoint),e.numberOfSamplingPoints!==0&&(r.numberOfSamplingPoints=Math.round(e.numberOfSamplingPoints)),e.maxSyncJumpWidth!==0&&(r.maxSyncJumpWidth=Math.round(e.maxSyncJumpWidth)),e.prescaler!==0&&(r.prescaler=Math.round(e.prescaler)),e.description!==""&&(r.description=e.description),r},create(e){return S.fromPartial(e??{})},fromPartial(e){const r=ae();return r.bitRate=e.bitRate??0,r.timeSegment1=e.timeSegment1??0,r.timeSegment2=e.timeSegment2??0,r.samplingPoint=e.samplingPoint??0,r.numberOfSamplingPoints=e.numberOfSamplingPoints??0,r.maxSyncJumpWidth=e.maxSyncJumpWidth??0,r.prescaler=e.prescaler??0,r.description=e.description??"",r}};function oe(){return{busSpeedArbPhase:void 0,busSpeedsDataPhase:[]}}const v={encode(e,r=new a.BinaryWriter){e.busSpeedArbPhase!==void 0&&S.encode(e.busSpeedArbPhase,r.uint32(10).fork()).join();for(const n of e.busSpeedsDataPhase)S.encode(n,r.uint32(18).fork()).join();return r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=oe();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.busSpeedArbPhase=S.decode(n,n.uint32());continue}case 2:{if(i!==18)break;t.busSpeedsDataPhase.push(S.decode(n,n.uint32()));continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{busSpeedArbPhase:c(e.busSpeedArbPhase)?S.fromJSON(e.busSpeedArbPhase):void 0,busSpeedsDataPhase:globalThis.Array.isArray(e==null?void 0:e.busSpeedsDataPhase)?e.busSpeedsDataPhase.map(r=>S.fromJSON(r)):[]}},toJSON(e){var n;const r={};return e.busSpeedArbPhase!==void 0&&(r.busSpeedArbPhase=S.toJSON(e.busSpeedArbPhase)),(n=e.busSpeedsDataPhase)!=null&&n.length&&(r.busSpeedsDataPhase=e.busSpeedsDataPhase.map(o=>S.toJSON(o))),r},create(e){return v.fromPartial(e??{})},fromPartial(e){var n;const r=oe();return r.busSpeedArbPhase=e.busSpeedArbPhase!==void 0&&e.busSpeedArbPhase!==null?S.fromPartial(e.busSpeedArbPhase):void 0,r.busSpeedsDataPhase=((n=e.busSpeedsDataPhase)==null?void 0:n.map(o=>S.fromPartial(o)))||[],r}};function se(){return{busParamLimits:void 0,channelCaps:[],maxBitRate:0,clockFrequency:0}}const A={encode(e,r=new a.BinaryWriter){e.busParamLimits!==void 0&&R.encode(e.busParamLimits,r.uint32(10).fork()).join(),r.uint32(18).fork();for(const n of e.channelCaps)r.int32(n);return r.join(),e.maxBitRate!==0&&r.uint32(24).int32(e.maxBitRate),e.clockFrequency!==0&&r.uint32(33).double(e.clockFrequency),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=se();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.busParamLimits=R.decode(n,n.uint32());continue}case 2:{if(i===16){t.channelCaps.push(n.int32());continue}if(i===18){const l=n.uint32()+n.pos;for(;n.pos<l;)t.channelCaps.push(n.int32());continue}break}case 3:{if(i!==24)break;t.maxBitRate=n.int32();continue}case 4:{if(i!==33)break;t.clockFrequency=n.double();continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{busParamLimits:c(e.busParamLimits)?R.fromJSON(e.busParamLimits):void 0,channelCaps:globalThis.Array.isArray(e==null?void 0:e.channelCaps)?e.channelCaps.map(r=>Ar(r)):[],maxBitRate:c(e.maxBitRate)?globalThis.Number(e.maxBitRate):0,clockFrequency:c(e.clockFrequency)?globalThis.Number(e.clockFrequency):0}},toJSON(e){var n;const r={};return e.busParamLimits!==void 0&&(r.busParamLimits=R.toJSON(e.busParamLimits)),(n=e.channelCaps)!=null&&n.length&&(r.channelCaps=e.channelCaps.map(o=>Tr(o))),e.maxBitRate!==0&&(r.maxBitRate=Math.round(e.maxBitRate)),e.clockFrequency!==0&&(r.clockFrequency=e.clockFrequency),r},create(e){return A.fromPartial(e??{})},fromPartial(e){var n;const r=se();return r.busParamLimits=e.busParamLimits!==void 0&&e.busParamLimits!==null?R.fromPartial(e.busParamLimits):void 0,r.channelCaps=((n=e.channelCaps)==null?void 0:n.map(o=>o))||[],r.maxBitRate=e.maxBitRate??0,r.clockFrequency=e.clockFrequency??0,r}};function ue(){return{channelNumber:0,channelNumberOnDevice:0,name:"",protocols:[],canChannelCapacity:void 0}}const T={encode(e,r=new a.BinaryWriter){e.channelNumber!==0&&r.uint32(8).int32(e.channelNumber),e.channelNumberOnDevice!==0&&r.uint32(16).int32(e.channelNumberOnDevice),e.name!==""&&r.uint32(26).string(e.name),r.uint32(34).fork();for(const n of e.protocols)r.int32(n);return r.join(),e.canChannelCapacity!==void 0&&A.encode(e.canChannelCapacity,r.uint32(42).fork()).join(),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=ue();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==8)break;t.channelNumber=n.int32();continue}case 2:{if(i!==16)break;t.channelNumberOnDevice=n.int32();continue}case 3:{if(i!==26)break;t.name=n.string();continue}case 4:{if(i===32){t.protocols.push(n.int32());continue}if(i===34){const l=n.uint32()+n.pos;for(;n.pos<l;)t.protocols.push(n.int32());continue}break}case 5:{if(i!==42)break;t.canChannelCapacity=A.decode(n,n.uint32());continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{channelNumber:c(e.channelNumber)?globalThis.Number(e.channelNumber):0,channelNumberOnDevice:c(e.channelNumberOnDevice)?globalThis.Number(e.channelNumberOnDevice):0,name:c(e.name)?globalThis.String(e.name):"",protocols:globalThis.Array.isArray(e==null?void 0:e.protocols)?e.protocols.map(r=>b(r)):[],canChannelCapacity:c(e.canChannelCapacity)?A.fromJSON(e.canChannelCapacity):void 0}},toJSON(e){var n;const r={};return e.channelNumber!==0&&(r.channelNumber=Math.round(e.channelNumber)),e.channelNumberOnDevice!==0&&(r.channelNumberOnDevice=Math.round(e.channelNumberOnDevice)),e.name!==""&&(r.name=e.name),(n=e.protocols)!=null&&n.length&&(r.protocols=e.protocols.map(o=>V(o))),e.canChannelCapacity!==void 0&&(r.canChannelCapacity=A.toJSON(e.canChannelCapacity)),r},create(e){return T.fromPartial(e??{})},fromPartial(e){var n;const r=ue();return r.channelNumber=e.channelNumber??0,r.channelNumberOnDevice=e.channelNumberOnDevice??0,r.name=e.name??"",r.protocols=((n=e.protocols)==null?void 0:n.map(o=>o))||[],r.canChannelCapacity=e.canChannelCapacity!==void 0&&e.canChannelCapacity!==null?A.fromPartial(e.canChannelCapacity):void 0,r}};function ce(){return{cardType:0,cardNumber:0,productCode:"",serialNumber:"",name:"",protocols:[],channels:[]}}const P={encode(e,r=new a.BinaryWriter){e.cardType!==0&&r.uint32(8).int32(e.cardType),e.cardNumber!==0&&r.uint32(16).int32(e.cardNumber),e.productCode!==""&&r.uint32(26).string(e.productCode),e.serialNumber!==""&&r.uint32(34).string(e.serialNumber),e.name!==""&&r.uint32(42).string(e.name),r.uint32(50).fork();for(const n of e.protocols)r.int32(n);r.join();for(const n of e.channels)T.encode(n,r.uint32(58).fork()).join();return r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=ce();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==8)break;t.cardType=n.int32();continue}case 2:{if(i!==16)break;t.cardNumber=n.int32();continue}case 3:{if(i!==26)break;t.productCode=n.string();continue}case 4:{if(i!==34)break;t.serialNumber=n.string();continue}case 5:{if(i!==42)break;t.name=n.string();continue}case 6:{if(i===48){t.protocols.push(n.int32());continue}if(i===50){const l=n.uint32()+n.pos;for(;n.pos<l;)t.protocols.push(n.int32());continue}break}case 7:{if(i!==58)break;t.channels.push(T.decode(n,n.uint32()));continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{cardType:c(e.cardType)?globalThis.Number(e.cardType):0,cardNumber:c(e.cardNumber)?globalThis.Number(e.cardNumber):0,productCode:c(e.productCode)?globalThis.String(e.productCode):"",serialNumber:c(e.serialNumber)?globalThis.String(e.serialNumber):"",name:c(e.name)?globalThis.String(e.name):"",protocols:globalThis.Array.isArray(e==null?void 0:e.protocols)?e.protocols.map(r=>b(r)):[],channels:globalThis.Array.isArray(e==null?void 0:e.channels)?e.channels.map(r=>T.fromJSON(r)):[]}},toJSON(e){var n,o;const r={};return e.cardType!==0&&(r.cardType=Math.round(e.cardType)),e.cardNumber!==0&&(r.cardNumber=Math.round(e.cardNumber)),e.productCode!==""&&(r.productCode=e.productCode),e.serialNumber!==""&&(r.serialNumber=e.serialNumber),e.name!==""&&(r.name=e.name),(n=e.protocols)!=null&&n.length&&(r.protocols=e.protocols.map(t=>V(t))),(o=e.channels)!=null&&o.length&&(r.channels=e.channels.map(t=>T.toJSON(t))),r},create(e){return P.fromPartial(e??{})},fromPartial(e){var n,o;const r=ce();return r.cardType=e.cardType??0,r.cardNumber=e.cardNumber??0,r.productCode=e.productCode??"",r.serialNumber=e.serialNumber??"",r.name=e.name??"",r.protocols=((n=e.protocols)==null?void 0:n.map(t=>t))||[],r.channels=((o=e.channels)==null?void 0:o.map(t=>T.fromPartial(t)))||[],r}};function de(){return{items:[]}}const _={encode(e,r=new a.BinaryWriter){for(const n of e.items)P.encode(n,r.uint32(10).fork()).join();return r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=de();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.items.push(P.decode(n,n.uint32()));continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{items:globalThis.Array.isArray(e==null?void 0:e.items)?e.items.map(r=>P.fromJSON(r)):[]}},toJSON(e){var n;const r={};return(n=e.items)!=null&&n.length&&(r.items=e.items.map(o=>P.toJSON(o))),r},create(e){return _.fromPartial(e??{})},fromPartial(e){var n;const r=de();return r.items=((n=e.items)==null?void 0:n.map(o=>P.fromPartial(o)))||[],r}};function fe(){return{preferences:void 0,includeVirtual:!1}}const yr={encode(e,r=new a.BinaryWriter){return e.preferences!==void 0&&s.encode(e.preferences,r.uint32(10).fork()).join(),e.includeVirtual!==!1&&r.uint32(16).bool(e.includeVirtual),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=fe();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=s.decode(n,n.uint32());continue}case 2:{if(i!==16)break;t.includeVirtual=n.bool();continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{preferences:c(e.preferences)?s.fromJSON(e.preferences):void 0,includeVirtual:c(e.includeVirtual)?globalThis.Boolean(e.includeVirtual):!1}},toJSON(e){const r={};return e.preferences!==void 0&&(r.preferences=s.toJSON(e.preferences)),e.includeVirtual!==!1&&(r.includeVirtual=e.includeVirtual),r},create(e){return yr.fromPartial(e??{})},fromPartial(e){const r=fe();return r.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,r.includeVirtual=e.includeVirtual??!1,r}};function le(){return{devices:[]}}const Br={encode(e,r=new a.BinaryWriter){for(const n of e.devices)P.encode(n,r.uint32(10).fork()).join();return r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=le();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.devices.push(P.decode(n,n.uint32()));continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{devices:globalThis.Array.isArray(e==null?void 0:e.devices)?e.devices.map(r=>P.fromJSON(r)):[]}},toJSON(e){var n;const r={};return(n=e.devices)!=null&&n.length&&(r.devices=e.devices.map(o=>P.toJSON(o))),r},create(e){return Br.fromPartial(e??{})},fromPartial(e){var n;const r=le();return r.devices=((n=e.devices)==null?void 0:n.map(o=>P.fromPartial(o)))||[],r}};function pe(){return{preferences:void 0,channelNumber:0}}const Lr={encode(e,r=new a.BinaryWriter){return e.preferences!==void 0&&s.encode(e.preferences,r.uint32(10).fork()).join(),e.channelNumber!==0&&r.uint32(16).int32(e.channelNumber),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=pe();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=s.decode(n,n.uint32());continue}case 2:{if(i!==16)break;t.channelNumber=n.int32();continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{preferences:c(e.preferences)?s.fromJSON(e.preferences):void 0,channelNumber:c(e.channelNumber)?globalThis.Number(e.channelNumber):0}},toJSON(e){const r={};return e.preferences!==void 0&&(r.preferences=s.toJSON(e.preferences)),e.channelNumber!==0&&(r.channelNumber=Math.round(e.channelNumber)),r},create(e){return Lr.fromPartial(e??{})},fromPartial(e){const r=pe();return r.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,r.channelNumber=e.channelNumber??0,r}};function Ne(){return{availableBusSpeeds:[],availableBusSpeedsFd:[]}}const Ir={encode(e,r=new a.BinaryWriter){for(const n of e.availableBusSpeeds)E.encode(n,r.uint32(10).fork()).join();for(const n of e.availableBusSpeedsFd)v.encode(n,r.uint32(18).fork()).join();return r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=Ne();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.availableBusSpeeds.push(E.decode(n,n.uint32()));continue}case 2:{if(i!==18)break;t.availableBusSpeedsFd.push(v.decode(n,n.uint32()));continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{availableBusSpeeds:globalThis.Array.isArray(e==null?void 0:e.availableBusSpeeds)?e.availableBusSpeeds.map(r=>E.fromJSON(r)):[],availableBusSpeedsFd:globalThis.Array.isArray(e==null?void 0:e.availableBusSpeedsFd)?e.availableBusSpeedsFd.map(r=>v.fromJSON(r)):[]}},toJSON(e){var n,o;const r={};return(n=e.availableBusSpeeds)!=null&&n.length&&(r.availableBusSpeeds=e.availableBusSpeeds.map(t=>E.toJSON(t))),(o=e.availableBusSpeedsFd)!=null&&o.length&&(r.availableBusSpeedsFd=e.availableBusSpeedsFd.map(t=>v.toJSON(t))),r},create(e){return Ir.fromPartial(e??{})},fromPartial(e){var n,o;const r=Ne();return r.availableBusSpeeds=((n=e.availableBusSpeeds)==null?void 0:n.map(t=>E.fromPartial(t)))||[],r.availableBusSpeedsFd=((o=e.availableBusSpeedsFd)==null?void 0:o.map(t=>v.fromPartial(t)))||[],r}};function Se(){return{preferences:void 0,channelNumber:0,bitRates:[]}}const Jr={encode(e,r=new a.BinaryWriter){e.preferences!==void 0&&s.encode(e.preferences,r.uint32(10).fork()).join(),e.channelNumber!==0&&r.uint32(16).int32(e.channelNumber),r.uint32(26).fork();for(const n of e.bitRates)r.int32(n);return r.join(),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=Se();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=s.decode(n,n.uint32());continue}case 2:{if(i!==16)break;t.channelNumber=n.int32();continue}case 3:{if(i===24){t.bitRates.push(n.int32());continue}if(i===26){const l=n.uint32()+n.pos;for(;n.pos<l;)t.bitRates.push(n.int32());continue}break}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{preferences:c(e.preferences)?s.fromJSON(e.preferences):void 0,channelNumber:c(e.channelNumber)?globalThis.Number(e.channelNumber):0,bitRates:globalThis.Array.isArray(e==null?void 0:e.bitRates)?e.bitRates.map(r=>globalThis.Number(r)):[]}},toJSON(e){var n;const r={};return e.preferences!==void 0&&(r.preferences=s.toJSON(e.preferences)),e.channelNumber!==0&&(r.channelNumber=Math.round(e.channelNumber)),(n=e.bitRates)!=null&&n.length&&(r.bitRates=e.bitRates.map(o=>Math.round(o))),r},create(e){return Jr.fromPartial(e??{})},fromPartial(e){var n;const r=Se();return r.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,r.channelNumber=e.channelNumber??0,r.bitRates=((n=e.bitRates)==null?void 0:n.map(o=>o))||[],r}};function me(){return{availableBusSpeeds:[]}}const Dr={encode(e,r=new a.BinaryWriter){for(const n of e.availableBusSpeeds)E.encode(n,r.uint32(10).fork()).join();return r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=me();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.availableBusSpeeds.push(E.decode(n,n.uint32()));continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{availableBusSpeeds:globalThis.Array.isArray(e==null?void 0:e.availableBusSpeeds)?e.availableBusSpeeds.map(r=>E.fromJSON(r)):[]}},toJSON(e){var n;const r={};return(n=e.availableBusSpeeds)!=null&&n.length&&(r.availableBusSpeeds=e.availableBusSpeeds.map(o=>E.toJSON(o))),r},create(e){return Dr.fromPartial(e??{})},fromPartial(e){var n;const r=me();return r.availableBusSpeeds=((n=e.availableBusSpeeds)==null?void 0:n.map(o=>E.fromPartial(o)))||[],r}};function Ee(){return{preferences:void 0,channelNumber:0,bitRatesArbitrationPhase:[],bitRatesDataPhase:[]}}const Mr={encode(e,r=new a.BinaryWriter){e.preferences!==void 0&&s.encode(e.preferences,r.uint32(10).fork()).join(),e.channelNumber!==0&&r.uint32(16).int32(e.channelNumber),r.uint32(26).fork();for(const n of e.bitRatesArbitrationPhase)r.int32(n);r.join(),r.uint32(34).fork();for(const n of e.bitRatesDataPhase)r.int32(n);return r.join(),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=Ee();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=s.decode(n,n.uint32());continue}case 2:{if(i!==16)break;t.channelNumber=n.int32();continue}case 3:{if(i===24){t.bitRatesArbitrationPhase.push(n.int32());continue}if(i===26){const l=n.uint32()+n.pos;for(;n.pos<l;)t.bitRatesArbitrationPhase.push(n.int32());continue}break}case 4:{if(i===32){t.bitRatesDataPhase.push(n.int32());continue}if(i===34){const l=n.uint32()+n.pos;for(;n.pos<l;)t.bitRatesDataPhase.push(n.int32());continue}break}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{preferences:c(e.preferences)?s.fromJSON(e.preferences):void 0,channelNumber:c(e.channelNumber)?globalThis.Number(e.channelNumber):0,bitRatesArbitrationPhase:globalThis.Array.isArray(e==null?void 0:e.bitRatesArbitrationPhase)?e.bitRatesArbitrationPhase.map(r=>globalThis.Number(r)):[],bitRatesDataPhase:globalThis.Array.isArray(e==null?void 0:e.bitRatesDataPhase)?e.bitRatesDataPhase.map(r=>globalThis.Number(r)):[]}},toJSON(e){var n,o;const r={};return e.preferences!==void 0&&(r.preferences=s.toJSON(e.preferences)),e.channelNumber!==0&&(r.channelNumber=Math.round(e.channelNumber)),(n=e.bitRatesArbitrationPhase)!=null&&n.length&&(r.bitRatesArbitrationPhase=e.bitRatesArbitrationPhase.map(t=>Math.round(t))),(o=e.bitRatesDataPhase)!=null&&o.length&&(r.bitRatesDataPhase=e.bitRatesDataPhase.map(t=>Math.round(t))),r},create(e){return Mr.fromPartial(e??{})},fromPartial(e){var n,o;const r=Ee();return r.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,r.channelNumber=e.channelNumber??0,r.bitRatesArbitrationPhase=((n=e.bitRatesArbitrationPhase)==null?void 0:n.map(t=>t))||[],r.bitRatesDataPhase=((o=e.bitRatesDataPhase)==null?void 0:o.map(t=>t))||[],r}};function ve(){return{availableBusSpeedsFd:[]}}const xr={encode(e,r=new a.BinaryWriter){for(const n of e.availableBusSpeedsFd)v.encode(n,r.uint32(10).fork()).join();return r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=ve();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.availableBusSpeedsFd.push(v.decode(n,n.uint32()));continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{availableBusSpeedsFd:globalThis.Array.isArray(e==null?void 0:e.availableBusSpeedsFd)?e.availableBusSpeedsFd.map(r=>v.fromJSON(r)):[]}},toJSON(e){var n;const r={};return(n=e.availableBusSpeedsFd)!=null&&n.length&&(r.availableBusSpeedsFd=e.availableBusSpeedsFd.map(o=>v.toJSON(o))),r},create(e){return xr.fromPartial(e??{})},fromPartial(e){var n;const r=ve();return r.availableBusSpeedsFd=((n=e.availableBusSpeedsFd)==null?void 0:n.map(o=>v.fromPartial(o)))||[],r}};function Pe(){return{eventType:0,devices:void 0}}const Gr={encode(e,r=new a.BinaryWriter){return e.eventType!==0&&r.uint32(8).int32(e.eventType),e.devices!==void 0&&_.encode(e.devices,r.uint32(18).fork()).join(),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=Pe();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==8)break;t.eventType=n.int32();continue}case 2:{if(i!==18)break;t.devices=_.decode(n,n.uint32());continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{eventType:c(e.eventType)?kr(e.eventType):0,devices:c(e.devices)?_.fromJSON(e.devices):void 0}},toJSON(e){const r={};return e.eventType!==0&&(r.eventType=gr(e.eventType)),e.devices!==void 0&&(r.devices=_.toJSON(e.devices)),r},create(e){return Gr.fromPartial(e??{})},fromPartial(e){const r=Pe();return r.eventType=e.eventType??0,r.devices=e.devices!==void 0&&e.devices!==null?_.fromPartial(e.devices):void 0,r}};function c(e){return e!=null}var br=(e=>(e[e.MEASUREMENT_EVENT_UNSPECIFIED=0]="MEASUREMENT_EVENT_UNSPECIFIED",e[e.MEASUREMENT_EVENT_MEASUREMENT_SETUP_CHANGED=1]="MEASUREMENT_EVENT_MEASUREMENT_SETUP_CHANGED",e[e.MEASUREMENT_EVENT_ONLINE_STATUS_CHANGED=2]="MEASUREMENT_EVENT_ONLINE_STATUS_CHANGED",e[e.MEASUREMENT_EVENT_PERIODIC_TRANSMISSION_STARTED=3]="MEASUREMENT_EVENT_PERIODIC_TRANSMISSION_STARTED",e[e.MEASUREMENT_EVENT_PERIODIC_TRANSMISSION_STOPPED=4]="MEASUREMENT_EVENT_PERIODIC_TRANSMISSION_STOPPED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(br||{});function Vr(e){switch(e){case 0:case"MEASUREMENT_EVENT_UNSPECIFIED":return 0;case 1:case"MEASUREMENT_EVENT_MEASUREMENT_SETUP_CHANGED":return 1;case 2:case"MEASUREMENT_EVENT_ONLINE_STATUS_CHANGED":return 2;case 3:case"MEASUREMENT_EVENT_PERIODIC_TRANSMISSION_STARTED":return 3;case 4:case"MEASUREMENT_EVENT_PERIODIC_TRANSMISSION_STOPPED":return 4;case-1:case"UNRECOGNIZED":default:return-1}}function Fr(e){switch(e){case 0:return"MEASUREMENT_EVENT_UNSPECIFIED";case 1:return"MEASUREMENT_EVENT_MEASUREMENT_SETUP_CHANGED";case 2:return"MEASUREMENT_EVENT_ONLINE_STATUS_CHANGED";case 3:return"MEASUREMENT_EVENT_PERIODIC_TRANSMISSION_STARTED";case 4:return"MEASUREMENT_EVENT_PERIODIC_TRANSMISSION_STOPPED";case-1:default:return"UNRECOGNIZED"}}function he(){return{preferences:void 0,setup:void 0}}const Ur={encode(e,r=new a.BinaryWriter){return e.preferences!==void 0&&s.encode(e.preferences,r.uint32(10).fork()).join(),e.setup!==void 0&&a.MeasurementSetup.encode(e.setup,r.uint32(18).fork()).join(),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=he();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=s.decode(n,n.uint32());continue}case 2:{if(i!==18)break;t.setup=a.MeasurementSetup.decode(n,n.uint32());continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?s.fromJSON(e.preferences):void 0,setup:u(e.setup)?a.MeasurementSetup.fromJSON(e.setup):void 0}},toJSON(e){const r={};return e.preferences!==void 0&&(r.preferences=s.toJSON(e.preferences)),e.setup!==void 0&&(r.setup=a.MeasurementSetup.toJSON(e.setup)),r},create(e){return Ur.fromPartial(e??{})},fromPartial(e){const r=he();return r.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,r.setup=e.setup!==void 0&&e.setup!==null?a.MeasurementSetup.fromPartial(e.setup):void 0,r}};function Oe(){return{preferences:void 0,configuration:void 0}}const qr={encode(e,r=new a.BinaryWriter){return e.preferences!==void 0&&s.encode(e.preferences,r.uint32(10).fork()).join(),e.configuration!==void 0&&a.CanChannelConfiguration.encode(e.configuration,r.uint32(18).fork()).join(),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=Oe();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=s.decode(n,n.uint32());continue}case 2:{if(i!==18)break;t.configuration=a.CanChannelConfiguration.decode(n,n.uint32());continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?s.fromJSON(e.preferences):void 0,configuration:u(e.configuration)?a.CanChannelConfiguration.fromJSON(e.configuration):void 0}},toJSON(e){const r={};return e.preferences!==void 0&&(r.preferences=s.toJSON(e.preferences)),e.configuration!==void 0&&(r.configuration=a.CanChannelConfiguration.toJSON(e.configuration)),r},create(e){return qr.fromPartial(e??{})},fromPartial(e){const r=Oe();return r.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,r.configuration=e.configuration!==void 0&&e.configuration!==null?a.CanChannelConfiguration.fromPartial(e.configuration):void 0,r}};function Re(){return{preferences:void 0,configuration:void 0}}const Wr={encode(e,r=new a.BinaryWriter){return e.preferences!==void 0&&s.encode(e.preferences,r.uint32(10).fork()).join(),e.configuration!==void 0&&a.LinChannelConfiguration.encode(e.configuration,r.uint32(18).fork()).join(),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=Re();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=s.decode(n,n.uint32());continue}case 2:{if(i!==18)break;t.configuration=a.LinChannelConfiguration.decode(n,n.uint32());continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?s.fromJSON(e.preferences):void 0,configuration:u(e.configuration)?a.LinChannelConfiguration.fromJSON(e.configuration):void 0}},toJSON(e){const r={};return e.preferences!==void 0&&(r.preferences=s.toJSON(e.preferences)),e.configuration!==void 0&&(r.configuration=a.LinChannelConfiguration.toJSON(e.configuration)),r},create(e){return Wr.fromPartial(e??{})},fromPartial(e){const r=Re();return r.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,r.configuration=e.configuration!==void 0&&e.configuration!==null?a.LinChannelConfiguration.fromPartial(e.configuration):void 0,r}};function Ae(){return{preferences:void 0,source:void 0,replaceAllProperties:!1}}const Hr={encode(e,r=new a.BinaryWriter){return e.preferences!==void 0&&s.encode(e.preferences,r.uint32(10).fork()).join(),e.source!==void 0&&a.SourceNodeProperties.encode(e.source,r.uint32(18).fork()).join(),e.replaceAllProperties!==!1&&r.uint32(24).bool(e.replaceAllProperties),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=Ae();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=s.decode(n,n.uint32());continue}case 2:{if(i!==18)break;t.source=a.SourceNodeProperties.decode(n,n.uint32());continue}case 3:{if(i!==24)break;t.replaceAllProperties=n.bool();continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?s.fromJSON(e.preferences):void 0,source:u(e.source)?a.SourceNodeProperties.fromJSON(e.source):void 0,replaceAllProperties:u(e.replaceAllProperties)?globalThis.Boolean(e.replaceAllProperties):!1}},toJSON(e){const r={};return e.preferences!==void 0&&(r.preferences=s.toJSON(e.preferences)),e.source!==void 0&&(r.source=a.SourceNodeProperties.toJSON(e.source)),e.replaceAllProperties!==!1&&(r.replaceAllProperties=e.replaceAllProperties),r},create(e){return Hr.fromPartial(e??{})},fromPartial(e){const r=Ae();return r.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,r.source=e.source!==void 0&&e.source!==null?a.SourceNodeProperties.fromPartial(e.source):void 0,r.replaceAllProperties=e.replaceAllProperties??!1,r}};function Te(){return{source:void 0}}const wr={encode(e,r=new a.BinaryWriter){return e.source!==void 0&&a.SourceNodeProperties.encode(e.source,r.uint32(10).fork()).join(),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=Te();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.source=a.SourceNodeProperties.decode(n,n.uint32());continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{source:u(e.source)?a.SourceNodeProperties.fromJSON(e.source):void 0}},toJSON(e){const r={};return e.source!==void 0&&(r.source=a.SourceNodeProperties.toJSON(e.source)),r},create(e){return wr.fromPartial(e??{})},fromPartial(e){const r=Te();return r.source=e.source!==void 0&&e.source!==null?a.SourceNodeProperties.fromPartial(e.source):void 0,r}};function _e(){return{preferences:void 0,dataProcessor:void 0,previousNode:"",nextNode:"",replaceAllProperties:!1}}const Zr={encode(e,r=new a.BinaryWriter){return e.preferences!==void 0&&s.encode(e.preferences,r.uint32(10).fork()).join(),e.dataProcessor!==void 0&&a.DataProcessorNodeProperties.encode(e.dataProcessor,r.uint32(18).fork()).join(),e.previousNode!==""&&r.uint32(26).string(e.previousNode),e.nextNode!==""&&r.uint32(34).string(e.nextNode),e.replaceAllProperties!==!1&&r.uint32(40).bool(e.replaceAllProperties),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=_e();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=s.decode(n,n.uint32());continue}case 2:{if(i!==18)break;t.dataProcessor=a.DataProcessorNodeProperties.decode(n,n.uint32());continue}case 3:{if(i!==26)break;t.previousNode=n.string();continue}case 4:{if(i!==34)break;t.nextNode=n.string();continue}case 5:{if(i!==40)break;t.replaceAllProperties=n.bool();continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?s.fromJSON(e.preferences):void 0,dataProcessor:u(e.dataProcessor)?a.DataProcessorNodeProperties.fromJSON(e.dataProcessor):void 0,previousNode:u(e.previousNode)?globalThis.String(e.previousNode):"",nextNode:u(e.nextNode)?globalThis.String(e.nextNode):"",replaceAllProperties:u(e.replaceAllProperties)?globalThis.Boolean(e.replaceAllProperties):!1}},toJSON(e){const r={};return e.preferences!==void 0&&(r.preferences=s.toJSON(e.preferences)),e.dataProcessor!==void 0&&(r.dataProcessor=a.DataProcessorNodeProperties.toJSON(e.dataProcessor)),e.previousNode!==""&&(r.previousNode=e.previousNode),e.nextNode!==""&&(r.nextNode=e.nextNode),e.replaceAllProperties!==!1&&(r.replaceAllProperties=e.replaceAllProperties),r},create(e){return Zr.fromPartial(e??{})},fromPartial(e){const r=_e();return r.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,r.dataProcessor=e.dataProcessor!==void 0&&e.dataProcessor!==null?a.DataProcessorNodeProperties.fromPartial(e.dataProcessor):void 0,r.previousNode=e.previousNode??"",r.nextNode=e.nextNode??"",r.replaceAllProperties=e.replaceAllProperties??!1,r}};function Ce(){return{dataProcessor:void 0}}const Kr={encode(e,r=new a.BinaryWriter){return e.dataProcessor!==void 0&&a.DataProcessorNodeProperties.encode(e.dataProcessor,r.uint32(10).fork()).join(),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=Ce();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.dataProcessor=a.DataProcessorNodeProperties.decode(n,n.uint32());continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{dataProcessor:u(e.dataProcessor)?a.DataProcessorNodeProperties.fromJSON(e.dataProcessor):void 0}},toJSON(e){const r={};return e.dataProcessor!==void 0&&(r.dataProcessor=a.DataProcessorNodeProperties.toJSON(e.dataProcessor)),r},create(e){return Kr.fromPartial(e??{})},fromPartial(e){const r=Ce();return r.dataProcessor=e.dataProcessor!==void 0&&e.dataProcessor!==null?a.DataProcessorNodeProperties.fromPartial(e.dataProcessor):void 0,r}};function ke(){return{preferences:void 0,target:void 0,replaceAllProperties:!1}}const Qr={encode(e,r=new a.BinaryWriter){return e.preferences!==void 0&&s.encode(e.preferences,r.uint32(10).fork()).join(),e.target!==void 0&&a.TargetNodeProperties.encode(e.target,r.uint32(18).fork()).join(),e.replaceAllProperties!==!1&&r.uint32(24).bool(e.replaceAllProperties),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=ke();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=s.decode(n,n.uint32());continue}case 2:{if(i!==18)break;t.target=a.TargetNodeProperties.decode(n,n.uint32());continue}case 3:{if(i!==24)break;t.replaceAllProperties=n.bool();continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?s.fromJSON(e.preferences):void 0,target:u(e.target)?a.TargetNodeProperties.fromJSON(e.target):void 0,replaceAllProperties:u(e.replaceAllProperties)?globalThis.Boolean(e.replaceAllProperties):!1}},toJSON(e){const r={};return e.preferences!==void 0&&(r.preferences=s.toJSON(e.preferences)),e.target!==void 0&&(r.target=a.TargetNodeProperties.toJSON(e.target)),e.replaceAllProperties!==!1&&(r.replaceAllProperties=e.replaceAllProperties),r},create(e){return Qr.fromPartial(e??{})},fromPartial(e){const r=ke();return r.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,r.target=e.target!==void 0&&e.target!==null?a.TargetNodeProperties.fromPartial(e.target):void 0,r.replaceAllProperties=e.replaceAllProperties??!1,r}};function ge(){return{target:void 0}}const Yr={encode(e,r=new a.BinaryWriter){return e.target!==void 0&&a.TargetNodeProperties.encode(e.target,r.uint32(10).fork()).join(),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=ge();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.target=a.TargetNodeProperties.decode(n,n.uint32());continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{target:u(e.target)?a.TargetNodeProperties.fromJSON(e.target):void 0}},toJSON(e){const r={};return e.target!==void 0&&(r.target=a.TargetNodeProperties.toJSON(e.target)),r},create(e){return Yr.fromPartial(e??{})},fromPartial(e){const r=ge();return r.target=e.target!==void 0&&e.target!==null?a.TargetNodeProperties.fromPartial(e.target):void 0,r}};function ye(){return{preferences:void 0,startNode:"",endNode:""}}const Xr={encode(e,r=new a.BinaryWriter){return e.preferences!==void 0&&s.encode(e.preferences,r.uint32(10).fork()).join(),e.startNode!==""&&r.uint32(18).string(e.startNode),e.endNode!==""&&r.uint32(26).string(e.endNode),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=ye();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=s.decode(n,n.uint32());continue}case 2:{if(i!==18)break;t.startNode=n.string();continue}case 3:{if(i!==26)break;t.endNode=n.string();continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?s.fromJSON(e.preferences):void 0,startNode:u(e.startNode)?globalThis.String(e.startNode):"",endNode:u(e.endNode)?globalThis.String(e.endNode):""}},toJSON(e){const r={};return e.preferences!==void 0&&(r.preferences=s.toJSON(e.preferences)),e.startNode!==""&&(r.startNode=e.startNode),e.endNode!==""&&(r.endNode=e.endNode),r},create(e){return Xr.fromPartial(e??{})},fromPartial(e){const r=ye();return r.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,r.startNode=e.startNode??"",r.endNode=e.endNode??"",r}};function Be(){return{preferences:void 0,startNode:"",endNode:""}}const $r={encode(e,r=new a.BinaryWriter){return e.preferences!==void 0&&s.encode(e.preferences,r.uint32(10).fork()).join(),e.startNode!==""&&r.uint32(18).string(e.startNode),e.endNode!==""&&r.uint32(26).string(e.endNode),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=Be();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=s.decode(n,n.uint32());continue}case 2:{if(i!==18)break;t.startNode=n.string();continue}case 3:{if(i!==26)break;t.endNode=n.string();continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?s.fromJSON(e.preferences):void 0,startNode:u(e.startNode)?globalThis.String(e.startNode):"",endNode:u(e.endNode)?globalThis.String(e.endNode):""}},toJSON(e){const r={};return e.preferences!==void 0&&(r.preferences=s.toJSON(e.preferences)),e.startNode!==""&&(r.startNode=e.startNode),e.endNode!==""&&(r.endNode=e.endNode),r},create(e){return $r.fromPartial(e??{})},fromPartial(e){const r=Be();return r.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,r.startNode=e.startNode??"",r.endNode=e.endNode??"",r}};function Le(){return{preferences:void 0,identifier:""}}const zr={encode(e,r=new a.BinaryWriter){return e.preferences!==void 0&&s.encode(e.preferences,r.uint32(10).fork()).join(),e.identifier!==""&&r.uint32(18).string(e.identifier),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=Le();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=s.decode(n,n.uint32());continue}case 2:{if(i!==18)break;t.identifier=n.string();continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?s.fromJSON(e.preferences):void 0,identifier:u(e.identifier)?globalThis.String(e.identifier):""}},toJSON(e){const r={};return e.preferences!==void 0&&(r.preferences=s.toJSON(e.preferences)),e.identifier!==""&&(r.identifier=e.identifier),r},create(e){return zr.fromPartial(e??{})},fromPartial(e){const r=Le();return r.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,r.identifier=e.identifier??"",r}};function Ie(){return{preferences:void 0,identifiers:[]}}const jr={encode(e,r=new a.BinaryWriter){e.preferences!==void 0&&s.encode(e.preferences,r.uint32(10).fork()).join();for(const n of e.identifiers)r.uint32(18).string(n);return r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=Ie();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=s.decode(n,n.uint32());continue}case 2:{if(i!==18)break;t.identifiers.push(n.string());continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?s.fromJSON(e.preferences):void 0,identifiers:globalThis.Array.isArray(e==null?void 0:e.identifiers)?e.identifiers.map(r=>globalThis.String(r)):[]}},toJSON(e){var n;const r={};return e.preferences!==void 0&&(r.preferences=s.toJSON(e.preferences)),(n=e.identifiers)!=null&&n.length&&(r.identifiers=e.identifiers),r},create(e){return jr.fromPartial(e??{})},fromPartial(e){var n;const r=Ie();return r.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,r.identifiers=((n=e.identifiers)==null?void 0:n.map(o=>o))||[],r}};function Je(){return{preferences:void 0,channelIdentifier:"",frame:void 0}}const en={encode(e,r=new a.BinaryWriter){return e.preferences!==void 0&&s.encode(e.preferences,r.uint32(10).fork()).join(),e.channelIdentifier!==""&&r.uint32(18).string(e.channelIdentifier),e.frame!==void 0&&a.WriteFrame.encode(e.frame,r.uint32(26).fork()).join(),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=Je();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=s.decode(n,n.uint32());continue}case 2:{if(i!==18)break;t.channelIdentifier=n.string();continue}case 3:{if(i!==26)break;t.frame=a.WriteFrame.decode(n,n.uint32());continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?s.fromJSON(e.preferences):void 0,channelIdentifier:u(e.channelIdentifier)?globalThis.String(e.channelIdentifier):"",frame:u(e.frame)?a.WriteFrame.fromJSON(e.frame):void 0}},toJSON(e){const r={};return e.preferences!==void 0&&(r.preferences=s.toJSON(e.preferences)),e.channelIdentifier!==""&&(r.channelIdentifier=e.channelIdentifier),e.frame!==void 0&&(r.frame=a.WriteFrame.toJSON(e.frame)),r},create(e){return en.fromPartial(e??{})},fromPartial(e){const r=Je();return r.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,r.channelIdentifier=e.channelIdentifier??"",r.frame=e.frame!==void 0&&e.frame!==null?a.WriteFrame.fromPartial(e.frame):void 0,r}};function De(){return{preferences:void 0,channelIdentifier:"",count:0,interval:0}}const rn={encode(e,r=new a.BinaryWriter){return e.preferences!==void 0&&s.encode(e.preferences,r.uint32(10).fork()).join(),e.channelIdentifier!==""&&r.uint32(18).string(e.channelIdentifier),e.count!==0&&r.uint32(24).int32(e.count),e.interval!==0&&r.uint32(32).int32(e.interval),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=De();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=s.decode(n,n.uint32());continue}case 2:{if(i!==18)break;t.channelIdentifier=n.string();continue}case 3:{if(i!==24)break;t.count=n.int32();continue}case 4:{if(i!==32)break;t.interval=n.int32();continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?s.fromJSON(e.preferences):void 0,channelIdentifier:u(e.channelIdentifier)?globalThis.String(e.channelIdentifier):"",count:u(e.count)?globalThis.Number(e.count):0,interval:u(e.interval)?globalThis.Number(e.interval):0}},toJSON(e){const r={};return e.preferences!==void 0&&(r.preferences=s.toJSON(e.preferences)),e.channelIdentifier!==""&&(r.channelIdentifier=e.channelIdentifier),e.count!==0&&(r.count=Math.round(e.count)),e.interval!==0&&(r.interval=Math.round(e.interval)),r},create(e){return rn.fromPartial(e??{})},fromPartial(e){const r=De();return r.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,r.channelIdentifier=e.channelIdentifier??"",r.count=e.count??0,r.interval=e.interval??0,r}};function Me(){return{preferences:void 0,channelIdentifier:"",frameId:0}}const nn={encode(e,r=new a.BinaryWriter){return e.preferences!==void 0&&s.encode(e.preferences,r.uint32(10).fork()).join(),e.channelIdentifier!==""&&r.uint32(18).string(e.channelIdentifier),e.frameId!==0&&r.uint32(24).int32(e.frameId),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=Me();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=s.decode(n,n.uint32());continue}case 2:{if(i!==18)break;t.channelIdentifier=n.string();continue}case 3:{if(i!==24)break;t.frameId=n.int32();continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?s.fromJSON(e.preferences):void 0,channelIdentifier:u(e.channelIdentifier)?globalThis.String(e.channelIdentifier):"",frameId:u(e.frameId)?globalThis.Number(e.frameId):0}},toJSON(e){const r={};return e.preferences!==void 0&&(r.preferences=s.toJSON(e.preferences)),e.channelIdentifier!==""&&(r.channelIdentifier=e.channelIdentifier),e.frameId!==0&&(r.frameId=Math.round(e.frameId)),r},create(e){return nn.fromPartial(e??{})},fromPartial(e){const r=Me();return r.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,r.channelIdentifier=e.channelIdentifier??"",r.frameId=e.frameId??0,r}};function xe(){return{preferences:void 0,channelIdentifier:"",frame:void 0}}const tn={encode(e,r=new a.BinaryWriter){return e.preferences!==void 0&&s.encode(e.preferences,r.uint32(10).fork()).join(),e.channelIdentifier!==""&&r.uint32(18).string(e.channelIdentifier),e.frame!==void 0&&a.WriteFrame.encode(e.frame,r.uint32(26).fork()).join(),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=xe();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=s.decode(n,n.uint32());continue}case 2:{if(i!==18)break;t.channelIdentifier=n.string();continue}case 3:{if(i!==26)break;t.frame=a.WriteFrame.decode(n,n.uint32());continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?s.fromJSON(e.preferences):void 0,channelIdentifier:u(e.channelIdentifier)?globalThis.String(e.channelIdentifier):"",frame:u(e.frame)?a.WriteFrame.fromJSON(e.frame):void 0}},toJSON(e){const r={};return e.preferences!==void 0&&(r.preferences=s.toJSON(e.preferences)),e.channelIdentifier!==""&&(r.channelIdentifier=e.channelIdentifier),e.frame!==void 0&&(r.frame=a.WriteFrame.toJSON(e.frame)),r},create(e){return tn.fromPartial(e??{})},fromPartial(e){const r=xe();return r.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,r.channelIdentifier=e.channelIdentifier??"",r.frame=e.frame!==void 0&&e.frame!==null?a.WriteFrame.fromPartial(e.frame):void 0,r}};function Ge(){return{preferences:void 0,channelIdentifier:"",frameId:0}}const an={encode(e,r=new a.BinaryWriter){return e.preferences!==void 0&&s.encode(e.preferences,r.uint32(10).fork()).join(),e.channelIdentifier!==""&&r.uint32(18).string(e.channelIdentifier),e.frameId!==0&&r.uint32(24).int32(e.frameId),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=Ge();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=s.decode(n,n.uint32());continue}case 2:{if(i!==18)break;t.channelIdentifier=n.string();continue}case 3:{if(i!==24)break;t.frameId=n.int32();continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?s.fromJSON(e.preferences):void 0,channelIdentifier:u(e.channelIdentifier)?globalThis.String(e.channelIdentifier):"",frameId:u(e.frameId)?globalThis.Number(e.frameId):0}},toJSON(e){const r={};return e.preferences!==void 0&&(r.preferences=s.toJSON(e.preferences)),e.channelIdentifier!==""&&(r.channelIdentifier=e.channelIdentifier),e.frameId!==0&&(r.frameId=Math.round(e.frameId)),r},create(e){return an.fromPartial(e??{})},fromPartial(e){const r=Ge();return r.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,r.channelIdentifier=e.channelIdentifier??"",r.frameId=e.frameId??0,r}};function be(){return{preferences:void 0,settings:void 0}}const on={encode(e,r=new a.BinaryWriter){return e.preferences!==void 0&&s.encode(e.preferences,r.uint32(10).fork()).join(),e.settings!==void 0&&a.PeriodicTransmissionSettings.encode(e.settings,r.uint32(18).fork()).join(),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=be();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=s.decode(n,n.uint32());continue}case 2:{if(i!==18)break;t.settings=a.PeriodicTransmissionSettings.decode(n,n.uint32());continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?s.fromJSON(e.preferences):void 0,settings:u(e.settings)?a.PeriodicTransmissionSettings.fromJSON(e.settings):void 0}},toJSON(e){const r={};return e.preferences!==void 0&&(r.preferences=s.toJSON(e.preferences)),e.settings!==void 0&&(r.settings=a.PeriodicTransmissionSettings.toJSON(e.settings)),r},create(e){return on.fromPartial(e??{})},fromPartial(e){const r=be();return r.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,r.settings=e.settings!==void 0&&e.settings!==null?a.PeriodicTransmissionSettings.fromPartial(e.settings):void 0,r}};function Ve(){return{periodicTransmissionIdentifier:""}}const sn={encode(e,r=new a.BinaryWriter){return e.periodicTransmissionIdentifier!==""&&r.uint32(10).string(e.periodicTransmissionIdentifier),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=Ve();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.periodicTransmissionIdentifier=n.string();continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{periodicTransmissionIdentifier:u(e.periodicTransmissionIdentifier)?globalThis.String(e.periodicTransmissionIdentifier):""}},toJSON(e){const r={};return e.periodicTransmissionIdentifier!==""&&(r.periodicTransmissionIdentifier=e.periodicTransmissionIdentifier),r},create(e){return sn.fromPartial(e??{})},fromPartial(e){const r=Ve();return r.periodicTransmissionIdentifier=e.periodicTransmissionIdentifier??"",r}};function Fe(){return{isOnline:!1}}const C={encode(e,r=new a.BinaryWriter){return e.isOnline!==!1&&r.uint32(8).bool(e.isOnline),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=Fe();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==8)break;t.isOnline=n.bool();continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{isOnline:u(e.isOnline)?globalThis.Boolean(e.isOnline):!1}},toJSON(e){const r={};return e.isOnline!==!1&&(r.isOnline=e.isOnline),r},create(e){return C.fromPartial(e??{})},fromPartial(e){const r=Fe();return r.isOnline=e.isOnline??!1,r}};function Ue(){return{eventType:0,identifier:void 0,measurementSetup:void 0,onlineStatus:void 0}}const un={encode(e,r=new a.BinaryWriter){return e.eventType!==0&&r.uint32(8).int32(e.eventType),e.identifier!==void 0&&r.uint32(18).string(e.identifier),e.measurementSetup!==void 0&&a.MeasurementSetup.encode(e.measurementSetup,r.uint32(26).fork()).join(),e.onlineStatus!==void 0&&C.encode(e.onlineStatus,r.uint32(34).fork()).join(),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=Ue();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==8)break;t.eventType=n.int32();continue}case 2:{if(i!==18)break;t.identifier=n.string();continue}case 3:{if(i!==26)break;t.measurementSetup=a.MeasurementSetup.decode(n,n.uint32());continue}case 4:{if(i!==34)break;t.onlineStatus=C.decode(n,n.uint32());continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{eventType:u(e.eventType)?Vr(e.eventType):0,identifier:u(e.identifier)?globalThis.String(e.identifier):void 0,measurementSetup:u(e.measurementSetup)?a.MeasurementSetup.fromJSON(e.measurementSetup):void 0,onlineStatus:u(e.onlineStatus)?C.fromJSON(e.onlineStatus):void 0}},toJSON(e){const r={};return e.eventType!==0&&(r.eventType=Fr(e.eventType)),e.identifier!==void 0&&(r.identifier=e.identifier),e.measurementSetup!==void 0&&(r.measurementSetup=a.MeasurementSetup.toJSON(e.measurementSetup)),e.onlineStatus!==void 0&&(r.onlineStatus=C.toJSON(e.onlineStatus)),r},create(e){return un.fromPartial(e??{})},fromPartial(e){const r=Ue();return r.eventType=e.eventType??0,r.identifier=e.identifier??void 0,r.measurementSetup=e.measurementSetup!==void 0&&e.measurementSetup!==null?a.MeasurementSetup.fromPartial(e.measurementSetup):void 0,r.onlineStatus=e.onlineStatus!==void 0&&e.onlineStatus!==null?C.fromPartial(e.onlineStatus):void 0,r}};function qe(){return{preferences:void 0,messageLog:!1,signalLog:!1}}const cn={encode(e,r=new a.BinaryWriter){return e.preferences!==void 0&&s.encode(e.preferences,r.uint32(10).fork()).join(),e.messageLog!==!1&&r.uint32(16).bool(e.messageLog),e.signalLog!==!1&&r.uint32(24).bool(e.signalLog),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=qe();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=s.decode(n,n.uint32());continue}case 2:{if(i!==16)break;t.messageLog=n.bool();continue}case 3:{if(i!==24)break;t.signalLog=n.bool();continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?s.fromJSON(e.preferences):void 0,messageLog:u(e.messageLog)?globalThis.Boolean(e.messageLog):!1,signalLog:u(e.signalLog)?globalThis.Boolean(e.signalLog):!1}},toJSON(e){const r={};return e.preferences!==void 0&&(r.preferences=s.toJSON(e.preferences)),e.messageLog!==!1&&(r.messageLog=e.messageLog),e.signalLog!==!1&&(r.signalLog=e.signalLog),r},create(e){return cn.fromPartial(e??{})},fromPartial(e){const r=qe();return r.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,r.messageLog=e.messageLog??!1,r.signalLog=e.signalLog??!1,r}};function We(){return{formats:[],names:[],extensions:[],descriptions:[]}}const dn={encode(e,r=new a.BinaryWriter){r.uint32(10).fork();for(const n of e.formats)r.int32(n);r.join();for(const n of e.names)r.uint32(18).string(n);for(const n of e.extensions)r.uint32(26).string(n);for(const n of e.descriptions)r.uint32(34).string(n);return r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=We();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i===8){t.formats.push(n.int32());continue}if(i===10){const l=n.uint32()+n.pos;for(;n.pos<l;)t.formats.push(n.int32());continue}break}case 2:{if(i!==18)break;t.names.push(n.string());continue}case 3:{if(i!==26)break;t.extensions.push(n.string());continue}case 4:{if(i!==34)break;t.descriptions.push(n.string());continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{formats:globalThis.Array.isArray(e==null?void 0:e.formats)?e.formats.map(r=>a.logFileFormatFromJSON(r)):[],names:globalThis.Array.isArray(e==null?void 0:e.names)?e.names.map(r=>globalThis.String(r)):[],extensions:globalThis.Array.isArray(e==null?void 0:e.extensions)?e.extensions.map(r=>globalThis.String(r)):[],descriptions:globalThis.Array.isArray(e==null?void 0:e.descriptions)?e.descriptions.map(r=>globalThis.String(r)):[]}},toJSON(e){var n,o,t,i;const r={};return(n=e.formats)!=null&&n.length&&(r.formats=e.formats.map(l=>a.logFileFormatToJSON(l))),(o=e.names)!=null&&o.length&&(r.names=e.names),(t=e.extensions)!=null&&t.length&&(r.extensions=e.extensions),(i=e.descriptions)!=null&&i.length&&(r.descriptions=e.descriptions),r},create(e){return dn.fromPartial(e??{})},fromPartial(e){var n,o,t,i;const r=We();return r.formats=((n=e.formats)==null?void 0:n.map(l=>l))||[],r.names=((o=e.names)==null?void 0:o.map(l=>l))||[],r.extensions=((t=e.extensions)==null?void 0:t.map(l=>l))||[],r.descriptions=((i=e.descriptions)==null?void 0:i.map(l=>l))||[],r}};function He(){return{preferences:void 0,logFile:""}}const fn={encode(e,r=new a.BinaryWriter){return e.preferences!==void 0&&s.encode(e.preferences,r.uint32(10).fork()).join(),e.logFile!==""&&r.uint32(18).string(e.logFile),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=He();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=s.decode(n,n.uint32());continue}case 2:{if(i!==18)break;t.logFile=n.string();continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?s.fromJSON(e.preferences):void 0,logFile:u(e.logFile)?globalThis.String(e.logFile):""}},toJSON(e){const r={};return e.preferences!==void 0&&(r.preferences=s.toJSON(e.preferences)),e.logFile!==""&&(r.logFile=e.logFile),r},create(e){return fn.fromPartial(e??{})},fromPartial(e){const r=He();return r.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,r.logFile=e.logFile??"",r}};function we(){return{channels:[]}}const ln={encode(e,r=new a.BinaryWriter){r.uint32(10).fork();for(const n of e.channels)r.int32(n);return r.join(),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=we();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i===8){t.channels.push(n.int32());continue}if(i===10){const l=n.uint32()+n.pos;for(;n.pos<l;)t.channels.push(n.int32());continue}break}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{channels:globalThis.Array.isArray(e==null?void 0:e.channels)?e.channels.map(r=>globalThis.Number(r)):[]}},toJSON(e){var n;const r={};return(n=e.channels)!=null&&n.length&&(r.channels=e.channels.map(o=>Math.round(o))),r},create(e){return ln.fromPartial(e??{})},fromPartial(e){var n;const r=we();return r.channels=((n=e.channels)==null?void 0:n.map(o=>o))||[],r}};function Ze(){return{preferences:void 0,files:[]}}const pn={encode(e,r=new a.BinaryWriter){e.preferences!==void 0&&s.encode(e.preferences,r.uint32(10).fork()).join();for(const n of e.files)r.uint32(18).string(n);return r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=Ze();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=s.decode(n,n.uint32());continue}case 2:{if(i!==18)break;t.files.push(n.string());continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?s.fromJSON(e.preferences):void 0,files:globalThis.Array.isArray(e==null?void 0:e.files)?e.files.map(r=>globalThis.String(r)):[]}},toJSON(e){var n;const r={};return e.preferences!==void 0&&(r.preferences=s.toJSON(e.preferences)),(n=e.files)!=null&&n.length&&(r.files=e.files),r},create(e){return pn.fromPartial(e??{})},fromPartial(e){var n;const r=Ze();return r.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,r.files=((n=e.files)==null?void 0:n.map(o=>o))||[],r}};function Ke(){return{preferences:void 0,files:[]}}const Nn={encode(e,r=new a.BinaryWriter){e.preferences!==void 0&&s.encode(e.preferences,r.uint32(10).fork()).join();for(const n of e.files)r.uint32(18).string(n);return r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=Ke();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=s.decode(n,n.uint32());continue}case 2:{if(i!==18)break;t.files.push(n.string());continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?s.fromJSON(e.preferences):void 0,files:globalThis.Array.isArray(e==null?void 0:e.files)?e.files.map(r=>globalThis.String(r)):[]}},toJSON(e){var n;const r={};return e.preferences!==void 0&&(r.preferences=s.toJSON(e.preferences)),(n=e.files)!=null&&n.length&&(r.files=e.files),r},create(e){return Nn.fromPartial(e??{})},fromPartial(e){var n;const r=Ke();return r.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,r.files=((n=e.files)==null?void 0:n.map(o=>o))||[],r}};function Qe(){return{tables:[]}}const Sn={encode(e,r=new a.BinaryWriter){for(const n of e.tables)a.ScheduleTable.encode(n,r.uint32(10).fork()).join();return r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=Qe();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.tables.push(a.ScheduleTable.decode(n,n.uint32()));continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{tables:globalThis.Array.isArray(e==null?void 0:e.tables)?e.tables.map(r=>a.ScheduleTable.fromJSON(r)):[]}},toJSON(e){var n;const r={};return(n=e.tables)!=null&&n.length&&(r.tables=e.tables.map(o=>a.ScheduleTable.toJSON(o))),r},create(e){return Sn.fromPartial(e??{})},fromPartial(e){var n;const r=Qe();return r.tables=((n=e.tables)==null?void 0:n.map(o=>a.ScheduleTable.fromPartial(o)))||[],r}};function Ye(){return{preferences:void 0,messageQualifiedName:"",data:[]}}const mn={encode(e,r=new a.BinaryWriter){e.preferences!==void 0&&s.encode(e.preferences,r.uint32(10).fork()).join(),e.messageQualifiedName!==""&&r.uint32(18).string(e.messageQualifiedName),r.uint32(26).fork();for(const n of e.data)r.uint32(n);return r.join(),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=Ye();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=s.decode(n,n.uint32());continue}case 2:{if(i!==18)break;t.messageQualifiedName=n.string();continue}case 3:{if(i===24){t.data.push(n.uint32());continue}if(i===26){const l=n.uint32()+n.pos;for(;n.pos<l;)t.data.push(n.uint32());continue}break}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?s.fromJSON(e.preferences):void 0,messageQualifiedName:u(e.messageQualifiedName)?globalThis.String(e.messageQualifiedName):"",data:globalThis.Array.isArray(e==null?void 0:e.data)?e.data.map(r=>globalThis.Number(r)):[]}},toJSON(e){var n;const r={};return e.preferences!==void 0&&(r.preferences=s.toJSON(e.preferences)),e.messageQualifiedName!==""&&(r.messageQualifiedName=e.messageQualifiedName),(n=e.data)!=null&&n.length&&(r.data=e.data.map(o=>Math.round(o))),r},create(e){return mn.fromPartial(e??{})},fromPartial(e){var n;const r=Ye();return r.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,r.messageQualifiedName=e.messageQualifiedName??"",r.data=((n=e.data)==null?void 0:n.map(o=>o))||[],r}};function Xe(){return{signalValues:[]}}const En={encode(e,r=new a.BinaryWriter){for(const n of e.signalValues)a.SignalValue.encode(n,r.uint32(10).fork()).join();return r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=Xe();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.signalValues.push(a.SignalValue.decode(n,n.uint32()));continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{signalValues:globalThis.Array.isArray(e==null?void 0:e.signalValues)?e.signalValues.map(r=>a.SignalValue.fromJSON(r)):[]}},toJSON(e){var n;const r={};return(n=e.signalValues)!=null&&n.length&&(r.signalValues=e.signalValues.map(o=>a.SignalValue.toJSON(o))),r},create(e){return En.fromPartial(e??{})},fromPartial(e){var n;const r=Xe();return r.signalValues=((n=e.signalValues)==null?void 0:n.map(o=>a.SignalValue.fromPartial(o)))||[],r}};function $e(){return{preferences:void 0,messageQualifiedName:"",data:[],signalValues:[]}}const vn={encode(e,r=new a.BinaryWriter){e.preferences!==void 0&&s.encode(e.preferences,r.uint32(10).fork()).join(),e.messageQualifiedName!==""&&r.uint32(18).string(e.messageQualifiedName),r.uint32(26).fork();for(const n of e.data)r.uint32(n);r.join();for(const n of e.signalValues)a.SignalValue.encode(n,r.uint32(34).fork()).join();return r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=$e();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=s.decode(n,n.uint32());continue}case 2:{if(i!==18)break;t.messageQualifiedName=n.string();continue}case 3:{if(i===24){t.data.push(n.uint32());continue}if(i===26){const l=n.uint32()+n.pos;for(;n.pos<l;)t.data.push(n.uint32());continue}break}case 4:{if(i!==34)break;t.signalValues.push(a.SignalValue.decode(n,n.uint32()));continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?s.fromJSON(e.preferences):void 0,messageQualifiedName:u(e.messageQualifiedName)?globalThis.String(e.messageQualifiedName):"",data:globalThis.Array.isArray(e==null?void 0:e.data)?e.data.map(r=>globalThis.Number(r)):[],signalValues:globalThis.Array.isArray(e==null?void 0:e.signalValues)?e.signalValues.map(r=>a.SignalValue.fromJSON(r)):[]}},toJSON(e){var n,o;const r={};return e.preferences!==void 0&&(r.preferences=s.toJSON(e.preferences)),e.messageQualifiedName!==""&&(r.messageQualifiedName=e.messageQualifiedName),(n=e.data)!=null&&n.length&&(r.data=e.data.map(t=>Math.round(t))),(o=e.signalValues)!=null&&o.length&&(r.signalValues=e.signalValues.map(t=>a.SignalValue.toJSON(t))),r},create(e){return vn.fromPartial(e??{})},fromPartial(e){var n,o;const r=$e();return r.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,r.messageQualifiedName=e.messageQualifiedName??"",r.data=((n=e.data)==null?void 0:n.map(t=>t))||[],r.signalValues=((o=e.signalValues)==null?void 0:o.map(t=>a.SignalValue.fromPartial(t)))||[],r}};function ze(){return{signalValues:[],data:[]}}const Pn={encode(e,r=new a.BinaryWriter){for(const n of e.signalValues)a.SignalValue.encode(n,r.uint32(10).fork()).join();r.uint32(18).fork();for(const n of e.data)r.uint32(n);return r.join(),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=ze();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.signalValues.push(a.SignalValue.decode(n,n.uint32()));continue}case 2:{if(i===16){t.data.push(n.uint32());continue}if(i===18){const l=n.uint32()+n.pos;for(;n.pos<l;)t.data.push(n.uint32());continue}break}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{signalValues:globalThis.Array.isArray(e==null?void 0:e.signalValues)?e.signalValues.map(r=>a.SignalValue.fromJSON(r)):[],data:globalThis.Array.isArray(e==null?void 0:e.data)?e.data.map(r=>globalThis.Number(r)):[]}},toJSON(e){var n,o;const r={};return(n=e.signalValues)!=null&&n.length&&(r.signalValues=e.signalValues.map(t=>a.SignalValue.toJSON(t))),(o=e.data)!=null&&o.length&&(r.data=e.data.map(t=>Math.round(t))),r},create(e){return Pn.fromPartial(e??{})},fromPartial(e){var n,o;const r=ze();return r.signalValues=((n=e.signalValues)==null?void 0:n.map(t=>a.SignalValue.fromPartial(t)))||[],r.data=((o=e.data)==null?void 0:o.map(t=>t))||[],r}};function u(e){return e!=null}var hn=(e=>(e[e.STATUS_LEVEL_NONE=0]="STATUS_LEVEL_NONE",e[e.STATUS_LEVEL_OK=1]="STATUS_LEVEL_OK",e[e.STATUS_LEVEL_WARNING=2]="STATUS_LEVEL_WARNING",e[e.STATUS_LEVEL_ERROR=3]="STATUS_LEVEL_ERROR",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(hn||{});function D(e){switch(e){case 0:case"STATUS_LEVEL_NONE":return 0;case 1:case"STATUS_LEVEL_OK":return 1;case 2:case"STATUS_LEVEL_WARNING":return 2;case 3:case"STATUS_LEVEL_ERROR":return 3;case-1:case"UNRECOGNIZED":default:return-1}}function M(e){switch(e){case 0:return"STATUS_LEVEL_NONE";case 1:return"STATUS_LEVEL_OK";case 2:return"STATUS_LEVEL_WARNING";case 3:return"STATUS_LEVEL_ERROR";case-1:default:return"UNRECOGNIZED"}}var On=(e=>(e[e.LOG_REPLAY_STATE_UNSPECIFIED=0]="LOG_REPLAY_STATE_UNSPECIFIED",e[e.LOG_REPLAY_STATE_STARTED=1]="LOG_REPLAY_STATE_STARTED",e[e.LOG_REPLAY_STATE_STOPPED=2]="LOG_REPLAY_STATE_STOPPED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(On||{});function Rn(e){switch(e){case 0:case"LOG_REPLAY_STATE_UNSPECIFIED":return 0;case 1:case"LOG_REPLAY_STATE_STARTED":return 1;case 2:case"LOG_REPLAY_STATE_STOPPED":return 2;case-1:case"UNRECOGNIZED":default:return-1}}function An(e){switch(e){case 0:return"LOG_REPLAY_STATE_UNSPECIFIED";case 1:return"LOG_REPLAY_STATE_STARTED";case 2:return"LOG_REPLAY_STATE_STOPPED";case-1:default:return"UNRECOGNIZED"}}var Tn=(e=>(e[e.MESSAGE_LOGGER_STATE_UNSPECIFIED=0]="MESSAGE_LOGGER_STATE_UNSPECIFIED",e[e.MESSAGE_LOGGER_STATE_PRESTART=1]="MESSAGE_LOGGER_STATE_PRESTART",e[e.MESSAGE_LOGGER_STATE_STARTED=2]="MESSAGE_LOGGER_STATE_STARTED",e[e.MESSAGE_LOGGER_STATE_STOPPED=3]="MESSAGE_LOGGER_STATE_STOPPED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(Tn||{});function _n(e){switch(e){case 0:case"MESSAGE_LOGGER_STATE_UNSPECIFIED":return 0;case 1:case"MESSAGE_LOGGER_STATE_PRESTART":return 1;case 2:case"MESSAGE_LOGGER_STATE_STARTED":return 2;case 3:case"MESSAGE_LOGGER_STATE_STOPPED":return 3;case-1:case"UNRECOGNIZED":default:return-1}}function Cn(e){switch(e){case 0:return"MESSAGE_LOGGER_STATE_UNSPECIFIED";case 1:return"MESSAGE_LOGGER_STATE_PRESTART";case 2:return"MESSAGE_LOGGER_STATE_STARTED";case 3:return"MESSAGE_LOGGER_STATE_STOPPED";case-1:default:return"UNRECOGNIZED"}}function je(){return{rxMessageCounter:0,rxMessagesPerSecond:0,txMessageCounter:0,txMessagesPerSecond:0,errorFrameCounter:0,errorFramesPerSecond:0,overrunCounter:0,overrunsPerSecond:0,rxErrorCounter:0,txErrorCounter:0,overrunErrorCounter:0,busOnStatus:0,errorStatus:0,overrunStatus:0,busLoad:0}}const k={encode(e,r=new a.BinaryWriter){return e.rxMessageCounter!==0&&r.uint32(8).int32(e.rxMessageCounter),e.rxMessagesPerSecond!==0&&r.uint32(16).int32(e.rxMessagesPerSecond),e.txMessageCounter!==0&&r.uint32(24).int32(e.txMessageCounter),e.txMessagesPerSecond!==0&&r.uint32(32).int32(e.txMessagesPerSecond),e.errorFrameCounter!==0&&r.uint32(40).int32(e.errorFrameCounter),e.errorFramesPerSecond!==0&&r.uint32(48).int32(e.errorFramesPerSecond),e.overrunCounter!==0&&r.uint32(56).int32(e.overrunCounter),e.overrunsPerSecond!==0&&r.uint32(64).int32(e.overrunsPerSecond),e.rxErrorCounter!==0&&r.uint32(72).int32(e.rxErrorCounter),e.txErrorCounter!==0&&r.uint32(80).int32(e.txErrorCounter),e.overrunErrorCounter!==0&&r.uint32(88).int32(e.overrunErrorCounter),e.busOnStatus!==0&&r.uint32(96).int32(e.busOnStatus),e.errorStatus!==0&&r.uint32(104).int32(e.errorStatus),e.overrunStatus!==0&&r.uint32(112).int32(e.overrunStatus),e.busLoad!==0&&r.uint32(120).int32(e.busLoad),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=je();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==8)break;t.rxMessageCounter=n.int32();continue}case 2:{if(i!==16)break;t.rxMessagesPerSecond=n.int32();continue}case 3:{if(i!==24)break;t.txMessageCounter=n.int32();continue}case 4:{if(i!==32)break;t.txMessagesPerSecond=n.int32();continue}case 5:{if(i!==40)break;t.errorFrameCounter=n.int32();continue}case 6:{if(i!==48)break;t.errorFramesPerSecond=n.int32();continue}case 7:{if(i!==56)break;t.overrunCounter=n.int32();continue}case 8:{if(i!==64)break;t.overrunsPerSecond=n.int32();continue}case 9:{if(i!==72)break;t.rxErrorCounter=n.int32();continue}case 10:{if(i!==80)break;t.txErrorCounter=n.int32();continue}case 11:{if(i!==88)break;t.overrunErrorCounter=n.int32();continue}case 12:{if(i!==96)break;t.busOnStatus=n.int32();continue}case 13:{if(i!==104)break;t.errorStatus=n.int32();continue}case 14:{if(i!==112)break;t.overrunStatus=n.int32();continue}case 15:{if(i!==120)break;t.busLoad=n.int32();continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{rxMessageCounter:p(e.rxMessageCounter)?globalThis.Number(e.rxMessageCounter):0,rxMessagesPerSecond:p(e.rxMessagesPerSecond)?globalThis.Number(e.rxMessagesPerSecond):0,txMessageCounter:p(e.txMessageCounter)?globalThis.Number(e.txMessageCounter):0,txMessagesPerSecond:p(e.txMessagesPerSecond)?globalThis.Number(e.txMessagesPerSecond):0,errorFrameCounter:p(e.errorFrameCounter)?globalThis.Number(e.errorFrameCounter):0,errorFramesPerSecond:p(e.errorFramesPerSecond)?globalThis.Number(e.errorFramesPerSecond):0,overrunCounter:p(e.overrunCounter)?globalThis.Number(e.overrunCounter):0,overrunsPerSecond:p(e.overrunsPerSecond)?globalThis.Number(e.overrunsPerSecond):0,rxErrorCounter:p(e.rxErrorCounter)?globalThis.Number(e.rxErrorCounter):0,txErrorCounter:p(e.txErrorCounter)?globalThis.Number(e.txErrorCounter):0,overrunErrorCounter:p(e.overrunErrorCounter)?globalThis.Number(e.overrunErrorCounter):0,busOnStatus:p(e.busOnStatus)?D(e.busOnStatus):0,errorStatus:p(e.errorStatus)?D(e.errorStatus):0,overrunStatus:p(e.overrunStatus)?D(e.overrunStatus):0,busLoad:p(e.busLoad)?globalThis.Number(e.busLoad):0}},toJSON(e){const r={};return e.rxMessageCounter!==0&&(r.rxMessageCounter=Math.round(e.rxMessageCounter)),e.rxMessagesPerSecond!==0&&(r.rxMessagesPerSecond=Math.round(e.rxMessagesPerSecond)),e.txMessageCounter!==0&&(r.txMessageCounter=Math.round(e.txMessageCounter)),e.txMessagesPerSecond!==0&&(r.txMessagesPerSecond=Math.round(e.txMessagesPerSecond)),e.errorFrameCounter!==0&&(r.errorFrameCounter=Math.round(e.errorFrameCounter)),e.errorFramesPerSecond!==0&&(r.errorFramesPerSecond=Math.round(e.errorFramesPerSecond)),e.overrunCounter!==0&&(r.overrunCounter=Math.round(e.overrunCounter)),e.overrunsPerSecond!==0&&(r.overrunsPerSecond=Math.round(e.overrunsPerSecond)),e.rxErrorCounter!==0&&(r.rxErrorCounter=Math.round(e.rxErrorCounter)),e.txErrorCounter!==0&&(r.txErrorCounter=Math.round(e.txErrorCounter)),e.overrunErrorCounter!==0&&(r.overrunErrorCounter=Math.round(e.overrunErrorCounter)),e.busOnStatus!==0&&(r.busOnStatus=M(e.busOnStatus)),e.errorStatus!==0&&(r.errorStatus=M(e.errorStatus)),e.overrunStatus!==0&&(r.overrunStatus=M(e.overrunStatus)),e.busLoad!==0&&(r.busLoad=Math.round(e.busLoad)),r},create(e){return k.fromPartial(e??{})},fromPartial(e){const r=je();return r.rxMessageCounter=e.rxMessageCounter??0,r.rxMessagesPerSecond=e.rxMessagesPerSecond??0,r.txMessageCounter=e.txMessageCounter??0,r.txMessagesPerSecond=e.txMessagesPerSecond??0,r.errorFrameCounter=e.errorFrameCounter??0,r.errorFramesPerSecond=e.errorFramesPerSecond??0,r.overrunCounter=e.overrunCounter??0,r.overrunsPerSecond=e.overrunsPerSecond??0,r.rxErrorCounter=e.rxErrorCounter??0,r.txErrorCounter=e.txErrorCounter??0,r.overrunErrorCounter=e.overrunErrorCounter??0,r.busOnStatus=e.busOnStatus??0,r.errorStatus=e.errorStatus??0,r.overrunStatus=e.overrunStatus??0,r.busLoad=e.busLoad??0,r}};function er(){return{errorCounter:0,lastExecutionTime:d.ZERO,minExecutionTime:d.ZERO,maxExecutionTime:d.ZERO}}const g={encode(e,r=new a.BinaryWriter){return e.errorCounter!==0&&r.uint32(8).int32(e.errorCounter),e.lastExecutionTime.equals(d.ZERO)||r.uint32(16).int64(e.lastExecutionTime.toString()),e.minExecutionTime.equals(d.ZERO)||r.uint32(24).int64(e.minExecutionTime.toString()),e.maxExecutionTime.equals(d.ZERO)||r.uint32(32).int64(e.maxExecutionTime.toString()),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=er();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==8)break;t.errorCounter=n.int32();continue}case 2:{if(i!==16)break;t.lastExecutionTime=d.fromString(n.int64().toString());continue}case 3:{if(i!==24)break;t.minExecutionTime=d.fromString(n.int64().toString());continue}case 4:{if(i!==32)break;t.maxExecutionTime=d.fromString(n.int64().toString());continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{errorCounter:p(e.errorCounter)?globalThis.Number(e.errorCounter):0,lastExecutionTime:p(e.lastExecutionTime)?d.fromValue(e.lastExecutionTime):d.ZERO,minExecutionTime:p(e.minExecutionTime)?d.fromValue(e.minExecutionTime):d.ZERO,maxExecutionTime:p(e.maxExecutionTime)?d.fromValue(e.maxExecutionTime):d.ZERO}},toJSON(e){const r={};return e.errorCounter!==0&&(r.errorCounter=Math.round(e.errorCounter)),e.lastExecutionTime.equals(d.ZERO)||(r.lastExecutionTime=(e.lastExecutionTime||d.ZERO).toString()),e.minExecutionTime.equals(d.ZERO)||(r.minExecutionTime=(e.minExecutionTime||d.ZERO).toString()),e.maxExecutionTime.equals(d.ZERO)||(r.maxExecutionTime=(e.maxExecutionTime||d.ZERO).toString()),r},create(e){return g.fromPartial(e??{})},fromPartial(e){const r=er();return r.errorCounter=e.errorCounter??0,r.lastExecutionTime=e.lastExecutionTime!==void 0&&e.lastExecutionTime!==null?d.fromValue(e.lastExecutionTime):d.ZERO,r.minExecutionTime=e.minExecutionTime!==void 0&&e.minExecutionTime!==null?d.fromValue(e.minExecutionTime):d.ZERO,r.maxExecutionTime=e.maxExecutionTime!==void 0&&e.maxExecutionTime!==null?d.fromValue(e.maxExecutionTime):d.ZERO,r}};function rr(){return{state:0}}const y={encode(e,r=new a.BinaryWriter){return e.state!==0&&r.uint32(8).int32(e.state),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=rr();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==8)break;t.state=n.int32();continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{state:p(e.state)?Rn(e.state):0}},toJSON(e){const r={};return e.state!==0&&(r.state=An(e.state)),r},create(e){return y.fromPartial(e??{})},fromPartial(e){const r=rr();return r.state=e.state??0,r}};function nr(){return{state:0}}const B={encode(e,r=new a.BinaryWriter){return e.state!==0&&r.uint32(8).int32(e.state),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=nr();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==8)break;t.state=n.int32();continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{state:p(e.state)?_n(e.state):0}},toJSON(e){const r={};return e.state!==0&&(r.state=Cn(e.state)),r},create(e){return B.fromPartial(e??{})},fromPartial(e){const r=nr();return r.state=e.state??0,r}};function ir(){return{errors:""}}const L={encode(e,r=new a.BinaryWriter){return e.errors!==""&&r.uint32(10).string(e.errors),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=ir();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.errors=n.string();continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{errors:p(e.errors)?globalThis.String(e.errors):""}},toJSON(e){const r={};return e.errors!==""&&(r.errors=e.errors),r},create(e){return L.fromPartial(e??{})},fromPartial(e){const r=ir();return r.errors=e.errors??"",r}};function tr(){return{nodeId:"",nodeName:"",streamId:"",busStatus:void 0,dataProcessingStatus:void 0,logReplayStatus:void 0,messageLoggerStatus:void 0,errorStatus:void 0}}const I={encode(e,r=new a.BinaryWriter){return e.nodeId!==""&&r.uint32(10).string(e.nodeId),e.nodeName!==""&&r.uint32(18).string(e.nodeName),e.streamId!==""&&r.uint32(26).string(e.streamId),e.busStatus!==void 0&&k.encode(e.busStatus,r.uint32(34).fork()).join(),e.dataProcessingStatus!==void 0&&g.encode(e.dataProcessingStatus,r.uint32(42).fork()).join(),e.logReplayStatus!==void 0&&y.encode(e.logReplayStatus,r.uint32(50).fork()).join(),e.messageLoggerStatus!==void 0&&B.encode(e.messageLoggerStatus,r.uint32(58).fork()).join(),e.errorStatus!==void 0&&L.encode(e.errorStatus,r.uint32(66).fork()).join(),r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=tr();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.nodeId=n.string();continue}case 2:{if(i!==18)break;t.nodeName=n.string();continue}case 3:{if(i!==26)break;t.streamId=n.string();continue}case 4:{if(i!==34)break;t.busStatus=k.decode(n,n.uint32());continue}case 5:{if(i!==42)break;t.dataProcessingStatus=g.decode(n,n.uint32());continue}case 6:{if(i!==50)break;t.logReplayStatus=y.decode(n,n.uint32());continue}case 7:{if(i!==58)break;t.messageLoggerStatus=B.decode(n,n.uint32());continue}case 8:{if(i!==66)break;t.errorStatus=L.decode(n,n.uint32());continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{nodeId:p(e.nodeId)?globalThis.String(e.nodeId):"",nodeName:p(e.nodeName)?globalThis.String(e.nodeName):"",streamId:p(e.streamId)?globalThis.String(e.streamId):"",busStatus:p(e.busStatus)?k.fromJSON(e.busStatus):void 0,dataProcessingStatus:p(e.dataProcessingStatus)?g.fromJSON(e.dataProcessingStatus):void 0,logReplayStatus:p(e.logReplayStatus)?y.fromJSON(e.logReplayStatus):void 0,messageLoggerStatus:p(e.messageLoggerStatus)?B.fromJSON(e.messageLoggerStatus):void 0,errorStatus:p(e.errorStatus)?L.fromJSON(e.errorStatus):void 0}},toJSON(e){const r={};return e.nodeId!==""&&(r.nodeId=e.nodeId),e.nodeName!==""&&(r.nodeName=e.nodeName),e.streamId!==""&&(r.streamId=e.streamId),e.busStatus!==void 0&&(r.busStatus=k.toJSON(e.busStatus)),e.dataProcessingStatus!==void 0&&(r.dataProcessingStatus=g.toJSON(e.dataProcessingStatus)),e.logReplayStatus!==void 0&&(r.logReplayStatus=y.toJSON(e.logReplayStatus)),e.messageLoggerStatus!==void 0&&(r.messageLoggerStatus=B.toJSON(e.messageLoggerStatus)),e.errorStatus!==void 0&&(r.errorStatus=L.toJSON(e.errorStatus)),r},create(e){return I.fromPartial(e??{})},fromPartial(e){const r=tr();return r.nodeId=e.nodeId??"",r.nodeName=e.nodeName??"",r.streamId=e.streamId??"",r.busStatus=e.busStatus!==void 0&&e.busStatus!==null?k.fromPartial(e.busStatus):void 0,r.dataProcessingStatus=e.dataProcessingStatus!==void 0&&e.dataProcessingStatus!==null?g.fromPartial(e.dataProcessingStatus):void 0,r.logReplayStatus=e.logReplayStatus!==void 0&&e.logReplayStatus!==null?y.fromPartial(e.logReplayStatus):void 0,r.messageLoggerStatus=e.messageLoggerStatus!==void 0&&e.messageLoggerStatus!==null?B.fromPartial(e.messageLoggerStatus):void 0,r.errorStatus=e.errorStatus!==void 0&&e.errorStatus!==null?L.fromPartial(e.errorStatus):void 0,r}};function ar(){return{items:[]}}const kn={encode(e,r=new a.BinaryWriter){for(const n of e.items)I.encode(n,r.uint32(10).fork()).join();return r},decode(e,r){const n=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let o=r===void 0?n.len:n.pos+r;const t=ar();for(;n.pos<o;){const i=n.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.items.push(I.decode(n,n.uint32()));continue}}if((i&7)===4||i===0)break;n.skip(i&7)}return t},fromJSON(e){return{items:globalThis.Array.isArray(e==null?void 0:e.items)?e.items.map(r=>I.fromJSON(r)):[]}},toJSON(e){var n;const r={};return(n=e.items)!=null&&n.length&&(r.items=e.items.map(o=>I.toJSON(o))),r},create(e){return kn.fromPartial(e??{})},fromPartial(e){var n;const r=ar();return r.items=((n=e.items)==null?void 0:n.map(o=>I.fromPartial(o)))||[],r}};function p(e){return e!=null}exports.AboutInformation=Or;exports.ActivateLicenseRequest=hr;exports.AddAllConnectedCanChannelsRequest=qr;exports.AddAllConnectedLinChannelsRequest=Wr;exports.AddOrUpdateDataProcessorRequest=Zr;exports.AddOrUpdateSourceRequest=Hr;exports.AddOrUpdateTargetRequest=Qr;exports.ApiPreferences=s;exports.AppEvent=ur;exports.AppEventArgs=Nr;exports.BusStatus=k;exports.CanBusParamLimits=R;exports.CanBusParams=N;exports.CanBusSpeedInfo=E;exports.CanChannelCap=Rr;exports.CanChannelCapacity=A;exports.CanFDBusSpeedCombination=v;exports.CanFDBusSpeedInfo=S;exports.Channel=T;exports.ClearLinMessageRequest=an;exports.ConnectNodesRequest=Xr;exports.DataProcessingStatus=g;exports.Device=P;exports.DeviceEvent=Cr;exports.DeviceEventArgs=Gr;exports.Devices=_;exports.DisconnectNodesRequest=$r;exports.Empty=or;exports.ErrorStatus=L;exports.GetCanChannelBusSpeedsRequest=Lr;exports.GetCanChannelBusSpeedsResponse=Ir;exports.GetCanFdBusSpeedsRequest=Mr;exports.GetCanFdBusSpeedsResponse=xr;exports.GetChannelsFromLogFileRequest=fn;exports.GetChannelsFromLogFileResponse=ln;exports.GetClassicCanBusSpeedsRequest=Jr;exports.GetClassicCanBusSpeedsResponse=Dr;exports.GetDataProcessorResponse=Kr;exports.GetDevicesRequest=yr;exports.GetDevicesResponse=Br;exports.GetFrameDefinitionsFromDatabaseFilesRequest=pn;exports.GetLicensesResponse=Pr;exports.GetLogFileFormatsRequest=cn;exports.GetLogFileFormatsResponse=dn;exports.GetLogLevelResponse=lr;exports.GetScheduleTablesFromDatabaseFilesRequest=Nn;exports.GetScheduleTablesFromDatabaseFilesResponse=Sn;exports.GetServiceExtensionInfoRequest=Er;exports.GetServiceExtensionInfoResponse=vr;exports.GetSignalDataFromMessageDataRequest=mn;exports.GetSignalDataFromMessageDataResponse=En;exports.GetSourceResponse=wr;exports.GetTargetResponse=Yr;exports.IdentifierRequest=zr;exports.IdentifiersRequest=jr;exports.InstallServiceExtensionRequest=Sr;exports.LicenseInformation=m;exports.Licenses=O;exports.LogLevel=sr;exports.LogMessage=h;exports.LogMessages=pr;exports.LogReplayState=On;exports.LogReplayStatus=y;exports.MeasurementEvent=br;exports.MeasurementEventArgs=un;exports.MessageLoggerState=Tn;exports.MessageLoggerStatus=B;exports.NodeStatus=I;exports.NodeStatuses=kn;exports.OnlineStatus=C;exports.Protocols=_r;exports.RequestLinMessageRequest=nn;exports.SendLinWakeupFrameRequest=rn;exports.SendMessageRequest=en;exports.SetLogLevelRequest=fr;exports.SetMeasurementSetupRequest=Ur;exports.SetSignalDataToMessageDataRequest=vn;exports.SetSignalDataToMessageDataResponse=Pn;exports.StartPeriodicTransmissionRequest=on;exports.StartPeriodicTransmissionResponse=sn;exports.StatusLevel=hn;exports.UninstallServiceExtensionRequest=mr;exports.UpdateLinMessageRequest=tn;exports.appEventFromJSON=cr;exports.appEventToJSON=dr;exports.canChannelCapFromJSON=Ar;exports.canChannelCapToJSON=Tr;exports.deviceEventFromJSON=kr;exports.deviceEventToJSON=gr;exports.logLevelFromJSON=x;exports.logLevelToJSON=G;exports.logReplayStateFromJSON=Rn;exports.logReplayStateToJSON=An;exports.measurementEventFromJSON=Vr;exports.measurementEventToJSON=Fr;exports.messageLoggerStateFromJSON=_n;exports.messageLoggerStateToJSON=Cn;exports.protocolsFromJSON=b;exports.protocolsToJSON=V;exports.statusLevelFromJSON=D;exports.statusLevelToJSON=M;
|