@kvaser/canking-api 7.1.0 → 7.2.1
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/REDISTRIBUTABLES.txt +2 -0
- package/dist/ElectronAPIFake.js +1 -1
- package/dist/ElectronAPIFake.mjs +18 -15
- package/dist/controls/CanIdentifierControl.d.ts +45 -8
- package/dist/controls/ColumnItemControl.d.ts +1 -1
- package/dist/controls/DropdownButton.d.ts +1 -1
- package/dist/controls/LinChannelSelectControl.d.ts +34 -0
- package/dist/controls/LinIdentifierControl.d.ts +224 -0
- package/dist/controls/SelectMessageDialog.d.ts +28 -0
- package/dist/controls/SelectSignalControl.d.ts +11 -0
- package/dist/controls/SelectSignalDialog.d.ts +21 -0
- package/dist/controls/TableControl.d.ts +7 -1
- package/dist/controls/index.d.ts +10 -0
- package/dist/controls.js +1 -1
- package/dist/controls.mjs +1761 -949
- package/dist/grpc.js +1 -1
- package/dist/grpc.mjs +111 -97
- package/dist/hooks/index.d.ts +6 -1
- package/dist/hooks.js +1 -1
- package/dist/hooks.mjs +17 -16
- package/dist/icons/index.d.ts +6 -0
- package/dist/icons.js +1 -1
- package/dist/icons.mjs +87 -75
- package/dist/index.js +1 -1
- package/dist/index.mjs +48 -42
- package/dist/ipc/index.d.ts +24 -0
- package/dist/ipc.js +1 -1
- package/dist/ipc.mjs +68 -58
- package/dist/measurement_settings.js +1 -1
- package/dist/measurement_settings.mjs +3186 -1328
- package/dist/models.js +1 -1
- package/dist/models.mjs +202 -197
- package/dist/protos/device_params.d.ts +14 -25
- package/dist/protos/frame_params.d.ts +9 -1
- package/dist/protos/measurement_params.d.ts +2 -0
- package/dist/protos/measurement_service.d.ts +29 -1
- package/dist/protos/measurement_settings.d.ts +103 -32
- package/dist/protos/signal_params.d.ts +3 -3
- package/dist/protos/status_params.d.ts +9 -9
- package/dist/status_params.js +1 -1
- package/dist/status_params.mjs +655 -2169
- package/doc/assets/hierarchy.js +1 -1
- package/doc/assets/navigation.js +1 -1
- package/doc/assets/search.js +1 -1
- package/doc/classes/controls.LocalizedStrings.html +2 -2
- package/doc/classes/models.DataBuffer.html +2 -2
- package/doc/classes/models.DataBufferView.html +2 -2
- package/doc/classes/models.Point.html +2 -2
- package/doc/enums/models.AccessMode.html +2 -2
- package/doc/enums/models.AppEvent.html +2 -2
- package/doc/enums/models.CanChannelCap.html +2 -2
- package/doc/enums/models.CanFrameFlag.html +2 -2
- package/doc/enums/models.CanMessageFilterType.html +6 -0
- package/doc/enums/models.CanMode.html +2 -2
- package/doc/enums/models.DecimalChar.html +2 -2
- package/doc/enums/models.DeviceEvent.html +2 -2
- package/doc/enums/models.FileConflictAction.html +2 -2
- package/doc/enums/models.FileType.html +2 -2
- package/doc/enums/models.LinFrameFlag.html +2 -2
- package/doc/enums/models.LogFileFormat.html +5 -5
- package/doc/enums/models.LogLevel.html +2 -2
- package/doc/enums/models.LogReplayState.html +2 -2
- package/doc/enums/{models.MessageLoggerState.html → models.LoggerState.html} +7 -7
- package/doc/enums/models.MeasurementEvent.html +2 -2
- package/doc/enums/models.Protocols.html +2 -2
- package/doc/enums/models.Separator.html +2 -2
- package/doc/enums/models.SignalEncoding.html +2 -2
- package/doc/enums/models.SignalType.html +2 -2
- package/doc/enums/models.SignalValueTriggerOperator.html +2 -2
- package/doc/enums/models.StatusLevel.html +2 -2
- package/doc/enums/models.TimeReference.html +2 -2
- package/doc/enums/models.TriggerOperator.html +2 -2
- package/doc/functions/controls.CanChannelSelectControl.html +2 -2
- package/doc/functions/controls.CanIdentifierControl.html +2 -2
- package/doc/functions/controls.CanIdentifierFrameControl.html +2 -2
- package/doc/functions/controls.CanIdentifierGeneratorControl.html +2 -2
- package/doc/functions/controls.CanIdentifierGeneratorSettingsControl.html +2 -2
- package/doc/functions/controls.CanKingDataProvider.html +2 -2
- package/doc/functions/controls.CheckboxControl.html +2 -2
- package/doc/functions/controls.ColumnItemControl.html +2 -2
- package/doc/functions/controls.ContextMenu.html +2 -2
- package/doc/functions/controls.DropdownButton.html +2 -2
- package/doc/functions/controls.DropdownButtonTextItems.html +2 -2
- package/doc/functions/controls.DropdownPanel.html +2 -2
- package/doc/functions/controls.FillBox.html +2 -2
- package/doc/functions/controls.FormControlRow.html +2 -2
- package/doc/functions/controls.InlineEditor.html +2 -2
- package/doc/functions/controls.LinChannelSelectControl.html +4 -0
- package/doc/functions/controls.LinIdentifierControl.html +4 -0
- package/doc/functions/controls.LinIdentifierFrameControl.html +4 -0
- package/doc/functions/controls.LinIdentifierGeneratorControl.html +4 -0
- package/doc/functions/controls.LinIdentifierGeneratorSettingsControl.html +5 -0
- package/doc/functions/controls.NumberRangeControl.html +2 -2
- package/doc/functions/controls.OneLineButton.html +2 -2
- package/doc/functions/controls.RadioControl.html +2 -2
- package/doc/functions/controls.RadioGroupControl.html +2 -2
- package/doc/functions/controls.SectionControl.html +2 -2
- package/doc/functions/controls.SelectControl.html +2 -2
- package/doc/functions/controls.SelectMessageDialog.html +2 -0
- package/doc/functions/controls.SelectSignalControl.html +1 -0
- package/doc/functions/controls.SelectSignalDialog.html +2 -0
- package/doc/functions/controls.SizedBox.html +2 -2
- package/doc/functions/controls.TableControl.html +2 -2
- package/doc/functions/controls.TabsPanel.html +2 -2
- package/doc/functions/controls.TextControl.html +2 -2
- package/doc/functions/controls.ToolbarControl.html +2 -2
- package/doc/functions/controls.ValidateableTextControl.html +2 -2
- package/doc/functions/controls.useColumnItem.html +3 -3
- package/doc/functions/controls.useColumnItems.html +3 -3
- package/doc/functions/controls.useMessageDatabases.html +2 -0
- package/doc/functions/hooks.useDevices.html +2 -2
- package/doc/functions/hooks.useIsOnline.html +2 -2
- package/doc/functions/hooks.useLanguage.html +2 -2
- package/doc/functions/hooks.useLocalizedStrings.html +2 -2
- package/doc/functions/hooks.useLogMessages.html +2 -2
- package/doc/functions/hooks.useMaxDataBytes.html +2 -2
- package/doc/functions/hooks.useMeasurementSetup.html +2 -2
- package/doc/functions/hooks.useMeasurementStatus.html +2 -2
- package/doc/functions/hooks.useMessageLogFileFormats.html +3 -2
- package/doc/functions/hooks.useNewMeasurementData.html +2 -2
- package/doc/functions/hooks.useNodeStatus.html +2 -2
- package/doc/functions/hooks.useNumericRadix.html +2 -2
- package/doc/functions/hooks.useOnlineStatus.html +2 -2
- package/doc/functions/hooks.useOverallStatusLevel.html +2 -2
- package/doc/functions/hooks.useProjectData.html +2 -2
- package/doc/functions/hooks.useRecentProjectFiles.html +2 -2
- package/doc/functions/hooks.useRunningPeriodicTransmissions.html +2 -2
- package/doc/functions/hooks.useSessionData.html +2 -2
- package/doc/functions/hooks.useSignalLogFileFormats.html +2 -0
- package/doc/functions/hooks.useUserSettings.html +2 -2
- package/doc/functions/hooks.useWorkspacePaneWithId.html +2 -2
- package/doc/functions/icons.AddIcon.html +2 -2
- package/doc/functions/icons.ArrowDownIcon.html +2 -2
- package/doc/functions/icons.ArrowLeftIcon.html +2 -2
- package/doc/functions/icons.ArrowRightIcon.html +2 -2
- package/doc/functions/icons.ArrowUpIcon.html +2 -2
- package/doc/functions/icons.BusIsOffIcon.html +2 -2
- package/doc/functions/icons.BusIsOnIcon.html +2 -2
- package/doc/functions/icons.CloseIcon.html +2 -2
- package/doc/functions/icons.ColumnSettingsIcon.html +4 -0
- package/doc/functions/icons.CopyIcon.html +2 -2
- package/doc/functions/icons.DarkModeIcon.html +2 -2
- package/doc/functions/icons.DeleteIcon.html +2 -2
- package/doc/functions/icons.DisableIcon.html +2 -2
- package/doc/functions/icons.EditIcon.html +2 -2
- package/doc/functions/icons.EnableIcon.html +4 -0
- package/doc/functions/icons.FilterIcon.html +2 -2
- package/doc/functions/icons.FixedPositionIcon.html +2 -2
- package/doc/functions/icons.LeaveFullScreenIcon.html +2 -2
- package/doc/functions/icons.LightModeIcon.html +2 -2
- package/doc/functions/icons.LineArrowDownIcon.html +2 -2
- package/doc/functions/icons.LineArrowUpIcon.html +2 -2
- package/doc/functions/icons.MaximizeWindowIcon.html +2 -2
- package/doc/functions/icons.MeasurementSetupIcon.html +2 -2
- package/doc/functions/icons.MoreHorizIcon.html +2 -2
- package/doc/functions/icons.MoreVertIcon.html +2 -2
- package/doc/functions/icons.NewIcon.html +2 -2
- package/doc/functions/icons.OpenExternallyIcon.html +2 -2
- package/doc/functions/icons.OpenIcon.html +2 -2
- package/doc/functions/icons.PauseIcon.html +2 -2
- package/doc/functions/icons.PlayIcon.html +2 -2
- package/doc/functions/icons.PlaySolidIcon.html +2 -2
- package/doc/functions/icons.SaveIcon.html +2 -2
- package/doc/functions/icons.SelectAllIcon.html +2 -2
- package/doc/functions/icons.ServiceIconActive.html +2 -2
- package/doc/functions/icons.ServiceIconInactive.html +2 -2
- package/doc/functions/icons.SettingsIcon.html +2 -2
- package/doc/functions/icons.StopIcon.html +2 -2
- package/doc/functions/icons.StopSolidIcon.html +2 -2
- package/doc/functions/icons.ToolsPanelHiddenIcon.html +2 -2
- package/doc/functions/icons.ToolsPanelVisibleIcon.html +2 -2
- package/doc/functions/icons.UnmaximizeWindowIcon.html +2 -2
- package/doc/functions/icons.WorkspacesIcon.html +2 -2
- package/doc/functions/ipc.addDataProcessor.html +2 -2
- package/doc/functions/ipc.addSource.html +2 -2
- package/doc/functions/ipc.addTarget.html +2 -2
- package/doc/functions/ipc.clearLinMessage.html +4 -0
- package/doc/functions/ipc.connectNodes.html +2 -2
- package/doc/functions/ipc.deleteDataProcessor.html +2 -2
- package/doc/functions/ipc.deleteSource.html +2 -2
- package/doc/functions/ipc.deleteTarget.html +2 -2
- package/doc/functions/ipc.disableNode.html +2 -2
- package/doc/functions/ipc.disconnectNodes.html +2 -2
- package/doc/functions/ipc.enableNode.html +2 -2
- package/doc/functions/ipc.getFrameDefinitions.html +2 -2
- package/doc/functions/ipc.getLogger.html +2 -2
- package/doc/functions/ipc.getMessageLogFileFormats.html +2 -2
- package/doc/functions/ipc.getSignalLogFileFormats.html +3 -0
- package/doc/functions/ipc.requestLinMessage.html +5 -0
- package/doc/functions/ipc.sendCanMessage.html +2 -2
- package/doc/functions/ipc.sendMessage.html +2 -2
- package/doc/functions/ipc.showMessageBox.html +2 -2
- package/doc/functions/ipc.showQuestionBox.html +2 -2
- package/doc/functions/ipc.startLogReplay.html +2 -2
- package/doc/functions/ipc.startMeasurement.html +2 -2
- package/doc/functions/ipc.startPeriodicTransmission.html +2 -2
- package/doc/functions/ipc.stopLogReplay.html +2 -2
- package/doc/functions/ipc.stopMeasurement.html +2 -2
- package/doc/functions/ipc.stopPeriodicTransmission.html +2 -2
- package/doc/functions/ipc.updateDataProcessor.html +2 -2
- package/doc/functions/ipc.updateLinMessage.html +4 -0
- package/doc/functions/ipc.updatePeriodicTransmission.html +2 -2
- package/doc/functions/ipc.updateSource.html +2 -2
- package/doc/functions/ipc.updateTarget.html +2 -2
- package/doc/functions/models.accessModeFromJSON.html +1 -1
- package/doc/functions/models.accessModeToJSON.html +1 -1
- package/doc/functions/models.appEventFromJSON.html +1 -1
- package/doc/functions/models.appEventToJSON.html +1 -1
- package/doc/functions/models.canChannelCapFromJSON.html +1 -1
- package/doc/functions/models.canChannelCapToJSON.html +1 -1
- package/doc/functions/models.canFrameFlagFromJSON.html +1 -1
- package/doc/functions/models.canFrameFlagToJSON.html +1 -1
- package/doc/functions/models.canMessageFilterTypeFromJSON.html +1 -0
- package/doc/functions/models.canMessageFilterTypeToJSON.html +1 -0
- package/doc/functions/models.canModeFromJSON.html +1 -1
- package/doc/functions/models.canModeToJSON.html +1 -1
- package/doc/functions/models.createElectronApiFake.html +2 -2
- package/doc/functions/models.decimalCharFromJSON.html +1 -1
- package/doc/functions/models.decimalCharToJSON.html +1 -1
- package/doc/functions/models.decimalToFixed.html +1 -1
- package/doc/functions/models.decimalToHex.html +1 -1
- package/doc/functions/models.deviceEventFromJSON.html +1 -1
- package/doc/functions/models.deviceEventToJSON.html +1 -1
- package/doc/functions/models.fileConflictActionFromJSON.html +1 -1
- package/doc/functions/models.fileConflictActionToJSON.html +1 -1
- package/doc/functions/models.fileTypeFromJSON.html +1 -1
- package/doc/functions/models.fileTypeToJSON.html +1 -1
- package/doc/functions/models.linFrameFlagFromJSON.html +1 -1
- package/doc/functions/models.linFrameFlagToJSON.html +1 -1
- package/doc/functions/models.logFileFormatFromJSON.html +1 -1
- package/doc/functions/models.logFileFormatToJSON.html +1 -1
- package/doc/functions/models.logLevelFromJSON.html +1 -1
- package/doc/functions/models.logLevelToJSON.html +1 -1
- package/doc/functions/models.logReplayStateFromJSON.html +1 -1
- package/doc/functions/models.logReplayStateToJSON.html +1 -1
- package/doc/functions/models.loggerStateFromJSON.html +1 -0
- package/doc/functions/models.loggerStateToJSON.html +1 -0
- package/doc/functions/models.longToNumber.html +1 -1
- package/doc/functions/models.measurementEventFromJSON.html +1 -1
- package/doc/functions/models.measurementEventToJSON.html +1 -1
- package/doc/functions/models.protocolsFromJSON.html +1 -1
- package/doc/functions/models.protocolsToJSON.html +1 -1
- package/doc/functions/models.separatorFromJSON.html +1 -1
- package/doc/functions/models.separatorToJSON.html +1 -1
- package/doc/functions/models.signalEncodingFromJSON.html +1 -1
- package/doc/functions/models.signalEncodingToJSON.html +1 -1
- package/doc/functions/models.signalTypeFromJSON.html +1 -1
- package/doc/functions/models.signalTypeToJSON.html +1 -1
- package/doc/functions/models.signalValueTriggerOperatorFromJSON.html +1 -1
- package/doc/functions/models.signalValueTriggerOperatorToJSON.html +1 -1
- package/doc/functions/models.statusLevelFromJSON.html +1 -1
- package/doc/functions/models.statusLevelToJSON.html +1 -1
- package/doc/functions/models.timeReferenceFromJSON.html +1 -1
- package/doc/functions/models.timeReferenceToJSON.html +1 -1
- package/doc/functions/models.triggerOperatorFromJSON.html +1 -1
- package/doc/functions/models.triggerOperatorToJSON.html +1 -1
- package/doc/hierarchy.html +1 -1
- package/doc/index.html +2 -2
- package/doc/interfaces/controls.ButtonGroupProps.html +2 -2
- package/doc/interfaces/controls.ButtonProps.html +2 -2
- package/doc/interfaces/controls.CanChannelSelectControlProps.html +2 -2
- package/doc/interfaces/controls.CanIdentifierControlProps.html +20 -4
- package/doc/interfaces/controls.CanIdentifierFrameControlProps.html +17 -3
- package/doc/interfaces/controls.CanIdentifierGeneratorControlProps.html +7 -7
- package/doc/interfaces/controls.CanIdentifierGeneratorSettingsControlProps.html +2 -2
- package/doc/interfaces/controls.CheckboxControlProps.html +2 -2
- package/doc/interfaces/controls.ColumnItem.html +3 -0
- package/doc/interfaces/controls.ColumnItemControlProps.html +2 -2
- package/doc/interfaces/controls.ContextMenuProps.html +2 -2
- package/doc/interfaces/controls.DropdownButtonChildrenProps.html +3 -3
- package/doc/interfaces/controls.DropdownButtonProps.html +2 -2
- package/doc/interfaces/controls.DropdownButtonTextItemsProps.html +5 -5
- package/doc/interfaces/controls.DropdownPanelProps.html +2 -2
- package/doc/interfaces/controls.FormControlRowProps.html +2 -2
- package/doc/interfaces/controls.ILocalizedStrings.html +2 -2
- package/doc/interfaces/controls.IMessageDatabase.html +4 -0
- package/doc/interfaces/controls.InlineEditorProps.html +2 -2
- package/doc/interfaces/controls.LabelProps.html +2 -2
- package/doc/interfaces/controls.LinChannelSelectControlProps.html +20 -0
- package/doc/interfaces/controls.LinIdentifierControlProps.html +35 -0
- package/doc/interfaces/controls.LinIdentifierFrameControlProps.html +33 -0
- package/doc/interfaces/controls.LinIdentifierGeneratorControlProps.html +37 -0
- package/doc/interfaces/controls.LinIdentifierGeneratorSettingsControlProps.html +25 -0
- package/doc/interfaces/controls.NumberRangeControlProps.html +2 -2
- package/doc/interfaces/controls.RadioControlProps.html +2 -2
- package/doc/interfaces/controls.RadioGroupControlProps.html +2 -2
- package/doc/interfaces/controls.SectionControlProps.html +2 -2
- package/doc/interfaces/controls.SelectControlProps.html +2 -2
- package/doc/interfaces/controls.SelectMessageDialogProps.html +8 -0
- package/doc/interfaces/controls.SelectSignalDialogProps.html +12 -0
- package/doc/interfaces/controls.TableColumn.html +2 -2
- package/doc/interfaces/controls.TableControlProps.html +9 -3
- package/doc/interfaces/controls.TextControlProps.html +2 -2
- package/doc/interfaces/controls.ToggleButtonGroupProps.html +2 -2
- package/doc/interfaces/controls.ToggleButtonProps.html +2 -2
- package/doc/interfaces/controls.ToolbarControlProps.html +2 -2
- package/doc/interfaces/controls.ValidateableTextControlProps.html +2 -2
- package/doc/interfaces/controls.toolbarItem.html +2 -2
- package/doc/interfaces/ipc.ILogger.html +2 -2
- package/doc/interfaces/models.AboutInformation.html +2 -2
- package/doc/interfaces/models.ActivateLicenseRequest.html +2 -2
- package/doc/interfaces/models.AddAllConnectedCanChannelsRequest.html +2 -2
- package/doc/interfaces/models.AddAllConnectedLinChannelsRequest.html +2 -2
- package/doc/interfaces/models.AddOrUpdateDataProcessorRequest.html +2 -2
- package/doc/interfaces/models.AddOrUpdateSourceRequest.html +2 -2
- package/doc/interfaces/models.AddOrUpdateTargetRequest.html +2 -2
- package/doc/interfaces/models.ApiPreferences.html +2 -2
- package/doc/interfaces/models.AppEventArgs.html +2 -2
- package/doc/interfaces/models.BaseNodeProperties.html +2 -2
- package/doc/interfaces/models.BusStatus.html +2 -2
- package/doc/interfaces/models.CanBusParamLimits.html +2 -2
- package/doc/interfaces/models.CanBusParams.html +2 -2
- package/doc/interfaces/models.CanBusSpeedInfo.html +7 -13
- package/doc/interfaces/models.CanChannelCapacity.html +2 -2
- package/doc/interfaces/models.CanChannelConfiguration.html +11 -7
- package/doc/interfaces/models.CanFDBusSpeedCombination.html +4 -4
- package/doc/interfaces/models.CanFDBusSpeedInfo.html +8 -16
- package/doc/interfaces/models.CanFrameFlags.html +2 -2
- package/doc/interfaces/models.CanMessageFilterSettings.html +3 -3
- package/doc/interfaces/models.Channel.html +2 -2
- package/doc/interfaces/models.ChannelSettings.html +2 -2
- package/doc/interfaces/models.ClearLinMessageRequest.html +2 -2
- package/doc/interfaces/models.ConnectNodesRequest.html +2 -2
- package/doc/interfaces/models.DataProcessingStatus.html +2 -2
- package/doc/interfaces/models.DataProcessorNodeProperties.html +2 -2
- package/doc/interfaces/models.DatabaseFiles.html +6 -0
- package/doc/interfaces/models.DatabasesSettings.html +2 -2
- package/doc/interfaces/models.Device.html +2 -2
- package/doc/interfaces/models.DeviceEventArgs.html +2 -2
- package/doc/interfaces/models.Devices.html +2 -2
- package/doc/interfaces/models.DisconnectNodesRequest.html +2 -2
- package/doc/interfaces/models.Empty.html +2 -2
- package/doc/interfaces/models.ErrorStatus.html +2 -2
- package/doc/interfaces/models.Frame.html +2 -2
- package/doc/interfaces/models.FrameDefinition.html +2 -2
- package/doc/interfaces/models.FrameDefinitions.html +2 -2
- package/doc/interfaces/models.FramePropertyValue.html +2 -2
- package/doc/interfaces/models.FrameReceivedTrigger.html +2 -2
- package/doc/interfaces/models.Frame_PropertiesEntry.html +2 -2
- package/doc/interfaces/models.Frames.html +2 -2
- package/doc/interfaces/models.GetCanChannelBusSpeedsRequest.html +6 -3
- package/doc/interfaces/models.GetCanChannelBusSpeedsResponse.html +2 -2
- package/doc/interfaces/models.GetCanFdBusSpeedsRequest.html +2 -2
- package/doc/interfaces/models.GetCanFdBusSpeedsResponse.html +2 -2
- package/doc/interfaces/models.GetChannelsFromLogFileRequest.html +2 -2
- package/doc/interfaces/models.GetChannelsFromLogFileResponse.html +2 -2
- package/doc/interfaces/models.GetClassicCanBusSpeedsRequest.html +2 -2
- package/doc/interfaces/models.GetClassicCanBusSpeedsResponse.html +2 -2
- package/doc/interfaces/models.GetDataProcessorResponse.html +2 -2
- package/doc/interfaces/models.GetDevicesRequest.html +2 -2
- package/doc/interfaces/models.GetDevicesResponse.html +2 -2
- package/doc/interfaces/models.GetFrameDefinitionsFromDatabaseFilesRequest.html +2 -2
- package/doc/interfaces/models.GetLicensesResponse.html +2 -2
- package/doc/interfaces/models.GetLogFileFormatsRequest.html +6 -4
- package/doc/interfaces/models.GetLogFileFormatsResponse.html +2 -2
- package/doc/interfaces/models.GetLogLevelResponse.html +2 -2
- package/doc/interfaces/models.GetScheduleTablesFromDatabaseFilesRequest.html +2 -2
- package/doc/interfaces/models.GetScheduleTablesFromDatabaseFilesResponse.html +2 -2
- package/doc/interfaces/models.GetServiceExtensionInfoRequest.html +2 -2
- package/doc/interfaces/models.GetServiceExtensionInfoResponse.html +2 -2
- package/doc/interfaces/models.GetSignalDataFromMessageDataRequest.html +2 -2
- package/doc/interfaces/models.GetSignalDataFromMessageDataResponse.html +2 -2
- package/doc/interfaces/models.GetSourceResponse.html +2 -2
- package/doc/interfaces/models.GetTargetResponse.html +2 -2
- package/doc/interfaces/models.ILogFileFormat.html +2 -2
- package/doc/interfaces/models.IProject.html +2 -2
- package/doc/interfaces/models.IUserSettings.html +2 -2
- package/doc/interfaces/models.IWorkspaceComponentPaneData.html +2 -2
- package/doc/interfaces/models.IWorkspaceContainerPaneData.html +2 -2
- package/doc/interfaces/models.IWorkspaceData.html +2 -2
- package/doc/interfaces/models.IWorkspacePaneData.html +2 -2
- package/doc/interfaces/models.IdentifierRequest.html +2 -2
- package/doc/interfaces/models.IdentifiersRequest.html +2 -2
- package/doc/interfaces/models.InstallServiceExtensionRequest.html +2 -2
- package/doc/interfaces/models.InterpreterSettings.html +2 -2
- package/doc/interfaces/models.J1939InterpreterSettings.html +2 -2
- package/doc/interfaces/models.LicenseInformation.html +2 -2
- package/doc/interfaces/models.Licenses.html +2 -2
- package/doc/interfaces/models.LinChannelConfiguration.html +5 -3
- package/doc/interfaces/models.LinFrameFlags.html +2 -2
- package/doc/interfaces/models.LogMessage.html +2 -2
- package/doc/interfaces/models.LogMessages.html +2 -2
- package/doc/interfaces/models.LogReplaySettings.html +2 -2
- package/doc/interfaces/models.LogReplaySettings_ChannelIdentifiersEntry.html +2 -2
- package/doc/interfaces/models.LogReplayStatus.html +2 -2
- package/doc/interfaces/models.LoggerStatus.html +3 -0
- package/doc/interfaces/models.MeasurementEventArgs.html +2 -2
- package/doc/interfaces/models.MeasurementSetup.html +2 -2
- package/doc/interfaces/models.MessageLoggerSettings.html +18 -14
- package/doc/interfaces/models.NodeStatus.html +5 -5
- package/doc/interfaces/models.NodeStatuses.html +2 -2
- package/doc/interfaces/models.OnlineStatus.html +2 -2
- package/doc/interfaces/models.PeriodicTransmissionSettings.html +2 -2
- package/doc/interfaces/models.RequestLinMessageRequest.html +2 -2
- package/doc/interfaces/models.ScheduleTable.html +2 -2
- package/doc/interfaces/models.ScheduleTableEntry.html +2 -2
- package/doc/interfaces/models.SendLinWakeupFrameRequest.html +2 -2
- package/doc/interfaces/models.SendMessageRequest.html +2 -2
- package/doc/interfaces/models.ServiceExtensionSettings.html +2 -2
- package/doc/interfaces/models.SetLogLevelRequest.html +2 -2
- package/doc/interfaces/models.SetMeasurementSetupRequest.html +2 -2
- package/doc/interfaces/models.SetSignalDataToMessageDataRequest.html +2 -2
- package/doc/interfaces/models.SetSignalDataToMessageDataResponse.html +2 -2
- package/doc/interfaces/models.SignalDefinition.html +3 -3
- package/doc/interfaces/models.SignalDefinition_EnumValuesEntry.html +2 -2
- package/doc/interfaces/models.SignalDefinitions.html +2 -2
- package/doc/interfaces/models.SignalFilterSettings.html +4 -0
- package/doc/interfaces/models.SignalLoggerSettings.html +56 -0
- package/doc/interfaces/models.SignalValue.html +3 -3
- package/doc/interfaces/models.SignalValueTrigger.html +2 -2
- package/doc/interfaces/models.SourceNodeProperties.html +2 -2
- package/doc/interfaces/models.StartPeriodicTransmissionRequest.html +2 -2
- package/doc/interfaces/models.StartPeriodicTransmissionResponse.html +2 -2
- package/doc/interfaces/models.TargetNodeProperties.html +4 -3
- package/doc/interfaces/models.TriggerSettings.html +2 -2
- package/doc/interfaces/models.UninstallServiceExtensionRequest.html +2 -2
- package/doc/interfaces/models.UpdateLinMessageRequest.html +2 -2
- package/doc/interfaces/models.UpdatePeriodicTransmissionRequest.html +2 -2
- package/doc/interfaces/models.WriteFrame.html +2 -2
- package/doc/modules/controls.html +2 -2
- package/doc/modules/hooks.html +2 -2
- package/doc/modules/icons.html +2 -2
- package/doc/modules/ipc.html +2 -2
- package/doc/modules/models.html +2 -2
- package/doc/modules.html +1 -1
- package/doc/types/controls.ContextMenuOption.html +2 -2
- package/doc/types/controls.SelectOption.html +2 -2
- package/doc/types/controls.StringsMap.html +2 -2
- package/doc/types/controls.canIdentifierGeneratorType.html +2 -0
- package/doc/types/controls.canIdentifierType.html +2 -2
- package/doc/types/controls.linIdentifierGeneratorType.html +2 -0
- package/doc/types/models.IReadOnlyDataBuffer.html +1 -1
- package/doc/types/models.themes.html +1 -1
- package/doc/variables/models.AboutInformation-1.html +1 -1
- package/doc/variables/models.ActivateLicenseRequest-1.html +1 -1
- package/doc/variables/models.AddAllConnectedCanChannelsRequest-1.html +1 -1
- package/doc/variables/models.AddAllConnectedLinChannelsRequest-1.html +1 -1
- package/doc/variables/models.AddOrUpdateDataProcessorRequest-1.html +1 -1
- package/doc/variables/models.AddOrUpdateSourceRequest-1.html +1 -1
- package/doc/variables/models.AddOrUpdateTargetRequest-1.html +1 -1
- package/doc/variables/models.ApiPreferences-1.html +1 -1
- package/doc/variables/models.AppEventArgs-1.html +1 -1
- package/doc/variables/models.BaseNodeProperties-1.html +1 -1
- package/doc/variables/models.BusStatus-1.html +1 -1
- package/doc/variables/models.CanBusParamLimits-1.html +1 -1
- package/doc/variables/models.CanBusParams-1.html +1 -1
- package/doc/variables/models.CanBusSpeedInfo-1.html +1 -1
- package/doc/variables/models.CanChannelCapacity-1.html +1 -1
- package/doc/variables/models.CanChannelConfiguration-1.html +1 -1
- package/doc/variables/models.CanFDBusSpeedCombination-1.html +1 -1
- package/doc/variables/models.CanFDBusSpeedInfo-1.html +1 -1
- package/doc/variables/models.CanFrameFlags-1.html +1 -1
- package/doc/variables/models.CanMessageFilterSettings-1.html +1 -1
- package/doc/variables/models.Channel-1.html +1 -1
- package/doc/variables/models.ChannelSettings-1.html +1 -1
- package/doc/variables/models.ClearLinMessageRequest-1.html +1 -1
- package/doc/variables/models.ConnectNodesRequest-1.html +1 -1
- package/doc/variables/models.DataProcessingStatus-1.html +1 -1
- package/doc/variables/models.DataProcessorNodeProperties-1.html +1 -1
- package/doc/variables/models.DatabaseFiles-1.html +1 -0
- package/doc/variables/models.DatabasesSettings-1.html +1 -1
- package/doc/variables/models.Device-1.html +1 -1
- package/doc/variables/models.DeviceEventArgs-1.html +1 -1
- package/doc/variables/models.Devices-1.html +1 -1
- package/doc/variables/models.DisconnectNodesRequest-1.html +1 -1
- package/doc/variables/models.Empty-1.html +1 -1
- package/doc/variables/models.ErrorStatus-1.html +1 -1
- package/doc/variables/models.Frame-1.html +1 -1
- package/doc/variables/models.FrameDefinition-1.html +1 -1
- package/doc/variables/models.FrameDefinitions-1.html +1 -1
- package/doc/variables/models.FramePropertyValue-1.html +1 -1
- package/doc/variables/models.FrameReceivedTrigger-1.html +1 -1
- package/doc/variables/models.Frame_PropertiesEntry-1.html +1 -1
- package/doc/variables/models.Frames-1.html +1 -1
- package/doc/variables/models.GetCanChannelBusSpeedsRequest-1.html +1 -1
- package/doc/variables/models.GetCanChannelBusSpeedsResponse-1.html +1 -1
- package/doc/variables/models.GetCanFdBusSpeedsRequest-1.html +1 -1
- package/doc/variables/models.GetCanFdBusSpeedsResponse-1.html +1 -1
- package/doc/variables/models.GetChannelsFromLogFileRequest-1.html +1 -1
- package/doc/variables/models.GetChannelsFromLogFileResponse-1.html +1 -1
- package/doc/variables/models.GetClassicCanBusSpeedsRequest-1.html +1 -1
- package/doc/variables/models.GetClassicCanBusSpeedsResponse-1.html +1 -1
- package/doc/variables/models.GetDataProcessorResponse-1.html +1 -1
- package/doc/variables/models.GetDevicesRequest-1.html +1 -1
- package/doc/variables/models.GetDevicesResponse-1.html +1 -1
- package/doc/variables/models.GetFrameDefinitionsFromDatabaseFilesRequest-1.html +1 -1
- package/doc/variables/models.GetLicensesResponse-1.html +1 -1
- package/doc/variables/models.GetLogFileFormatsRequest-1.html +1 -1
- package/doc/variables/models.GetLogFileFormatsResponse-1.html +1 -1
- package/doc/variables/models.GetLogLevelResponse-1.html +1 -1
- package/doc/variables/models.GetScheduleTablesFromDatabaseFilesRequest-1.html +1 -1
- package/doc/variables/models.GetScheduleTablesFromDatabaseFilesResponse-1.html +1 -1
- package/doc/variables/models.GetServiceExtensionInfoRequest-1.html +1 -1
- package/doc/variables/models.GetServiceExtensionInfoResponse-1.html +1 -1
- package/doc/variables/models.GetSignalDataFromMessageDataRequest-1.html +1 -1
- package/doc/variables/models.GetSignalDataFromMessageDataResponse-1.html +1 -1
- package/doc/variables/models.GetSourceResponse-1.html +1 -1
- package/doc/variables/models.GetTargetResponse-1.html +1 -1
- package/doc/variables/models.IdentifierRequest-1.html +1 -1
- package/doc/variables/models.IdentifiersRequest-1.html +1 -1
- package/doc/variables/models.InstallServiceExtensionRequest-1.html +1 -1
- package/doc/variables/models.InterpreterSettings-1.html +1 -1
- package/doc/variables/models.J1939InterpreterSettings-1.html +1 -1
- package/doc/variables/models.LicenseInformation-1.html +1 -1
- package/doc/variables/models.Licenses-1.html +1 -1
- package/doc/variables/models.LinChannelConfiguration-1.html +1 -1
- package/doc/variables/models.LinFrameFlags-1.html +1 -1
- package/doc/variables/models.LogMessage-1.html +1 -1
- package/doc/variables/models.LogMessages-1.html +1 -1
- package/doc/variables/models.LogReplaySettings-1.html +1 -1
- package/doc/variables/models.LogReplaySettings_ChannelIdentifiersEntry-1.html +1 -1
- package/doc/variables/models.LogReplayStatus-1.html +1 -1
- package/doc/variables/models.LoggerStatus-1.html +1 -0
- package/doc/variables/models.MeasurementEventArgs-1.html +1 -1
- package/doc/variables/models.MeasurementSetup-1.html +1 -1
- package/doc/variables/models.MessageLoggerSettings-1.html +1 -1
- package/doc/variables/models.NodeStatus-1.html +1 -1
- package/doc/variables/models.NodeStatuses-1.html +1 -1
- package/doc/variables/models.OnlineStatus-1.html +1 -1
- package/doc/variables/models.PeriodicTransmissionSettings-1.html +1 -1
- package/doc/variables/models.RequestLinMessageRequest-1.html +1 -1
- package/doc/variables/models.ScheduleTable-1.html +1 -1
- package/doc/variables/models.ScheduleTableEntry-1.html +1 -1
- package/doc/variables/models.SendLinWakeupFrameRequest-1.html +1 -1
- package/doc/variables/models.SendMessageRequest-1.html +1 -1
- package/doc/variables/models.ServiceExtensionSettings-1.html +1 -1
- package/doc/variables/models.SetLogLevelRequest-1.html +1 -1
- package/doc/variables/models.SetMeasurementSetupRequest-1.html +1 -1
- package/doc/variables/models.SetSignalDataToMessageDataRequest-1.html +1 -1
- package/doc/variables/models.SetSignalDataToMessageDataResponse-1.html +1 -1
- package/doc/variables/models.SignalDefinition-1.html +1 -1
- package/doc/variables/models.SignalDefinition_EnumValuesEntry-1.html +1 -1
- package/doc/variables/models.SignalDefinitions-1.html +1 -1
- package/doc/variables/models.SignalFilterSettings-1.html +1 -0
- package/doc/variables/models.SignalLoggerSettings-1.html +1 -0
- package/doc/variables/models.SignalValue-1.html +1 -1
- package/doc/variables/models.SignalValueTrigger-1.html +1 -1
- package/doc/variables/models.SourceNodeProperties-1.html +1 -1
- package/doc/variables/models.StartPeriodicTransmissionRequest-1.html +1 -1
- package/doc/variables/models.StartPeriodicTransmissionResponse-1.html +1 -1
- package/doc/variables/models.TargetNodeProperties-1.html +1 -1
- package/doc/variables/models.TriggerSettings-1.html +1 -1
- package/doc/variables/models.UninstallServiceExtensionRequest-1.html +1 -1
- package/doc/variables/models.UpdateLinMessageRequest-1.html +1 -1
- package/doc/variables/models.UpdatePeriodicTransmissionRequest-1.html +1 -1
- package/doc/variables/models.WriteFrame-1.html +1 -1
- package/doc/variables/models.defaultUserSettings.html +2 -2
- package/package.json +14 -1
- package/doc/functions/models.messageLoggerStateFromJSON.html +0 -1
- package/doc/functions/models.messageLoggerStateToJSON.html +0 -1
- package/doc/interfaces/models.CanBusSpeed.html +0 -14
- package/doc/interfaces/models.MessageLoggerStatus.html +0 -3
- package/doc/variables/models.CanBusSpeed-1.html +0 -1
- package/doc/variables/models.MessageLoggerStatus-1.html +0 -1
package/dist/status_params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const a=require("./measurement_settings.js"),f=require("long");function F(){return{}}const un={encode(e,n=new a.BinaryWriter){return n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=F();for(;r.pos<s;){const i=r.uint32();if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{}},toJSON(e){return{}},create(e){return un.fromPartial(e??{})},fromPartial(e){return F()}};function U(){return{version:"",language:"",useHexNumericBase:!1,username:""}}const o={encode(e,n=new a.BinaryWriter){return e.version!==""&&n.uint32(10).string(e.version),e.language!==""&&n.uint32(18).string(e.language),e.useHexNumericBase!==!1&&n.uint32(24).bool(e.useHexNumericBase),e.username!==""&&n.uint32(34).string(e.username),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=U();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.version=r.string();continue}case 2:{if(i!==18)break;t.language=r.string();continue}case 3:{if(i!==24)break;t.useHexNumericBase=r.bool();continue}case 4:{if(i!==34)break;t.username=r.string();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{version:v(e.version)?globalThis.String(e.version):"",language:v(e.language)?globalThis.String(e.language):"",useHexNumericBase:v(e.useHexNumericBase)?globalThis.Boolean(e.useHexNumericBase):!1,username:v(e.username)?globalThis.String(e.username):""}},toJSON(e){const n={};return e.version!==""&&(n.version=e.version),e.language!==""&&(n.language=e.language),e.useHexNumericBase!==!1&&(n.useHexNumericBase=e.useHexNumericBase),e.username!==""&&(n.username=e.username),n},create(e){return o.fromPartial(e??{})},fromPartial(e){const n=U();return n.version=e.version??"",n.language=e.language??"",n.useHexNumericBase=e.useHexNumericBase??!1,n.username=e.username??"",n}};function v(e){return e!=null}var dn=(e=>(e[e.PROJECT_FILE=0]="PROJECT_FILE",e[e.LOG_FILE=1]="LOG_FILE",e[e.CAN_DATABASES=2]="CAN_DATABASES",e[e.LIN_DATABASES=3]="LIN_DATABASES",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(dn||{});function Ir(e){switch(e){case 0:case"PROJECT_FILE":return 0;case 1:case"LOG_FILE":return 1;case 2:case"CAN_DATABASES":return 2;case 3:case"LIN_DATABASES":return 3;case-1:case"UNRECOGNIZED":default:return-1}}function Jr(e){switch(e){case 0:return"PROJECT_FILE";case 1:return"LOG_FILE";case 2:return"CAN_DATABASES";case 3:return"LIN_DATABASES";case-1:default:return"UNRECOGNIZED"}}var fn=(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))(fn||{});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 cn=(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))(cn||{});function ln(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 pn(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 Nn={encode(e,n=new a.BinaryWriter){return e.preferences!==void 0&&o.encode(e.preferences,n.uint32(10).fork()).join(),e.logLevel!==0&&n.uint32(16).int32(e.logLevel),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=q();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=o.decode(r,r.uint32());continue}case 2:{if(i!==16)break;t.logLevel=r.int32();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{preferences:c(e.preferences)?o.fromJSON(e.preferences):void 0,logLevel:c(e.logLevel)?x(e.logLevel):0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=o.toJSON(e.preferences)),e.logLevel!==0&&(n.logLevel=G(e.logLevel)),n},create(e){return Nn.fromPartial(e??{})},fromPartial(e){const n=q();return n.preferences=e.preferences!==void 0&&e.preferences!==null?o.fromPartial(e.preferences):void 0,n.logLevel=e.logLevel??0,n}};function W(){return{logLevel:0}}const Sn={encode(e,n=new a.BinaryWriter){return e.logLevel!==0&&n.uint32(8).int32(e.logLevel),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=W();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==8)break;t.logLevel=r.int32();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{logLevel:c(e.logLevel)?x(e.logLevel):0}},toJSON(e){const n={};return e.logLevel!==0&&(n.logLevel=G(e.logLevel)),n},create(e){return Sn.fromPartial(e??{})},fromPartial(e){const n=W();return n.logLevel=e.logLevel??0,n}};function H(){return{time:f.ZERO,logLevel:0,eventId:0,categoryName:"",message:""}}const h={encode(e,n=new a.BinaryWriter){return e.time.equals(f.ZERO)||n.uint32(8).int64(e.time.toString()),e.logLevel!==0&&n.uint32(16).int32(e.logLevel),e.eventId!==0&&n.uint32(24).int32(e.eventId),e.categoryName!==""&&n.uint32(34).string(e.categoryName),e.message!==""&&n.uint32(42).string(e.message),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=H();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==8)break;t.time=f.fromString(r.int64().toString());continue}case 2:{if(i!==16)break;t.logLevel=r.int32();continue}case 3:{if(i!==24)break;t.eventId=r.int32();continue}case 4:{if(i!==34)break;t.categoryName=r.string();continue}case 5:{if(i!==42)break;t.message=r.string();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{time:c(e.time)?f.fromValue(e.time):f.ZERO,logLevel:c(e.logLevel)?x(e.logLevel):0,eventId:c(e.eventId)?globalThis.Number(e.eventId):0,categoryName:c(e.categoryName)?globalThis.String(e.categoryName):"",message:c(e.message)?globalThis.String(e.message):""}},toJSON(e){const n={};return e.time.equals(f.ZERO)||(n.time=(e.time||f.ZERO).toString()),e.logLevel!==0&&(n.logLevel=G(e.logLevel)),e.eventId!==0&&(n.eventId=Math.round(e.eventId)),e.categoryName!==""&&(n.categoryName=e.categoryName),e.message!==""&&(n.message=e.message),n},create(e){return h.fromPartial(e??{})},fromPartial(e){const n=H();return n.time=e.time!==void 0&&e.time!==null?f.fromValue(e.time):f.ZERO,n.logLevel=e.logLevel??0,n.eventId=e.eventId??0,n.categoryName=e.categoryName??"",n.message=e.message??"",n}};function w(){return{items:[]}}const mn={encode(e,n=new a.BinaryWriter){for(const r of e.items)h.encode(r,n.uint32(10).fork()).join();return n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=w();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.items.push(h.decode(r,r.uint32()));continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{items:globalThis.Array.isArray(e==null?void 0:e.items)?e.items.map(n=>h.fromJSON(n)):[]}},toJSON(e){var r;const n={};return(r=e.items)!=null&&r.length&&(n.items=e.items.map(s=>h.toJSON(s))),n},create(e){return mn.fromPartial(e??{})},fromPartial(e){var r;const n=w();return n.items=((r=e.items)==null?void 0:r.map(s=>h.fromPartial(s)))||[],n}};function Z(){return{licenseKey:"",productId:"",productName:"",productVersion:"",instanceId:"",instanceName:"",expirationDate:f.ZERO,isValid:!1}}const m={encode(e,n=new a.BinaryWriter){return e.licenseKey!==""&&n.uint32(10).string(e.licenseKey),e.productId!==""&&n.uint32(18).string(e.productId),e.productName!==""&&n.uint32(26).string(e.productName),e.productVersion!==""&&n.uint32(34).string(e.productVersion),e.instanceId!==""&&n.uint32(42).string(e.instanceId),e.instanceName!==""&&n.uint32(50).string(e.instanceName),e.expirationDate.equals(f.ZERO)||n.uint32(56).int64(e.expirationDate.toString()),e.isValid!==!1&&n.uint32(64).bool(e.isValid),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=Z();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.licenseKey=r.string();continue}case 2:{if(i!==18)break;t.productId=r.string();continue}case 3:{if(i!==26)break;t.productName=r.string();continue}case 4:{if(i!==34)break;t.productVersion=r.string();continue}case 5:{if(i!==42)break;t.instanceId=r.string();continue}case 6:{if(i!==50)break;t.instanceName=r.string();continue}case 7:{if(i!==56)break;t.expirationDate=f.fromString(r.int64().toString());continue}case 8:{if(i!==64)break;t.isValid=r.bool();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{licenseKey:c(e.licenseKey)?globalThis.String(e.licenseKey):"",productId:c(e.productId)?globalThis.String(e.productId):"",productName:c(e.productName)?globalThis.String(e.productName):"",productVersion:c(e.productVersion)?globalThis.String(e.productVersion):"",instanceId:c(e.instanceId)?globalThis.String(e.instanceId):"",instanceName:c(e.instanceName)?globalThis.String(e.instanceName):"",expirationDate:c(e.expirationDate)?f.fromValue(e.expirationDate):f.ZERO,isValid:c(e.isValid)?globalThis.Boolean(e.isValid):!1}},toJSON(e){const n={};return e.licenseKey!==""&&(n.licenseKey=e.licenseKey),e.productId!==""&&(n.productId=e.productId),e.productName!==""&&(n.productName=e.productName),e.productVersion!==""&&(n.productVersion=e.productVersion),e.instanceId!==""&&(n.instanceId=e.instanceId),e.instanceName!==""&&(n.instanceName=e.instanceName),e.expirationDate.equals(f.ZERO)||(n.expirationDate=(e.expirationDate||f.ZERO).toString()),e.isValid!==!1&&(n.isValid=e.isValid),n},create(e){return m.fromPartial(e??{})},fromPartial(e){const n=Z();return n.licenseKey=e.licenseKey??"",n.productId=e.productId??"",n.productName=e.productName??"",n.productVersion=e.productVersion??"",n.instanceId=e.instanceId??"",n.instanceName=e.instanceName??"",n.expirationDate=e.expirationDate!==void 0&&e.expirationDate!==null?f.fromValue(e.expirationDate):f.ZERO,n.isValid=e.isValid??!1,n}};function K(){return{items:[]}}const R={encode(e,n=new a.BinaryWriter){for(const r of e.items)m.encode(r,n.uint32(10).fork()).join();return n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=K();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.items.push(m.decode(r,r.uint32()));continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{items:globalThis.Array.isArray(e==null?void 0:e.items)?e.items.map(n=>m.fromJSON(n)):[]}},toJSON(e){var r;const n={};return(r=e.items)!=null&&r.length&&(n.items=e.items.map(s=>m.toJSON(s))),n},create(e){return R.fromPartial(e??{})},fromPartial(e){var r;const n=K();return n.items=((r=e.items)==null?void 0:r.map(s=>m.fromPartial(s)))||[],n}};function Q(){return{eventType:0,licenses:void 0}}const En={encode(e,n=new a.BinaryWriter){return e.eventType!==0&&n.uint32(8).int32(e.eventType),e.licenses!==void 0&&R.encode(e.licenses,n.uint32(18).fork()).join(),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=Q();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==8)break;t.eventType=r.int32();continue}case 2:{if(i!==18)break;t.licenses=R.decode(r,r.uint32());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{eventType:c(e.eventType)?ln(e.eventType):0,licenses:c(e.licenses)?R.fromJSON(e.licenses):void 0}},toJSON(e){const n={};return e.eventType!==0&&(n.eventType=pn(e.eventType)),e.licenses!==void 0&&(n.licenses=R.toJSON(e.licenses)),n},create(e){return En.fromPartial(e??{})},fromPartial(e){const n=Q();return n.eventType=e.eventType??0,n.licenses=e.licenses!==void 0&&e.licenses!==null?R.fromPartial(e.licenses):void 0,n}};function Y(){return{preferences:void 0,filePath:"",replaceExisting:void 0}}const Pn={encode(e,n=new a.BinaryWriter){return e.preferences!==void 0&&o.encode(e.preferences,n.uint32(10).fork()).join(),e.filePath!==""&&n.uint32(18).string(e.filePath),e.replaceExisting!==void 0&&n.uint32(24).bool(e.replaceExisting),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=Y();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=o.decode(r,r.uint32());continue}case 2:{if(i!==18)break;t.filePath=r.string();continue}case 3:{if(i!==24)break;t.replaceExisting=r.bool();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{preferences:c(e.preferences)?o.fromJSON(e.preferences):void 0,filePath:c(e.filePath)?globalThis.String(e.filePath):"",replaceExisting:c(e.replaceExisting)?globalThis.Boolean(e.replaceExisting):void 0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=o.toJSON(e.preferences)),e.filePath!==""&&(n.filePath=e.filePath),e.replaceExisting!==void 0&&(n.replaceExisting=e.replaceExisting),n},create(e){return Pn.fromPartial(e??{})},fromPartial(e){const n=Y();return n.preferences=e.preferences!==void 0&&e.preferences!==null?o.fromPartial(e.preferences):void 0,n.filePath=e.filePath??"",n.replaceExisting=e.replaceExisting??void 0,n}};function X(){return{preferences:void 0,name:""}}const On={encode(e,n=new a.BinaryWriter){return e.preferences!==void 0&&o.encode(e.preferences,n.uint32(10).fork()).join(),e.name!==""&&n.uint32(18).string(e.name),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=X();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=o.decode(r,r.uint32());continue}case 2:{if(i!==18)break;t.name=r.string();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{preferences:c(e.preferences)?o.fromJSON(e.preferences):void 0,name:c(e.name)?globalThis.String(e.name):""}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=o.toJSON(e.preferences)),e.name!==""&&(n.name=e.name),n},create(e){return On.fromPartial(e??{})},fromPartial(e){const n=X();return n.preferences=e.preferences!==void 0&&e.preferences!==null?o.fromPartial(e.preferences):void 0,n.name=e.name??"",n}};function $(){return{preferences:void 0,filePathOrName:""}}const hn={encode(e,n=new a.BinaryWriter){return e.preferences!==void 0&&o.encode(e.preferences,n.uint32(10).fork()).join(),e.filePathOrName!==""&&n.uint32(18).string(e.filePathOrName),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=$();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=o.decode(r,r.uint32());continue}case 2:{if(i!==18)break;t.filePathOrName=r.string();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{preferences:c(e.preferences)?o.fromJSON(e.preferences):void 0,filePathOrName:c(e.filePathOrName)?globalThis.String(e.filePathOrName):""}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=o.toJSON(e.preferences)),e.filePathOrName!==""&&(n.filePathOrName=e.filePathOrName),n},create(e){return hn.fromPartial(e??{})},fromPartial(e){const n=$();return n.preferences=e.preferences!==void 0&&e.preferences!==null?o.fromPartial(e.preferences):void 0,n.filePathOrName=e.filePathOrName??"",n}};function z(){return{name:"",displayName:"",description:"",version:"",author:"",defaultConfig:""}}const Rn={encode(e,n=new a.BinaryWriter){return e.name!==""&&n.uint32(10).string(e.name),e.displayName!==""&&n.uint32(18).string(e.displayName),e.description!==""&&n.uint32(26).string(e.description),e.version!==""&&n.uint32(34).string(e.version),e.author!==""&&n.uint32(42).string(e.author),e.defaultConfig!==""&&n.uint32(50).string(e.defaultConfig),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=z();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.name=r.string();continue}case 2:{if(i!==18)break;t.displayName=r.string();continue}case 3:{if(i!==26)break;t.description=r.string();continue}case 4:{if(i!==34)break;t.version=r.string();continue}case 5:{if(i!==42)break;t.author=r.string();continue}case 6:{if(i!==50)break;t.defaultConfig=r.string();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{name:c(e.name)?globalThis.String(e.name):"",displayName:c(e.displayName)?globalThis.String(e.displayName):"",description:c(e.description)?globalThis.String(e.description):"",version:c(e.version)?globalThis.String(e.version):"",author:c(e.author)?globalThis.String(e.author):"",defaultConfig:c(e.defaultConfig)?globalThis.String(e.defaultConfig):""}},toJSON(e){const n={};return e.name!==""&&(n.name=e.name),e.displayName!==""&&(n.displayName=e.displayName),e.description!==""&&(n.description=e.description),e.version!==""&&(n.version=e.version),e.author!==""&&(n.author=e.author),e.defaultConfig!==""&&(n.defaultConfig=e.defaultConfig),n},create(e){return Rn.fromPartial(e??{})},fromPartial(e){const n=z();return n.name=e.name??"",n.displayName=e.displayName??"",n.description=e.description??"",n.version=e.version??"",n.author=e.author??"",n.defaultConfig=e.defaultConfig??"",n}};function j(){return{licenses:[]}}const An={encode(e,n=new a.BinaryWriter){for(const r of e.licenses)m.encode(r,n.uint32(10).fork()).join();return n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=j();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.licenses.push(m.decode(r,r.uint32()));continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{licenses:globalThis.Array.isArray(e==null?void 0:e.licenses)?e.licenses.map(n=>m.fromJSON(n)):[]}},toJSON(e){var r;const n={};return(r=e.licenses)!=null&&r.length&&(n.licenses=e.licenses.map(s=>m.toJSON(s))),n},create(e){return An.fromPartial(e??{})},fromPartial(e){var r;const n=j();return n.licenses=((r=e.licenses)==null?void 0:r.map(s=>m.fromPartial(s)))||[],n}};function ee(){return{preferences:void 0,licenseKey:"",productId:""}}const Tn={encode(e,n=new a.BinaryWriter){return e.preferences!==void 0&&o.encode(e.preferences,n.uint32(10).fork()).join(),e.licenseKey!==""&&n.uint32(18).string(e.licenseKey),e.productId!==""&&n.uint32(26).string(e.productId),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=ee();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=o.decode(r,r.uint32());continue}case 2:{if(i!==18)break;t.licenseKey=r.string();continue}case 3:{if(i!==26)break;t.productId=r.string();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{preferences:c(e.preferences)?o.fromJSON(e.preferences):void 0,licenseKey:c(e.licenseKey)?globalThis.String(e.licenseKey):"",productId:c(e.productId)?globalThis.String(e.productId):""}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=o.toJSON(e.preferences)),e.licenseKey!==""&&(n.licenseKey=e.licenseKey),e.productId!==""&&(n.productId=e.productId),n},create(e){return Tn.fromPartial(e??{})},fromPartial(e){const n=ee();return n.preferences=e.preferences!==void 0&&e.preferences!==null?o.fromPartial(e.preferences):void 0,n.licenseKey=e.licenseKey??"",n.productId=e.productId??"",n}};function ne(){return{apiVersion:"",serviceVersion:"",canlibVersion:""}}const _n={encode(e,n=new a.BinaryWriter){return e.apiVersion!==""&&n.uint32(10).string(e.apiVersion),e.serviceVersion!==""&&n.uint32(18).string(e.serviceVersion),e.canlibVersion!==""&&n.uint32(26).string(e.canlibVersion),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=ne();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.apiVersion=r.string();continue}case 2:{if(i!==18)break;t.serviceVersion=r.string();continue}case 3:{if(i!==26)break;t.canlibVersion=r.string();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{apiVersion:c(e.apiVersion)?globalThis.String(e.apiVersion):"",serviceVersion:c(e.serviceVersion)?globalThis.String(e.serviceVersion):"",canlibVersion:c(e.canlibVersion)?globalThis.String(e.canlibVersion):""}},toJSON(e){const n={};return e.apiVersion!==""&&(n.apiVersion=e.apiVersion),e.serviceVersion!==""&&(n.serviceVersion=e.serviceVersion),e.canlibVersion!==""&&(n.canlibVersion=e.canlibVersion),n},create(e){return _n.fromPartial(e??{})},fromPartial(e){const n=ne();return n.apiVersion=e.apiVersion??"",n.serviceVersion=e.serviceVersion??"",n.canlibVersion=e.canlibVersion??"",n}};function c(e){return e!=null}var Cn=(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))(Cn||{});function gn(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 kn(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 yn=(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))(yn||{});function V(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 b(e){switch(e){case 0:return"PROTOCOLS_UNSPECIFIED";case 1:return"PROTOCOLS_CAN";case 2:return"PROTOCOLS_LIN";case-1:default:return"UNRECOGNIZED"}}var Bn=(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))(Bn||{});function Ln(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 In(e){switch(e){case 0:return"DEVICE_EVENT_UNSPECIFIED";case 1:return"DEVICE_EVENT_DEVICES_CHANGED";case-1:default:return"UNRECOGNIZED"}}function re(){return{tq:0,phase1:0,phase2:0,sjw:0,prop:0,prescaler:0}}const N={encode(e,n=new a.BinaryWriter){return e.tq!==0&&n.uint32(8).int32(e.tq),e.phase1!==0&&n.uint32(16).int32(e.phase1),e.phase2!==0&&n.uint32(24).int32(e.phase2),e.sjw!==0&&n.uint32(32).int32(e.sjw),e.prop!==0&&n.uint32(40).int32(e.prop),e.prescaler!==0&&n.uint32(48).int32(e.prescaler),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=re();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==8)break;t.tq=r.int32();continue}case 2:{if(i!==16)break;t.phase1=r.int32();continue}case 3:{if(i!==24)break;t.phase2=r.int32();continue}case 4:{if(i!==32)break;t.sjw=r.int32();continue}case 5:{if(i!==40)break;t.prop=r.int32();continue}case 6:{if(i!==48)break;t.prescaler=r.int32();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{tq:d(e.tq)?globalThis.Number(e.tq):0,phase1:d(e.phase1)?globalThis.Number(e.phase1):0,phase2:d(e.phase2)?globalThis.Number(e.phase2):0,sjw:d(e.sjw)?globalThis.Number(e.sjw):0,prop:d(e.prop)?globalThis.Number(e.prop):0,prescaler:d(e.prescaler)?globalThis.Number(e.prescaler):0}},toJSON(e){const n={};return e.tq!==0&&(n.tq=Math.round(e.tq)),e.phase1!==0&&(n.phase1=Math.round(e.phase1)),e.phase2!==0&&(n.phase2=Math.round(e.phase2)),e.sjw!==0&&(n.sjw=Math.round(e.sjw)),e.prop!==0&&(n.prop=Math.round(e.prop)),e.prescaler!==0&&(n.prescaler=Math.round(e.prescaler)),n},create(e){return N.fromPartial(e??{})},fromPartial(e){const n=re();return n.tq=e.tq??0,n.phase1=e.phase1??0,n.phase2=e.phase2??0,n.sjw=e.sjw??0,n.prop=e.prop??0,n.prescaler=e.prescaler??0,n}};function ie(){return{arbitrationMin:void 0,arbitrationMax:void 0,dataMin:void 0,dataMax:void 0,isValid:!1}}const A={encode(e,n=new a.BinaryWriter){return e.arbitrationMin!==void 0&&N.encode(e.arbitrationMin,n.uint32(10).fork()).join(),e.arbitrationMax!==void 0&&N.encode(e.arbitrationMax,n.uint32(18).fork()).join(),e.dataMin!==void 0&&N.encode(e.dataMin,n.uint32(26).fork()).join(),e.dataMax!==void 0&&N.encode(e.dataMax,n.uint32(34).fork()).join(),e.isValid!==!1&&n.uint32(40).bool(e.isValid),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=ie();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.arbitrationMin=N.decode(r,r.uint32());continue}case 2:{if(i!==18)break;t.arbitrationMax=N.decode(r,r.uint32());continue}case 3:{if(i!==26)break;t.dataMin=N.decode(r,r.uint32());continue}case 4:{if(i!==34)break;t.dataMax=N.decode(r,r.uint32());continue}case 5:{if(i!==40)break;t.isValid=r.bool();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{arbitrationMin:d(e.arbitrationMin)?N.fromJSON(e.arbitrationMin):void 0,arbitrationMax:d(e.arbitrationMax)?N.fromJSON(e.arbitrationMax):void 0,dataMin:d(e.dataMin)?N.fromJSON(e.dataMin):void 0,dataMax:d(e.dataMax)?N.fromJSON(e.dataMax):void 0,isValid:d(e.isValid)?globalThis.Boolean(e.isValid):!1}},toJSON(e){const n={};return e.arbitrationMin!==void 0&&(n.arbitrationMin=N.toJSON(e.arbitrationMin)),e.arbitrationMax!==void 0&&(n.arbitrationMax=N.toJSON(e.arbitrationMax)),e.dataMin!==void 0&&(n.dataMin=N.toJSON(e.dataMin)),e.dataMax!==void 0&&(n.dataMax=N.toJSON(e.dataMax)),e.isValid!==!1&&(n.isValid=e.isValid),n},create(e){return A.fromPartial(e??{})},fromPartial(e){const n=ie();return n.arbitrationMin=e.arbitrationMin!==void 0&&e.arbitrationMin!==null?N.fromPartial(e.arbitrationMin):void 0,n.arbitrationMax=e.arbitrationMax!==void 0&&e.arbitrationMax!==null?N.fromPartial(e.arbitrationMax):void 0,n.dataMin=e.dataMin!==void 0&&e.dataMin!==null?N.fromPartial(e.dataMin):void 0,n.dataMax=e.dataMax!==void 0&&e.dataMax!==null?N.fromPartial(e.dataMax):void 0,n.isValid=e.isValid??!1,n}};function te(){return{bitRate:0,actualBitRate:0,bitRateError:0,timeSegment1:0,timeSegment2:0,samplingPoint:0,numberOfSamplingPoints:0,maxSyncJumpWidth:0,description:""}}const E={encode(e,n=new a.BinaryWriter){return e.bitRate!==0&&n.uint32(8).int32(e.bitRate),e.actualBitRate!==0&&n.uint32(16).int32(e.actualBitRate),e.bitRateError!==0&&n.uint32(25).double(e.bitRateError),e.timeSegment1!==0&&n.uint32(32).int32(e.timeSegment1),e.timeSegment2!==0&&n.uint32(40).int32(e.timeSegment2),e.samplingPoint!==0&&n.uint32(49).double(e.samplingPoint),e.numberOfSamplingPoints!==0&&n.uint32(56).int32(e.numberOfSamplingPoints),e.maxSyncJumpWidth!==0&&n.uint32(64).int32(e.maxSyncJumpWidth),e.description!==""&&n.uint32(74).string(e.description),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=te();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==8)break;t.bitRate=r.int32();continue}case 2:{if(i!==16)break;t.actualBitRate=r.int32();continue}case 3:{if(i!==25)break;t.bitRateError=r.double();continue}case 4:{if(i!==32)break;t.timeSegment1=r.int32();continue}case 5:{if(i!==40)break;t.timeSegment2=r.int32();continue}case 6:{if(i!==49)break;t.samplingPoint=r.double();continue}case 7:{if(i!==56)break;t.numberOfSamplingPoints=r.int32();continue}case 8:{if(i!==64)break;t.maxSyncJumpWidth=r.int32();continue}case 9:{if(i!==74)break;t.description=r.string();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{bitRate:d(e.bitRate)?globalThis.Number(e.bitRate):0,actualBitRate:d(e.actualBitRate)?globalThis.Number(e.actualBitRate):0,bitRateError:d(e.bitRateError)?globalThis.Number(e.bitRateError):0,timeSegment1:d(e.timeSegment1)?globalThis.Number(e.timeSegment1):0,timeSegment2:d(e.timeSegment2)?globalThis.Number(e.timeSegment2):0,samplingPoint:d(e.samplingPoint)?globalThis.Number(e.samplingPoint):0,numberOfSamplingPoints:d(e.numberOfSamplingPoints)?globalThis.Number(e.numberOfSamplingPoints):0,maxSyncJumpWidth:d(e.maxSyncJumpWidth)?globalThis.Number(e.maxSyncJumpWidth):0,description:d(e.description)?globalThis.String(e.description):""}},toJSON(e){const n={};return e.bitRate!==0&&(n.bitRate=Math.round(e.bitRate)),e.actualBitRate!==0&&(n.actualBitRate=Math.round(e.actualBitRate)),e.bitRateError!==0&&(n.bitRateError=e.bitRateError),e.timeSegment1!==0&&(n.timeSegment1=Math.round(e.timeSegment1)),e.timeSegment2!==0&&(n.timeSegment2=Math.round(e.timeSegment2)),e.samplingPoint!==0&&(n.samplingPoint=e.samplingPoint),e.numberOfSamplingPoints!==0&&(n.numberOfSamplingPoints=Math.round(e.numberOfSamplingPoints)),e.maxSyncJumpWidth!==0&&(n.maxSyncJumpWidth=Math.round(e.maxSyncJumpWidth)),e.description!==""&&(n.description=e.description),n},create(e){return E.fromPartial(e??{})},fromPartial(e){const n=te();return n.bitRate=e.bitRate??0,n.actualBitRate=e.actualBitRate??0,n.bitRateError=e.bitRateError??0,n.timeSegment1=e.timeSegment1??0,n.timeSegment2=e.timeSegment2??0,n.samplingPoint=e.samplingPoint??0,n.numberOfSamplingPoints=e.numberOfSamplingPoints??0,n.maxSyncJumpWidth=e.maxSyncJumpWidth??0,n.description=e.description??"",n}};function ae(){return{bitRate:0,timeSegment1:0,timeSegment2:0,samplingPoint:0,numberOfSamplingPoints:0,maxSyncJumpWidth:0,prescaler:0,description:""}}const S={encode(e,n=new a.BinaryWriter){return e.bitRate!==0&&n.uint32(8).int32(e.bitRate),e.timeSegment1!==0&&n.uint32(16).int32(e.timeSegment1),e.timeSegment2!==0&&n.uint32(24).int32(e.timeSegment2),e.samplingPoint!==0&&n.uint32(33).double(e.samplingPoint),e.numberOfSamplingPoints!==0&&n.uint32(40).int32(e.numberOfSamplingPoints),e.maxSyncJumpWidth!==0&&n.uint32(48).int32(e.maxSyncJumpWidth),e.prescaler!==0&&n.uint32(56).int32(e.prescaler),e.description!==""&&n.uint32(66).string(e.description),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=ae();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==8)break;t.bitRate=r.int32();continue}case 2:{if(i!==16)break;t.timeSegment1=r.int32();continue}case 3:{if(i!==24)break;t.timeSegment2=r.int32();continue}case 4:{if(i!==33)break;t.samplingPoint=r.double();continue}case 5:{if(i!==40)break;t.numberOfSamplingPoints=r.int32();continue}case 6:{if(i!==48)break;t.maxSyncJumpWidth=r.int32();continue}case 7:{if(i!==56)break;t.prescaler=r.int32();continue}case 8:{if(i!==66)break;t.description=r.string();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{bitRate:d(e.bitRate)?globalThis.Number(e.bitRate):0,timeSegment1:d(e.timeSegment1)?globalThis.Number(e.timeSegment1):0,timeSegment2:d(e.timeSegment2)?globalThis.Number(e.timeSegment2):0,samplingPoint:d(e.samplingPoint)?globalThis.Number(e.samplingPoint):0,numberOfSamplingPoints:d(e.numberOfSamplingPoints)?globalThis.Number(e.numberOfSamplingPoints):0,maxSyncJumpWidth:d(e.maxSyncJumpWidth)?globalThis.Number(e.maxSyncJumpWidth):0,prescaler:d(e.prescaler)?globalThis.Number(e.prescaler):0,description:d(e.description)?globalThis.String(e.description):""}},toJSON(e){const n={};return e.bitRate!==0&&(n.bitRate=Math.round(e.bitRate)),e.timeSegment1!==0&&(n.timeSegment1=Math.round(e.timeSegment1)),e.timeSegment2!==0&&(n.timeSegment2=Math.round(e.timeSegment2)),e.samplingPoint!==0&&(n.samplingPoint=e.samplingPoint),e.numberOfSamplingPoints!==0&&(n.numberOfSamplingPoints=Math.round(e.numberOfSamplingPoints)),e.maxSyncJumpWidth!==0&&(n.maxSyncJumpWidth=Math.round(e.maxSyncJumpWidth)),e.prescaler!==0&&(n.prescaler=Math.round(e.prescaler)),e.description!==""&&(n.description=e.description),n},create(e){return S.fromPartial(e??{})},fromPartial(e){const n=ae();return n.bitRate=e.bitRate??0,n.timeSegment1=e.timeSegment1??0,n.timeSegment2=e.timeSegment2??0,n.samplingPoint=e.samplingPoint??0,n.numberOfSamplingPoints=e.numberOfSamplingPoints??0,n.maxSyncJumpWidth=e.maxSyncJumpWidth??0,n.prescaler=e.prescaler??0,n.description=e.description??"",n}};function se(){return{busSpeedArbPhase:void 0,busSpeedsDataPhase:[]}}const P={encode(e,n=new a.BinaryWriter){e.busSpeedArbPhase!==void 0&&S.encode(e.busSpeedArbPhase,n.uint32(10).fork()).join();for(const r of e.busSpeedsDataPhase)S.encode(r,n.uint32(18).fork()).join();return n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=se();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.busSpeedArbPhase=S.decode(r,r.uint32());continue}case 2:{if(i!==18)break;t.busSpeedsDataPhase.push(S.decode(r,r.uint32()));continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{busSpeedArbPhase:d(e.busSpeedArbPhase)?S.fromJSON(e.busSpeedArbPhase):void 0,busSpeedsDataPhase:globalThis.Array.isArray(e==null?void 0:e.busSpeedsDataPhase)?e.busSpeedsDataPhase.map(n=>S.fromJSON(n)):[]}},toJSON(e){var r;const n={};return e.busSpeedArbPhase!==void 0&&(n.busSpeedArbPhase=S.toJSON(e.busSpeedArbPhase)),(r=e.busSpeedsDataPhase)!=null&&r.length&&(n.busSpeedsDataPhase=e.busSpeedsDataPhase.map(s=>S.toJSON(s))),n},create(e){return P.fromPartial(e??{})},fromPartial(e){var r;const n=se();return n.busSpeedArbPhase=e.busSpeedArbPhase!==void 0&&e.busSpeedArbPhase!==null?S.fromPartial(e.busSpeedArbPhase):void 0,n.busSpeedsDataPhase=((r=e.busSpeedsDataPhase)==null?void 0:r.map(s=>S.fromPartial(s)))||[],n}};function oe(){return{busParamLimits:void 0,channelCaps:[],maxBitRate:0,clockFrequency:0}}const T={encode(e,n=new a.BinaryWriter){e.busParamLimits!==void 0&&A.encode(e.busParamLimits,n.uint32(10).fork()).join(),n.uint32(18).fork();for(const r of e.channelCaps)n.int32(r);return n.join(),e.maxBitRate!==0&&n.uint32(24).int32(e.maxBitRate),e.clockFrequency!==0&&n.uint32(33).double(e.clockFrequency),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=oe();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.busParamLimits=A.decode(r,r.uint32());continue}case 2:{if(i===16){t.channelCaps.push(r.int32());continue}if(i===18){const l=r.uint32()+r.pos;for(;r.pos<l;)t.channelCaps.push(r.int32());continue}break}case 3:{if(i!==24)break;t.maxBitRate=r.int32();continue}case 4:{if(i!==33)break;t.clockFrequency=r.double();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{busParamLimits:d(e.busParamLimits)?A.fromJSON(e.busParamLimits):void 0,channelCaps:globalThis.Array.isArray(e==null?void 0:e.channelCaps)?e.channelCaps.map(n=>gn(n)):[],maxBitRate:d(e.maxBitRate)?globalThis.Number(e.maxBitRate):0,clockFrequency:d(e.clockFrequency)?globalThis.Number(e.clockFrequency):0}},toJSON(e){var r;const n={};return e.busParamLimits!==void 0&&(n.busParamLimits=A.toJSON(e.busParamLimits)),(r=e.channelCaps)!=null&&r.length&&(n.channelCaps=e.channelCaps.map(s=>kn(s))),e.maxBitRate!==0&&(n.maxBitRate=Math.round(e.maxBitRate)),e.clockFrequency!==0&&(n.clockFrequency=e.clockFrequency),n},create(e){return T.fromPartial(e??{})},fromPartial(e){var r;const n=oe();return n.busParamLimits=e.busParamLimits!==void 0&&e.busParamLimits!==null?A.fromPartial(e.busParamLimits):void 0,n.channelCaps=((r=e.channelCaps)==null?void 0:r.map(s=>s))||[],n.maxBitRate=e.maxBitRate??0,n.clockFrequency=e.clockFrequency??0,n}};function ue(){return{channelNumber:0,channelNumberOnDevice:0,name:"",protocols:[],canChannelCapacity:void 0}}const _={encode(e,n=new a.BinaryWriter){e.channelNumber!==0&&n.uint32(8).int32(e.channelNumber),e.channelNumberOnDevice!==0&&n.uint32(16).int32(e.channelNumberOnDevice),e.name!==""&&n.uint32(26).string(e.name),n.uint32(34).fork();for(const r of e.protocols)n.int32(r);return n.join(),e.canChannelCapacity!==void 0&&T.encode(e.canChannelCapacity,n.uint32(42).fork()).join(),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=ue();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==8)break;t.channelNumber=r.int32();continue}case 2:{if(i!==16)break;t.channelNumberOnDevice=r.int32();continue}case 3:{if(i!==26)break;t.name=r.string();continue}case 4:{if(i===32){t.protocols.push(r.int32());continue}if(i===34){const l=r.uint32()+r.pos;for(;r.pos<l;)t.protocols.push(r.int32());continue}break}case 5:{if(i!==42)break;t.canChannelCapacity=T.decode(r,r.uint32());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{channelNumber:d(e.channelNumber)?globalThis.Number(e.channelNumber):0,channelNumberOnDevice:d(e.channelNumberOnDevice)?globalThis.Number(e.channelNumberOnDevice):0,name:d(e.name)?globalThis.String(e.name):"",protocols:globalThis.Array.isArray(e==null?void 0:e.protocols)?e.protocols.map(n=>V(n)):[],canChannelCapacity:d(e.canChannelCapacity)?T.fromJSON(e.canChannelCapacity):void 0}},toJSON(e){var r;const n={};return e.channelNumber!==0&&(n.channelNumber=Math.round(e.channelNumber)),e.channelNumberOnDevice!==0&&(n.channelNumberOnDevice=Math.round(e.channelNumberOnDevice)),e.name!==""&&(n.name=e.name),(r=e.protocols)!=null&&r.length&&(n.protocols=e.protocols.map(s=>b(s))),e.canChannelCapacity!==void 0&&(n.canChannelCapacity=T.toJSON(e.canChannelCapacity)),n},create(e){return _.fromPartial(e??{})},fromPartial(e){var r;const n=ue();return n.channelNumber=e.channelNumber??0,n.channelNumberOnDevice=e.channelNumberOnDevice??0,n.name=e.name??"",n.protocols=((r=e.protocols)==null?void 0:r.map(s=>s))||[],n.canChannelCapacity=e.canChannelCapacity!==void 0&&e.canChannelCapacity!==null?T.fromPartial(e.canChannelCapacity):void 0,n}};function de(){return{cardType:0,cardNumber:0,productCode:"",serialNumber:"",name:"",protocols:[],channels:[]}}const O={encode(e,n=new a.BinaryWriter){e.cardType!==0&&n.uint32(8).int32(e.cardType),e.cardNumber!==0&&n.uint32(16).int32(e.cardNumber),e.productCode!==""&&n.uint32(26).string(e.productCode),e.serialNumber!==""&&n.uint32(34).string(e.serialNumber),e.name!==""&&n.uint32(42).string(e.name),n.uint32(50).fork();for(const r of e.protocols)n.int32(r);n.join();for(const r of e.channels)_.encode(r,n.uint32(58).fork()).join();return n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=de();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==8)break;t.cardType=r.int32();continue}case 2:{if(i!==16)break;t.cardNumber=r.int32();continue}case 3:{if(i!==26)break;t.productCode=r.string();continue}case 4:{if(i!==34)break;t.serialNumber=r.string();continue}case 5:{if(i!==42)break;t.name=r.string();continue}case 6:{if(i===48){t.protocols.push(r.int32());continue}if(i===50){const l=r.uint32()+r.pos;for(;r.pos<l;)t.protocols.push(r.int32());continue}break}case 7:{if(i!==58)break;t.channels.push(_.decode(r,r.uint32()));continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{cardType:d(e.cardType)?globalThis.Number(e.cardType):0,cardNumber:d(e.cardNumber)?globalThis.Number(e.cardNumber):0,productCode:d(e.productCode)?globalThis.String(e.productCode):"",serialNumber:d(e.serialNumber)?globalThis.String(e.serialNumber):"",name:d(e.name)?globalThis.String(e.name):"",protocols:globalThis.Array.isArray(e==null?void 0:e.protocols)?e.protocols.map(n=>V(n)):[],channels:globalThis.Array.isArray(e==null?void 0:e.channels)?e.channels.map(n=>_.fromJSON(n)):[]}},toJSON(e){var r,s;const n={};return e.cardType!==0&&(n.cardType=Math.round(e.cardType)),e.cardNumber!==0&&(n.cardNumber=Math.round(e.cardNumber)),e.productCode!==""&&(n.productCode=e.productCode),e.serialNumber!==""&&(n.serialNumber=e.serialNumber),e.name!==""&&(n.name=e.name),(r=e.protocols)!=null&&r.length&&(n.protocols=e.protocols.map(t=>b(t))),(s=e.channels)!=null&&s.length&&(n.channels=e.channels.map(t=>_.toJSON(t))),n},create(e){return O.fromPartial(e??{})},fromPartial(e){var r,s;const n=de();return n.cardType=e.cardType??0,n.cardNumber=e.cardNumber??0,n.productCode=e.productCode??"",n.serialNumber=e.serialNumber??"",n.name=e.name??"",n.protocols=((r=e.protocols)==null?void 0:r.map(t=>t))||[],n.channels=((s=e.channels)==null?void 0:s.map(t=>_.fromPartial(t)))||[],n}};function fe(){return{items:[]}}const C={encode(e,n=new a.BinaryWriter){for(const r of e.items)O.encode(r,n.uint32(10).fork()).join();return n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=fe();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.items.push(O.decode(r,r.uint32()));continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{items:globalThis.Array.isArray(e==null?void 0:e.items)?e.items.map(n=>O.fromJSON(n)):[]}},toJSON(e){var r;const n={};return(r=e.items)!=null&&r.length&&(n.items=e.items.map(s=>O.toJSON(s))),n},create(e){return C.fromPartial(e??{})},fromPartial(e){var r;const n=fe();return n.items=((r=e.items)==null?void 0:r.map(s=>O.fromPartial(s)))||[],n}};function ce(){return{preferences:void 0,includeVirtual:!1}}const Jn={encode(e,n=new a.BinaryWriter){return e.preferences!==void 0&&o.encode(e.preferences,n.uint32(10).fork()).join(),e.includeVirtual!==!1&&n.uint32(16).bool(e.includeVirtual),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=ce();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=o.decode(r,r.uint32());continue}case 2:{if(i!==16)break;t.includeVirtual=r.bool();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{preferences:d(e.preferences)?o.fromJSON(e.preferences):void 0,includeVirtual:d(e.includeVirtual)?globalThis.Boolean(e.includeVirtual):!1}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=o.toJSON(e.preferences)),e.includeVirtual!==!1&&(n.includeVirtual=e.includeVirtual),n},create(e){return Jn.fromPartial(e??{})},fromPartial(e){const n=ce();return n.preferences=e.preferences!==void 0&&e.preferences!==null?o.fromPartial(e.preferences):void 0,n.includeVirtual=e.includeVirtual??!1,n}};function le(){return{devices:[]}}const vn={encode(e,n=new a.BinaryWriter){for(const r of e.devices)O.encode(r,n.uint32(10).fork()).join();return n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=le();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.devices.push(O.decode(r,r.uint32()));continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{devices:globalThis.Array.isArray(e==null?void 0:e.devices)?e.devices.map(n=>O.fromJSON(n)):[]}},toJSON(e){var r;const n={};return(r=e.devices)!=null&&r.length&&(n.devices=e.devices.map(s=>O.toJSON(s))),n},create(e){return vn.fromPartial(e??{})},fromPartial(e){var r;const n=le();return n.devices=((r=e.devices)==null?void 0:r.map(s=>O.fromPartial(s)))||[],n}};function pe(){return{preferences:void 0,channelNumber:0}}const Dn={encode(e,n=new a.BinaryWriter){return e.preferences!==void 0&&o.encode(e.preferences,n.uint32(10).fork()).join(),e.channelNumber!==0&&n.uint32(16).int32(e.channelNumber),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=pe();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=o.decode(r,r.uint32());continue}case 2:{if(i!==16)break;t.channelNumber=r.int32();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{preferences:d(e.preferences)?o.fromJSON(e.preferences):void 0,channelNumber:d(e.channelNumber)?globalThis.Number(e.channelNumber):0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=o.toJSON(e.preferences)),e.channelNumber!==0&&(n.channelNumber=Math.round(e.channelNumber)),n},create(e){return Dn.fromPartial(e??{})},fromPartial(e){const n=pe();return n.preferences=e.preferences!==void 0&&e.preferences!==null?o.fromPartial(e.preferences):void 0,n.channelNumber=e.channelNumber??0,n}};function Ne(){return{availableBusSpeeds:[],availableBusSpeedsFd:[]}}const Mn={encode(e,n=new a.BinaryWriter){for(const r of e.availableBusSpeeds)E.encode(r,n.uint32(10).fork()).join();for(const r of e.availableBusSpeedsFd)P.encode(r,n.uint32(18).fork()).join();return n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=Ne();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.availableBusSpeeds.push(E.decode(r,r.uint32()));continue}case 2:{if(i!==18)break;t.availableBusSpeedsFd.push(P.decode(r,r.uint32()));continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{availableBusSpeeds:globalThis.Array.isArray(e==null?void 0:e.availableBusSpeeds)?e.availableBusSpeeds.map(n=>E.fromJSON(n)):[],availableBusSpeedsFd:globalThis.Array.isArray(e==null?void 0:e.availableBusSpeedsFd)?e.availableBusSpeedsFd.map(n=>P.fromJSON(n)):[]}},toJSON(e){var r,s;const n={};return(r=e.availableBusSpeeds)!=null&&r.length&&(n.availableBusSpeeds=e.availableBusSpeeds.map(t=>E.toJSON(t))),(s=e.availableBusSpeedsFd)!=null&&s.length&&(n.availableBusSpeedsFd=e.availableBusSpeedsFd.map(t=>P.toJSON(t))),n},create(e){return Mn.fromPartial(e??{})},fromPartial(e){var r,s;const n=Ne();return n.availableBusSpeeds=((r=e.availableBusSpeeds)==null?void 0:r.map(t=>E.fromPartial(t)))||[],n.availableBusSpeedsFd=((s=e.availableBusSpeedsFd)==null?void 0:s.map(t=>P.fromPartial(t)))||[],n}};function Se(){return{preferences:void 0,channelNumber:0,bitRates:[]}}const xn={encode(e,n=new a.BinaryWriter){e.preferences!==void 0&&o.encode(e.preferences,n.uint32(10).fork()).join(),e.channelNumber!==0&&n.uint32(16).int32(e.channelNumber),n.uint32(26).fork();for(const r of e.bitRates)n.int32(r);return n.join(),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=Se();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=o.decode(r,r.uint32());continue}case 2:{if(i!==16)break;t.channelNumber=r.int32();continue}case 3:{if(i===24){t.bitRates.push(r.int32());continue}if(i===26){const l=r.uint32()+r.pos;for(;r.pos<l;)t.bitRates.push(r.int32());continue}break}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{preferences:d(e.preferences)?o.fromJSON(e.preferences):void 0,channelNumber:d(e.channelNumber)?globalThis.Number(e.channelNumber):0,bitRates:globalThis.Array.isArray(e==null?void 0:e.bitRates)?e.bitRates.map(n=>globalThis.Number(n)):[]}},toJSON(e){var r;const n={};return e.preferences!==void 0&&(n.preferences=o.toJSON(e.preferences)),e.channelNumber!==0&&(n.channelNumber=Math.round(e.channelNumber)),(r=e.bitRates)!=null&&r.length&&(n.bitRates=e.bitRates.map(s=>Math.round(s))),n},create(e){return xn.fromPartial(e??{})},fromPartial(e){var r;const n=Se();return n.preferences=e.preferences!==void 0&&e.preferences!==null?o.fromPartial(e.preferences):void 0,n.channelNumber=e.channelNumber??0,n.bitRates=((r=e.bitRates)==null?void 0:r.map(s=>s))||[],n}};function me(){return{availableBusSpeeds:[]}}const Gn={encode(e,n=new a.BinaryWriter){for(const r of e.availableBusSpeeds)E.encode(r,n.uint32(10).fork()).join();return n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=me();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.availableBusSpeeds.push(E.decode(r,r.uint32()));continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{availableBusSpeeds:globalThis.Array.isArray(e==null?void 0:e.availableBusSpeeds)?e.availableBusSpeeds.map(n=>E.fromJSON(n)):[]}},toJSON(e){var r;const n={};return(r=e.availableBusSpeeds)!=null&&r.length&&(n.availableBusSpeeds=e.availableBusSpeeds.map(s=>E.toJSON(s))),n},create(e){return Gn.fromPartial(e??{})},fromPartial(e){var r;const n=me();return n.availableBusSpeeds=((r=e.availableBusSpeeds)==null?void 0:r.map(s=>E.fromPartial(s)))||[],n}};function Ee(){return{preferences:void 0,channelNumber:0,bitRatesArbitrationPhase:[],bitRatesDataPhase:[]}}const Vn={encode(e,n=new a.BinaryWriter){e.preferences!==void 0&&o.encode(e.preferences,n.uint32(10).fork()).join(),e.channelNumber!==0&&n.uint32(16).int32(e.channelNumber),n.uint32(26).fork();for(const r of e.bitRatesArbitrationPhase)n.int32(r);n.join(),n.uint32(34).fork();for(const r of e.bitRatesDataPhase)n.int32(r);return n.join(),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=Ee();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=o.decode(r,r.uint32());continue}case 2:{if(i!==16)break;t.channelNumber=r.int32();continue}case 3:{if(i===24){t.bitRatesArbitrationPhase.push(r.int32());continue}if(i===26){const l=r.uint32()+r.pos;for(;r.pos<l;)t.bitRatesArbitrationPhase.push(r.int32());continue}break}case 4:{if(i===32){t.bitRatesDataPhase.push(r.int32());continue}if(i===34){const l=r.uint32()+r.pos;for(;r.pos<l;)t.bitRatesDataPhase.push(r.int32());continue}break}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{preferences:d(e.preferences)?o.fromJSON(e.preferences):void 0,channelNumber:d(e.channelNumber)?globalThis.Number(e.channelNumber):0,bitRatesArbitrationPhase:globalThis.Array.isArray(e==null?void 0:e.bitRatesArbitrationPhase)?e.bitRatesArbitrationPhase.map(n=>globalThis.Number(n)):[],bitRatesDataPhase:globalThis.Array.isArray(e==null?void 0:e.bitRatesDataPhase)?e.bitRatesDataPhase.map(n=>globalThis.Number(n)):[]}},toJSON(e){var r,s;const n={};return e.preferences!==void 0&&(n.preferences=o.toJSON(e.preferences)),e.channelNumber!==0&&(n.channelNumber=Math.round(e.channelNumber)),(r=e.bitRatesArbitrationPhase)!=null&&r.length&&(n.bitRatesArbitrationPhase=e.bitRatesArbitrationPhase.map(t=>Math.round(t))),(s=e.bitRatesDataPhase)!=null&&s.length&&(n.bitRatesDataPhase=e.bitRatesDataPhase.map(t=>Math.round(t))),n},create(e){return Vn.fromPartial(e??{})},fromPartial(e){var r,s;const n=Ee();return n.preferences=e.preferences!==void 0&&e.preferences!==null?o.fromPartial(e.preferences):void 0,n.channelNumber=e.channelNumber??0,n.bitRatesArbitrationPhase=((r=e.bitRatesArbitrationPhase)==null?void 0:r.map(t=>t))||[],n.bitRatesDataPhase=((s=e.bitRatesDataPhase)==null?void 0:s.map(t=>t))||[],n}};function Pe(){return{availableBusSpeedsFd:[]}}const bn={encode(e,n=new a.BinaryWriter){for(const r of e.availableBusSpeedsFd)P.encode(r,n.uint32(10).fork()).join();return n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=Pe();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.availableBusSpeedsFd.push(P.decode(r,r.uint32()));continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{availableBusSpeedsFd:globalThis.Array.isArray(e==null?void 0:e.availableBusSpeedsFd)?e.availableBusSpeedsFd.map(n=>P.fromJSON(n)):[]}},toJSON(e){var r;const n={};return(r=e.availableBusSpeedsFd)!=null&&r.length&&(n.availableBusSpeedsFd=e.availableBusSpeedsFd.map(s=>P.toJSON(s))),n},create(e){return bn.fromPartial(e??{})},fromPartial(e){var r;const n=Pe();return n.availableBusSpeedsFd=((r=e.availableBusSpeedsFd)==null?void 0:r.map(s=>P.fromPartial(s)))||[],n}};function Oe(){return{eventType:0,devices:void 0}}const Fn={encode(e,n=new a.BinaryWriter){return e.eventType!==0&&n.uint32(8).int32(e.eventType),e.devices!==void 0&&C.encode(e.devices,n.uint32(18).fork()).join(),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=Oe();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==8)break;t.eventType=r.int32();continue}case 2:{if(i!==18)break;t.devices=C.decode(r,r.uint32());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{eventType:d(e.eventType)?Ln(e.eventType):0,devices:d(e.devices)?C.fromJSON(e.devices):void 0}},toJSON(e){const n={};return e.eventType!==0&&(n.eventType=In(e.eventType)),e.devices!==void 0&&(n.devices=C.toJSON(e.devices)),n},create(e){return Fn.fromPartial(e??{})},fromPartial(e){const n=Oe();return n.eventType=e.eventType??0,n.devices=e.devices!==void 0&&e.devices!==null?C.fromPartial(e.devices):void 0,n}};function d(e){return e!=null}var Un=(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))(Un||{});function qn(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 Wn(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 Hn={encode(e,n=new a.BinaryWriter){return e.preferences!==void 0&&o.encode(e.preferences,n.uint32(10).fork()).join(),e.setup!==void 0&&a.MeasurementSetup.encode(e.setup,n.uint32(18).fork()).join(),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=he();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=o.decode(r,r.uint32());continue}case 2:{if(i!==18)break;t.setup=a.MeasurementSetup.decode(r,r.uint32());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?o.fromJSON(e.preferences):void 0,setup:u(e.setup)?a.MeasurementSetup.fromJSON(e.setup):void 0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=o.toJSON(e.preferences)),e.setup!==void 0&&(n.setup=a.MeasurementSetup.toJSON(e.setup)),n},create(e){return Hn.fromPartial(e??{})},fromPartial(e){const n=he();return n.preferences=e.preferences!==void 0&&e.preferences!==null?o.fromPartial(e.preferences):void 0,n.setup=e.setup!==void 0&&e.setup!==null?a.MeasurementSetup.fromPartial(e.setup):void 0,n}};function Re(){return{preferences:void 0,configuration:void 0}}const wn={encode(e,n=new a.BinaryWriter){return e.preferences!==void 0&&o.encode(e.preferences,n.uint32(10).fork()).join(),e.configuration!==void 0&&a.CanChannelConfiguration.encode(e.configuration,n.uint32(18).fork()).join(),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=Re();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=o.decode(r,r.uint32());continue}case 2:{if(i!==18)break;t.configuration=a.CanChannelConfiguration.decode(r,r.uint32());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?o.fromJSON(e.preferences):void 0,configuration:u(e.configuration)?a.CanChannelConfiguration.fromJSON(e.configuration):void 0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=o.toJSON(e.preferences)),e.configuration!==void 0&&(n.configuration=a.CanChannelConfiguration.toJSON(e.configuration)),n},create(e){return wn.fromPartial(e??{})},fromPartial(e){const n=Re();return n.preferences=e.preferences!==void 0&&e.preferences!==null?o.fromPartial(e.preferences):void 0,n.configuration=e.configuration!==void 0&&e.configuration!==null?a.CanChannelConfiguration.fromPartial(e.configuration):void 0,n}};function Ae(){return{preferences:void 0,configuration:void 0}}const Zn={encode(e,n=new a.BinaryWriter){return e.preferences!==void 0&&o.encode(e.preferences,n.uint32(10).fork()).join(),e.configuration!==void 0&&a.LinChannelConfiguration.encode(e.configuration,n.uint32(18).fork()).join(),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=Ae();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=o.decode(r,r.uint32());continue}case 2:{if(i!==18)break;t.configuration=a.LinChannelConfiguration.decode(r,r.uint32());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?o.fromJSON(e.preferences):void 0,configuration:u(e.configuration)?a.LinChannelConfiguration.fromJSON(e.configuration):void 0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=o.toJSON(e.preferences)),e.configuration!==void 0&&(n.configuration=a.LinChannelConfiguration.toJSON(e.configuration)),n},create(e){return Zn.fromPartial(e??{})},fromPartial(e){const n=Ae();return n.preferences=e.preferences!==void 0&&e.preferences!==null?o.fromPartial(e.preferences):void 0,n.configuration=e.configuration!==void 0&&e.configuration!==null?a.LinChannelConfiguration.fromPartial(e.configuration):void 0,n}};function Te(){return{preferences:void 0,source:void 0,replaceAllProperties:!1}}const Kn={encode(e,n=new a.BinaryWriter){return e.preferences!==void 0&&o.encode(e.preferences,n.uint32(10).fork()).join(),e.source!==void 0&&a.SourceNodeProperties.encode(e.source,n.uint32(18).fork()).join(),e.replaceAllProperties!==!1&&n.uint32(24).bool(e.replaceAllProperties),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=Te();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=o.decode(r,r.uint32());continue}case 2:{if(i!==18)break;t.source=a.SourceNodeProperties.decode(r,r.uint32());continue}case 3:{if(i!==24)break;t.replaceAllProperties=r.bool();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?o.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 n={};return e.preferences!==void 0&&(n.preferences=o.toJSON(e.preferences)),e.source!==void 0&&(n.source=a.SourceNodeProperties.toJSON(e.source)),e.replaceAllProperties!==!1&&(n.replaceAllProperties=e.replaceAllProperties),n},create(e){return Kn.fromPartial(e??{})},fromPartial(e){const n=Te();return n.preferences=e.preferences!==void 0&&e.preferences!==null?o.fromPartial(e.preferences):void 0,n.source=e.source!==void 0&&e.source!==null?a.SourceNodeProperties.fromPartial(e.source):void 0,n.replaceAllProperties=e.replaceAllProperties??!1,n}};function _e(){return{source:void 0}}const Qn={encode(e,n=new a.BinaryWriter){return e.source!==void 0&&a.SourceNodeProperties.encode(e.source,n.uint32(10).fork()).join(),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=_e();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.source=a.SourceNodeProperties.decode(r,r.uint32());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{source:u(e.source)?a.SourceNodeProperties.fromJSON(e.source):void 0}},toJSON(e){const n={};return e.source!==void 0&&(n.source=a.SourceNodeProperties.toJSON(e.source)),n},create(e){return Qn.fromPartial(e??{})},fromPartial(e){const n=_e();return n.source=e.source!==void 0&&e.source!==null?a.SourceNodeProperties.fromPartial(e.source):void 0,n}};function Ce(){return{preferences:void 0,dataProcessor:void 0,previousNode:"",nextNode:"",replaceAllProperties:!1}}const Yn={encode(e,n=new a.BinaryWriter){return e.preferences!==void 0&&o.encode(e.preferences,n.uint32(10).fork()).join(),e.dataProcessor!==void 0&&a.DataProcessorNodeProperties.encode(e.dataProcessor,n.uint32(18).fork()).join(),e.previousNode!==""&&n.uint32(26).string(e.previousNode),e.nextNode!==""&&n.uint32(34).string(e.nextNode),e.replaceAllProperties!==!1&&n.uint32(40).bool(e.replaceAllProperties),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=Ce();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=o.decode(r,r.uint32());continue}case 2:{if(i!==18)break;t.dataProcessor=a.DataProcessorNodeProperties.decode(r,r.uint32());continue}case 3:{if(i!==26)break;t.previousNode=r.string();continue}case 4:{if(i!==34)break;t.nextNode=r.string();continue}case 5:{if(i!==40)break;t.replaceAllProperties=r.bool();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?o.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 n={};return e.preferences!==void 0&&(n.preferences=o.toJSON(e.preferences)),e.dataProcessor!==void 0&&(n.dataProcessor=a.DataProcessorNodeProperties.toJSON(e.dataProcessor)),e.previousNode!==""&&(n.previousNode=e.previousNode),e.nextNode!==""&&(n.nextNode=e.nextNode),e.replaceAllProperties!==!1&&(n.replaceAllProperties=e.replaceAllProperties),n},create(e){return Yn.fromPartial(e??{})},fromPartial(e){const n=Ce();return n.preferences=e.preferences!==void 0&&e.preferences!==null?o.fromPartial(e.preferences):void 0,n.dataProcessor=e.dataProcessor!==void 0&&e.dataProcessor!==null?a.DataProcessorNodeProperties.fromPartial(e.dataProcessor):void 0,n.previousNode=e.previousNode??"",n.nextNode=e.nextNode??"",n.replaceAllProperties=e.replaceAllProperties??!1,n}};function ge(){return{dataProcessor:void 0}}const Xn={encode(e,n=new a.BinaryWriter){return e.dataProcessor!==void 0&&a.DataProcessorNodeProperties.encode(e.dataProcessor,n.uint32(10).fork()).join(),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=ge();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.dataProcessor=a.DataProcessorNodeProperties.decode(r,r.uint32());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{dataProcessor:u(e.dataProcessor)?a.DataProcessorNodeProperties.fromJSON(e.dataProcessor):void 0}},toJSON(e){const n={};return e.dataProcessor!==void 0&&(n.dataProcessor=a.DataProcessorNodeProperties.toJSON(e.dataProcessor)),n},create(e){return Xn.fromPartial(e??{})},fromPartial(e){const n=ge();return n.dataProcessor=e.dataProcessor!==void 0&&e.dataProcessor!==null?a.DataProcessorNodeProperties.fromPartial(e.dataProcessor):void 0,n}};function ke(){return{preferences:void 0,target:void 0,replaceAllProperties:!1}}const $n={encode(e,n=new a.BinaryWriter){return e.preferences!==void 0&&o.encode(e.preferences,n.uint32(10).fork()).join(),e.target!==void 0&&a.TargetNodeProperties.encode(e.target,n.uint32(18).fork()).join(),e.replaceAllProperties!==!1&&n.uint32(24).bool(e.replaceAllProperties),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=ke();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=o.decode(r,r.uint32());continue}case 2:{if(i!==18)break;t.target=a.TargetNodeProperties.decode(r,r.uint32());continue}case 3:{if(i!==24)break;t.replaceAllProperties=r.bool();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?o.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 n={};return e.preferences!==void 0&&(n.preferences=o.toJSON(e.preferences)),e.target!==void 0&&(n.target=a.TargetNodeProperties.toJSON(e.target)),e.replaceAllProperties!==!1&&(n.replaceAllProperties=e.replaceAllProperties),n},create(e){return $n.fromPartial(e??{})},fromPartial(e){const n=ke();return n.preferences=e.preferences!==void 0&&e.preferences!==null?o.fromPartial(e.preferences):void 0,n.target=e.target!==void 0&&e.target!==null?a.TargetNodeProperties.fromPartial(e.target):void 0,n.replaceAllProperties=e.replaceAllProperties??!1,n}};function ye(){return{target:void 0}}const zn={encode(e,n=new a.BinaryWriter){return e.target!==void 0&&a.TargetNodeProperties.encode(e.target,n.uint32(10).fork()).join(),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=ye();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.target=a.TargetNodeProperties.decode(r,r.uint32());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{target:u(e.target)?a.TargetNodeProperties.fromJSON(e.target):void 0}},toJSON(e){const n={};return e.target!==void 0&&(n.target=a.TargetNodeProperties.toJSON(e.target)),n},create(e){return zn.fromPartial(e??{})},fromPartial(e){const n=ye();return n.target=e.target!==void 0&&e.target!==null?a.TargetNodeProperties.fromPartial(e.target):void 0,n}};function Be(){return{preferences:void 0,startNode:"",endNode:""}}const jn={encode(e,n=new a.BinaryWriter){return e.preferences!==void 0&&o.encode(e.preferences,n.uint32(10).fork()).join(),e.startNode!==""&&n.uint32(18).string(e.startNode),e.endNode!==""&&n.uint32(26).string(e.endNode),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=Be();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=o.decode(r,r.uint32());continue}case 2:{if(i!==18)break;t.startNode=r.string();continue}case 3:{if(i!==26)break;t.endNode=r.string();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?o.fromJSON(e.preferences):void 0,startNode:u(e.startNode)?globalThis.String(e.startNode):"",endNode:u(e.endNode)?globalThis.String(e.endNode):""}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=o.toJSON(e.preferences)),e.startNode!==""&&(n.startNode=e.startNode),e.endNode!==""&&(n.endNode=e.endNode),n},create(e){return jn.fromPartial(e??{})},fromPartial(e){const n=Be();return n.preferences=e.preferences!==void 0&&e.preferences!==null?o.fromPartial(e.preferences):void 0,n.startNode=e.startNode??"",n.endNode=e.endNode??"",n}};function Le(){return{preferences:void 0,startNode:"",endNode:""}}const er={encode(e,n=new a.BinaryWriter){return e.preferences!==void 0&&o.encode(e.preferences,n.uint32(10).fork()).join(),e.startNode!==""&&n.uint32(18).string(e.startNode),e.endNode!==""&&n.uint32(26).string(e.endNode),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=Le();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=o.decode(r,r.uint32());continue}case 2:{if(i!==18)break;t.startNode=r.string();continue}case 3:{if(i!==26)break;t.endNode=r.string();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?o.fromJSON(e.preferences):void 0,startNode:u(e.startNode)?globalThis.String(e.startNode):"",endNode:u(e.endNode)?globalThis.String(e.endNode):""}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=o.toJSON(e.preferences)),e.startNode!==""&&(n.startNode=e.startNode),e.endNode!==""&&(n.endNode=e.endNode),n},create(e){return er.fromPartial(e??{})},fromPartial(e){const n=Le();return n.preferences=e.preferences!==void 0&&e.preferences!==null?o.fromPartial(e.preferences):void 0,n.startNode=e.startNode??"",n.endNode=e.endNode??"",n}};function Ie(){return{preferences:void 0,identifier:""}}const nr={encode(e,n=new a.BinaryWriter){return e.preferences!==void 0&&o.encode(e.preferences,n.uint32(10).fork()).join(),e.identifier!==""&&n.uint32(18).string(e.identifier),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=Ie();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=o.decode(r,r.uint32());continue}case 2:{if(i!==18)break;t.identifier=r.string();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?o.fromJSON(e.preferences):void 0,identifier:u(e.identifier)?globalThis.String(e.identifier):""}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=o.toJSON(e.preferences)),e.identifier!==""&&(n.identifier=e.identifier),n},create(e){return nr.fromPartial(e??{})},fromPartial(e){const n=Ie();return n.preferences=e.preferences!==void 0&&e.preferences!==null?o.fromPartial(e.preferences):void 0,n.identifier=e.identifier??"",n}};function Je(){return{preferences:void 0,identifiers:[]}}const rr={encode(e,n=new a.BinaryWriter){e.preferences!==void 0&&o.encode(e.preferences,n.uint32(10).fork()).join();for(const r of e.identifiers)n.uint32(18).string(r);return n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=Je();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=o.decode(r,r.uint32());continue}case 2:{if(i!==18)break;t.identifiers.push(r.string());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?o.fromJSON(e.preferences):void 0,identifiers:globalThis.Array.isArray(e==null?void 0:e.identifiers)?e.identifiers.map(n=>globalThis.String(n)):[]}},toJSON(e){var r;const n={};return e.preferences!==void 0&&(n.preferences=o.toJSON(e.preferences)),(r=e.identifiers)!=null&&r.length&&(n.identifiers=e.identifiers),n},create(e){return rr.fromPartial(e??{})},fromPartial(e){var r;const n=Je();return n.preferences=e.preferences!==void 0&&e.preferences!==null?o.fromPartial(e.preferences):void 0,n.identifiers=((r=e.identifiers)==null?void 0:r.map(s=>s))||[],n}};function ve(){return{preferences:void 0,channelIdentifier:"",frame:void 0}}const ir={encode(e,n=new a.BinaryWriter){return e.preferences!==void 0&&o.encode(e.preferences,n.uint32(10).fork()).join(),e.channelIdentifier!==""&&n.uint32(18).string(e.channelIdentifier),e.frame!==void 0&&a.WriteFrame.encode(e.frame,n.uint32(26).fork()).join(),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=ve();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=o.decode(r,r.uint32());continue}case 2:{if(i!==18)break;t.channelIdentifier=r.string();continue}case 3:{if(i!==26)break;t.frame=a.WriteFrame.decode(r,r.uint32());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?o.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 n={};return e.preferences!==void 0&&(n.preferences=o.toJSON(e.preferences)),e.channelIdentifier!==""&&(n.channelIdentifier=e.channelIdentifier),e.frame!==void 0&&(n.frame=a.WriteFrame.toJSON(e.frame)),n},create(e){return ir.fromPartial(e??{})},fromPartial(e){const n=ve();return n.preferences=e.preferences!==void 0&&e.preferences!==null?o.fromPartial(e.preferences):void 0,n.channelIdentifier=e.channelIdentifier??"",n.frame=e.frame!==void 0&&e.frame!==null?a.WriteFrame.fromPartial(e.frame):void 0,n}};function De(){return{preferences:void 0,channelIdentifier:"",count:0,interval:0}}const tr={encode(e,n=new a.BinaryWriter){return e.preferences!==void 0&&o.encode(e.preferences,n.uint32(10).fork()).join(),e.channelIdentifier!==""&&n.uint32(18).string(e.channelIdentifier),e.count!==0&&n.uint32(24).int32(e.count),e.interval!==0&&n.uint32(32).int32(e.interval),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=De();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=o.decode(r,r.uint32());continue}case 2:{if(i!==18)break;t.channelIdentifier=r.string();continue}case 3:{if(i!==24)break;t.count=r.int32();continue}case 4:{if(i!==32)break;t.interval=r.int32();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?o.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 n={};return e.preferences!==void 0&&(n.preferences=o.toJSON(e.preferences)),e.channelIdentifier!==""&&(n.channelIdentifier=e.channelIdentifier),e.count!==0&&(n.count=Math.round(e.count)),e.interval!==0&&(n.interval=Math.round(e.interval)),n},create(e){return tr.fromPartial(e??{})},fromPartial(e){const n=De();return n.preferences=e.preferences!==void 0&&e.preferences!==null?o.fromPartial(e.preferences):void 0,n.channelIdentifier=e.channelIdentifier??"",n.count=e.count??0,n.interval=e.interval??0,n}};function Me(){return{preferences:void 0,channelIdentifier:"",frameId:0}}const ar={encode(e,n=new a.BinaryWriter){return e.preferences!==void 0&&o.encode(e.preferences,n.uint32(10).fork()).join(),e.channelIdentifier!==""&&n.uint32(18).string(e.channelIdentifier),e.frameId!==0&&n.uint32(24).int32(e.frameId),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=Me();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=o.decode(r,r.uint32());continue}case 2:{if(i!==18)break;t.channelIdentifier=r.string();continue}case 3:{if(i!==24)break;t.frameId=r.int32();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?o.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 n={};return e.preferences!==void 0&&(n.preferences=o.toJSON(e.preferences)),e.channelIdentifier!==""&&(n.channelIdentifier=e.channelIdentifier),e.frameId!==0&&(n.frameId=Math.round(e.frameId)),n},create(e){return ar.fromPartial(e??{})},fromPartial(e){const n=Me();return n.preferences=e.preferences!==void 0&&e.preferences!==null?o.fromPartial(e.preferences):void 0,n.channelIdentifier=e.channelIdentifier??"",n.frameId=e.frameId??0,n}};function xe(){return{preferences:void 0,channelIdentifier:"",frame:void 0}}const sr={encode(e,n=new a.BinaryWriter){return e.preferences!==void 0&&o.encode(e.preferences,n.uint32(10).fork()).join(),e.channelIdentifier!==""&&n.uint32(18).string(e.channelIdentifier),e.frame!==void 0&&a.WriteFrame.encode(e.frame,n.uint32(26).fork()).join(),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=xe();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=o.decode(r,r.uint32());continue}case 2:{if(i!==18)break;t.channelIdentifier=r.string();continue}case 3:{if(i!==26)break;t.frame=a.WriteFrame.decode(r,r.uint32());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?o.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 n={};return e.preferences!==void 0&&(n.preferences=o.toJSON(e.preferences)),e.channelIdentifier!==""&&(n.channelIdentifier=e.channelIdentifier),e.frame!==void 0&&(n.frame=a.WriteFrame.toJSON(e.frame)),n},create(e){return sr.fromPartial(e??{})},fromPartial(e){const n=xe();return n.preferences=e.preferences!==void 0&&e.preferences!==null?o.fromPartial(e.preferences):void 0,n.channelIdentifier=e.channelIdentifier??"",n.frame=e.frame!==void 0&&e.frame!==null?a.WriteFrame.fromPartial(e.frame):void 0,n}};function Ge(){return{preferences:void 0,channelIdentifier:"",frameId:0}}const or={encode(e,n=new a.BinaryWriter){return e.preferences!==void 0&&o.encode(e.preferences,n.uint32(10).fork()).join(),e.channelIdentifier!==""&&n.uint32(18).string(e.channelIdentifier),e.frameId!==0&&n.uint32(24).int32(e.frameId),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=Ge();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=o.decode(r,r.uint32());continue}case 2:{if(i!==18)break;t.channelIdentifier=r.string();continue}case 3:{if(i!==24)break;t.frameId=r.int32();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?o.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 n={};return e.preferences!==void 0&&(n.preferences=o.toJSON(e.preferences)),e.channelIdentifier!==""&&(n.channelIdentifier=e.channelIdentifier),e.frameId!==0&&(n.frameId=Math.round(e.frameId)),n},create(e){return or.fromPartial(e??{})},fromPartial(e){const n=Ge();return n.preferences=e.preferences!==void 0&&e.preferences!==null?o.fromPartial(e.preferences):void 0,n.channelIdentifier=e.channelIdentifier??"",n.frameId=e.frameId??0,n}};function Ve(){return{preferences:void 0,settings:void 0}}const ur={encode(e,n=new a.BinaryWriter){return e.preferences!==void 0&&o.encode(e.preferences,n.uint32(10).fork()).join(),e.settings!==void 0&&a.PeriodicTransmissionSettings.encode(e.settings,n.uint32(18).fork()).join(),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=Ve();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=o.decode(r,r.uint32());continue}case 2:{if(i!==18)break;t.settings=a.PeriodicTransmissionSettings.decode(r,r.uint32());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?o.fromJSON(e.preferences):void 0,settings:u(e.settings)?a.PeriodicTransmissionSettings.fromJSON(e.settings):void 0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=o.toJSON(e.preferences)),e.settings!==void 0&&(n.settings=a.PeriodicTransmissionSettings.toJSON(e.settings)),n},create(e){return ur.fromPartial(e??{})},fromPartial(e){const n=Ve();return n.preferences=e.preferences!==void 0&&e.preferences!==null?o.fromPartial(e.preferences):void 0,n.settings=e.settings!==void 0&&e.settings!==null?a.PeriodicTransmissionSettings.fromPartial(e.settings):void 0,n}};function be(){return{preferences:void 0,settings:void 0,identifier:""}}const dr={encode(e,n=new a.BinaryWriter){return e.preferences!==void 0&&o.encode(e.preferences,n.uint32(10).fork()).join(),e.settings!==void 0&&a.PeriodicTransmissionSettings.encode(e.settings,n.uint32(18).fork()).join(),e.identifier!==""&&n.uint32(26).string(e.identifier),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=be();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=o.decode(r,r.uint32());continue}case 2:{if(i!==18)break;t.settings=a.PeriodicTransmissionSettings.decode(r,r.uint32());continue}case 3:{if(i!==26)break;t.identifier=r.string();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?o.fromJSON(e.preferences):void 0,settings:u(e.settings)?a.PeriodicTransmissionSettings.fromJSON(e.settings):void 0,identifier:u(e.identifier)?globalThis.String(e.identifier):""}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=o.toJSON(e.preferences)),e.settings!==void 0&&(n.settings=a.PeriodicTransmissionSettings.toJSON(e.settings)),e.identifier!==""&&(n.identifier=e.identifier),n},create(e){return dr.fromPartial(e??{})},fromPartial(e){const n=be();return n.preferences=e.preferences!==void 0&&e.preferences!==null?o.fromPartial(e.preferences):void 0,n.settings=e.settings!==void 0&&e.settings!==null?a.PeriodicTransmissionSettings.fromPartial(e.settings):void 0,n.identifier=e.identifier??"",n}};function Fe(){return{periodicTransmissionIdentifier:""}}const fr={encode(e,n=new a.BinaryWriter){return e.periodicTransmissionIdentifier!==""&&n.uint32(10).string(e.periodicTransmissionIdentifier),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=Fe();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.periodicTransmissionIdentifier=r.string();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{periodicTransmissionIdentifier:u(e.periodicTransmissionIdentifier)?globalThis.String(e.periodicTransmissionIdentifier):""}},toJSON(e){const n={};return e.periodicTransmissionIdentifier!==""&&(n.periodicTransmissionIdentifier=e.periodicTransmissionIdentifier),n},create(e){return fr.fromPartial(e??{})},fromPartial(e){const n=Fe();return n.periodicTransmissionIdentifier=e.periodicTransmissionIdentifier??"",n}};function Ue(){return{isOnline:!1}}const g={encode(e,n=new a.BinaryWriter){return e.isOnline!==!1&&n.uint32(8).bool(e.isOnline),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=Ue();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==8)break;t.isOnline=r.bool();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{isOnline:u(e.isOnline)?globalThis.Boolean(e.isOnline):!1}},toJSON(e){const n={};return e.isOnline!==!1&&(n.isOnline=e.isOnline),n},create(e){return g.fromPartial(e??{})},fromPartial(e){const n=Ue();return n.isOnline=e.isOnline??!1,n}};function qe(){return{eventType:0,identifier:void 0,measurementSetup:void 0,onlineStatus:void 0}}const cr={encode(e,n=new a.BinaryWriter){return e.eventType!==0&&n.uint32(8).int32(e.eventType),e.identifier!==void 0&&n.uint32(18).string(e.identifier),e.measurementSetup!==void 0&&a.MeasurementSetup.encode(e.measurementSetup,n.uint32(26).fork()).join(),e.onlineStatus!==void 0&&g.encode(e.onlineStatus,n.uint32(34).fork()).join(),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=qe();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==8)break;t.eventType=r.int32();continue}case 2:{if(i!==18)break;t.identifier=r.string();continue}case 3:{if(i!==26)break;t.measurementSetup=a.MeasurementSetup.decode(r,r.uint32());continue}case 4:{if(i!==34)break;t.onlineStatus=g.decode(r,r.uint32());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{eventType:u(e.eventType)?qn(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)?g.fromJSON(e.onlineStatus):void 0}},toJSON(e){const n={};return e.eventType!==0&&(n.eventType=Wn(e.eventType)),e.identifier!==void 0&&(n.identifier=e.identifier),e.measurementSetup!==void 0&&(n.measurementSetup=a.MeasurementSetup.toJSON(e.measurementSetup)),e.onlineStatus!==void 0&&(n.onlineStatus=g.toJSON(e.onlineStatus)),n},create(e){return cr.fromPartial(e??{})},fromPartial(e){const n=qe();return n.eventType=e.eventType??0,n.identifier=e.identifier??void 0,n.measurementSetup=e.measurementSetup!==void 0&&e.measurementSetup!==null?a.MeasurementSetup.fromPartial(e.measurementSetup):void 0,n.onlineStatus=e.onlineStatus!==void 0&&e.onlineStatus!==null?g.fromPartial(e.onlineStatus):void 0,n}};function We(){return{preferences:void 0,messageLog:!1,signalLog:!1}}const lr={encode(e,n=new a.BinaryWriter){return e.preferences!==void 0&&o.encode(e.preferences,n.uint32(10).fork()).join(),e.messageLog!==!1&&n.uint32(16).bool(e.messageLog),e.signalLog!==!1&&n.uint32(24).bool(e.signalLog),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=We();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=o.decode(r,r.uint32());continue}case 2:{if(i!==16)break;t.messageLog=r.bool();continue}case 3:{if(i!==24)break;t.signalLog=r.bool();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?o.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 n={};return e.preferences!==void 0&&(n.preferences=o.toJSON(e.preferences)),e.messageLog!==!1&&(n.messageLog=e.messageLog),e.signalLog!==!1&&(n.signalLog=e.signalLog),n},create(e){return lr.fromPartial(e??{})},fromPartial(e){const n=We();return n.preferences=e.preferences!==void 0&&e.preferences!==null?o.fromPartial(e.preferences):void 0,n.messageLog=e.messageLog??!1,n.signalLog=e.signalLog??!1,n}};function He(){return{formats:[],names:[],extensions:[],descriptions:[]}}const pr={encode(e,n=new a.BinaryWriter){n.uint32(10).fork();for(const r of e.formats)n.int32(r);n.join();for(const r of e.names)n.uint32(18).string(r);for(const r of e.extensions)n.uint32(26).string(r);for(const r of e.descriptions)n.uint32(34).string(r);return n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=He();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i===8){t.formats.push(r.int32());continue}if(i===10){const l=r.uint32()+r.pos;for(;r.pos<l;)t.formats.push(r.int32());continue}break}case 2:{if(i!==18)break;t.names.push(r.string());continue}case 3:{if(i!==26)break;t.extensions.push(r.string());continue}case 4:{if(i!==34)break;t.descriptions.push(r.string());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{formats:globalThis.Array.isArray(e==null?void 0:e.formats)?e.formats.map(n=>a.logFileFormatFromJSON(n)):[],names:globalThis.Array.isArray(e==null?void 0:e.names)?e.names.map(n=>globalThis.String(n)):[],extensions:globalThis.Array.isArray(e==null?void 0:e.extensions)?e.extensions.map(n=>globalThis.String(n)):[],descriptions:globalThis.Array.isArray(e==null?void 0:e.descriptions)?e.descriptions.map(n=>globalThis.String(n)):[]}},toJSON(e){var r,s,t,i;const n={};return(r=e.formats)!=null&&r.length&&(n.formats=e.formats.map(l=>a.logFileFormatToJSON(l))),(s=e.names)!=null&&s.length&&(n.names=e.names),(t=e.extensions)!=null&&t.length&&(n.extensions=e.extensions),(i=e.descriptions)!=null&&i.length&&(n.descriptions=e.descriptions),n},create(e){return pr.fromPartial(e??{})},fromPartial(e){var r,s,t,i;const n=He();return n.formats=((r=e.formats)==null?void 0:r.map(l=>l))||[],n.names=((s=e.names)==null?void 0:s.map(l=>l))||[],n.extensions=((t=e.extensions)==null?void 0:t.map(l=>l))||[],n.descriptions=((i=e.descriptions)==null?void 0:i.map(l=>l))||[],n}};function we(){return{preferences:void 0,logFile:""}}const Nr={encode(e,n=new a.BinaryWriter){return e.preferences!==void 0&&o.encode(e.preferences,n.uint32(10).fork()).join(),e.logFile!==""&&n.uint32(18).string(e.logFile),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=we();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=o.decode(r,r.uint32());continue}case 2:{if(i!==18)break;t.logFile=r.string();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?o.fromJSON(e.preferences):void 0,logFile:u(e.logFile)?globalThis.String(e.logFile):""}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=o.toJSON(e.preferences)),e.logFile!==""&&(n.logFile=e.logFile),n},create(e){return Nr.fromPartial(e??{})},fromPartial(e){const n=we();return n.preferences=e.preferences!==void 0&&e.preferences!==null?o.fromPartial(e.preferences):void 0,n.logFile=e.logFile??"",n}};function Ze(){return{channels:[]}}const Sr={encode(e,n=new a.BinaryWriter){n.uint32(10).fork();for(const r of e.channels)n.int32(r);return n.join(),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=Ze();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i===8){t.channels.push(r.int32());continue}if(i===10){const l=r.uint32()+r.pos;for(;r.pos<l;)t.channels.push(r.int32());continue}break}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{channels:globalThis.Array.isArray(e==null?void 0:e.channels)?e.channels.map(n=>globalThis.Number(n)):[]}},toJSON(e){var r;const n={};return(r=e.channels)!=null&&r.length&&(n.channels=e.channels.map(s=>Math.round(s))),n},create(e){return Sr.fromPartial(e??{})},fromPartial(e){var r;const n=Ze();return n.channels=((r=e.channels)==null?void 0:r.map(s=>s))||[],n}};function Ke(){return{preferences:void 0,files:[]}}const mr={encode(e,n=new a.BinaryWriter){e.preferences!==void 0&&o.encode(e.preferences,n.uint32(10).fork()).join();for(const r of e.files)n.uint32(18).string(r);return n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=Ke();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=o.decode(r,r.uint32());continue}case 2:{if(i!==18)break;t.files.push(r.string());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?o.fromJSON(e.preferences):void 0,files:globalThis.Array.isArray(e==null?void 0:e.files)?e.files.map(n=>globalThis.String(n)):[]}},toJSON(e){var r;const n={};return e.preferences!==void 0&&(n.preferences=o.toJSON(e.preferences)),(r=e.files)!=null&&r.length&&(n.files=e.files),n},create(e){return mr.fromPartial(e??{})},fromPartial(e){var r;const n=Ke();return n.preferences=e.preferences!==void 0&&e.preferences!==null?o.fromPartial(e.preferences):void 0,n.files=((r=e.files)==null?void 0:r.map(s=>s))||[],n}};function Qe(){return{preferences:void 0,files:[]}}const Er={encode(e,n=new a.BinaryWriter){e.preferences!==void 0&&o.encode(e.preferences,n.uint32(10).fork()).join();for(const r of e.files)n.uint32(18).string(r);return n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=Qe();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=o.decode(r,r.uint32());continue}case 2:{if(i!==18)break;t.files.push(r.string());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?o.fromJSON(e.preferences):void 0,files:globalThis.Array.isArray(e==null?void 0:e.files)?e.files.map(n=>globalThis.String(n)):[]}},toJSON(e){var r;const n={};return e.preferences!==void 0&&(n.preferences=o.toJSON(e.preferences)),(r=e.files)!=null&&r.length&&(n.files=e.files),n},create(e){return Er.fromPartial(e??{})},fromPartial(e){var r;const n=Qe();return n.preferences=e.preferences!==void 0&&e.preferences!==null?o.fromPartial(e.preferences):void 0,n.files=((r=e.files)==null?void 0:r.map(s=>s))||[],n}};function Ye(){return{tables:[]}}const Pr={encode(e,n=new a.BinaryWriter){for(const r of e.tables)a.ScheduleTable.encode(r,n.uint32(10).fork()).join();return n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=Ye();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.tables.push(a.ScheduleTable.decode(r,r.uint32()));continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{tables:globalThis.Array.isArray(e==null?void 0:e.tables)?e.tables.map(n=>a.ScheduleTable.fromJSON(n)):[]}},toJSON(e){var r;const n={};return(r=e.tables)!=null&&r.length&&(n.tables=e.tables.map(s=>a.ScheduleTable.toJSON(s))),n},create(e){return Pr.fromPartial(e??{})},fromPartial(e){var r;const n=Ye();return n.tables=((r=e.tables)==null?void 0:r.map(s=>a.ScheduleTable.fromPartial(s)))||[],n}};function Xe(){return{preferences:void 0,messageQualifiedName:"",data:[]}}const Or={encode(e,n=new a.BinaryWriter){e.preferences!==void 0&&o.encode(e.preferences,n.uint32(10).fork()).join(),e.messageQualifiedName!==""&&n.uint32(18).string(e.messageQualifiedName),n.uint32(26).fork();for(const r of e.data)n.uint32(r);return n.join(),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=Xe();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=o.decode(r,r.uint32());continue}case 2:{if(i!==18)break;t.messageQualifiedName=r.string();continue}case 3:{if(i===24){t.data.push(r.uint32());continue}if(i===26){const l=r.uint32()+r.pos;for(;r.pos<l;)t.data.push(r.uint32());continue}break}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?o.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(n=>globalThis.Number(n)):[]}},toJSON(e){var r;const n={};return e.preferences!==void 0&&(n.preferences=o.toJSON(e.preferences)),e.messageQualifiedName!==""&&(n.messageQualifiedName=e.messageQualifiedName),(r=e.data)!=null&&r.length&&(n.data=e.data.map(s=>Math.round(s))),n},create(e){return Or.fromPartial(e??{})},fromPartial(e){var r;const n=Xe();return n.preferences=e.preferences!==void 0&&e.preferences!==null?o.fromPartial(e.preferences):void 0,n.messageQualifiedName=e.messageQualifiedName??"",n.data=((r=e.data)==null?void 0:r.map(s=>s))||[],n}};function $e(){return{signalValues:[]}}const hr={encode(e,n=new a.BinaryWriter){for(const r of e.signalValues)a.SignalValue.encode(r,n.uint32(10).fork()).join();return n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=$e();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.signalValues.push(a.SignalValue.decode(r,r.uint32()));continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{signalValues:globalThis.Array.isArray(e==null?void 0:e.signalValues)?e.signalValues.map(n=>a.SignalValue.fromJSON(n)):[]}},toJSON(e){var r;const n={};return(r=e.signalValues)!=null&&r.length&&(n.signalValues=e.signalValues.map(s=>a.SignalValue.toJSON(s))),n},create(e){return hr.fromPartial(e??{})},fromPartial(e){var r;const n=$e();return n.signalValues=((r=e.signalValues)==null?void 0:r.map(s=>a.SignalValue.fromPartial(s)))||[],n}};function ze(){return{preferences:void 0,messageQualifiedName:"",data:[],signalValues:[]}}const Rr={encode(e,n=new a.BinaryWriter){e.preferences!==void 0&&o.encode(e.preferences,n.uint32(10).fork()).join(),e.messageQualifiedName!==""&&n.uint32(18).string(e.messageQualifiedName),n.uint32(26).fork();for(const r of e.data)n.uint32(r);n.join();for(const r of e.signalValues)a.SignalValue.encode(r,n.uint32(34).fork()).join();return n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=ze();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.preferences=o.decode(r,r.uint32());continue}case 2:{if(i!==18)break;t.messageQualifiedName=r.string();continue}case 3:{if(i===24){t.data.push(r.uint32());continue}if(i===26){const l=r.uint32()+r.pos;for(;r.pos<l;)t.data.push(r.uint32());continue}break}case 4:{if(i!==34)break;t.signalValues.push(a.SignalValue.decode(r,r.uint32()));continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{preferences:u(e.preferences)?o.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(n=>globalThis.Number(n)):[],signalValues:globalThis.Array.isArray(e==null?void 0:e.signalValues)?e.signalValues.map(n=>a.SignalValue.fromJSON(n)):[]}},toJSON(e){var r,s;const n={};return e.preferences!==void 0&&(n.preferences=o.toJSON(e.preferences)),e.messageQualifiedName!==""&&(n.messageQualifiedName=e.messageQualifiedName),(r=e.data)!=null&&r.length&&(n.data=e.data.map(t=>Math.round(t))),(s=e.signalValues)!=null&&s.length&&(n.signalValues=e.signalValues.map(t=>a.SignalValue.toJSON(t))),n},create(e){return Rr.fromPartial(e??{})},fromPartial(e){var r,s;const n=ze();return n.preferences=e.preferences!==void 0&&e.preferences!==null?o.fromPartial(e.preferences):void 0,n.messageQualifiedName=e.messageQualifiedName??"",n.data=((r=e.data)==null?void 0:r.map(t=>t))||[],n.signalValues=((s=e.signalValues)==null?void 0:s.map(t=>a.SignalValue.fromPartial(t)))||[],n}};function je(){return{signalValues:[],data:[]}}const Ar={encode(e,n=new a.BinaryWriter){for(const r of e.signalValues)a.SignalValue.encode(r,n.uint32(10).fork()).join();n.uint32(18).fork();for(const r of e.data)n.uint32(r);return n.join(),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=je();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.signalValues.push(a.SignalValue.decode(r,r.uint32()));continue}case 2:{if(i===16){t.data.push(r.uint32());continue}if(i===18){const l=r.uint32()+r.pos;for(;r.pos<l;)t.data.push(r.uint32());continue}break}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{signalValues:globalThis.Array.isArray(e==null?void 0:e.signalValues)?e.signalValues.map(n=>a.SignalValue.fromJSON(n)):[],data:globalThis.Array.isArray(e==null?void 0:e.data)?e.data.map(n=>globalThis.Number(n)):[]}},toJSON(e){var r,s;const n={};return(r=e.signalValues)!=null&&r.length&&(n.signalValues=e.signalValues.map(t=>a.SignalValue.toJSON(t))),(s=e.data)!=null&&s.length&&(n.data=e.data.map(t=>Math.round(t))),n},create(e){return Ar.fromPartial(e??{})},fromPartial(e){var r,s;const n=je();return n.signalValues=((r=e.signalValues)==null?void 0:r.map(t=>a.SignalValue.fromPartial(t)))||[],n.data=((s=e.data)==null?void 0:s.map(t=>t))||[],n}};function u(e){return e!=null}var Tr=(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))(Tr||{});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 _r=(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))(_r||{});function Cr(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 gr(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 kr=(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))(kr||{});function yr(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 Br(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 en(){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,n=new a.BinaryWriter){return e.rxMessageCounter!==0&&n.uint32(8).int32(e.rxMessageCounter),e.rxMessagesPerSecond!==0&&n.uint32(16).int32(e.rxMessagesPerSecond),e.txMessageCounter!==0&&n.uint32(24).int32(e.txMessageCounter),e.txMessagesPerSecond!==0&&n.uint32(32).int32(e.txMessagesPerSecond),e.errorFrameCounter!==0&&n.uint32(40).int32(e.errorFrameCounter),e.errorFramesPerSecond!==0&&n.uint32(48).int32(e.errorFramesPerSecond),e.overrunCounter!==0&&n.uint32(56).int32(e.overrunCounter),e.overrunsPerSecond!==0&&n.uint32(64).int32(e.overrunsPerSecond),e.rxErrorCounter!==0&&n.uint32(72).int32(e.rxErrorCounter),e.txErrorCounter!==0&&n.uint32(80).int32(e.txErrorCounter),e.overrunErrorCounter!==0&&n.uint32(88).int32(e.overrunErrorCounter),e.busOnStatus!==0&&n.uint32(96).int32(e.busOnStatus),e.errorStatus!==0&&n.uint32(104).int32(e.errorStatus),e.overrunStatus!==0&&n.uint32(112).int32(e.overrunStatus),e.busLoad!==0&&n.uint32(120).int32(e.busLoad),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=en();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==8)break;t.rxMessageCounter=r.int32();continue}case 2:{if(i!==16)break;t.rxMessagesPerSecond=r.int32();continue}case 3:{if(i!==24)break;t.txMessageCounter=r.int32();continue}case 4:{if(i!==32)break;t.txMessagesPerSecond=r.int32();continue}case 5:{if(i!==40)break;t.errorFrameCounter=r.int32();continue}case 6:{if(i!==48)break;t.errorFramesPerSecond=r.int32();continue}case 7:{if(i!==56)break;t.overrunCounter=r.int32();continue}case 8:{if(i!==64)break;t.overrunsPerSecond=r.int32();continue}case 9:{if(i!==72)break;t.rxErrorCounter=r.int32();continue}case 10:{if(i!==80)break;t.txErrorCounter=r.int32();continue}case 11:{if(i!==88)break;t.overrunErrorCounter=r.int32();continue}case 12:{if(i!==96)break;t.busOnStatus=r.int32();continue}case 13:{if(i!==104)break;t.errorStatus=r.int32();continue}case 14:{if(i!==112)break;t.overrunStatus=r.int32();continue}case 15:{if(i!==120)break;t.busLoad=r.int32();continue}}if((i&7)===4||i===0)break;r.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 n={};return e.rxMessageCounter!==0&&(n.rxMessageCounter=Math.round(e.rxMessageCounter)),e.rxMessagesPerSecond!==0&&(n.rxMessagesPerSecond=Math.round(e.rxMessagesPerSecond)),e.txMessageCounter!==0&&(n.txMessageCounter=Math.round(e.txMessageCounter)),e.txMessagesPerSecond!==0&&(n.txMessagesPerSecond=Math.round(e.txMessagesPerSecond)),e.errorFrameCounter!==0&&(n.errorFrameCounter=Math.round(e.errorFrameCounter)),e.errorFramesPerSecond!==0&&(n.errorFramesPerSecond=Math.round(e.errorFramesPerSecond)),e.overrunCounter!==0&&(n.overrunCounter=Math.round(e.overrunCounter)),e.overrunsPerSecond!==0&&(n.overrunsPerSecond=Math.round(e.overrunsPerSecond)),e.rxErrorCounter!==0&&(n.rxErrorCounter=Math.round(e.rxErrorCounter)),e.txErrorCounter!==0&&(n.txErrorCounter=Math.round(e.txErrorCounter)),e.overrunErrorCounter!==0&&(n.overrunErrorCounter=Math.round(e.overrunErrorCounter)),e.busOnStatus!==0&&(n.busOnStatus=M(e.busOnStatus)),e.errorStatus!==0&&(n.errorStatus=M(e.errorStatus)),e.overrunStatus!==0&&(n.overrunStatus=M(e.overrunStatus)),e.busLoad!==0&&(n.busLoad=Math.round(e.busLoad)),n},create(e){return k.fromPartial(e??{})},fromPartial(e){const n=en();return n.rxMessageCounter=e.rxMessageCounter??0,n.rxMessagesPerSecond=e.rxMessagesPerSecond??0,n.txMessageCounter=e.txMessageCounter??0,n.txMessagesPerSecond=e.txMessagesPerSecond??0,n.errorFrameCounter=e.errorFrameCounter??0,n.errorFramesPerSecond=e.errorFramesPerSecond??0,n.overrunCounter=e.overrunCounter??0,n.overrunsPerSecond=e.overrunsPerSecond??0,n.rxErrorCounter=e.rxErrorCounter??0,n.txErrorCounter=e.txErrorCounter??0,n.overrunErrorCounter=e.overrunErrorCounter??0,n.busOnStatus=e.busOnStatus??0,n.errorStatus=e.errorStatus??0,n.overrunStatus=e.overrunStatus??0,n.busLoad=e.busLoad??0,n}};function nn(){return{errorCounter:0,lastExecutionTime:f.ZERO,minExecutionTime:f.ZERO,maxExecutionTime:f.ZERO}}const y={encode(e,n=new a.BinaryWriter){return e.errorCounter!==0&&n.uint32(8).int32(e.errorCounter),e.lastExecutionTime.equals(f.ZERO)||n.uint32(16).int64(e.lastExecutionTime.toString()),e.minExecutionTime.equals(f.ZERO)||n.uint32(24).int64(e.minExecutionTime.toString()),e.maxExecutionTime.equals(f.ZERO)||n.uint32(32).int64(e.maxExecutionTime.toString()),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=nn();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==8)break;t.errorCounter=r.int32();continue}case 2:{if(i!==16)break;t.lastExecutionTime=f.fromString(r.int64().toString());continue}case 3:{if(i!==24)break;t.minExecutionTime=f.fromString(r.int64().toString());continue}case 4:{if(i!==32)break;t.maxExecutionTime=f.fromString(r.int64().toString());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{errorCounter:p(e.errorCounter)?globalThis.Number(e.errorCounter):0,lastExecutionTime:p(e.lastExecutionTime)?f.fromValue(e.lastExecutionTime):f.ZERO,minExecutionTime:p(e.minExecutionTime)?f.fromValue(e.minExecutionTime):f.ZERO,maxExecutionTime:p(e.maxExecutionTime)?f.fromValue(e.maxExecutionTime):f.ZERO}},toJSON(e){const n={};return e.errorCounter!==0&&(n.errorCounter=Math.round(e.errorCounter)),e.lastExecutionTime.equals(f.ZERO)||(n.lastExecutionTime=(e.lastExecutionTime||f.ZERO).toString()),e.minExecutionTime.equals(f.ZERO)||(n.minExecutionTime=(e.minExecutionTime||f.ZERO).toString()),e.maxExecutionTime.equals(f.ZERO)||(n.maxExecutionTime=(e.maxExecutionTime||f.ZERO).toString()),n},create(e){return y.fromPartial(e??{})},fromPartial(e){const n=nn();return n.errorCounter=e.errorCounter??0,n.lastExecutionTime=e.lastExecutionTime!==void 0&&e.lastExecutionTime!==null?f.fromValue(e.lastExecutionTime):f.ZERO,n.minExecutionTime=e.minExecutionTime!==void 0&&e.minExecutionTime!==null?f.fromValue(e.minExecutionTime):f.ZERO,n.maxExecutionTime=e.maxExecutionTime!==void 0&&e.maxExecutionTime!==null?f.fromValue(e.maxExecutionTime):f.ZERO,n}};function rn(){return{state:0}}const B={encode(e,n=new a.BinaryWriter){return e.state!==0&&n.uint32(8).int32(e.state),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=rn();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==8)break;t.state=r.int32();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{state:p(e.state)?Cr(e.state):0}},toJSON(e){const n={};return e.state!==0&&(n.state=gr(e.state)),n},create(e){return B.fromPartial(e??{})},fromPartial(e){const n=rn();return n.state=e.state??0,n}};function tn(){return{state:0}}const L={encode(e,n=new a.BinaryWriter){return e.state!==0&&n.uint32(8).int32(e.state),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=tn();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==8)break;t.state=r.int32();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{state:p(e.state)?yr(e.state):0}},toJSON(e){const n={};return e.state!==0&&(n.state=Br(e.state)),n},create(e){return L.fromPartial(e??{})},fromPartial(e){const n=tn();return n.state=e.state??0,n}};function an(){return{errors:""}}const I={encode(e,n=new a.BinaryWriter){return e.errors!==""&&n.uint32(10).string(e.errors),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=an();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.errors=r.string();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{errors:p(e.errors)?globalThis.String(e.errors):""}},toJSON(e){const n={};return e.errors!==""&&(n.errors=e.errors),n},create(e){return I.fromPartial(e??{})},fromPartial(e){const n=an();return n.errors=e.errors??"",n}};function sn(){return{nodeId:"",nodeName:"",streamId:"",busStatus:void 0,dataProcessingStatus:void 0,logReplayStatus:void 0,messageLoggerStatus:void 0,errorStatus:void 0}}const J={encode(e,n=new a.BinaryWriter){return e.nodeId!==""&&n.uint32(10).string(e.nodeId),e.nodeName!==""&&n.uint32(18).string(e.nodeName),e.streamId!==""&&n.uint32(26).string(e.streamId),e.busStatus!==void 0&&k.encode(e.busStatus,n.uint32(34).fork()).join(),e.dataProcessingStatus!==void 0&&y.encode(e.dataProcessingStatus,n.uint32(42).fork()).join(),e.logReplayStatus!==void 0&&B.encode(e.logReplayStatus,n.uint32(50).fork()).join(),e.messageLoggerStatus!==void 0&&L.encode(e.messageLoggerStatus,n.uint32(58).fork()).join(),e.errorStatus!==void 0&&I.encode(e.errorStatus,n.uint32(66).fork()).join(),n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=sn();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.nodeId=r.string();continue}case 2:{if(i!==18)break;t.nodeName=r.string();continue}case 3:{if(i!==26)break;t.streamId=r.string();continue}case 4:{if(i!==34)break;t.busStatus=k.decode(r,r.uint32());continue}case 5:{if(i!==42)break;t.dataProcessingStatus=y.decode(r,r.uint32());continue}case 6:{if(i!==50)break;t.logReplayStatus=B.decode(r,r.uint32());continue}case 7:{if(i!==58)break;t.messageLoggerStatus=L.decode(r,r.uint32());continue}case 8:{if(i!==66)break;t.errorStatus=I.decode(r,r.uint32());continue}}if((i&7)===4||i===0)break;r.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)?y.fromJSON(e.dataProcessingStatus):void 0,logReplayStatus:p(e.logReplayStatus)?B.fromJSON(e.logReplayStatus):void 0,messageLoggerStatus:p(e.messageLoggerStatus)?L.fromJSON(e.messageLoggerStatus):void 0,errorStatus:p(e.errorStatus)?I.fromJSON(e.errorStatus):void 0}},toJSON(e){const n={};return e.nodeId!==""&&(n.nodeId=e.nodeId),e.nodeName!==""&&(n.nodeName=e.nodeName),e.streamId!==""&&(n.streamId=e.streamId),e.busStatus!==void 0&&(n.busStatus=k.toJSON(e.busStatus)),e.dataProcessingStatus!==void 0&&(n.dataProcessingStatus=y.toJSON(e.dataProcessingStatus)),e.logReplayStatus!==void 0&&(n.logReplayStatus=B.toJSON(e.logReplayStatus)),e.messageLoggerStatus!==void 0&&(n.messageLoggerStatus=L.toJSON(e.messageLoggerStatus)),e.errorStatus!==void 0&&(n.errorStatus=I.toJSON(e.errorStatus)),n},create(e){return J.fromPartial(e??{})},fromPartial(e){const n=sn();return n.nodeId=e.nodeId??"",n.nodeName=e.nodeName??"",n.streamId=e.streamId??"",n.busStatus=e.busStatus!==void 0&&e.busStatus!==null?k.fromPartial(e.busStatus):void 0,n.dataProcessingStatus=e.dataProcessingStatus!==void 0&&e.dataProcessingStatus!==null?y.fromPartial(e.dataProcessingStatus):void 0,n.logReplayStatus=e.logReplayStatus!==void 0&&e.logReplayStatus!==null?B.fromPartial(e.logReplayStatus):void 0,n.messageLoggerStatus=e.messageLoggerStatus!==void 0&&e.messageLoggerStatus!==null?L.fromPartial(e.messageLoggerStatus):void 0,n.errorStatus=e.errorStatus!==void 0&&e.errorStatus!==null?I.fromPartial(e.errorStatus):void 0,n}};function on(){return{items:[]}}const Lr={encode(e,n=new a.BinaryWriter){for(const r of e.items)J.encode(r,n.uint32(10).fork()).join();return n},decode(e,n){const r=e instanceof a.BinaryReader?e:new a.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const t=on();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;t.items.push(J.decode(r,r.uint32()));continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return t},fromJSON(e){return{items:globalThis.Array.isArray(e==null?void 0:e.items)?e.items.map(n=>J.fromJSON(n)):[]}},toJSON(e){var r;const n={};return(r=e.items)!=null&&r.length&&(n.items=e.items.map(s=>J.toJSON(s))),n},create(e){return Lr.fromPartial(e??{})},fromPartial(e){var r;const n=on();return n.items=((r=e.items)==null?void 0:r.map(s=>J.fromPartial(s)))||[],n}};function p(e){return e!=null}exports.AboutInformation=_n;exports.ActivateLicenseRequest=Tn;exports.AddAllConnectedCanChannelsRequest=wn;exports.AddAllConnectedLinChannelsRequest=Zn;exports.AddOrUpdateDataProcessorRequest=Yn;exports.AddOrUpdateSourceRequest=Kn;exports.AddOrUpdateTargetRequest=$n;exports.ApiPreferences=o;exports.AppEvent=cn;exports.AppEventArgs=En;exports.BusStatus=k;exports.CanBusParamLimits=A;exports.CanBusParams=N;exports.CanBusSpeedInfo=E;exports.CanChannelCap=Cn;exports.CanChannelCapacity=T;exports.CanFDBusSpeedCombination=P;exports.CanFDBusSpeedInfo=S;exports.Channel=_;exports.ClearLinMessageRequest=or;exports.ConnectNodesRequest=jn;exports.DataProcessingStatus=y;exports.Device=O;exports.DeviceEvent=Bn;exports.DeviceEventArgs=Fn;exports.Devices=C;exports.DisconnectNodesRequest=er;exports.Empty=un;exports.ErrorStatus=I;exports.FileType=dn;exports.GetCanChannelBusSpeedsRequest=Dn;exports.GetCanChannelBusSpeedsResponse=Mn;exports.GetCanFdBusSpeedsRequest=Vn;exports.GetCanFdBusSpeedsResponse=bn;exports.GetChannelsFromLogFileRequest=Nr;exports.GetChannelsFromLogFileResponse=Sr;exports.GetClassicCanBusSpeedsRequest=xn;exports.GetClassicCanBusSpeedsResponse=Gn;exports.GetDataProcessorResponse=Xn;exports.GetDevicesRequest=Jn;exports.GetDevicesResponse=vn;exports.GetFrameDefinitionsFromDatabaseFilesRequest=mr;exports.GetLicensesResponse=An;exports.GetLogFileFormatsRequest=lr;exports.GetLogFileFormatsResponse=pr;exports.GetLogLevelResponse=Sn;exports.GetScheduleTablesFromDatabaseFilesRequest=Er;exports.GetScheduleTablesFromDatabaseFilesResponse=Pr;exports.GetServiceExtensionInfoRequest=hn;exports.GetServiceExtensionInfoResponse=Rn;exports.GetSignalDataFromMessageDataRequest=Or;exports.GetSignalDataFromMessageDataResponse=hr;exports.GetSourceResponse=Qn;exports.GetTargetResponse=zn;exports.IdentifierRequest=nr;exports.IdentifiersRequest=rr;exports.InstallServiceExtensionRequest=Pn;exports.LicenseInformation=m;exports.Licenses=R;exports.LogLevel=fn;exports.LogMessage=h;exports.LogMessages=mn;exports.LogReplayState=_r;exports.LogReplayStatus=B;exports.MeasurementEvent=Un;exports.MeasurementEventArgs=cr;exports.MessageLoggerState=kr;exports.MessageLoggerStatus=L;exports.NodeStatus=J;exports.NodeStatuses=Lr;exports.OnlineStatus=g;exports.Protocols=yn;exports.RequestLinMessageRequest=ar;exports.SendLinWakeupFrameRequest=tr;exports.SendMessageRequest=ir;exports.SetLogLevelRequest=Nn;exports.SetMeasurementSetupRequest=Hn;exports.SetSignalDataToMessageDataRequest=Rr;exports.SetSignalDataToMessageDataResponse=Ar;exports.StartPeriodicTransmissionRequest=ur;exports.StartPeriodicTransmissionResponse=fr;exports.StatusLevel=Tr;exports.UninstallServiceExtensionRequest=On;exports.UpdateLinMessageRequest=sr;exports.UpdatePeriodicTransmissionRequest=dr;exports.appEventFromJSON=ln;exports.appEventToJSON=pn;exports.canChannelCapFromJSON=gn;exports.canChannelCapToJSON=kn;exports.deviceEventFromJSON=Ln;exports.deviceEventToJSON=In;exports.fileTypeFromJSON=Ir;exports.fileTypeToJSON=Jr;exports.logLevelFromJSON=x;exports.logLevelToJSON=G;exports.logReplayStateFromJSON=Cr;exports.logReplayStateToJSON=gr;exports.measurementEventFromJSON=qn;exports.measurementEventToJSON=Wn;exports.messageLoggerStateFromJSON=yr;exports.messageLoggerStateToJSON=Br;exports.protocolsFromJSON=V;exports.protocolsToJSON=b;exports.statusLevelFromJSON=D;exports.statusLevelToJSON=M;
|
|
1
|
+
"use strict";const t=require("./measurement_settings.js"),f=require("long");function I(){return{}}const _e={encode(e,n=new t.BinaryWriter){return n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=I();for(;r.pos<s;){const i=r.uint32();if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{}},toJSON(e){return{}},create(e){return _e.fromPartial(e??{})},fromPartial(e){return I()}};var Le=(e=>(e[e.PROJECT_FILE=0]="PROJECT_FILE",e[e.LOG_FILE=1]="LOG_FILE",e[e.CAN_DATABASES=2]="CAN_DATABASES",e[e.LIN_DATABASES=3]="LIN_DATABASES",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(Le||{});function xn(e){switch(e){case 0:case"PROJECT_FILE":return 0;case 1:case"LOG_FILE":return 1;case 2:case"CAN_DATABASES":return 2;case 3:case"LIN_DATABASES":return 3;case-1:case"UNRECOGNIZED":default:return-1}}function Mn(e){switch(e){case 0:return"PROJECT_FILE";case 1:return"LOG_FILE";case 2:return"CAN_DATABASES";case 3:return"LIN_DATABASES";case-1:default:return"UNRECOGNIZED"}}var Je=(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))(Je||{});function h(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 k(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 Be=(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))(Be||{});function Ce(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 ve(e){switch(e){case 0:return"APP_EVENT_UNSPECIFIED";case 1:return"APP_EVENT_LICENSE_INFO_CHANGED";case-1:default:return"UNRECOGNIZED"}}function y(){return{preferences:void 0,logLevel:0}}const Ge={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.logLevel!==0&&n.uint32(16).int32(e.logLevel),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=y();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==16)break;a.logLevel=r.int32();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:u(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,logLevel:u(e.logLevel)?h(e.logLevel):0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.logLevel!==0&&(n.logLevel=k(e.logLevel)),n},create(e){return Ge.fromPartial(e??{})},fromPartial(e){const n=y();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.logLevel=e.logLevel??0,n}};function _(){return{logLevel:0}}const Ve={encode(e,n=new t.BinaryWriter){return e.logLevel!==0&&n.uint32(8).int32(e.logLevel),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=_();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==8)break;a.logLevel=r.int32();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{logLevel:u(e.logLevel)?h(e.logLevel):0}},toJSON(e){const n={};return e.logLevel!==0&&(n.logLevel=k(e.logLevel)),n},create(e){return Ve.fromPartial(e??{})},fromPartial(e){const n=_();return n.logLevel=e.logLevel??0,n}};function L(){return{time:f.ZERO,logLevel:0,eventId:0,categoryName:"",message:""}}const p={encode(e,n=new t.BinaryWriter){return e.time.equals(f.ZERO)||n.uint32(8).int64(e.time.toString()),e.logLevel!==0&&n.uint32(16).int32(e.logLevel),e.eventId!==0&&n.uint32(24).int32(e.eventId),e.categoryName!==""&&n.uint32(34).string(e.categoryName),e.message!==""&&n.uint32(42).string(e.message),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=L();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==8)break;a.time=f.fromString(r.int64().toString());continue}case 2:{if(i!==16)break;a.logLevel=r.int32();continue}case 3:{if(i!==24)break;a.eventId=r.int32();continue}case 4:{if(i!==34)break;a.categoryName=r.string();continue}case 5:{if(i!==42)break;a.message=r.string();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{time:u(e.time)?f.fromValue(e.time):f.ZERO,logLevel:u(e.logLevel)?h(e.logLevel):0,eventId:u(e.eventId)?globalThis.Number(e.eventId):0,categoryName:u(e.categoryName)?globalThis.String(e.categoryName):"",message:u(e.message)?globalThis.String(e.message):""}},toJSON(e){const n={};return e.time.equals(f.ZERO)||(n.time=(e.time||f.ZERO).toString()),e.logLevel!==0&&(n.logLevel=k(e.logLevel)),e.eventId!==0&&(n.eventId=Math.round(e.eventId)),e.categoryName!==""&&(n.categoryName=e.categoryName),e.message!==""&&(n.message=e.message),n},create(e){return p.fromPartial(e??{})},fromPartial(e){const n=L();return n.time=e.time!==void 0&&e.time!==null?f.fromValue(e.time):f.ZERO,n.logLevel=e.logLevel??0,n.eventId=e.eventId??0,n.categoryName=e.categoryName??"",n.message=e.message??"",n}};function J(){return{items:[]}}const xe={encode(e,n=new t.BinaryWriter){for(const r of e.items)p.encode(r,n.uint32(10).fork()).join();return n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=J();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.items.push(p.decode(r,r.uint32()));continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{items:globalThis.Array.isArray(e==null?void 0:e.items)?e.items.map(n=>p.fromJSON(n)):[]}},toJSON(e){var r;const n={};return(r=e.items)!=null&&r.length&&(n.items=e.items.map(s=>p.toJSON(s))),n},create(e){return xe.fromPartial(e??{})},fromPartial(e){var r;const n=J();return n.items=((r=e.items)==null?void 0:r.map(s=>p.fromPartial(s)))||[],n}};function B(){return{licenseKey:"",productId:"",productName:"",productVersion:"",instanceId:"",instanceName:"",expirationDate:f.ZERO,isValid:!1}}const l={encode(e,n=new t.BinaryWriter){return e.licenseKey!==""&&n.uint32(10).string(e.licenseKey),e.productId!==""&&n.uint32(18).string(e.productId),e.productName!==""&&n.uint32(26).string(e.productName),e.productVersion!==""&&n.uint32(34).string(e.productVersion),e.instanceId!==""&&n.uint32(42).string(e.instanceId),e.instanceName!==""&&n.uint32(50).string(e.instanceName),e.expirationDate.equals(f.ZERO)||n.uint32(56).int64(e.expirationDate.toString()),e.isValid!==!1&&n.uint32(64).bool(e.isValid),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=B();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.licenseKey=r.string();continue}case 2:{if(i!==18)break;a.productId=r.string();continue}case 3:{if(i!==26)break;a.productName=r.string();continue}case 4:{if(i!==34)break;a.productVersion=r.string();continue}case 5:{if(i!==42)break;a.instanceId=r.string();continue}case 6:{if(i!==50)break;a.instanceName=r.string();continue}case 7:{if(i!==56)break;a.expirationDate=f.fromString(r.int64().toString());continue}case 8:{if(i!==64)break;a.isValid=r.bool();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{licenseKey:u(e.licenseKey)?globalThis.String(e.licenseKey):"",productId:u(e.productId)?globalThis.String(e.productId):"",productName:u(e.productName)?globalThis.String(e.productName):"",productVersion:u(e.productVersion)?globalThis.String(e.productVersion):"",instanceId:u(e.instanceId)?globalThis.String(e.instanceId):"",instanceName:u(e.instanceName)?globalThis.String(e.instanceName):"",expirationDate:u(e.expirationDate)?f.fromValue(e.expirationDate):f.ZERO,isValid:u(e.isValid)?globalThis.Boolean(e.isValid):!1}},toJSON(e){const n={};return e.licenseKey!==""&&(n.licenseKey=e.licenseKey),e.productId!==""&&(n.productId=e.productId),e.productName!==""&&(n.productName=e.productName),e.productVersion!==""&&(n.productVersion=e.productVersion),e.instanceId!==""&&(n.instanceId=e.instanceId),e.instanceName!==""&&(n.instanceName=e.instanceName),e.expirationDate.equals(f.ZERO)||(n.expirationDate=(e.expirationDate||f.ZERO).toString()),e.isValid!==!1&&(n.isValid=e.isValid),n},create(e){return l.fromPartial(e??{})},fromPartial(e){const n=B();return n.licenseKey=e.licenseKey??"",n.productId=e.productId??"",n.productName=e.productName??"",n.productVersion=e.productVersion??"",n.instanceId=e.instanceId??"",n.instanceName=e.instanceName??"",n.expirationDate=e.expirationDate!==void 0&&e.expirationDate!==null?f.fromValue(e.expirationDate):f.ZERO,n.isValid=e.isValid??!1,n}};function C(){return{items:[]}}const S={encode(e,n=new t.BinaryWriter){for(const r of e.items)l.encode(r,n.uint32(10).fork()).join();return n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=C();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.items.push(l.decode(r,r.uint32()));continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{items:globalThis.Array.isArray(e==null?void 0:e.items)?e.items.map(n=>l.fromJSON(n)):[]}},toJSON(e){var r;const n={};return(r=e.items)!=null&&r.length&&(n.items=e.items.map(s=>l.toJSON(s))),n},create(e){return S.fromPartial(e??{})},fromPartial(e){var r;const n=C();return n.items=((r=e.items)==null?void 0:r.map(s=>l.fromPartial(s)))||[],n}};function v(){return{eventType:0,licenses:void 0}}const Me={encode(e,n=new t.BinaryWriter){return e.eventType!==0&&n.uint32(8).int32(e.eventType),e.licenses!==void 0&&S.encode(e.licenses,n.uint32(18).fork()).join(),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=v();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==8)break;a.eventType=r.int32();continue}case 2:{if(i!==18)break;a.licenses=S.decode(r,r.uint32());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{eventType:u(e.eventType)?Ce(e.eventType):0,licenses:u(e.licenses)?S.fromJSON(e.licenses):void 0}},toJSON(e){const n={};return e.eventType!==0&&(n.eventType=ve(e.eventType)),e.licenses!==void 0&&(n.licenses=S.toJSON(e.licenses)),n},create(e){return Me.fromPartial(e??{})},fromPartial(e){const n=v();return n.eventType=e.eventType??0,n.licenses=e.licenses!==void 0&&e.licenses!==null?S.fromPartial(e.licenses):void 0,n}};function G(){return{preferences:void 0,filePath:"",replaceExisting:void 0}}const De={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.filePath!==""&&n.uint32(18).string(e.filePath),e.replaceExisting!==void 0&&n.uint32(24).bool(e.replaceExisting),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=G();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.filePath=r.string();continue}case 3:{if(i!==24)break;a.replaceExisting=r.bool();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:u(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,filePath:u(e.filePath)?globalThis.String(e.filePath):"",replaceExisting:u(e.replaceExisting)?globalThis.Boolean(e.replaceExisting):void 0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.filePath!==""&&(n.filePath=e.filePath),e.replaceExisting!==void 0&&(n.replaceExisting=e.replaceExisting),n},create(e){return De.fromPartial(e??{})},fromPartial(e){const n=G();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.filePath=e.filePath??"",n.replaceExisting=e.replaceExisting??void 0,n}};function V(){return{preferences:void 0,name:""}}const Fe={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.name!==""&&n.uint32(18).string(e.name),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=V();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.name=r.string();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:u(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,name:u(e.name)?globalThis.String(e.name):""}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.name!==""&&(n.name=e.name),n},create(e){return Fe.fromPartial(e??{})},fromPartial(e){const n=V();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.name=e.name??"",n}};function x(){return{preferences:void 0,filePathOrName:""}}const Ue={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.filePathOrName!==""&&n.uint32(18).string(e.filePathOrName),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=x();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.filePathOrName=r.string();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:u(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,filePathOrName:u(e.filePathOrName)?globalThis.String(e.filePathOrName):""}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.filePathOrName!==""&&(n.filePathOrName=e.filePathOrName),n},create(e){return Ue.fromPartial(e??{})},fromPartial(e){const n=x();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.filePathOrName=e.filePathOrName??"",n}};function M(){return{name:"",displayName:"",description:"",version:"",author:"",defaultConfig:""}}const qe={encode(e,n=new t.BinaryWriter){return e.name!==""&&n.uint32(10).string(e.name),e.displayName!==""&&n.uint32(18).string(e.displayName),e.description!==""&&n.uint32(26).string(e.description),e.version!==""&&n.uint32(34).string(e.version),e.author!==""&&n.uint32(42).string(e.author),e.defaultConfig!==""&&n.uint32(50).string(e.defaultConfig),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=M();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.name=r.string();continue}case 2:{if(i!==18)break;a.displayName=r.string();continue}case 3:{if(i!==26)break;a.description=r.string();continue}case 4:{if(i!==34)break;a.version=r.string();continue}case 5:{if(i!==42)break;a.author=r.string();continue}case 6:{if(i!==50)break;a.defaultConfig=r.string();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{name:u(e.name)?globalThis.String(e.name):"",displayName:u(e.displayName)?globalThis.String(e.displayName):"",description:u(e.description)?globalThis.String(e.description):"",version:u(e.version)?globalThis.String(e.version):"",author:u(e.author)?globalThis.String(e.author):"",defaultConfig:u(e.defaultConfig)?globalThis.String(e.defaultConfig):""}},toJSON(e){const n={};return e.name!==""&&(n.name=e.name),e.displayName!==""&&(n.displayName=e.displayName),e.description!==""&&(n.description=e.description),e.version!==""&&(n.version=e.version),e.author!==""&&(n.author=e.author),e.defaultConfig!==""&&(n.defaultConfig=e.defaultConfig),n},create(e){return qe.fromPartial(e??{})},fromPartial(e){const n=M();return n.name=e.name??"",n.displayName=e.displayName??"",n.description=e.description??"",n.version=e.version??"",n.author=e.author??"",n.defaultConfig=e.defaultConfig??"",n}};function D(){return{licenses:[]}}const we={encode(e,n=new t.BinaryWriter){for(const r of e.licenses)l.encode(r,n.uint32(10).fork()).join();return n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=D();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.licenses.push(l.decode(r,r.uint32()));continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{licenses:globalThis.Array.isArray(e==null?void 0:e.licenses)?e.licenses.map(n=>l.fromJSON(n)):[]}},toJSON(e){var r;const n={};return(r=e.licenses)!=null&&r.length&&(n.licenses=e.licenses.map(s=>l.toJSON(s))),n},create(e){return we.fromPartial(e??{})},fromPartial(e){var r;const n=D();return n.licenses=((r=e.licenses)==null?void 0:r.map(s=>l.fromPartial(s)))||[],n}};function F(){return{preferences:void 0,licenseKey:"",productId:""}}const We={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.licenseKey!==""&&n.uint32(18).string(e.licenseKey),e.productId!==""&&n.uint32(26).string(e.productId),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=F();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.licenseKey=r.string();continue}case 3:{if(i!==26)break;a.productId=r.string();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:u(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,licenseKey:u(e.licenseKey)?globalThis.String(e.licenseKey):"",productId:u(e.productId)?globalThis.String(e.productId):""}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.licenseKey!==""&&(n.licenseKey=e.licenseKey),e.productId!==""&&(n.productId=e.productId),n},create(e){return We.fromPartial(e??{})},fromPartial(e){const n=F();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.licenseKey=e.licenseKey??"",n.productId=e.productId??"",n}};function U(){return{apiVersion:"",serviceVersion:"",canlibVersion:""}}const Ze={encode(e,n=new t.BinaryWriter){return e.apiVersion!==""&&n.uint32(10).string(e.apiVersion),e.serviceVersion!==""&&n.uint32(18).string(e.serviceVersion),e.canlibVersion!==""&&n.uint32(26).string(e.canlibVersion),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=U();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.apiVersion=r.string();continue}case 2:{if(i!==18)break;a.serviceVersion=r.string();continue}case 3:{if(i!==26)break;a.canlibVersion=r.string();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{apiVersion:u(e.apiVersion)?globalThis.String(e.apiVersion):"",serviceVersion:u(e.serviceVersion)?globalThis.String(e.serviceVersion):"",canlibVersion:u(e.canlibVersion)?globalThis.String(e.canlibVersion):""}},toJSON(e){const n={};return e.apiVersion!==""&&(n.apiVersion=e.apiVersion),e.serviceVersion!==""&&(n.serviceVersion=e.serviceVersion),e.canlibVersion!==""&&(n.canlibVersion=e.canlibVersion),n},create(e){return Ze.fromPartial(e??{})},fromPartial(e){const n=U();return n.apiVersion=e.apiVersion??"",n.serviceVersion=e.serviceVersion??"",n.canlibVersion=e.canlibVersion??"",n}};function u(e){return e!=null}var Ke=(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))(Ke||{});function Qe(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 He(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 q(){return{preferences:void 0,setup:void 0}}const Ye={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.setup!==void 0&&t.MeasurementSetup.encode(e.setup,n.uint32(18).fork()).join(),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=q();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.setup=t.MeasurementSetup.decode(r,r.uint32());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,setup:o(e.setup)?t.MeasurementSetup.fromJSON(e.setup):void 0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.setup!==void 0&&(n.setup=t.MeasurementSetup.toJSON(e.setup)),n},create(e){return Ye.fromPartial(e??{})},fromPartial(e){const n=q();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.setup=e.setup!==void 0&&e.setup!==null?t.MeasurementSetup.fromPartial(e.setup):void 0,n}};function w(){return{preferences:void 0,configuration:void 0}}const $e={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.configuration!==void 0&&t.CanChannelConfiguration.encode(e.configuration,n.uint32(18).fork()).join(),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=w();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.configuration=t.CanChannelConfiguration.decode(r,r.uint32());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,configuration:o(e.configuration)?t.CanChannelConfiguration.fromJSON(e.configuration):void 0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.configuration!==void 0&&(n.configuration=t.CanChannelConfiguration.toJSON(e.configuration)),n},create(e){return $e.fromPartial(e??{})},fromPartial(e){const n=w();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.configuration=e.configuration!==void 0&&e.configuration!==null?t.CanChannelConfiguration.fromPartial(e.configuration):void 0,n}};function W(){return{preferences:void 0,configuration:void 0}}const ze={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.configuration!==void 0&&t.LinChannelConfiguration.encode(e.configuration,n.uint32(18).fork()).join(),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=W();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.configuration=t.LinChannelConfiguration.decode(r,r.uint32());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,configuration:o(e.configuration)?t.LinChannelConfiguration.fromJSON(e.configuration):void 0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.configuration!==void 0&&(n.configuration=t.LinChannelConfiguration.toJSON(e.configuration)),n},create(e){return ze.fromPartial(e??{})},fromPartial(e){const n=W();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.configuration=e.configuration!==void 0&&e.configuration!==null?t.LinChannelConfiguration.fromPartial(e.configuration):void 0,n}};function Z(){return{preferences:void 0,source:void 0,replaceAllProperties:!1}}const Xe={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.source!==void 0&&t.SourceNodeProperties.encode(e.source,n.uint32(18).fork()).join(),e.replaceAllProperties!==!1&&n.uint32(24).bool(e.replaceAllProperties),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=Z();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.source=t.SourceNodeProperties.decode(r,r.uint32());continue}case 3:{if(i!==24)break;a.replaceAllProperties=r.bool();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,source:o(e.source)?t.SourceNodeProperties.fromJSON(e.source):void 0,replaceAllProperties:o(e.replaceAllProperties)?globalThis.Boolean(e.replaceAllProperties):!1}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.source!==void 0&&(n.source=t.SourceNodeProperties.toJSON(e.source)),e.replaceAllProperties!==!1&&(n.replaceAllProperties=e.replaceAllProperties),n},create(e){return Xe.fromPartial(e??{})},fromPartial(e){const n=Z();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.source=e.source!==void 0&&e.source!==null?t.SourceNodeProperties.fromPartial(e.source):void 0,n.replaceAllProperties=e.replaceAllProperties??!1,n}};function K(){return{source:void 0}}const be={encode(e,n=new t.BinaryWriter){return e.source!==void 0&&t.SourceNodeProperties.encode(e.source,n.uint32(10).fork()).join(),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=K();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.source=t.SourceNodeProperties.decode(r,r.uint32());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{source:o(e.source)?t.SourceNodeProperties.fromJSON(e.source):void 0}},toJSON(e){const n={};return e.source!==void 0&&(n.source=t.SourceNodeProperties.toJSON(e.source)),n},create(e){return be.fromPartial(e??{})},fromPartial(e){const n=K();return n.source=e.source!==void 0&&e.source!==null?t.SourceNodeProperties.fromPartial(e.source):void 0,n}};function Q(){return{preferences:void 0,dataProcessor:void 0,previousNode:"",nextNode:"",replaceAllProperties:!1}}const je={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.dataProcessor!==void 0&&t.DataProcessorNodeProperties.encode(e.dataProcessor,n.uint32(18).fork()).join(),e.previousNode!==""&&n.uint32(26).string(e.previousNode),e.nextNode!==""&&n.uint32(34).string(e.nextNode),e.replaceAllProperties!==!1&&n.uint32(40).bool(e.replaceAllProperties),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=Q();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.dataProcessor=t.DataProcessorNodeProperties.decode(r,r.uint32());continue}case 3:{if(i!==26)break;a.previousNode=r.string();continue}case 4:{if(i!==34)break;a.nextNode=r.string();continue}case 5:{if(i!==40)break;a.replaceAllProperties=r.bool();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,dataProcessor:o(e.dataProcessor)?t.DataProcessorNodeProperties.fromJSON(e.dataProcessor):void 0,previousNode:o(e.previousNode)?globalThis.String(e.previousNode):"",nextNode:o(e.nextNode)?globalThis.String(e.nextNode):"",replaceAllProperties:o(e.replaceAllProperties)?globalThis.Boolean(e.replaceAllProperties):!1}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.dataProcessor!==void 0&&(n.dataProcessor=t.DataProcessorNodeProperties.toJSON(e.dataProcessor)),e.previousNode!==""&&(n.previousNode=e.previousNode),e.nextNode!==""&&(n.nextNode=e.nextNode),e.replaceAllProperties!==!1&&(n.replaceAllProperties=e.replaceAllProperties),n},create(e){return je.fromPartial(e??{})},fromPartial(e){const n=Q();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.dataProcessor=e.dataProcessor!==void 0&&e.dataProcessor!==null?t.DataProcessorNodeProperties.fromPartial(e.dataProcessor):void 0,n.previousNode=e.previousNode??"",n.nextNode=e.nextNode??"",n.replaceAllProperties=e.replaceAllProperties??!1,n}};function H(){return{dataProcessor:void 0}}const en={encode(e,n=new t.BinaryWriter){return e.dataProcessor!==void 0&&t.DataProcessorNodeProperties.encode(e.dataProcessor,n.uint32(10).fork()).join(),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=H();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.dataProcessor=t.DataProcessorNodeProperties.decode(r,r.uint32());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{dataProcessor:o(e.dataProcessor)?t.DataProcessorNodeProperties.fromJSON(e.dataProcessor):void 0}},toJSON(e){const n={};return e.dataProcessor!==void 0&&(n.dataProcessor=t.DataProcessorNodeProperties.toJSON(e.dataProcessor)),n},create(e){return en.fromPartial(e??{})},fromPartial(e){const n=H();return n.dataProcessor=e.dataProcessor!==void 0&&e.dataProcessor!==null?t.DataProcessorNodeProperties.fromPartial(e.dataProcessor):void 0,n}};function Y(){return{preferences:void 0,target:void 0,replaceAllProperties:!1}}const nn={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.target!==void 0&&t.TargetNodeProperties.encode(e.target,n.uint32(18).fork()).join(),e.replaceAllProperties!==!1&&n.uint32(24).bool(e.replaceAllProperties),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=Y();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.target=t.TargetNodeProperties.decode(r,r.uint32());continue}case 3:{if(i!==24)break;a.replaceAllProperties=r.bool();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,target:o(e.target)?t.TargetNodeProperties.fromJSON(e.target):void 0,replaceAllProperties:o(e.replaceAllProperties)?globalThis.Boolean(e.replaceAllProperties):!1}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.target!==void 0&&(n.target=t.TargetNodeProperties.toJSON(e.target)),e.replaceAllProperties!==!1&&(n.replaceAllProperties=e.replaceAllProperties),n},create(e){return nn.fromPartial(e??{})},fromPartial(e){const n=Y();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.target=e.target!==void 0&&e.target!==null?t.TargetNodeProperties.fromPartial(e.target):void 0,n.replaceAllProperties=e.replaceAllProperties??!1,n}};function $(){return{target:void 0}}const rn={encode(e,n=new t.BinaryWriter){return e.target!==void 0&&t.TargetNodeProperties.encode(e.target,n.uint32(10).fork()).join(),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=$();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.target=t.TargetNodeProperties.decode(r,r.uint32());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{target:o(e.target)?t.TargetNodeProperties.fromJSON(e.target):void 0}},toJSON(e){const n={};return e.target!==void 0&&(n.target=t.TargetNodeProperties.toJSON(e.target)),n},create(e){return rn.fromPartial(e??{})},fromPartial(e){const n=$();return n.target=e.target!==void 0&&e.target!==null?t.TargetNodeProperties.fromPartial(e.target):void 0,n}};function z(){return{preferences:void 0,startNode:"",endNode:""}}const tn={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.startNode!==""&&n.uint32(18).string(e.startNode),e.endNode!==""&&n.uint32(26).string(e.endNode),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=z();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.startNode=r.string();continue}case 3:{if(i!==26)break;a.endNode=r.string();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,startNode:o(e.startNode)?globalThis.String(e.startNode):"",endNode:o(e.endNode)?globalThis.String(e.endNode):""}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.startNode!==""&&(n.startNode=e.startNode),e.endNode!==""&&(n.endNode=e.endNode),n},create(e){return tn.fromPartial(e??{})},fromPartial(e){const n=z();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.startNode=e.startNode??"",n.endNode=e.endNode??"",n}};function X(){return{preferences:void 0,startNode:"",endNode:""}}const an={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.startNode!==""&&n.uint32(18).string(e.startNode),e.endNode!==""&&n.uint32(26).string(e.endNode),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=X();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.startNode=r.string();continue}case 3:{if(i!==26)break;a.endNode=r.string();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,startNode:o(e.startNode)?globalThis.String(e.startNode):"",endNode:o(e.endNode)?globalThis.String(e.endNode):""}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.startNode!==""&&(n.startNode=e.startNode),e.endNode!==""&&(n.endNode=e.endNode),n},create(e){return an.fromPartial(e??{})},fromPartial(e){const n=X();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.startNode=e.startNode??"",n.endNode=e.endNode??"",n}};function b(){return{preferences:void 0,identifier:""}}const sn={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.identifier!==""&&n.uint32(18).string(e.identifier),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=b();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.identifier=r.string();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,identifier:o(e.identifier)?globalThis.String(e.identifier):""}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.identifier!==""&&(n.identifier=e.identifier),n},create(e){return sn.fromPartial(e??{})},fromPartial(e){const n=b();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.identifier=e.identifier??"",n}};function j(){return{preferences:void 0,identifiers:[]}}const on={encode(e,n=new t.BinaryWriter){e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join();for(const r of e.identifiers)n.uint32(18).string(r);return n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=j();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.identifiers.push(r.string());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,identifiers:globalThis.Array.isArray(e==null?void 0:e.identifiers)?e.identifiers.map(n=>globalThis.String(n)):[]}},toJSON(e){var r;const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),(r=e.identifiers)!=null&&r.length&&(n.identifiers=e.identifiers),n},create(e){return on.fromPartial(e??{})},fromPartial(e){var r;const n=j();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.identifiers=((r=e.identifiers)==null?void 0:r.map(s=>s))||[],n}};function ee(){return{preferences:void 0,channelIdentifier:"",frame:void 0}}const fn={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.channelIdentifier!==""&&n.uint32(18).string(e.channelIdentifier),e.frame!==void 0&&t.WriteFrame.encode(e.frame,n.uint32(26).fork()).join(),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=ee();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.channelIdentifier=r.string();continue}case 3:{if(i!==26)break;a.frame=t.WriteFrame.decode(r,r.uint32());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,channelIdentifier:o(e.channelIdentifier)?globalThis.String(e.channelIdentifier):"",frame:o(e.frame)?t.WriteFrame.fromJSON(e.frame):void 0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.channelIdentifier!==""&&(n.channelIdentifier=e.channelIdentifier),e.frame!==void 0&&(n.frame=t.WriteFrame.toJSON(e.frame)),n},create(e){return fn.fromPartial(e??{})},fromPartial(e){const n=ee();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.channelIdentifier=e.channelIdentifier??"",n.frame=e.frame!==void 0&&e.frame!==null?t.WriteFrame.fromPartial(e.frame):void 0,n}};function ne(){return{preferences:void 0,channelIdentifier:"",count:0,interval:0}}const un={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.channelIdentifier!==""&&n.uint32(18).string(e.channelIdentifier),e.count!==0&&n.uint32(24).int32(e.count),e.interval!==0&&n.uint32(32).int32(e.interval),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=ne();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.channelIdentifier=r.string();continue}case 3:{if(i!==24)break;a.count=r.int32();continue}case 4:{if(i!==32)break;a.interval=r.int32();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,channelIdentifier:o(e.channelIdentifier)?globalThis.String(e.channelIdentifier):"",count:o(e.count)?globalThis.Number(e.count):0,interval:o(e.interval)?globalThis.Number(e.interval):0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.channelIdentifier!==""&&(n.channelIdentifier=e.channelIdentifier),e.count!==0&&(n.count=Math.round(e.count)),e.interval!==0&&(n.interval=Math.round(e.interval)),n},create(e){return un.fromPartial(e??{})},fromPartial(e){const n=ne();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.channelIdentifier=e.channelIdentifier??"",n.count=e.count??0,n.interval=e.interval??0,n}};function re(){return{preferences:void 0,channelIdentifier:"",frameId:0}}const dn={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.channelIdentifier!==""&&n.uint32(18).string(e.channelIdentifier),e.frameId!==0&&n.uint32(24).int32(e.frameId),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=re();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.channelIdentifier=r.string();continue}case 3:{if(i!==24)break;a.frameId=r.int32();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,channelIdentifier:o(e.channelIdentifier)?globalThis.String(e.channelIdentifier):"",frameId:o(e.frameId)?globalThis.Number(e.frameId):0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.channelIdentifier!==""&&(n.channelIdentifier=e.channelIdentifier),e.frameId!==0&&(n.frameId=Math.round(e.frameId)),n},create(e){return dn.fromPartial(e??{})},fromPartial(e){const n=re();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.channelIdentifier=e.channelIdentifier??"",n.frameId=e.frameId??0,n}};function ie(){return{preferences:void 0,channelIdentifier:"",frame:void 0}}const cn={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.channelIdentifier!==""&&n.uint32(18).string(e.channelIdentifier),e.frame!==void 0&&t.WriteFrame.encode(e.frame,n.uint32(26).fork()).join(),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=ie();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.channelIdentifier=r.string();continue}case 3:{if(i!==26)break;a.frame=t.WriteFrame.decode(r,r.uint32());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,channelIdentifier:o(e.channelIdentifier)?globalThis.String(e.channelIdentifier):"",frame:o(e.frame)?t.WriteFrame.fromJSON(e.frame):void 0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.channelIdentifier!==""&&(n.channelIdentifier=e.channelIdentifier),e.frame!==void 0&&(n.frame=t.WriteFrame.toJSON(e.frame)),n},create(e){return cn.fromPartial(e??{})},fromPartial(e){const n=ie();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.channelIdentifier=e.channelIdentifier??"",n.frame=e.frame!==void 0&&e.frame!==null?t.WriteFrame.fromPartial(e.frame):void 0,n}};function te(){return{preferences:void 0,channelIdentifier:"",frameId:0}}const ln={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.channelIdentifier!==""&&n.uint32(18).string(e.channelIdentifier),e.frameId!==0&&n.uint32(24).int32(e.frameId),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=te();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.channelIdentifier=r.string();continue}case 3:{if(i!==24)break;a.frameId=r.int32();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,channelIdentifier:o(e.channelIdentifier)?globalThis.String(e.channelIdentifier):"",frameId:o(e.frameId)?globalThis.Number(e.frameId):0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.channelIdentifier!==""&&(n.channelIdentifier=e.channelIdentifier),e.frameId!==0&&(n.frameId=Math.round(e.frameId)),n},create(e){return ln.fromPartial(e??{})},fromPartial(e){const n=te();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.channelIdentifier=e.channelIdentifier??"",n.frameId=e.frameId??0,n}};function ae(){return{preferences:void 0,settings:void 0}}const pn={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.settings!==void 0&&t.PeriodicTransmissionSettings.encode(e.settings,n.uint32(18).fork()).join(),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=ae();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.settings=t.PeriodicTransmissionSettings.decode(r,r.uint32());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,settings:o(e.settings)?t.PeriodicTransmissionSettings.fromJSON(e.settings):void 0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.settings!==void 0&&(n.settings=t.PeriodicTransmissionSettings.toJSON(e.settings)),n},create(e){return pn.fromPartial(e??{})},fromPartial(e){const n=ae();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.settings=e.settings!==void 0&&e.settings!==null?t.PeriodicTransmissionSettings.fromPartial(e.settings):void 0,n}};function se(){return{preferences:void 0,settings:void 0,identifier:""}}const Sn={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.settings!==void 0&&t.PeriodicTransmissionSettings.encode(e.settings,n.uint32(18).fork()).join(),e.identifier!==""&&n.uint32(26).string(e.identifier),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=se();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.settings=t.PeriodicTransmissionSettings.decode(r,r.uint32());continue}case 3:{if(i!==26)break;a.identifier=r.string();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,settings:o(e.settings)?t.PeriodicTransmissionSettings.fromJSON(e.settings):void 0,identifier:o(e.identifier)?globalThis.String(e.identifier):""}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.settings!==void 0&&(n.settings=t.PeriodicTransmissionSettings.toJSON(e.settings)),e.identifier!==""&&(n.identifier=e.identifier),n},create(e){return Sn.fromPartial(e??{})},fromPartial(e){const n=se();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.settings=e.settings!==void 0&&e.settings!==null?t.PeriodicTransmissionSettings.fromPartial(e.settings):void 0,n.identifier=e.identifier??"",n}};function oe(){return{periodicTransmissionIdentifier:""}}const Nn={encode(e,n=new t.BinaryWriter){return e.periodicTransmissionIdentifier!==""&&n.uint32(10).string(e.periodicTransmissionIdentifier),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=oe();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.periodicTransmissionIdentifier=r.string();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{periodicTransmissionIdentifier:o(e.periodicTransmissionIdentifier)?globalThis.String(e.periodicTransmissionIdentifier):""}},toJSON(e){const n={};return e.periodicTransmissionIdentifier!==""&&(n.periodicTransmissionIdentifier=e.periodicTransmissionIdentifier),n},create(e){return Nn.fromPartial(e??{})},fromPartial(e){const n=oe();return n.periodicTransmissionIdentifier=e.periodicTransmissionIdentifier??"",n}};function fe(){return{isOnline:!1}}const N={encode(e,n=new t.BinaryWriter){return e.isOnline!==!1&&n.uint32(8).bool(e.isOnline),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=fe();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==8)break;a.isOnline=r.bool();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{isOnline:o(e.isOnline)?globalThis.Boolean(e.isOnline):!1}},toJSON(e){const n={};return e.isOnline!==!1&&(n.isOnline=e.isOnline),n},create(e){return N.fromPartial(e??{})},fromPartial(e){const n=fe();return n.isOnline=e.isOnline??!1,n}};function ue(){return{eventType:0,identifier:void 0,measurementSetup:void 0,onlineStatus:void 0}}const En={encode(e,n=new t.BinaryWriter){return e.eventType!==0&&n.uint32(8).int32(e.eventType),e.identifier!==void 0&&n.uint32(18).string(e.identifier),e.measurementSetup!==void 0&&t.MeasurementSetup.encode(e.measurementSetup,n.uint32(26).fork()).join(),e.onlineStatus!==void 0&&N.encode(e.onlineStatus,n.uint32(34).fork()).join(),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=ue();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==8)break;a.eventType=r.int32();continue}case 2:{if(i!==18)break;a.identifier=r.string();continue}case 3:{if(i!==26)break;a.measurementSetup=t.MeasurementSetup.decode(r,r.uint32());continue}case 4:{if(i!==34)break;a.onlineStatus=N.decode(r,r.uint32());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{eventType:o(e.eventType)?Qe(e.eventType):0,identifier:o(e.identifier)?globalThis.String(e.identifier):void 0,measurementSetup:o(e.measurementSetup)?t.MeasurementSetup.fromJSON(e.measurementSetup):void 0,onlineStatus:o(e.onlineStatus)?N.fromJSON(e.onlineStatus):void 0}},toJSON(e){const n={};return e.eventType!==0&&(n.eventType=He(e.eventType)),e.identifier!==void 0&&(n.identifier=e.identifier),e.measurementSetup!==void 0&&(n.measurementSetup=t.MeasurementSetup.toJSON(e.measurementSetup)),e.onlineStatus!==void 0&&(n.onlineStatus=N.toJSON(e.onlineStatus)),n},create(e){return En.fromPartial(e??{})},fromPartial(e){const n=ue();return n.eventType=e.eventType??0,n.identifier=e.identifier??void 0,n.measurementSetup=e.measurementSetup!==void 0&&e.measurementSetup!==null?t.MeasurementSetup.fromPartial(e.measurementSetup):void 0,n.onlineStatus=e.onlineStatus!==void 0&&e.onlineStatus!==null?N.fromPartial(e.onlineStatus):void 0,n}};function de(){return{preferences:void 0,messageLog:!1,signalLog:!1,readSupport:!1}}const Pn={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.messageLog!==!1&&n.uint32(16).bool(e.messageLog),e.signalLog!==!1&&n.uint32(24).bool(e.signalLog),e.readSupport!==!1&&n.uint32(32).bool(e.readSupport),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=de();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==16)break;a.messageLog=r.bool();continue}case 3:{if(i!==24)break;a.signalLog=r.bool();continue}case 4:{if(i!==32)break;a.readSupport=r.bool();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,messageLog:o(e.messageLog)?globalThis.Boolean(e.messageLog):!1,signalLog:o(e.signalLog)?globalThis.Boolean(e.signalLog):!1,readSupport:o(e.readSupport)?globalThis.Boolean(e.readSupport):!1}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.messageLog!==!1&&(n.messageLog=e.messageLog),e.signalLog!==!1&&(n.signalLog=e.signalLog),e.readSupport!==!1&&(n.readSupport=e.readSupport),n},create(e){return Pn.fromPartial(e??{})},fromPartial(e){const n=de();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.messageLog=e.messageLog??!1,n.signalLog=e.signalLog??!1,n.readSupport=e.readSupport??!1,n}};function ce(){return{formats:[],names:[],extensions:[],descriptions:[]}}const mn={encode(e,n=new t.BinaryWriter){n.uint32(10).fork();for(const r of e.formats)n.int32(r);n.join();for(const r of e.names)n.uint32(18).string(r);for(const r of e.extensions)n.uint32(26).string(r);for(const r of e.descriptions)n.uint32(34).string(r);return n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=ce();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i===8){a.formats.push(r.int32());continue}if(i===10){const c=r.uint32()+r.pos;for(;r.pos<c;)a.formats.push(r.int32());continue}break}case 2:{if(i!==18)break;a.names.push(r.string());continue}case 3:{if(i!==26)break;a.extensions.push(r.string());continue}case 4:{if(i!==34)break;a.descriptions.push(r.string());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{formats:globalThis.Array.isArray(e==null?void 0:e.formats)?e.formats.map(n=>t.logFileFormatFromJSON(n)):[],names:globalThis.Array.isArray(e==null?void 0:e.names)?e.names.map(n=>globalThis.String(n)):[],extensions:globalThis.Array.isArray(e==null?void 0:e.extensions)?e.extensions.map(n=>globalThis.String(n)):[],descriptions:globalThis.Array.isArray(e==null?void 0:e.descriptions)?e.descriptions.map(n=>globalThis.String(n)):[]}},toJSON(e){var r,s,a,i;const n={};return(r=e.formats)!=null&&r.length&&(n.formats=e.formats.map(c=>t.logFileFormatToJSON(c))),(s=e.names)!=null&&s.length&&(n.names=e.names),(a=e.extensions)!=null&&a.length&&(n.extensions=e.extensions),(i=e.descriptions)!=null&&i.length&&(n.descriptions=e.descriptions),n},create(e){return mn.fromPartial(e??{})},fromPartial(e){var r,s,a,i;const n=ce();return n.formats=((r=e.formats)==null?void 0:r.map(c=>c))||[],n.names=((s=e.names)==null?void 0:s.map(c=>c))||[],n.extensions=((a=e.extensions)==null?void 0:a.map(c=>c))||[],n.descriptions=((i=e.descriptions)==null?void 0:i.map(c=>c))||[],n}};function le(){return{preferences:void 0,logFile:""}}const On={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.logFile!==""&&n.uint32(18).string(e.logFile),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=le();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.logFile=r.string();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,logFile:o(e.logFile)?globalThis.String(e.logFile):""}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.logFile!==""&&(n.logFile=e.logFile),n},create(e){return On.fromPartial(e??{})},fromPartial(e){const n=le();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.logFile=e.logFile??"",n}};function pe(){return{channels:[]}}const Tn={encode(e,n=new t.BinaryWriter){n.uint32(10).fork();for(const r of e.channels)n.int32(r);return n.join(),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=pe();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i===8){a.channels.push(r.int32());continue}if(i===10){const c=r.uint32()+r.pos;for(;r.pos<c;)a.channels.push(r.int32());continue}break}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{channels:globalThis.Array.isArray(e==null?void 0:e.channels)?e.channels.map(n=>globalThis.Number(n)):[]}},toJSON(e){var r;const n={};return(r=e.channels)!=null&&r.length&&(n.channels=e.channels.map(s=>Math.round(s))),n},create(e){return Tn.fromPartial(e??{})},fromPartial(e){var r;const n=pe();return n.channels=((r=e.channels)==null?void 0:r.map(s=>s))||[],n}};function Se(){return{preferences:void 0,files:[]}}const Rn={encode(e,n=new t.BinaryWriter){e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join();for(const r of e.files)n.uint32(18).string(r);return n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=Se();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.files.push(r.string());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,files:globalThis.Array.isArray(e==null?void 0:e.files)?e.files.map(n=>globalThis.String(n)):[]}},toJSON(e){var r;const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),(r=e.files)!=null&&r.length&&(n.files=e.files),n},create(e){return Rn.fromPartial(e??{})},fromPartial(e){var r;const n=Se();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.files=((r=e.files)==null?void 0:r.map(s=>s))||[],n}};function Ne(){return{preferences:void 0,files:[]}}const An={encode(e,n=new t.BinaryWriter){e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join();for(const r of e.files)n.uint32(18).string(r);return n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=Ne();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.files.push(r.string());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,files:globalThis.Array.isArray(e==null?void 0:e.files)?e.files.map(n=>globalThis.String(n)):[]}},toJSON(e){var r;const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),(r=e.files)!=null&&r.length&&(n.files=e.files),n},create(e){return An.fromPartial(e??{})},fromPartial(e){var r;const n=Ne();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.files=((r=e.files)==null?void 0:r.map(s=>s))||[],n}};function Ee(){return{tables:[]}}const gn={encode(e,n=new t.BinaryWriter){for(const r of e.tables)t.ScheduleTable.encode(r,n.uint32(10).fork()).join();return n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=Ee();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.tables.push(t.ScheduleTable.decode(r,r.uint32()));continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{tables:globalThis.Array.isArray(e==null?void 0:e.tables)?e.tables.map(n=>t.ScheduleTable.fromJSON(n)):[]}},toJSON(e){var r;const n={};return(r=e.tables)!=null&&r.length&&(n.tables=e.tables.map(s=>t.ScheduleTable.toJSON(s))),n},create(e){return gn.fromPartial(e??{})},fromPartial(e){var r;const n=Ee();return n.tables=((r=e.tables)==null?void 0:r.map(s=>t.ScheduleTable.fromPartial(s)))||[],n}};function Pe(){return{preferences:void 0,messageQualifiedName:"",data:[]}}const hn={encode(e,n=new t.BinaryWriter){e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.messageQualifiedName!==""&&n.uint32(18).string(e.messageQualifiedName),n.uint32(26).fork();for(const r of e.data)n.uint32(r);return n.join(),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=Pe();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.messageQualifiedName=r.string();continue}case 3:{if(i===24){a.data.push(r.uint32());continue}if(i===26){const c=r.uint32()+r.pos;for(;r.pos<c;)a.data.push(r.uint32());continue}break}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,messageQualifiedName:o(e.messageQualifiedName)?globalThis.String(e.messageQualifiedName):"",data:globalThis.Array.isArray(e==null?void 0:e.data)?e.data.map(n=>globalThis.Number(n)):[]}},toJSON(e){var r;const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.messageQualifiedName!==""&&(n.messageQualifiedName=e.messageQualifiedName),(r=e.data)!=null&&r.length&&(n.data=e.data.map(s=>Math.round(s))),n},create(e){return hn.fromPartial(e??{})},fromPartial(e){var r;const n=Pe();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.messageQualifiedName=e.messageQualifiedName??"",n.data=((r=e.data)==null?void 0:r.map(s=>s))||[],n}};function me(){return{signalValues:[]}}const kn={encode(e,n=new t.BinaryWriter){for(const r of e.signalValues)t.SignalValue.encode(r,n.uint32(10).fork()).join();return n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=me();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.signalValues.push(t.SignalValue.decode(r,r.uint32()));continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{signalValues:globalThis.Array.isArray(e==null?void 0:e.signalValues)?e.signalValues.map(n=>t.SignalValue.fromJSON(n)):[]}},toJSON(e){var r;const n={};return(r=e.signalValues)!=null&&r.length&&(n.signalValues=e.signalValues.map(s=>t.SignalValue.toJSON(s))),n},create(e){return kn.fromPartial(e??{})},fromPartial(e){var r;const n=me();return n.signalValues=((r=e.signalValues)==null?void 0:r.map(s=>t.SignalValue.fromPartial(s)))||[],n}};function Oe(){return{preferences:void 0,messageQualifiedName:"",data:[],signalValues:[]}}const In={encode(e,n=new t.BinaryWriter){e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.messageQualifiedName!==""&&n.uint32(18).string(e.messageQualifiedName),n.uint32(26).fork();for(const r of e.data)n.uint32(r);n.join();for(const r of e.signalValues)t.SignalValue.encode(r,n.uint32(34).fork()).join();return n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=Oe();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.messageQualifiedName=r.string();continue}case 3:{if(i===24){a.data.push(r.uint32());continue}if(i===26){const c=r.uint32()+r.pos;for(;r.pos<c;)a.data.push(r.uint32());continue}break}case 4:{if(i!==34)break;a.signalValues.push(t.SignalValue.decode(r,r.uint32()));continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,messageQualifiedName:o(e.messageQualifiedName)?globalThis.String(e.messageQualifiedName):"",data:globalThis.Array.isArray(e==null?void 0:e.data)?e.data.map(n=>globalThis.Number(n)):[],signalValues:globalThis.Array.isArray(e==null?void 0:e.signalValues)?e.signalValues.map(n=>t.SignalValue.fromJSON(n)):[]}},toJSON(e){var r,s;const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.messageQualifiedName!==""&&(n.messageQualifiedName=e.messageQualifiedName),(r=e.data)!=null&&r.length&&(n.data=e.data.map(a=>Math.round(a))),(s=e.signalValues)!=null&&s.length&&(n.signalValues=e.signalValues.map(a=>t.SignalValue.toJSON(a))),n},create(e){return In.fromPartial(e??{})},fromPartial(e){var r,s;const n=Oe();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.messageQualifiedName=e.messageQualifiedName??"",n.data=((r=e.data)==null?void 0:r.map(a=>a))||[],n.signalValues=((s=e.signalValues)==null?void 0:s.map(a=>t.SignalValue.fromPartial(a)))||[],n}};function Te(){return{signalValues:[],data:[]}}const yn={encode(e,n=new t.BinaryWriter){for(const r of e.signalValues)t.SignalValue.encode(r,n.uint32(10).fork()).join();n.uint32(18).fork();for(const r of e.data)n.uint32(r);return n.join(),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=Te();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.signalValues.push(t.SignalValue.decode(r,r.uint32()));continue}case 2:{if(i===16){a.data.push(r.uint32());continue}if(i===18){const c=r.uint32()+r.pos;for(;r.pos<c;)a.data.push(r.uint32());continue}break}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{signalValues:globalThis.Array.isArray(e==null?void 0:e.signalValues)?e.signalValues.map(n=>t.SignalValue.fromJSON(n)):[],data:globalThis.Array.isArray(e==null?void 0:e.data)?e.data.map(n=>globalThis.Number(n)):[]}},toJSON(e){var r,s;const n={};return(r=e.signalValues)!=null&&r.length&&(n.signalValues=e.signalValues.map(a=>t.SignalValue.toJSON(a))),(s=e.data)!=null&&s.length&&(n.data=e.data.map(a=>Math.round(a))),n},create(e){return yn.fromPartial(e??{})},fromPartial(e){var r,s;const n=Te();return n.signalValues=((r=e.signalValues)==null?void 0:r.map(a=>t.SignalValue.fromPartial(a)))||[],n.data=((s=e.data)==null?void 0:s.map(a=>a))||[],n}};function o(e){return e!=null}var _n=(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))(_n||{});function A(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 g(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 Ln=(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))(Ln||{});function Jn(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 Bn(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 Cn=(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))(Cn||{});function vn(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 Gn(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 Re(){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 E={encode(e,n=new t.BinaryWriter){return e.rxMessageCounter!==0&&n.uint32(8).int32(e.rxMessageCounter),e.rxMessagesPerSecond!==0&&n.uint32(16).int32(e.rxMessagesPerSecond),e.txMessageCounter!==0&&n.uint32(24).int32(e.txMessageCounter),e.txMessagesPerSecond!==0&&n.uint32(32).int32(e.txMessagesPerSecond),e.errorFrameCounter!==0&&n.uint32(40).int32(e.errorFrameCounter),e.errorFramesPerSecond!==0&&n.uint32(48).int32(e.errorFramesPerSecond),e.overrunCounter!==0&&n.uint32(56).int32(e.overrunCounter),e.overrunsPerSecond!==0&&n.uint32(64).int32(e.overrunsPerSecond),e.rxErrorCounter!==0&&n.uint32(72).int32(e.rxErrorCounter),e.txErrorCounter!==0&&n.uint32(80).int32(e.txErrorCounter),e.overrunErrorCounter!==0&&n.uint32(88).int32(e.overrunErrorCounter),e.busOnStatus!==0&&n.uint32(96).int32(e.busOnStatus),e.errorStatus!==0&&n.uint32(104).int32(e.errorStatus),e.overrunStatus!==0&&n.uint32(112).int32(e.overrunStatus),e.busLoad!==0&&n.uint32(120).int32(e.busLoad),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=Re();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==8)break;a.rxMessageCounter=r.int32();continue}case 2:{if(i!==16)break;a.rxMessagesPerSecond=r.int32();continue}case 3:{if(i!==24)break;a.txMessageCounter=r.int32();continue}case 4:{if(i!==32)break;a.txMessagesPerSecond=r.int32();continue}case 5:{if(i!==40)break;a.errorFrameCounter=r.int32();continue}case 6:{if(i!==48)break;a.errorFramesPerSecond=r.int32();continue}case 7:{if(i!==56)break;a.overrunCounter=r.int32();continue}case 8:{if(i!==64)break;a.overrunsPerSecond=r.int32();continue}case 9:{if(i!==72)break;a.rxErrorCounter=r.int32();continue}case 10:{if(i!==80)break;a.txErrorCounter=r.int32();continue}case 11:{if(i!==88)break;a.overrunErrorCounter=r.int32();continue}case 12:{if(i!==96)break;a.busOnStatus=r.int32();continue}case 13:{if(i!==104)break;a.errorStatus=r.int32();continue}case 14:{if(i!==112)break;a.overrunStatus=r.int32();continue}case 15:{if(i!==120)break;a.busLoad=r.int32();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{rxMessageCounter:d(e.rxMessageCounter)?globalThis.Number(e.rxMessageCounter):0,rxMessagesPerSecond:d(e.rxMessagesPerSecond)?globalThis.Number(e.rxMessagesPerSecond):0,txMessageCounter:d(e.txMessageCounter)?globalThis.Number(e.txMessageCounter):0,txMessagesPerSecond:d(e.txMessagesPerSecond)?globalThis.Number(e.txMessagesPerSecond):0,errorFrameCounter:d(e.errorFrameCounter)?globalThis.Number(e.errorFrameCounter):0,errorFramesPerSecond:d(e.errorFramesPerSecond)?globalThis.Number(e.errorFramesPerSecond):0,overrunCounter:d(e.overrunCounter)?globalThis.Number(e.overrunCounter):0,overrunsPerSecond:d(e.overrunsPerSecond)?globalThis.Number(e.overrunsPerSecond):0,rxErrorCounter:d(e.rxErrorCounter)?globalThis.Number(e.rxErrorCounter):0,txErrorCounter:d(e.txErrorCounter)?globalThis.Number(e.txErrorCounter):0,overrunErrorCounter:d(e.overrunErrorCounter)?globalThis.Number(e.overrunErrorCounter):0,busOnStatus:d(e.busOnStatus)?A(e.busOnStatus):0,errorStatus:d(e.errorStatus)?A(e.errorStatus):0,overrunStatus:d(e.overrunStatus)?A(e.overrunStatus):0,busLoad:d(e.busLoad)?globalThis.Number(e.busLoad):0}},toJSON(e){const n={};return e.rxMessageCounter!==0&&(n.rxMessageCounter=Math.round(e.rxMessageCounter)),e.rxMessagesPerSecond!==0&&(n.rxMessagesPerSecond=Math.round(e.rxMessagesPerSecond)),e.txMessageCounter!==0&&(n.txMessageCounter=Math.round(e.txMessageCounter)),e.txMessagesPerSecond!==0&&(n.txMessagesPerSecond=Math.round(e.txMessagesPerSecond)),e.errorFrameCounter!==0&&(n.errorFrameCounter=Math.round(e.errorFrameCounter)),e.errorFramesPerSecond!==0&&(n.errorFramesPerSecond=Math.round(e.errorFramesPerSecond)),e.overrunCounter!==0&&(n.overrunCounter=Math.round(e.overrunCounter)),e.overrunsPerSecond!==0&&(n.overrunsPerSecond=Math.round(e.overrunsPerSecond)),e.rxErrorCounter!==0&&(n.rxErrorCounter=Math.round(e.rxErrorCounter)),e.txErrorCounter!==0&&(n.txErrorCounter=Math.round(e.txErrorCounter)),e.overrunErrorCounter!==0&&(n.overrunErrorCounter=Math.round(e.overrunErrorCounter)),e.busOnStatus!==0&&(n.busOnStatus=g(e.busOnStatus)),e.errorStatus!==0&&(n.errorStatus=g(e.errorStatus)),e.overrunStatus!==0&&(n.overrunStatus=g(e.overrunStatus)),e.busLoad!==0&&(n.busLoad=Math.round(e.busLoad)),n},create(e){return E.fromPartial(e??{})},fromPartial(e){const n=Re();return n.rxMessageCounter=e.rxMessageCounter??0,n.rxMessagesPerSecond=e.rxMessagesPerSecond??0,n.txMessageCounter=e.txMessageCounter??0,n.txMessagesPerSecond=e.txMessagesPerSecond??0,n.errorFrameCounter=e.errorFrameCounter??0,n.errorFramesPerSecond=e.errorFramesPerSecond??0,n.overrunCounter=e.overrunCounter??0,n.overrunsPerSecond=e.overrunsPerSecond??0,n.rxErrorCounter=e.rxErrorCounter??0,n.txErrorCounter=e.txErrorCounter??0,n.overrunErrorCounter=e.overrunErrorCounter??0,n.busOnStatus=e.busOnStatus??0,n.errorStatus=e.errorStatus??0,n.overrunStatus=e.overrunStatus??0,n.busLoad=e.busLoad??0,n}};function Ae(){return{errorCounter:0,lastExecutionTime:f.ZERO,minExecutionTime:f.ZERO,maxExecutionTime:f.ZERO}}const P={encode(e,n=new t.BinaryWriter){return e.errorCounter!==0&&n.uint32(8).int32(e.errorCounter),e.lastExecutionTime.equals(f.ZERO)||n.uint32(16).int64(e.lastExecutionTime.toString()),e.minExecutionTime.equals(f.ZERO)||n.uint32(24).int64(e.minExecutionTime.toString()),e.maxExecutionTime.equals(f.ZERO)||n.uint32(32).int64(e.maxExecutionTime.toString()),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=Ae();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==8)break;a.errorCounter=r.int32();continue}case 2:{if(i!==16)break;a.lastExecutionTime=f.fromString(r.int64().toString());continue}case 3:{if(i!==24)break;a.minExecutionTime=f.fromString(r.int64().toString());continue}case 4:{if(i!==32)break;a.maxExecutionTime=f.fromString(r.int64().toString());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{errorCounter:d(e.errorCounter)?globalThis.Number(e.errorCounter):0,lastExecutionTime:d(e.lastExecutionTime)?f.fromValue(e.lastExecutionTime):f.ZERO,minExecutionTime:d(e.minExecutionTime)?f.fromValue(e.minExecutionTime):f.ZERO,maxExecutionTime:d(e.maxExecutionTime)?f.fromValue(e.maxExecutionTime):f.ZERO}},toJSON(e){const n={};return e.errorCounter!==0&&(n.errorCounter=Math.round(e.errorCounter)),e.lastExecutionTime.equals(f.ZERO)||(n.lastExecutionTime=(e.lastExecutionTime||f.ZERO).toString()),e.minExecutionTime.equals(f.ZERO)||(n.minExecutionTime=(e.minExecutionTime||f.ZERO).toString()),e.maxExecutionTime.equals(f.ZERO)||(n.maxExecutionTime=(e.maxExecutionTime||f.ZERO).toString()),n},create(e){return P.fromPartial(e??{})},fromPartial(e){const n=Ae();return n.errorCounter=e.errorCounter??0,n.lastExecutionTime=e.lastExecutionTime!==void 0&&e.lastExecutionTime!==null?f.fromValue(e.lastExecutionTime):f.ZERO,n.minExecutionTime=e.minExecutionTime!==void 0&&e.minExecutionTime!==null?f.fromValue(e.minExecutionTime):f.ZERO,n.maxExecutionTime=e.maxExecutionTime!==void 0&&e.maxExecutionTime!==null?f.fromValue(e.maxExecutionTime):f.ZERO,n}};function ge(){return{state:0}}const m={encode(e,n=new t.BinaryWriter){return e.state!==0&&n.uint32(8).int32(e.state),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=ge();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==8)break;a.state=r.int32();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{state:d(e.state)?Jn(e.state):0}},toJSON(e){const n={};return e.state!==0&&(n.state=Bn(e.state)),n},create(e){return m.fromPartial(e??{})},fromPartial(e){const n=ge();return n.state=e.state??0,n}};function he(){return{state:0}}const O={encode(e,n=new t.BinaryWriter){return e.state!==0&&n.uint32(8).int32(e.state),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=he();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==8)break;a.state=r.int32();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{state:d(e.state)?vn(e.state):0}},toJSON(e){const n={};return e.state!==0&&(n.state=Gn(e.state)),n},create(e){return O.fromPartial(e??{})},fromPartial(e){const n=he();return n.state=e.state??0,n}};function ke(){return{errors:""}}const T={encode(e,n=new t.BinaryWriter){return e.errors!==""&&n.uint32(10).string(e.errors),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=ke();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.errors=r.string();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{errors:d(e.errors)?globalThis.String(e.errors):""}},toJSON(e){const n={};return e.errors!==""&&(n.errors=e.errors),n},create(e){return T.fromPartial(e??{})},fromPartial(e){const n=ke();return n.errors=e.errors??"",n}};function Ie(){return{nodeId:"",nodeName:"",streamId:"",busStatus:void 0,dataProcessingStatus:void 0,logReplayStatus:void 0,loggerStatus:void 0,errorStatus:void 0}}const R={encode(e,n=new t.BinaryWriter){return e.nodeId!==""&&n.uint32(10).string(e.nodeId),e.nodeName!==""&&n.uint32(18).string(e.nodeName),e.streamId!==""&&n.uint32(26).string(e.streamId),e.busStatus!==void 0&&E.encode(e.busStatus,n.uint32(34).fork()).join(),e.dataProcessingStatus!==void 0&&P.encode(e.dataProcessingStatus,n.uint32(42).fork()).join(),e.logReplayStatus!==void 0&&m.encode(e.logReplayStatus,n.uint32(50).fork()).join(),e.loggerStatus!==void 0&&O.encode(e.loggerStatus,n.uint32(58).fork()).join(),e.errorStatus!==void 0&&T.encode(e.errorStatus,n.uint32(66).fork()).join(),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=Ie();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.nodeId=r.string();continue}case 2:{if(i!==18)break;a.nodeName=r.string();continue}case 3:{if(i!==26)break;a.streamId=r.string();continue}case 4:{if(i!==34)break;a.busStatus=E.decode(r,r.uint32());continue}case 5:{if(i!==42)break;a.dataProcessingStatus=P.decode(r,r.uint32());continue}case 6:{if(i!==50)break;a.logReplayStatus=m.decode(r,r.uint32());continue}case 7:{if(i!==58)break;a.loggerStatus=O.decode(r,r.uint32());continue}case 8:{if(i!==66)break;a.errorStatus=T.decode(r,r.uint32());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{nodeId:d(e.nodeId)?globalThis.String(e.nodeId):"",nodeName:d(e.nodeName)?globalThis.String(e.nodeName):"",streamId:d(e.streamId)?globalThis.String(e.streamId):"",busStatus:d(e.busStatus)?E.fromJSON(e.busStatus):void 0,dataProcessingStatus:d(e.dataProcessingStatus)?P.fromJSON(e.dataProcessingStatus):void 0,logReplayStatus:d(e.logReplayStatus)?m.fromJSON(e.logReplayStatus):void 0,loggerStatus:d(e.loggerStatus)?O.fromJSON(e.loggerStatus):void 0,errorStatus:d(e.errorStatus)?T.fromJSON(e.errorStatus):void 0}},toJSON(e){const n={};return e.nodeId!==""&&(n.nodeId=e.nodeId),e.nodeName!==""&&(n.nodeName=e.nodeName),e.streamId!==""&&(n.streamId=e.streamId),e.busStatus!==void 0&&(n.busStatus=E.toJSON(e.busStatus)),e.dataProcessingStatus!==void 0&&(n.dataProcessingStatus=P.toJSON(e.dataProcessingStatus)),e.logReplayStatus!==void 0&&(n.logReplayStatus=m.toJSON(e.logReplayStatus)),e.loggerStatus!==void 0&&(n.loggerStatus=O.toJSON(e.loggerStatus)),e.errorStatus!==void 0&&(n.errorStatus=T.toJSON(e.errorStatus)),n},create(e){return R.fromPartial(e??{})},fromPartial(e){const n=Ie();return n.nodeId=e.nodeId??"",n.nodeName=e.nodeName??"",n.streamId=e.streamId??"",n.busStatus=e.busStatus!==void 0&&e.busStatus!==null?E.fromPartial(e.busStatus):void 0,n.dataProcessingStatus=e.dataProcessingStatus!==void 0&&e.dataProcessingStatus!==null?P.fromPartial(e.dataProcessingStatus):void 0,n.logReplayStatus=e.logReplayStatus!==void 0&&e.logReplayStatus!==null?m.fromPartial(e.logReplayStatus):void 0,n.loggerStatus=e.loggerStatus!==void 0&&e.loggerStatus!==null?O.fromPartial(e.loggerStatus):void 0,n.errorStatus=e.errorStatus!==void 0&&e.errorStatus!==null?T.fromPartial(e.errorStatus):void 0,n}};function ye(){return{items:[]}}const Vn={encode(e,n=new t.BinaryWriter){for(const r of e.items)R.encode(r,n.uint32(10).fork()).join();return n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=ye();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.items.push(R.decode(r,r.uint32()));continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{items:globalThis.Array.isArray(e==null?void 0:e.items)?e.items.map(n=>R.fromJSON(n)):[]}},toJSON(e){var r;const n={};return(r=e.items)!=null&&r.length&&(n.items=e.items.map(s=>R.toJSON(s))),n},create(e){return Vn.fromPartial(e??{})},fromPartial(e){var r;const n=ye();return n.items=((r=e.items)==null?void 0:r.map(s=>R.fromPartial(s)))||[],n}};function d(e){return e!=null}exports.AboutInformation=Ze;exports.ActivateLicenseRequest=We;exports.AddAllConnectedCanChannelsRequest=$e;exports.AddAllConnectedLinChannelsRequest=ze;exports.AddOrUpdateDataProcessorRequest=je;exports.AddOrUpdateSourceRequest=Xe;exports.AddOrUpdateTargetRequest=nn;exports.AppEvent=Be;exports.AppEventArgs=Me;exports.BusStatus=E;exports.ClearLinMessageRequest=ln;exports.ConnectNodesRequest=tn;exports.DataProcessingStatus=P;exports.DisconnectNodesRequest=an;exports.Empty=_e;exports.ErrorStatus=T;exports.FileType=Le;exports.GetChannelsFromLogFileRequest=On;exports.GetChannelsFromLogFileResponse=Tn;exports.GetDataProcessorResponse=en;exports.GetFrameDefinitionsFromDatabaseFilesRequest=Rn;exports.GetLicensesResponse=we;exports.GetLogFileFormatsRequest=Pn;exports.GetLogFileFormatsResponse=mn;exports.GetLogLevelResponse=Ve;exports.GetScheduleTablesFromDatabaseFilesRequest=An;exports.GetScheduleTablesFromDatabaseFilesResponse=gn;exports.GetServiceExtensionInfoRequest=Ue;exports.GetServiceExtensionInfoResponse=qe;exports.GetSignalDataFromMessageDataRequest=hn;exports.GetSignalDataFromMessageDataResponse=kn;exports.GetSourceResponse=be;exports.GetTargetResponse=rn;exports.IdentifierRequest=sn;exports.IdentifiersRequest=on;exports.InstallServiceExtensionRequest=De;exports.LicenseInformation=l;exports.Licenses=S;exports.LogLevel=Je;exports.LogMessage=p;exports.LogMessages=xe;exports.LogReplayState=Ln;exports.LogReplayStatus=m;exports.LoggerState=Cn;exports.LoggerStatus=O;exports.MeasurementEvent=Ke;exports.MeasurementEventArgs=En;exports.NodeStatus=R;exports.NodeStatuses=Vn;exports.OnlineStatus=N;exports.RequestLinMessageRequest=dn;exports.SendLinWakeupFrameRequest=un;exports.SendMessageRequest=fn;exports.SetLogLevelRequest=Ge;exports.SetMeasurementSetupRequest=Ye;exports.SetSignalDataToMessageDataRequest=In;exports.SetSignalDataToMessageDataResponse=yn;exports.StartPeriodicTransmissionRequest=pn;exports.StartPeriodicTransmissionResponse=Nn;exports.StatusLevel=_n;exports.UninstallServiceExtensionRequest=Fe;exports.UpdateLinMessageRequest=cn;exports.UpdatePeriodicTransmissionRequest=Sn;exports.appEventFromJSON=Ce;exports.appEventToJSON=ve;exports.fileTypeFromJSON=xn;exports.fileTypeToJSON=Mn;exports.logLevelFromJSON=h;exports.logLevelToJSON=k;exports.logReplayStateFromJSON=Jn;exports.logReplayStateToJSON=Bn;exports.loggerStateFromJSON=vn;exports.loggerStateToJSON=Gn;exports.measurementEventFromJSON=Qe;exports.measurementEventToJSON=He;exports.statusLevelFromJSON=A;exports.statusLevelToJSON=g;
|