@kvaser/canking-api 7.1.0-beta.231
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/EULA.pdf +0 -0
- package/README.md +87 -0
- package/REDISTRIBUTABLES.txt +5 -0
- package/dist/ElectronAPIFake.js +1 -0
- package/dist/ElectronAPIFake.mjs +266 -0
- package/dist/controls/CanChannelSelectControl.d.ts +35 -0
- package/dist/controls/CanIdentifierControl.d.ts +176 -0
- package/dist/controls/CanKingDataProvider.d.ts +116 -0
- package/dist/controls/CheckboxControl.d.ts +30 -0
- package/dist/controls/ContextMenu.d.ts +44 -0
- package/dist/controls/DropdownButton.d.ts +73 -0
- package/dist/controls/DropdownPanel.d.ts +41 -0
- package/dist/controls/FillBox.d.ts +8 -0
- package/dist/controls/FormControlRow.d.ts +30 -0
- package/dist/controls/InlineEditor.d.ts +26 -0
- package/dist/controls/LocalizedStrings.d.ts +21 -0
- package/dist/controls/NumberRangeControl.d.ts +80 -0
- package/dist/controls/OneLineButton.d.ts +9 -0
- package/dist/controls/RadioControl.d.ts +25 -0
- package/dist/controls/RadioGroupControl.d.ts +31 -0
- package/dist/controls/SectionControl.d.ts +40 -0
- package/dist/controls/SelectControl.d.ts +55 -0
- package/dist/controls/SizedBox.d.ts +11 -0
- package/dist/controls/TableControl.d.ts +61 -0
- package/dist/controls/TabsPanel.d.ts +5 -0
- package/dist/controls/TextControl.d.ts +56 -0
- package/dist/controls/ToolbarControl.d.ts +143 -0
- package/dist/controls/ValidateableTextControl.d.ts +82 -0
- package/dist/controls/index.d.ts +103 -0
- package/dist/controls.js +1 -0
- package/dist/controls.mjs +1714 -0
- package/dist/grpc/index.d.ts +7 -0
- package/dist/grpc.js +1 -0
- package/dist/grpc.mjs +917 -0
- package/dist/hooks/index.d.ts +112 -0
- package/dist/hooks.js +1 -0
- package/dist/hooks.mjs +28 -0
- package/dist/icons/index.d.ts +121 -0
- package/dist/icons.js +1 -0
- package/dist/icons.mjs +1237 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +596 -0
- package/dist/ipc/index.d.ts +160 -0
- package/dist/ipc.js +1 -0
- package/dist/ipc.mjs +123 -0
- package/dist/measurement_settings.js +1 -0
- package/dist/measurement_settings.mjs +4132 -0
- package/dist/models/DataBuffer.d.ts +100 -0
- package/dist/models/ElectronAPIFake.d.ts +13 -0
- package/dist/models/Point.d.ts +30 -0
- package/dist/models/index.d.ts +95 -0
- package/dist/models.js +1 -0
- package/dist/models.mjs +448 -0
- package/dist/protos/app_params.d.ts +208 -0
- package/dist/protos/app_service.d.ts +354 -0
- package/dist/protos/common_params.d.ts +33 -0
- package/dist/protos/device_params.d.ts +271 -0
- package/dist/protos/device_service.d.ts +154 -0
- package/dist/protos/frame_params.d.ts +189 -0
- package/dist/protos/google/protobuf/empty.d.ts +35 -0
- package/dist/protos/measurement_params.d.ts +308 -0
- package/dist/protos/measurement_service.d.ts +1333 -0
- package/dist/protos/measurement_settings.d.ts +453 -0
- package/dist/protos/signal_params.d.ts +72 -0
- package/dist/protos/status_params.d.ts +118 -0
- package/dist/status_params.js +1 -0
- package/dist/status_params.mjs +5045 -0
- package/doc/.nojekyll +1 -0
- package/doc/assets/highlight.css +120 -0
- package/doc/assets/icons.js +18 -0
- package/doc/assets/icons.svg +1 -0
- package/doc/assets/main.js +60 -0
- package/doc/assets/material-style.css +247 -0
- package/doc/assets/navigation.js +1 -0
- package/doc/assets/search.js +1 -0
- package/doc/assets/style.css +1493 -0
- package/doc/classes/controls.LocalizedStrings.html +177 -0
- package/doc/classes/models.DataBuffer.html +205 -0
- package/doc/classes/models.DataBufferView.html +193 -0
- package/doc/classes/models.Point.html +187 -0
- package/doc/enums/models.AccessMode.html +188 -0
- package/doc/enums/models.AppEvent.html +179 -0
- package/doc/enums/models.CanChannelCap.html +217 -0
- package/doc/enums/models.CanFrameFlag.html +200 -0
- package/doc/enums/models.CanMode.html +180 -0
- package/doc/enums/models.DecimalChar.html +178 -0
- package/doc/enums/models.DeviceEvent.html +179 -0
- package/doc/enums/models.FileConflictAction.html +180 -0
- package/doc/enums/models.LinFrameFlag.html +185 -0
- package/doc/enums/models.LogFileFormat.html +221 -0
- package/doc/enums/models.LogLevel.html +195 -0
- package/doc/enums/models.LogReplayState.html +179 -0
- package/doc/enums/models.MeasurementEvent.html +185 -0
- package/doc/enums/models.MessageLoggerState.html +180 -0
- package/doc/enums/models.Protocols.html +182 -0
- package/doc/enums/models.Separator.html +178 -0
- package/doc/enums/models.SignalEncoding.html +178 -0
- package/doc/enums/models.SignalType.html +185 -0
- package/doc/enums/models.SignalValueTriggerOperator.html +186 -0
- package/doc/enums/models.StatusLevel.html +180 -0
- package/doc/enums/models.TimeReference.html +178 -0
- package/doc/enums/models.TriggerOperator.html +179 -0
- package/doc/functions/controls.CanChannelSelectControl.html +177 -0
- package/doc/functions/controls.CanIdentifierControl.html +177 -0
- package/doc/functions/controls.CanIdentifierFrameControl.html +177 -0
- package/doc/functions/controls.CanIdentifierGeneratorControl.html +177 -0
- package/doc/functions/controls.CanIdentifierGeneratorSettingsControl.html +178 -0
- package/doc/functions/controls.CanKingDataProvider.html +182 -0
- package/doc/functions/controls.CheckboxControl.html +177 -0
- package/doc/functions/controls.ContextMenu.html +177 -0
- package/doc/functions/controls.DropdownButton.html +177 -0
- package/doc/functions/controls.DropdownButtonTextItems.html +177 -0
- package/doc/functions/controls.DropdownPanel.html +177 -0
- package/doc/functions/controls.FillBox.html +206 -0
- package/doc/functions/controls.FormControlRow.html +177 -0
- package/doc/functions/controls.InlineEditor.html +177 -0
- package/doc/functions/controls.NumberRangeControl.html +177 -0
- package/doc/functions/controls.OneLineButton.html +205 -0
- package/doc/functions/controls.RadioControl.html +177 -0
- package/doc/functions/controls.RadioGroupControl.html +177 -0
- package/doc/functions/controls.SectionControl.html +177 -0
- package/doc/functions/controls.SelectControl.html +177 -0
- package/doc/functions/controls.SizedBox.html +206 -0
- package/doc/functions/controls.TableControl.html +177 -0
- package/doc/functions/controls.TabsPanel.html +205 -0
- package/doc/functions/controls.TextControl.html +177 -0
- package/doc/functions/controls.ToolbarControl.html +177 -0
- package/doc/functions/controls.ValidateableTextControl.html +177 -0
- package/doc/functions/hooks.useDevices.html +176 -0
- package/doc/functions/hooks.useIsOnline.html +176 -0
- package/doc/functions/hooks.useLanguage.html +176 -0
- package/doc/functions/hooks.useLocalizedStrings.html +176 -0
- package/doc/functions/hooks.useLogMessages.html +176 -0
- package/doc/functions/hooks.useMaxDataBytes.html +175 -0
- package/doc/functions/hooks.useMeasurementSetup.html +176 -0
- package/doc/functions/hooks.useMeasurementStatus.html +176 -0
- package/doc/functions/hooks.useMessageLogFileFormats.html +175 -0
- package/doc/functions/hooks.useNewMeasurementData.html +178 -0
- package/doc/functions/hooks.useNodeStatus.html +176 -0
- package/doc/functions/hooks.useNumericRadix.html +176 -0
- package/doc/functions/hooks.useOnlineStatus.html +176 -0
- package/doc/functions/hooks.useOverallStatusLevel.html +176 -0
- package/doc/functions/hooks.useProjectData.html +178 -0
- package/doc/functions/hooks.useRecentProjectFiles.html +175 -0
- package/doc/functions/hooks.useRunningPeriodicTransmissions.html +176 -0
- package/doc/functions/hooks.useSessionData.html +178 -0
- package/doc/functions/hooks.useUserSettings.html +176 -0
- package/doc/functions/hooks.useWorkspacePaneWithId.html +175 -0
- package/doc/functions/icons.AddIcon.html +175 -0
- package/doc/functions/icons.ArrowDownIcon.html +175 -0
- package/doc/functions/icons.ArrowLeftIcon.html +175 -0
- package/doc/functions/icons.ArrowRightIcon.html +175 -0
- package/doc/functions/icons.ArrowUpIcon.html +175 -0
- package/doc/functions/icons.BusIsOffIcon.html +175 -0
- package/doc/functions/icons.BusIsOnIcon.html +175 -0
- package/doc/functions/icons.CloseIcon.html +175 -0
- package/doc/functions/icons.CopyIcon.html +175 -0
- package/doc/functions/icons.DarkModeIcon.html +175 -0
- package/doc/functions/icons.DeleteIcon.html +175 -0
- package/doc/functions/icons.DisableIcon.html +175 -0
- package/doc/functions/icons.EditIcon.html +175 -0
- package/doc/functions/icons.FilterIcon.html +175 -0
- package/doc/functions/icons.FixedPositionIcon.html +175 -0
- package/doc/functions/icons.LeaveFullScreenIcon.html +175 -0
- package/doc/functions/icons.LightModeIcon.html +175 -0
- package/doc/functions/icons.LineArrowDownIcon.html +175 -0
- package/doc/functions/icons.LineArrowUpIcon.html +175 -0
- package/doc/functions/icons.MaximizeWindowIcon.html +175 -0
- package/doc/functions/icons.MeasurementSetupIcon.html +175 -0
- package/doc/functions/icons.MoreHorizIcon.html +175 -0
- package/doc/functions/icons.MoreVertIcon.html +175 -0
- package/doc/functions/icons.NewIcon.html +175 -0
- package/doc/functions/icons.OpenExternallyIcon.html +175 -0
- package/doc/functions/icons.OpenIcon.html +175 -0
- package/doc/functions/icons.PauseIcon.html +175 -0
- package/doc/functions/icons.PlayIcon.html +175 -0
- package/doc/functions/icons.PlaySolidIcon.html +175 -0
- package/doc/functions/icons.SaveIcon.html +175 -0
- package/doc/functions/icons.SelectAllIcon.html +175 -0
- package/doc/functions/icons.ServiceIconActive.html +175 -0
- package/doc/functions/icons.ServiceIconInactive.html +175 -0
- package/doc/functions/icons.SettingsIcon.html +175 -0
- package/doc/functions/icons.StopIcon.html +175 -0
- package/doc/functions/icons.StopSolidIcon.html +175 -0
- package/doc/functions/icons.ToolsPanelHiddenIcon.html +175 -0
- package/doc/functions/icons.ToolsPanelVisibleIcon.html +175 -0
- package/doc/functions/icons.UnmaximizeWindowIcon.html +175 -0
- package/doc/functions/icons.WorkspacesIcon.html +175 -0
- package/doc/functions/ipc.addDataProcessor.html +178 -0
- package/doc/functions/ipc.addSource.html +176 -0
- package/doc/functions/ipc.addTarget.html +176 -0
- package/doc/functions/ipc.connectNodes.html +177 -0
- package/doc/functions/ipc.deleteDataProcessor.html +176 -0
- package/doc/functions/ipc.deleteSource.html +176 -0
- package/doc/functions/ipc.deleteTarget.html +176 -0
- package/doc/functions/ipc.disableNode.html +176 -0
- package/doc/functions/ipc.disconnectNodes.html +177 -0
- package/doc/functions/ipc.enableNode.html +176 -0
- package/doc/functions/ipc.getFrameDefinitions.html +178 -0
- package/doc/functions/ipc.getLogger.html +177 -0
- package/doc/functions/ipc.getMessageLogFileFormats.html +176 -0
- package/doc/functions/ipc.sendCanMessage.html +179 -0
- package/doc/functions/ipc.sendMessage.html +177 -0
- package/doc/functions/ipc.showMessageBox.html +177 -0
- package/doc/functions/ipc.showQuestionBox.html +183 -0
- package/doc/functions/ipc.startLogReplay.html +176 -0
- package/doc/functions/ipc.startMeasurement.html +175 -0
- package/doc/functions/ipc.startPeriodicTransmission.html +177 -0
- package/doc/functions/ipc.stopLogReplay.html +176 -0
- package/doc/functions/ipc.stopMeasurement.html +175 -0
- package/doc/functions/ipc.stopPeriodicTransmission.html +176 -0
- package/doc/functions/ipc.updateDataProcessor.html +176 -0
- package/doc/functions/ipc.updateSource.html +176 -0
- package/doc/functions/ipc.updateTarget.html +176 -0
- package/doc/functions/models.accessModeFromJSON.html +174 -0
- package/doc/functions/models.accessModeToJSON.html +174 -0
- package/doc/functions/models.appEventFromJSON.html +174 -0
- package/doc/functions/models.appEventToJSON.html +174 -0
- package/doc/functions/models.canChannelCapFromJSON.html +174 -0
- package/doc/functions/models.canChannelCapToJSON.html +174 -0
- package/doc/functions/models.canFrameFlagFromJSON.html +174 -0
- package/doc/functions/models.canFrameFlagToJSON.html +174 -0
- package/doc/functions/models.canModeFromJSON.html +174 -0
- package/doc/functions/models.canModeToJSON.html +174 -0
- package/doc/functions/models.createElectronApiFake.html +177 -0
- package/doc/functions/models.decimalCharFromJSON.html +174 -0
- package/doc/functions/models.decimalCharToJSON.html +174 -0
- package/doc/functions/models.decimalToFixed.html +174 -0
- package/doc/functions/models.decimalToHex.html +174 -0
- package/doc/functions/models.deviceEventFromJSON.html +174 -0
- package/doc/functions/models.deviceEventToJSON.html +174 -0
- package/doc/functions/models.fileConflictActionFromJSON.html +174 -0
- package/doc/functions/models.fileConflictActionToJSON.html +174 -0
- package/doc/functions/models.linFrameFlagFromJSON.html +174 -0
- package/doc/functions/models.linFrameFlagToJSON.html +174 -0
- package/doc/functions/models.logFileFormatFromJSON.html +174 -0
- package/doc/functions/models.logFileFormatToJSON.html +174 -0
- package/doc/functions/models.logLevelFromJSON.html +174 -0
- package/doc/functions/models.logLevelToJSON.html +174 -0
- package/doc/functions/models.logReplayStateFromJSON.html +174 -0
- package/doc/functions/models.logReplayStateToJSON.html +174 -0
- package/doc/functions/models.longToNumber.html +174 -0
- package/doc/functions/models.measurementEventFromJSON.html +174 -0
- package/doc/functions/models.measurementEventToJSON.html +174 -0
- package/doc/functions/models.messageLoggerStateFromJSON.html +174 -0
- package/doc/functions/models.messageLoggerStateToJSON.html +174 -0
- package/doc/functions/models.protocolsFromJSON.html +174 -0
- package/doc/functions/models.protocolsToJSON.html +174 -0
- package/doc/functions/models.separatorFromJSON.html +174 -0
- package/doc/functions/models.separatorToJSON.html +174 -0
- package/doc/functions/models.signalEncodingFromJSON.html +174 -0
- package/doc/functions/models.signalEncodingToJSON.html +174 -0
- package/doc/functions/models.signalTypeFromJSON.html +174 -0
- package/doc/functions/models.signalTypeToJSON.html +174 -0
- package/doc/functions/models.signalValueTriggerOperatorFromJSON.html +174 -0
- package/doc/functions/models.signalValueTriggerOperatorToJSON.html +174 -0
- package/doc/functions/models.statusLevelFromJSON.html +174 -0
- package/doc/functions/models.statusLevelToJSON.html +174 -0
- package/doc/functions/models.timeReferenceFromJSON.html +174 -0
- package/doc/functions/models.timeReferenceToJSON.html +174 -0
- package/doc/functions/models.triggerOperatorFromJSON.html +174 -0
- package/doc/functions/models.triggerOperatorToJSON.html +174 -0
- package/doc/hierarchy.html +174 -0
- package/doc/index.html +244 -0
- package/doc/interfaces/controls.ButtonGroupProps.html +183 -0
- package/doc/interfaces/controls.ButtonProps.html +195 -0
- package/doc/interfaces/controls.CanChannelSelectControlProps.html +194 -0
- package/doc/interfaces/controls.CanIdentifierControlProps.html +195 -0
- package/doc/interfaces/controls.CanIdentifierFrameControlProps.html +190 -0
- package/doc/interfaces/controls.CanIdentifierGeneratorControlProps.html +208 -0
- package/doc/interfaces/controls.CanIdentifierGeneratorSettingsControlProps.html +194 -0
- package/doc/interfaces/controls.CheckboxControlProps.html +190 -0
- package/doc/interfaces/controls.ContextMenuProps.html +182 -0
- package/doc/interfaces/controls.DropdownButtonChildrenProps.html +177 -0
- package/doc/interfaces/controls.DropdownButtonProps.html +193 -0
- package/doc/interfaces/controls.DropdownButtonTextItemsProps.html +183 -0
- package/doc/interfaces/controls.DropdownPanelProps.html +193 -0
- package/doc/interfaces/controls.FormControlRowProps.html +181 -0
- package/doc/interfaces/controls.ILocalizedStrings.html +176 -0
- package/doc/interfaces/controls.InlineEditorProps.html +186 -0
- package/doc/interfaces/controls.LabelProps.html +179 -0
- package/doc/interfaces/controls.NumberRangeControlProps.html +225 -0
- package/doc/interfaces/controls.RadioControlProps.html +187 -0
- package/doc/interfaces/controls.RadioGroupControlProps.html +182 -0
- package/doc/interfaces/controls.SectionControlProps.html +190 -0
- package/doc/interfaces/controls.SelectControlProps.html +205 -0
- package/doc/interfaces/controls.TableColumn.html +185 -0
- package/doc/interfaces/controls.TableControlProps.html +197 -0
- package/doc/interfaces/controls.TextControlProps.html +214 -0
- package/doc/interfaces/controls.ToggleButtonGroupProps.html +190 -0
- package/doc/interfaces/controls.ToggleButtonProps.html +187 -0
- package/doc/interfaces/controls.ToolbarControlProps.html +191 -0
- package/doc/interfaces/controls.ValidateableTextControlProps.html +233 -0
- package/doc/interfaces/controls.toolbarItem.html +185 -0
- package/doc/interfaces/ipc.ILogger.html +181 -0
- package/doc/interfaces/models.AboutInformation.html +181 -0
- package/doc/interfaces/models.ActivateLicenseRequest.html +181 -0
- package/doc/interfaces/models.AddAllConnectedCanChannelsRequest.html +177 -0
- package/doc/interfaces/models.AddAllConnectedLinChannelsRequest.html +177 -0
- package/doc/interfaces/models.AddOrUpdateDataProcessorRequest.html +185 -0
- package/doc/interfaces/models.AddOrUpdateSourceRequest.html +181 -0
- package/doc/interfaces/models.AddOrUpdateTargetRequest.html +181 -0
- package/doc/interfaces/models.ApiPreferences.html +183 -0
- package/doc/interfaces/models.AppEventArgs.html +179 -0
- package/doc/interfaces/models.BaseNodeProperties.html +181 -0
- package/doc/interfaces/models.BusStatus.html +190 -0
- package/doc/interfaces/models.CanBusParamLimits.html +180 -0
- package/doc/interfaces/models.CanBusParams.html +197 -0
- package/doc/interfaces/models.CanBusSpeed.html +187 -0
- package/doc/interfaces/models.CanBusSpeedInfo.html +193 -0
- package/doc/interfaces/models.CanChannelCapacity.html +180 -0
- package/doc/interfaces/models.CanChannelConfiguration.html +185 -0
- package/doc/interfaces/models.CanFDBusSpeedCombination.html +177 -0
- package/doc/interfaces/models.CanFDBusSpeedInfo.html +191 -0
- package/doc/interfaces/models.CanFrameFlags.html +177 -0
- package/doc/interfaces/models.CanMessageFilterSettings.html +178 -0
- package/doc/interfaces/models.Channel.html +180 -0
- package/doc/interfaces/models.ChannelSettings.html +193 -0
- package/doc/interfaces/models.ClearLinMessageRequest.html +180 -0
- package/doc/interfaces/models.ConnectNodesRequest.html +178 -0
- package/doc/interfaces/models.DataProcessingStatus.html +179 -0
- package/doc/interfaces/models.DataProcessorNodeProperties.html +181 -0
- package/doc/interfaces/models.DatabasesSettings.html +176 -0
- package/doc/interfaces/models.Device.html +182 -0
- package/doc/interfaces/models.DeviceEventArgs.html +177 -0
- package/doc/interfaces/models.Devices.html +175 -0
- package/doc/interfaces/models.DisconnectNodesRequest.html +178 -0
- package/doc/interfaces/models.Empty.html +182 -0
- package/doc/interfaces/models.ErrorStatus.html +177 -0
- package/doc/interfaces/models.Frame.html +203 -0
- package/doc/interfaces/models.FrameDefinition.html +185 -0
- package/doc/interfaces/models.FrameDefinitions.html +175 -0
- package/doc/interfaces/models.FramePropertyValue.html +177 -0
- package/doc/interfaces/models.FrameReceivedTrigger.html +179 -0
- package/doc/interfaces/models.Frame_PropertiesEntry.html +176 -0
- package/doc/interfaces/models.Frames.html +175 -0
- package/doc/interfaces/models.GetCanChannelBusSpeedsRequest.html +177 -0
- package/doc/interfaces/models.GetCanChannelBusSpeedsResponse.html +179 -0
- package/doc/interfaces/models.GetCanFdBusSpeedsRequest.html +179 -0
- package/doc/interfaces/models.GetCanFdBusSpeedsResponse.html +177 -0
- package/doc/interfaces/models.GetChannelsFromLogFileRequest.html +178 -0
- package/doc/interfaces/models.GetChannelsFromLogFileResponse.html +177 -0
- package/doc/interfaces/models.GetClassicCanBusSpeedsRequest.html +178 -0
- package/doc/interfaces/models.GetClassicCanBusSpeedsResponse.html +177 -0
- package/doc/interfaces/models.GetDataProcessorResponse.html +176 -0
- package/doc/interfaces/models.GetDevicesRequest.html +177 -0
- package/doc/interfaces/models.GetDevicesResponse.html +176 -0
- package/doc/interfaces/models.GetFrameDefinitionsFromDatabaseFilesRequest.html +178 -0
- package/doc/interfaces/models.GetLicensesResponse.html +177 -0
- package/doc/interfaces/models.GetLogFileFormatsRequest.html +180 -0
- package/doc/interfaces/models.GetLogFileFormatsResponse.html +183 -0
- package/doc/interfaces/models.GetLogLevelResponse.html +177 -0
- package/doc/interfaces/models.GetScheduleTablesFromDatabaseFilesRequest.html +178 -0
- package/doc/interfaces/models.GetScheduleTablesFromDatabaseFilesResponse.html +177 -0
- package/doc/interfaces/models.GetServiceExtensionInfoRequest.html +181 -0
- package/doc/interfaces/models.GetServiceExtensionInfoResponse.html +187 -0
- package/doc/interfaces/models.GetSignalDataFromMessageDataRequest.html +180 -0
- package/doc/interfaces/models.GetSignalDataFromMessageDataResponse.html +177 -0
- package/doc/interfaces/models.GetSourceResponse.html +176 -0
- package/doc/interfaces/models.GetTargetResponse.html +176 -0
- package/doc/interfaces/models.ILogFileFormat.html +179 -0
- package/doc/interfaces/models.IProject.html +179 -0
- package/doc/interfaces/models.IUserSettings.html +187 -0
- package/doc/interfaces/models.IWorkspaceComponentPaneData.html +177 -0
- package/doc/interfaces/models.IWorkspaceContainerPaneData.html +178 -0
- package/doc/interfaces/models.IWorkspaceData.html +178 -0
- package/doc/interfaces/models.IWorkspacePaneData.html +178 -0
- package/doc/interfaces/models.IdentifierRequest.html +178 -0
- package/doc/interfaces/models.IdentifiersRequest.html +178 -0
- package/doc/interfaces/models.InstallServiceExtensionRequest.html +181 -0
- package/doc/interfaces/models.InterpreterSettings.html +177 -0
- package/doc/interfaces/models.J1939InterpreterSettings.html +175 -0
- package/doc/interfaces/models.LicenseInformation.html +191 -0
- package/doc/interfaces/models.Licenses.html +177 -0
- package/doc/interfaces/models.LinChannelConfiguration.html +185 -0
- package/doc/interfaces/models.LinFrameFlags.html +177 -0
- package/doc/interfaces/models.LogMessage.html +185 -0
- package/doc/interfaces/models.LogMessages.html +177 -0
- package/doc/interfaces/models.LogReplaySettings.html +199 -0
- package/doc/interfaces/models.LogReplaySettings_ChannelIdentifiersEntry.html +176 -0
- package/doc/interfaces/models.LogReplayStatus.html +176 -0
- package/doc/interfaces/models.MeasurementEventArgs.html +179 -0
- package/doc/interfaces/models.MeasurementSetup.html +179 -0
- package/doc/interfaces/models.MessageLoggerSettings.html +213 -0
- package/doc/interfaces/models.MessageLoggerStatus.html +176 -0
- package/doc/interfaces/models.NodeStatus.html +191 -0
- package/doc/interfaces/models.NodeStatuses.html +176 -0
- package/doc/interfaces/models.OnlineStatus.html +176 -0
- package/doc/interfaces/models.PeriodicTransmissionSettings.html +209 -0
- package/doc/interfaces/models.RequestLinMessageRequest.html +180 -0
- package/doc/interfaces/models.ScheduleTable.html +181 -0
- package/doc/interfaces/models.ScheduleTableEntry.html +179 -0
- package/doc/interfaces/models.SendLinWakeupFrameRequest.html +182 -0
- package/doc/interfaces/models.SendMessageRequest.html +178 -0
- package/doc/interfaces/models.ServiceExtensionSettings.html +177 -0
- package/doc/interfaces/models.SetLogLevelRequest.html +179 -0
- package/doc/interfaces/models.SetMeasurementSetupRequest.html +177 -0
- package/doc/interfaces/models.SetSignalDataToMessageDataRequest.html +182 -0
- package/doc/interfaces/models.SetSignalDataToMessageDataResponse.html +180 -0
- package/doc/interfaces/models.SignalDefinition.html +188 -0
- package/doc/interfaces/models.SignalDefinition_EnumValuesEntry.html +176 -0
- package/doc/interfaces/models.SignalDefinitions.html +175 -0
- package/doc/interfaces/models.SignalValue.html +180 -0
- package/doc/interfaces/models.SignalValueTrigger.html +189 -0
- package/doc/interfaces/models.SourceNodeProperties.html +180 -0
- package/doc/interfaces/models.StartPeriodicTransmissionRequest.html +178 -0
- package/doc/interfaces/models.StartPeriodicTransmissionResponse.html +176 -0
- package/doc/interfaces/models.TargetNodeProperties.html +178 -0
- package/doc/interfaces/models.TriggerSettings.html +181 -0
- package/doc/interfaces/models.UninstallServiceExtensionRequest.html +179 -0
- package/doc/interfaces/models.UpdateLinMessageRequest.html +181 -0
- package/doc/interfaces/models.WriteFrame.html +183 -0
- package/doc/modules/controls.html +242 -0
- package/doc/modules/hooks.html +201 -0
- package/doc/modules/icons.html +216 -0
- package/doc/modules/ipc.html +202 -0
- package/doc/modules/models.html +478 -0
- package/doc/modules.html +179 -0
- package/doc/types/controls.ContextMenuOption.html +179 -0
- package/doc/types/controls.SelectOption.html +177 -0
- package/doc/types/controls.StringsMap.html +175 -0
- package/doc/types/controls.canIdentifierType.html +175 -0
- package/doc/types/models.IReadOnlyDataBuffer.html +174 -0
- package/doc/types/models.themes.html +174 -0
- package/doc/variables/models.AboutInformation-1.html +174 -0
- package/doc/variables/models.ActivateLicenseRequest-1.html +174 -0
- package/doc/variables/models.AddAllConnectedCanChannelsRequest-1.html +174 -0
- package/doc/variables/models.AddAllConnectedLinChannelsRequest-1.html +174 -0
- package/doc/variables/models.AddOrUpdateDataProcessorRequest-1.html +174 -0
- package/doc/variables/models.AddOrUpdateSourceRequest-1.html +174 -0
- package/doc/variables/models.AddOrUpdateTargetRequest-1.html +174 -0
- package/doc/variables/models.ApiPreferences-1.html +174 -0
- package/doc/variables/models.AppEventArgs-1.html +174 -0
- package/doc/variables/models.BaseNodeProperties-1.html +174 -0
- package/doc/variables/models.BusStatus-1.html +174 -0
- package/doc/variables/models.CanBusParamLimits-1.html +174 -0
- package/doc/variables/models.CanBusParams-1.html +174 -0
- package/doc/variables/models.CanBusSpeed-1.html +174 -0
- package/doc/variables/models.CanBusSpeedInfo-1.html +174 -0
- package/doc/variables/models.CanChannelCapacity-1.html +174 -0
- package/doc/variables/models.CanChannelConfiguration-1.html +174 -0
- package/doc/variables/models.CanFDBusSpeedCombination-1.html +174 -0
- package/doc/variables/models.CanFDBusSpeedInfo-1.html +174 -0
- package/doc/variables/models.CanFrameFlags-1.html +174 -0
- package/doc/variables/models.CanMessageFilterSettings-1.html +174 -0
- package/doc/variables/models.Channel-1.html +174 -0
- package/doc/variables/models.ChannelSettings-1.html +174 -0
- package/doc/variables/models.ClearLinMessageRequest-1.html +174 -0
- package/doc/variables/models.ConnectNodesRequest-1.html +174 -0
- package/doc/variables/models.DataProcessingStatus-1.html +174 -0
- package/doc/variables/models.DataProcessorNodeProperties-1.html +174 -0
- package/doc/variables/models.DatabasesSettings-1.html +174 -0
- package/doc/variables/models.Device-1.html +174 -0
- package/doc/variables/models.DeviceEventArgs-1.html +174 -0
- package/doc/variables/models.Devices-1.html +174 -0
- package/doc/variables/models.DisconnectNodesRequest-1.html +174 -0
- package/doc/variables/models.Empty-1.html +174 -0
- package/doc/variables/models.ErrorStatus-1.html +174 -0
- package/doc/variables/models.Frame-1.html +174 -0
- package/doc/variables/models.FrameDefinition-1.html +174 -0
- package/doc/variables/models.FrameDefinitions-1.html +174 -0
- package/doc/variables/models.FramePropertyValue-1.html +174 -0
- package/doc/variables/models.FrameReceivedTrigger-1.html +174 -0
- package/doc/variables/models.Frame_PropertiesEntry-1.html +174 -0
- package/doc/variables/models.Frames-1.html +174 -0
- package/doc/variables/models.GetCanChannelBusSpeedsRequest-1.html +174 -0
- package/doc/variables/models.GetCanChannelBusSpeedsResponse-1.html +174 -0
- package/doc/variables/models.GetCanFdBusSpeedsRequest-1.html +174 -0
- package/doc/variables/models.GetCanFdBusSpeedsResponse-1.html +174 -0
- package/doc/variables/models.GetChannelsFromLogFileRequest-1.html +174 -0
- package/doc/variables/models.GetChannelsFromLogFileResponse-1.html +174 -0
- package/doc/variables/models.GetClassicCanBusSpeedsRequest-1.html +174 -0
- package/doc/variables/models.GetClassicCanBusSpeedsResponse-1.html +174 -0
- package/doc/variables/models.GetDataProcessorResponse-1.html +174 -0
- package/doc/variables/models.GetDevicesRequest-1.html +174 -0
- package/doc/variables/models.GetDevicesResponse-1.html +174 -0
- package/doc/variables/models.GetFrameDefinitionsFromDatabaseFilesRequest-1.html +174 -0
- package/doc/variables/models.GetLicensesResponse-1.html +174 -0
- package/doc/variables/models.GetLogFileFormatsRequest-1.html +174 -0
- package/doc/variables/models.GetLogFileFormatsResponse-1.html +174 -0
- package/doc/variables/models.GetLogLevelResponse-1.html +174 -0
- package/doc/variables/models.GetScheduleTablesFromDatabaseFilesRequest-1.html +174 -0
- package/doc/variables/models.GetScheduleTablesFromDatabaseFilesResponse-1.html +174 -0
- package/doc/variables/models.GetServiceExtensionInfoRequest-1.html +174 -0
- package/doc/variables/models.GetServiceExtensionInfoResponse-1.html +174 -0
- package/doc/variables/models.GetSignalDataFromMessageDataRequest-1.html +174 -0
- package/doc/variables/models.GetSignalDataFromMessageDataResponse-1.html +174 -0
- package/doc/variables/models.GetSourceResponse-1.html +174 -0
- package/doc/variables/models.GetTargetResponse-1.html +174 -0
- package/doc/variables/models.IdentifierRequest-1.html +174 -0
- package/doc/variables/models.IdentifiersRequest-1.html +174 -0
- package/doc/variables/models.InstallServiceExtensionRequest-1.html +174 -0
- package/doc/variables/models.InterpreterSettings-1.html +174 -0
- package/doc/variables/models.J1939InterpreterSettings-1.html +174 -0
- package/doc/variables/models.LicenseInformation-1.html +174 -0
- package/doc/variables/models.Licenses-1.html +174 -0
- package/doc/variables/models.LinChannelConfiguration-1.html +174 -0
- package/doc/variables/models.LinFrameFlags-1.html +174 -0
- package/doc/variables/models.LogMessage-1.html +174 -0
- package/doc/variables/models.LogMessages-1.html +174 -0
- package/doc/variables/models.LogReplaySettings-1.html +174 -0
- package/doc/variables/models.LogReplaySettings_ChannelIdentifiersEntry-1.html +174 -0
- package/doc/variables/models.LogReplayStatus-1.html +174 -0
- package/doc/variables/models.MeasurementEventArgs-1.html +174 -0
- package/doc/variables/models.MeasurementSetup-1.html +174 -0
- package/doc/variables/models.MessageLoggerSettings-1.html +174 -0
- package/doc/variables/models.MessageLoggerStatus-1.html +174 -0
- package/doc/variables/models.NodeStatus-1.html +174 -0
- package/doc/variables/models.NodeStatuses-1.html +174 -0
- package/doc/variables/models.OnlineStatus-1.html +174 -0
- package/doc/variables/models.PeriodicTransmissionSettings-1.html +174 -0
- package/doc/variables/models.RequestLinMessageRequest-1.html +174 -0
- package/doc/variables/models.ScheduleTable-1.html +174 -0
- package/doc/variables/models.ScheduleTableEntry-1.html +174 -0
- package/doc/variables/models.SendLinWakeupFrameRequest-1.html +174 -0
- package/doc/variables/models.SendMessageRequest-1.html +174 -0
- package/doc/variables/models.ServiceExtensionSettings-1.html +174 -0
- package/doc/variables/models.SetLogLevelRequest-1.html +174 -0
- package/doc/variables/models.SetMeasurementSetupRequest-1.html +174 -0
- package/doc/variables/models.SetSignalDataToMessageDataRequest-1.html +174 -0
- package/doc/variables/models.SetSignalDataToMessageDataResponse-1.html +174 -0
- package/doc/variables/models.SignalDefinition-1.html +174 -0
- package/doc/variables/models.SignalDefinition_EnumValuesEntry-1.html +174 -0
- package/doc/variables/models.SignalDefinitions-1.html +174 -0
- package/doc/variables/models.SignalValue-1.html +174 -0
- package/doc/variables/models.SignalValueTrigger-1.html +174 -0
- package/doc/variables/models.SourceNodeProperties-1.html +174 -0
- package/doc/variables/models.StartPeriodicTransmissionRequest-1.html +174 -0
- package/doc/variables/models.StartPeriodicTransmissionResponse-1.html +174 -0
- package/doc/variables/models.TargetNodeProperties-1.html +174 -0
- package/doc/variables/models.TriggerSettings-1.html +174 -0
- package/doc/variables/models.UninstallServiceExtensionRequest-1.html +174 -0
- package/doc/variables/models.UpdateLinMessageRequest-1.html +174 -0
- package/doc/variables/models.WriteFrame-1.html +174 -0
- package/doc/variables/models.defaultUserSettings.html +175 -0
- package/package.json +129 -0
- package/scripts/createCanKingExtension.js +403 -0
- package/scripts/index.js +39 -0
- package/scripts/template/_.eslintrc.cjs +38 -0
- package/scripts/template/_.gitignore +24 -0
- package/scripts/template/_.npmrc +2 -0
- package/scripts/template/_.prettierrc +8 -0
- package/scripts/template/_.vscode/_launch.json +28 -0
- package/scripts/template/_index.html +15 -0
- package/scripts/template/_tsconfig.app.json +27 -0
- package/scripts/template/_tsconfig.json +11 -0
- package/scripts/template/_tsconfig.node.json +13 -0
- package/scripts/template/_vite.config.ts +7 -0
- package/scripts/template/src/App.tsx +12 -0
- package/scripts/template/src/WorkspaceView/index.tsx +47 -0
- package/scripts/template/src/main.css +9 -0
- package/scripts/template/src/main.tsx +19 -0
- package/scripts/template/src/vite-env.d.ts +1 -0
|
@@ -0,0 +1,5045 @@
|
|
|
1
|
+
import { al as u, am as s, ab as A, R as F, U, a8 as _, a9 as T, aa as C, W as R, Z as H, y as Er, z as vr, m as q, S as m } from "./measurement_settings.mjs";
|
|
2
|
+
import d from "long";
|
|
3
|
+
function Y() {
|
|
4
|
+
return {};
|
|
5
|
+
}
|
|
6
|
+
const Pr = {
|
|
7
|
+
encode(e, r = new u()) {
|
|
8
|
+
return r;
|
|
9
|
+
},
|
|
10
|
+
decode(e, r) {
|
|
11
|
+
const n = e instanceof s ? e : new s(e);
|
|
12
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
13
|
+
const t = Y();
|
|
14
|
+
for (; n.pos < a; ) {
|
|
15
|
+
const i = n.uint32();
|
|
16
|
+
if ((i & 7) === 4 || i === 0)
|
|
17
|
+
break;
|
|
18
|
+
n.skip(i & 7);
|
|
19
|
+
}
|
|
20
|
+
return t;
|
|
21
|
+
},
|
|
22
|
+
fromJSON(e) {
|
|
23
|
+
return {};
|
|
24
|
+
},
|
|
25
|
+
toJSON(e) {
|
|
26
|
+
return {};
|
|
27
|
+
},
|
|
28
|
+
create(e) {
|
|
29
|
+
return Pr.fromPartial(e ?? {});
|
|
30
|
+
},
|
|
31
|
+
fromPartial(e) {
|
|
32
|
+
return Y();
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
function X() {
|
|
36
|
+
return { version: "", language: "", useHexNumericBase: !1, username: "" };
|
|
37
|
+
}
|
|
38
|
+
const o = {
|
|
39
|
+
encode(e, r = new u()) {
|
|
40
|
+
return e.version !== "" && r.uint32(10).string(e.version), e.language !== "" && r.uint32(18).string(e.language), e.useHexNumericBase !== !1 && r.uint32(24).bool(e.useHexNumericBase), e.username !== "" && r.uint32(34).string(e.username), r;
|
|
41
|
+
},
|
|
42
|
+
decode(e, r) {
|
|
43
|
+
const n = e instanceof s ? e : new s(e);
|
|
44
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
45
|
+
const t = X();
|
|
46
|
+
for (; n.pos < a; ) {
|
|
47
|
+
const i = n.uint32();
|
|
48
|
+
switch (i >>> 3) {
|
|
49
|
+
case 1: {
|
|
50
|
+
if (i !== 10)
|
|
51
|
+
break;
|
|
52
|
+
t.version = n.string();
|
|
53
|
+
continue;
|
|
54
|
+
}
|
|
55
|
+
case 2: {
|
|
56
|
+
if (i !== 18)
|
|
57
|
+
break;
|
|
58
|
+
t.language = n.string();
|
|
59
|
+
continue;
|
|
60
|
+
}
|
|
61
|
+
case 3: {
|
|
62
|
+
if (i !== 24)
|
|
63
|
+
break;
|
|
64
|
+
t.useHexNumericBase = n.bool();
|
|
65
|
+
continue;
|
|
66
|
+
}
|
|
67
|
+
case 4: {
|
|
68
|
+
if (i !== 34)
|
|
69
|
+
break;
|
|
70
|
+
t.username = n.string();
|
|
71
|
+
continue;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
if ((i & 7) === 4 || i === 0)
|
|
75
|
+
break;
|
|
76
|
+
n.skip(i & 7);
|
|
77
|
+
}
|
|
78
|
+
return t;
|
|
79
|
+
},
|
|
80
|
+
fromJSON(e) {
|
|
81
|
+
return {
|
|
82
|
+
version: w(e.version) ? globalThis.String(e.version) : "",
|
|
83
|
+
language: w(e.language) ? globalThis.String(e.language) : "",
|
|
84
|
+
useHexNumericBase: w(e.useHexNumericBase) ? globalThis.Boolean(e.useHexNumericBase) : !1,
|
|
85
|
+
username: w(e.username) ? globalThis.String(e.username) : ""
|
|
86
|
+
};
|
|
87
|
+
},
|
|
88
|
+
toJSON(e) {
|
|
89
|
+
const r = {};
|
|
90
|
+
return e.version !== "" && (r.version = e.version), e.language !== "" && (r.language = e.language), e.useHexNumericBase !== !1 && (r.useHexNumericBase = e.useHexNumericBase), e.username !== "" && (r.username = e.username), r;
|
|
91
|
+
},
|
|
92
|
+
create(e) {
|
|
93
|
+
return o.fromPartial(e ?? {});
|
|
94
|
+
},
|
|
95
|
+
fromPartial(e) {
|
|
96
|
+
const r = X();
|
|
97
|
+
return r.version = e.version ?? "", r.language = e.language ?? "", r.useHexNumericBase = e.useHexNumericBase ?? !1, r.username = e.username ?? "", r;
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
function w(e) {
|
|
101
|
+
return e != null;
|
|
102
|
+
}
|
|
103
|
+
var hr = /* @__PURE__ */ ((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))(hr || {});
|
|
104
|
+
function K(e) {
|
|
105
|
+
switch (e) {
|
|
106
|
+
case 0:
|
|
107
|
+
case "LOG_LEVEL_TRACE":
|
|
108
|
+
return 0;
|
|
109
|
+
case 1:
|
|
110
|
+
case "LOG_LEVEL_DEBUG":
|
|
111
|
+
return 1;
|
|
112
|
+
case 2:
|
|
113
|
+
case "LOG_LEVEL_INFORMATION":
|
|
114
|
+
return 2;
|
|
115
|
+
case 3:
|
|
116
|
+
case "LOG_LEVEL_WARNING":
|
|
117
|
+
return 3;
|
|
118
|
+
case 4:
|
|
119
|
+
case "LOG_LEVEL_ERROR":
|
|
120
|
+
return 4;
|
|
121
|
+
case 5:
|
|
122
|
+
case "LOG_LEVEL_CRITICAL":
|
|
123
|
+
return 5;
|
|
124
|
+
case 6:
|
|
125
|
+
case "LOG_LEVEL_NONE":
|
|
126
|
+
return 6;
|
|
127
|
+
case -1:
|
|
128
|
+
case "UNRECOGNIZED":
|
|
129
|
+
default:
|
|
130
|
+
return -1;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
function Q(e) {
|
|
134
|
+
switch (e) {
|
|
135
|
+
case 0:
|
|
136
|
+
return "LOG_LEVEL_TRACE";
|
|
137
|
+
case 1:
|
|
138
|
+
return "LOG_LEVEL_DEBUG";
|
|
139
|
+
case 2:
|
|
140
|
+
return "LOG_LEVEL_INFORMATION";
|
|
141
|
+
case 3:
|
|
142
|
+
return "LOG_LEVEL_WARNING";
|
|
143
|
+
case 4:
|
|
144
|
+
return "LOG_LEVEL_ERROR";
|
|
145
|
+
case 5:
|
|
146
|
+
return "LOG_LEVEL_CRITICAL";
|
|
147
|
+
case 6:
|
|
148
|
+
return "LOG_LEVEL_NONE";
|
|
149
|
+
case -1:
|
|
150
|
+
default:
|
|
151
|
+
return "UNRECOGNIZED";
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
var Or = /* @__PURE__ */ ((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))(Or || {});
|
|
155
|
+
function Ar(e) {
|
|
156
|
+
switch (e) {
|
|
157
|
+
case 0:
|
|
158
|
+
case "APP_EVENT_UNSPECIFIED":
|
|
159
|
+
return 0;
|
|
160
|
+
case 1:
|
|
161
|
+
case "APP_EVENT_LICENSE_INFO_CHANGED":
|
|
162
|
+
return 1;
|
|
163
|
+
case -1:
|
|
164
|
+
case "UNRECOGNIZED":
|
|
165
|
+
default:
|
|
166
|
+
return -1;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
function _r(e) {
|
|
170
|
+
switch (e) {
|
|
171
|
+
case 0:
|
|
172
|
+
return "APP_EVENT_UNSPECIFIED";
|
|
173
|
+
case 1:
|
|
174
|
+
return "APP_EVENT_LICENSE_INFO_CHANGED";
|
|
175
|
+
case -1:
|
|
176
|
+
default:
|
|
177
|
+
return "UNRECOGNIZED";
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
function $() {
|
|
181
|
+
return { preferences: void 0, logLevel: 0 };
|
|
182
|
+
}
|
|
183
|
+
const Tr = {
|
|
184
|
+
encode(e, r = new u()) {
|
|
185
|
+
return e.preferences !== void 0 && o.encode(e.preferences, r.uint32(10).fork()).join(), e.logLevel !== 0 && r.uint32(16).int32(e.logLevel), r;
|
|
186
|
+
},
|
|
187
|
+
decode(e, r) {
|
|
188
|
+
const n = e instanceof s ? e : new s(e);
|
|
189
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
190
|
+
const t = $();
|
|
191
|
+
for (; n.pos < a; ) {
|
|
192
|
+
const i = n.uint32();
|
|
193
|
+
switch (i >>> 3) {
|
|
194
|
+
case 1: {
|
|
195
|
+
if (i !== 10)
|
|
196
|
+
break;
|
|
197
|
+
t.preferences = o.decode(n, n.uint32());
|
|
198
|
+
continue;
|
|
199
|
+
}
|
|
200
|
+
case 2: {
|
|
201
|
+
if (i !== 16)
|
|
202
|
+
break;
|
|
203
|
+
t.logLevel = n.int32();
|
|
204
|
+
continue;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
if ((i & 7) === 4 || i === 0)
|
|
208
|
+
break;
|
|
209
|
+
n.skip(i & 7);
|
|
210
|
+
}
|
|
211
|
+
return t;
|
|
212
|
+
},
|
|
213
|
+
fromJSON(e) {
|
|
214
|
+
return {
|
|
215
|
+
preferences: l(e.preferences) ? o.fromJSON(e.preferences) : void 0,
|
|
216
|
+
logLevel: l(e.logLevel) ? K(e.logLevel) : 0
|
|
217
|
+
};
|
|
218
|
+
},
|
|
219
|
+
toJSON(e) {
|
|
220
|
+
const r = {};
|
|
221
|
+
return e.preferences !== void 0 && (r.preferences = o.toJSON(e.preferences)), e.logLevel !== 0 && (r.logLevel = Q(e.logLevel)), r;
|
|
222
|
+
},
|
|
223
|
+
create(e) {
|
|
224
|
+
return Tr.fromPartial(e ?? {});
|
|
225
|
+
},
|
|
226
|
+
fromPartial(e) {
|
|
227
|
+
const r = $();
|
|
228
|
+
return r.preferences = e.preferences !== void 0 && e.preferences !== null ? o.fromPartial(e.preferences) : void 0, r.logLevel = e.logLevel ?? 0, r;
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
function z() {
|
|
232
|
+
return { logLevel: 0 };
|
|
233
|
+
}
|
|
234
|
+
const Cr = {
|
|
235
|
+
encode(e, r = new u()) {
|
|
236
|
+
return e.logLevel !== 0 && r.uint32(8).int32(e.logLevel), r;
|
|
237
|
+
},
|
|
238
|
+
decode(e, r) {
|
|
239
|
+
const n = e instanceof s ? e : new s(e);
|
|
240
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
241
|
+
const t = z();
|
|
242
|
+
for (; n.pos < a; ) {
|
|
243
|
+
const i = n.uint32();
|
|
244
|
+
switch (i >>> 3) {
|
|
245
|
+
case 1: {
|
|
246
|
+
if (i !== 8)
|
|
247
|
+
break;
|
|
248
|
+
t.logLevel = n.int32();
|
|
249
|
+
continue;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
if ((i & 7) === 4 || i === 0)
|
|
253
|
+
break;
|
|
254
|
+
n.skip(i & 7);
|
|
255
|
+
}
|
|
256
|
+
return t;
|
|
257
|
+
},
|
|
258
|
+
fromJSON(e) {
|
|
259
|
+
return { logLevel: l(e.logLevel) ? K(e.logLevel) : 0 };
|
|
260
|
+
},
|
|
261
|
+
toJSON(e) {
|
|
262
|
+
const r = {};
|
|
263
|
+
return e.logLevel !== 0 && (r.logLevel = Q(e.logLevel)), r;
|
|
264
|
+
},
|
|
265
|
+
create(e) {
|
|
266
|
+
return Cr.fromPartial(e ?? {});
|
|
267
|
+
},
|
|
268
|
+
fromPartial(e) {
|
|
269
|
+
const r = z();
|
|
270
|
+
return r.logLevel = e.logLevel ?? 0, r;
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
function j() {
|
|
274
|
+
return { time: d.ZERO, logLevel: 0, eventId: 0, categoryName: "", message: "" };
|
|
275
|
+
}
|
|
276
|
+
const k = {
|
|
277
|
+
encode(e, r = new u()) {
|
|
278
|
+
return e.time.equals(d.ZERO) || r.uint32(8).int64(e.time.toString()), e.logLevel !== 0 && r.uint32(16).int32(e.logLevel), e.eventId !== 0 && r.uint32(24).int32(e.eventId), e.categoryName !== "" && r.uint32(34).string(e.categoryName), e.message !== "" && r.uint32(42).string(e.message), r;
|
|
279
|
+
},
|
|
280
|
+
decode(e, r) {
|
|
281
|
+
const n = e instanceof s ? e : new s(e);
|
|
282
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
283
|
+
const t = j();
|
|
284
|
+
for (; n.pos < a; ) {
|
|
285
|
+
const i = n.uint32();
|
|
286
|
+
switch (i >>> 3) {
|
|
287
|
+
case 1: {
|
|
288
|
+
if (i !== 8)
|
|
289
|
+
break;
|
|
290
|
+
t.time = d.fromString(n.int64().toString());
|
|
291
|
+
continue;
|
|
292
|
+
}
|
|
293
|
+
case 2: {
|
|
294
|
+
if (i !== 16)
|
|
295
|
+
break;
|
|
296
|
+
t.logLevel = n.int32();
|
|
297
|
+
continue;
|
|
298
|
+
}
|
|
299
|
+
case 3: {
|
|
300
|
+
if (i !== 24)
|
|
301
|
+
break;
|
|
302
|
+
t.eventId = n.int32();
|
|
303
|
+
continue;
|
|
304
|
+
}
|
|
305
|
+
case 4: {
|
|
306
|
+
if (i !== 34)
|
|
307
|
+
break;
|
|
308
|
+
t.categoryName = n.string();
|
|
309
|
+
continue;
|
|
310
|
+
}
|
|
311
|
+
case 5: {
|
|
312
|
+
if (i !== 42)
|
|
313
|
+
break;
|
|
314
|
+
t.message = n.string();
|
|
315
|
+
continue;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
if ((i & 7) === 4 || i === 0)
|
|
319
|
+
break;
|
|
320
|
+
n.skip(i & 7);
|
|
321
|
+
}
|
|
322
|
+
return t;
|
|
323
|
+
},
|
|
324
|
+
fromJSON(e) {
|
|
325
|
+
return {
|
|
326
|
+
time: l(e.time) ? d.fromValue(e.time) : d.ZERO,
|
|
327
|
+
logLevel: l(e.logLevel) ? K(e.logLevel) : 0,
|
|
328
|
+
eventId: l(e.eventId) ? globalThis.Number(e.eventId) : 0,
|
|
329
|
+
categoryName: l(e.categoryName) ? globalThis.String(e.categoryName) : "",
|
|
330
|
+
message: l(e.message) ? globalThis.String(e.message) : ""
|
|
331
|
+
};
|
|
332
|
+
},
|
|
333
|
+
toJSON(e) {
|
|
334
|
+
const r = {};
|
|
335
|
+
return e.time.equals(d.ZERO) || (r.time = (e.time || d.ZERO).toString()), e.logLevel !== 0 && (r.logLevel = Q(e.logLevel)), e.eventId !== 0 && (r.eventId = Math.round(e.eventId)), e.categoryName !== "" && (r.categoryName = e.categoryName), e.message !== "" && (r.message = e.message), r;
|
|
336
|
+
},
|
|
337
|
+
create(e) {
|
|
338
|
+
return k.fromPartial(e ?? {});
|
|
339
|
+
},
|
|
340
|
+
fromPartial(e) {
|
|
341
|
+
const r = j();
|
|
342
|
+
return r.time = e.time !== void 0 && e.time !== null ? d.fromValue(e.time) : d.ZERO, r.logLevel = e.logLevel ?? 0, r.eventId = e.eventId ?? 0, r.categoryName = e.categoryName ?? "", r.message = e.message ?? "", r;
|
|
343
|
+
}
|
|
344
|
+
};
|
|
345
|
+
function ee() {
|
|
346
|
+
return { items: [] };
|
|
347
|
+
}
|
|
348
|
+
const Rr = {
|
|
349
|
+
encode(e, r = new u()) {
|
|
350
|
+
for (const n of e.items)
|
|
351
|
+
k.encode(n, r.uint32(10).fork()).join();
|
|
352
|
+
return r;
|
|
353
|
+
},
|
|
354
|
+
decode(e, r) {
|
|
355
|
+
const n = e instanceof s ? e : new s(e);
|
|
356
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
357
|
+
const t = ee();
|
|
358
|
+
for (; n.pos < a; ) {
|
|
359
|
+
const i = n.uint32();
|
|
360
|
+
switch (i >>> 3) {
|
|
361
|
+
case 1: {
|
|
362
|
+
if (i !== 10)
|
|
363
|
+
break;
|
|
364
|
+
t.items.push(k.decode(n, n.uint32()));
|
|
365
|
+
continue;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
if ((i & 7) === 4 || i === 0)
|
|
369
|
+
break;
|
|
370
|
+
n.skip(i & 7);
|
|
371
|
+
}
|
|
372
|
+
return t;
|
|
373
|
+
},
|
|
374
|
+
fromJSON(e) {
|
|
375
|
+
return {
|
|
376
|
+
items: globalThis.Array.isArray(e == null ? void 0 : e.items) ? e.items.map((r) => k.fromJSON(r)) : []
|
|
377
|
+
};
|
|
378
|
+
},
|
|
379
|
+
toJSON(e) {
|
|
380
|
+
var n;
|
|
381
|
+
const r = {};
|
|
382
|
+
return (n = e.items) != null && n.length && (r.items = e.items.map((a) => k.toJSON(a))), r;
|
|
383
|
+
},
|
|
384
|
+
create(e) {
|
|
385
|
+
return Rr.fromPartial(e ?? {});
|
|
386
|
+
},
|
|
387
|
+
fromPartial(e) {
|
|
388
|
+
var n;
|
|
389
|
+
const r = ee();
|
|
390
|
+
return r.items = ((n = e.items) == null ? void 0 : n.map((a) => k.fromPartial(a))) || [], r;
|
|
391
|
+
}
|
|
392
|
+
};
|
|
393
|
+
function re() {
|
|
394
|
+
return {
|
|
395
|
+
licenseKey: "",
|
|
396
|
+
productId: "",
|
|
397
|
+
productName: "",
|
|
398
|
+
productVersion: "",
|
|
399
|
+
instanceId: "",
|
|
400
|
+
instanceName: "",
|
|
401
|
+
expirationDate: d.ZERO,
|
|
402
|
+
isValid: !1
|
|
403
|
+
};
|
|
404
|
+
}
|
|
405
|
+
const v = {
|
|
406
|
+
encode(e, r = new u()) {
|
|
407
|
+
return e.licenseKey !== "" && r.uint32(10).string(e.licenseKey), e.productId !== "" && r.uint32(18).string(e.productId), e.productName !== "" && r.uint32(26).string(e.productName), e.productVersion !== "" && r.uint32(34).string(e.productVersion), e.instanceId !== "" && r.uint32(42).string(e.instanceId), e.instanceName !== "" && r.uint32(50).string(e.instanceName), e.expirationDate.equals(d.ZERO) || r.uint32(56).int64(e.expirationDate.toString()), e.isValid !== !1 && r.uint32(64).bool(e.isValid), r;
|
|
408
|
+
},
|
|
409
|
+
decode(e, r) {
|
|
410
|
+
const n = e instanceof s ? e : new s(e);
|
|
411
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
412
|
+
const t = re();
|
|
413
|
+
for (; n.pos < a; ) {
|
|
414
|
+
const i = n.uint32();
|
|
415
|
+
switch (i >>> 3) {
|
|
416
|
+
case 1: {
|
|
417
|
+
if (i !== 10)
|
|
418
|
+
break;
|
|
419
|
+
t.licenseKey = n.string();
|
|
420
|
+
continue;
|
|
421
|
+
}
|
|
422
|
+
case 2: {
|
|
423
|
+
if (i !== 18)
|
|
424
|
+
break;
|
|
425
|
+
t.productId = n.string();
|
|
426
|
+
continue;
|
|
427
|
+
}
|
|
428
|
+
case 3: {
|
|
429
|
+
if (i !== 26)
|
|
430
|
+
break;
|
|
431
|
+
t.productName = n.string();
|
|
432
|
+
continue;
|
|
433
|
+
}
|
|
434
|
+
case 4: {
|
|
435
|
+
if (i !== 34)
|
|
436
|
+
break;
|
|
437
|
+
t.productVersion = n.string();
|
|
438
|
+
continue;
|
|
439
|
+
}
|
|
440
|
+
case 5: {
|
|
441
|
+
if (i !== 42)
|
|
442
|
+
break;
|
|
443
|
+
t.instanceId = n.string();
|
|
444
|
+
continue;
|
|
445
|
+
}
|
|
446
|
+
case 6: {
|
|
447
|
+
if (i !== 50)
|
|
448
|
+
break;
|
|
449
|
+
t.instanceName = n.string();
|
|
450
|
+
continue;
|
|
451
|
+
}
|
|
452
|
+
case 7: {
|
|
453
|
+
if (i !== 56)
|
|
454
|
+
break;
|
|
455
|
+
t.expirationDate = d.fromString(n.int64().toString());
|
|
456
|
+
continue;
|
|
457
|
+
}
|
|
458
|
+
case 8: {
|
|
459
|
+
if (i !== 64)
|
|
460
|
+
break;
|
|
461
|
+
t.isValid = n.bool();
|
|
462
|
+
continue;
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
if ((i & 7) === 4 || i === 0)
|
|
466
|
+
break;
|
|
467
|
+
n.skip(i & 7);
|
|
468
|
+
}
|
|
469
|
+
return t;
|
|
470
|
+
},
|
|
471
|
+
fromJSON(e) {
|
|
472
|
+
return {
|
|
473
|
+
licenseKey: l(e.licenseKey) ? globalThis.String(e.licenseKey) : "",
|
|
474
|
+
productId: l(e.productId) ? globalThis.String(e.productId) : "",
|
|
475
|
+
productName: l(e.productName) ? globalThis.String(e.productName) : "",
|
|
476
|
+
productVersion: l(e.productVersion) ? globalThis.String(e.productVersion) : "",
|
|
477
|
+
instanceId: l(e.instanceId) ? globalThis.String(e.instanceId) : "",
|
|
478
|
+
instanceName: l(e.instanceName) ? globalThis.String(e.instanceName) : "",
|
|
479
|
+
expirationDate: l(e.expirationDate) ? d.fromValue(e.expirationDate) : d.ZERO,
|
|
480
|
+
isValid: l(e.isValid) ? globalThis.Boolean(e.isValid) : !1
|
|
481
|
+
};
|
|
482
|
+
},
|
|
483
|
+
toJSON(e) {
|
|
484
|
+
const r = {};
|
|
485
|
+
return e.licenseKey !== "" && (r.licenseKey = e.licenseKey), e.productId !== "" && (r.productId = e.productId), e.productName !== "" && (r.productName = e.productName), e.productVersion !== "" && (r.productVersion = e.productVersion), e.instanceId !== "" && (r.instanceId = e.instanceId), e.instanceName !== "" && (r.instanceName = e.instanceName), e.expirationDate.equals(d.ZERO) || (r.expirationDate = (e.expirationDate || d.ZERO).toString()), e.isValid !== !1 && (r.isValid = e.isValid), r;
|
|
486
|
+
},
|
|
487
|
+
create(e) {
|
|
488
|
+
return v.fromPartial(e ?? {});
|
|
489
|
+
},
|
|
490
|
+
fromPartial(e) {
|
|
491
|
+
const r = re();
|
|
492
|
+
return r.licenseKey = e.licenseKey ?? "", r.productId = e.productId ?? "", r.productName = e.productName ?? "", r.productVersion = e.productVersion ?? "", r.instanceId = e.instanceId ?? "", r.instanceName = e.instanceName ?? "", r.expirationDate = e.expirationDate !== void 0 && e.expirationDate !== null ? d.fromValue(e.expirationDate) : d.ZERO, r.isValid = e.isValid ?? !1, r;
|
|
493
|
+
}
|
|
494
|
+
};
|
|
495
|
+
function ne() {
|
|
496
|
+
return { items: [] };
|
|
497
|
+
}
|
|
498
|
+
const I = {
|
|
499
|
+
encode(e, r = new u()) {
|
|
500
|
+
for (const n of e.items)
|
|
501
|
+
v.encode(n, r.uint32(10).fork()).join();
|
|
502
|
+
return r;
|
|
503
|
+
},
|
|
504
|
+
decode(e, r) {
|
|
505
|
+
const n = e instanceof s ? e : new s(e);
|
|
506
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
507
|
+
const t = ne();
|
|
508
|
+
for (; n.pos < a; ) {
|
|
509
|
+
const i = n.uint32();
|
|
510
|
+
switch (i >>> 3) {
|
|
511
|
+
case 1: {
|
|
512
|
+
if (i !== 10)
|
|
513
|
+
break;
|
|
514
|
+
t.items.push(v.decode(n, n.uint32()));
|
|
515
|
+
continue;
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
if ((i & 7) === 4 || i === 0)
|
|
519
|
+
break;
|
|
520
|
+
n.skip(i & 7);
|
|
521
|
+
}
|
|
522
|
+
return t;
|
|
523
|
+
},
|
|
524
|
+
fromJSON(e) {
|
|
525
|
+
return {
|
|
526
|
+
items: globalThis.Array.isArray(e == null ? void 0 : e.items) ? e.items.map((r) => v.fromJSON(r)) : []
|
|
527
|
+
};
|
|
528
|
+
},
|
|
529
|
+
toJSON(e) {
|
|
530
|
+
var n;
|
|
531
|
+
const r = {};
|
|
532
|
+
return (n = e.items) != null && n.length && (r.items = e.items.map((a) => v.toJSON(a))), r;
|
|
533
|
+
},
|
|
534
|
+
create(e) {
|
|
535
|
+
return I.fromPartial(e ?? {});
|
|
536
|
+
},
|
|
537
|
+
fromPartial(e) {
|
|
538
|
+
var n;
|
|
539
|
+
const r = ne();
|
|
540
|
+
return r.items = ((n = e.items) == null ? void 0 : n.map((a) => v.fromPartial(a))) || [], r;
|
|
541
|
+
}
|
|
542
|
+
};
|
|
543
|
+
function ie() {
|
|
544
|
+
return { eventType: 0, licenses: void 0 };
|
|
545
|
+
}
|
|
546
|
+
const kr = {
|
|
547
|
+
encode(e, r = new u()) {
|
|
548
|
+
return e.eventType !== 0 && r.uint32(8).int32(e.eventType), e.licenses !== void 0 && I.encode(e.licenses, r.uint32(18).fork()).join(), r;
|
|
549
|
+
},
|
|
550
|
+
decode(e, r) {
|
|
551
|
+
const n = e instanceof s ? e : new s(e);
|
|
552
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
553
|
+
const t = ie();
|
|
554
|
+
for (; n.pos < a; ) {
|
|
555
|
+
const i = n.uint32();
|
|
556
|
+
switch (i >>> 3) {
|
|
557
|
+
case 1: {
|
|
558
|
+
if (i !== 8)
|
|
559
|
+
break;
|
|
560
|
+
t.eventType = n.int32();
|
|
561
|
+
continue;
|
|
562
|
+
}
|
|
563
|
+
case 2: {
|
|
564
|
+
if (i !== 18)
|
|
565
|
+
break;
|
|
566
|
+
t.licenses = I.decode(n, n.uint32());
|
|
567
|
+
continue;
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
if ((i & 7) === 4 || i === 0)
|
|
571
|
+
break;
|
|
572
|
+
n.skip(i & 7);
|
|
573
|
+
}
|
|
574
|
+
return t;
|
|
575
|
+
},
|
|
576
|
+
fromJSON(e) {
|
|
577
|
+
return {
|
|
578
|
+
eventType: l(e.eventType) ? Ar(e.eventType) : 0,
|
|
579
|
+
licenses: l(e.licenses) ? I.fromJSON(e.licenses) : void 0
|
|
580
|
+
};
|
|
581
|
+
},
|
|
582
|
+
toJSON(e) {
|
|
583
|
+
const r = {};
|
|
584
|
+
return e.eventType !== 0 && (r.eventType = _r(e.eventType)), e.licenses !== void 0 && (r.licenses = I.toJSON(e.licenses)), r;
|
|
585
|
+
},
|
|
586
|
+
create(e) {
|
|
587
|
+
return kr.fromPartial(e ?? {});
|
|
588
|
+
},
|
|
589
|
+
fromPartial(e) {
|
|
590
|
+
const r = ie();
|
|
591
|
+
return r.eventType = e.eventType ?? 0, r.licenses = e.licenses !== void 0 && e.licenses !== null ? I.fromPartial(e.licenses) : void 0, r;
|
|
592
|
+
}
|
|
593
|
+
};
|
|
594
|
+
function te() {
|
|
595
|
+
return { preferences: void 0, filePath: "", replaceExisting: void 0 };
|
|
596
|
+
}
|
|
597
|
+
const Ir = {
|
|
598
|
+
encode(e, r = new u()) {
|
|
599
|
+
return e.preferences !== void 0 && o.encode(e.preferences, r.uint32(10).fork()).join(), e.filePath !== "" && r.uint32(18).string(e.filePath), e.replaceExisting !== void 0 && r.uint32(24).bool(e.replaceExisting), r;
|
|
600
|
+
},
|
|
601
|
+
decode(e, r) {
|
|
602
|
+
const n = e instanceof s ? e : new s(e);
|
|
603
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
604
|
+
const t = te();
|
|
605
|
+
for (; n.pos < a; ) {
|
|
606
|
+
const i = n.uint32();
|
|
607
|
+
switch (i >>> 3) {
|
|
608
|
+
case 1: {
|
|
609
|
+
if (i !== 10)
|
|
610
|
+
break;
|
|
611
|
+
t.preferences = o.decode(n, n.uint32());
|
|
612
|
+
continue;
|
|
613
|
+
}
|
|
614
|
+
case 2: {
|
|
615
|
+
if (i !== 18)
|
|
616
|
+
break;
|
|
617
|
+
t.filePath = n.string();
|
|
618
|
+
continue;
|
|
619
|
+
}
|
|
620
|
+
case 3: {
|
|
621
|
+
if (i !== 24)
|
|
622
|
+
break;
|
|
623
|
+
t.replaceExisting = n.bool();
|
|
624
|
+
continue;
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
if ((i & 7) === 4 || i === 0)
|
|
628
|
+
break;
|
|
629
|
+
n.skip(i & 7);
|
|
630
|
+
}
|
|
631
|
+
return t;
|
|
632
|
+
},
|
|
633
|
+
fromJSON(e) {
|
|
634
|
+
return {
|
|
635
|
+
preferences: l(e.preferences) ? o.fromJSON(e.preferences) : void 0,
|
|
636
|
+
filePath: l(e.filePath) ? globalThis.String(e.filePath) : "",
|
|
637
|
+
replaceExisting: l(e.replaceExisting) ? globalThis.Boolean(e.replaceExisting) : void 0
|
|
638
|
+
};
|
|
639
|
+
},
|
|
640
|
+
toJSON(e) {
|
|
641
|
+
const r = {};
|
|
642
|
+
return e.preferences !== void 0 && (r.preferences = o.toJSON(e.preferences)), e.filePath !== "" && (r.filePath = e.filePath), e.replaceExisting !== void 0 && (r.replaceExisting = e.replaceExisting), r;
|
|
643
|
+
},
|
|
644
|
+
create(e) {
|
|
645
|
+
return Ir.fromPartial(e ?? {});
|
|
646
|
+
},
|
|
647
|
+
fromPartial(e) {
|
|
648
|
+
const r = te();
|
|
649
|
+
return r.preferences = e.preferences !== void 0 && e.preferences !== null ? o.fromPartial(e.preferences) : void 0, r.filePath = e.filePath ?? "", r.replaceExisting = e.replaceExisting ?? void 0, r;
|
|
650
|
+
}
|
|
651
|
+
};
|
|
652
|
+
function ae() {
|
|
653
|
+
return { preferences: void 0, name: "" };
|
|
654
|
+
}
|
|
655
|
+
const Lr = {
|
|
656
|
+
encode(e, r = new u()) {
|
|
657
|
+
return e.preferences !== void 0 && o.encode(e.preferences, r.uint32(10).fork()).join(), e.name !== "" && r.uint32(18).string(e.name), r;
|
|
658
|
+
},
|
|
659
|
+
decode(e, r) {
|
|
660
|
+
const n = e instanceof s ? e : new s(e);
|
|
661
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
662
|
+
const t = ae();
|
|
663
|
+
for (; n.pos < a; ) {
|
|
664
|
+
const i = n.uint32();
|
|
665
|
+
switch (i >>> 3) {
|
|
666
|
+
case 1: {
|
|
667
|
+
if (i !== 10)
|
|
668
|
+
break;
|
|
669
|
+
t.preferences = o.decode(n, n.uint32());
|
|
670
|
+
continue;
|
|
671
|
+
}
|
|
672
|
+
case 2: {
|
|
673
|
+
if (i !== 18)
|
|
674
|
+
break;
|
|
675
|
+
t.name = n.string();
|
|
676
|
+
continue;
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
if ((i & 7) === 4 || i === 0)
|
|
680
|
+
break;
|
|
681
|
+
n.skip(i & 7);
|
|
682
|
+
}
|
|
683
|
+
return t;
|
|
684
|
+
},
|
|
685
|
+
fromJSON(e) {
|
|
686
|
+
return {
|
|
687
|
+
preferences: l(e.preferences) ? o.fromJSON(e.preferences) : void 0,
|
|
688
|
+
name: l(e.name) ? globalThis.String(e.name) : ""
|
|
689
|
+
};
|
|
690
|
+
},
|
|
691
|
+
toJSON(e) {
|
|
692
|
+
const r = {};
|
|
693
|
+
return e.preferences !== void 0 && (r.preferences = o.toJSON(e.preferences)), e.name !== "" && (r.name = e.name), r;
|
|
694
|
+
},
|
|
695
|
+
create(e) {
|
|
696
|
+
return Lr.fromPartial(e ?? {});
|
|
697
|
+
},
|
|
698
|
+
fromPartial(e) {
|
|
699
|
+
const r = ae();
|
|
700
|
+
return r.preferences = e.preferences !== void 0 && e.preferences !== null ? o.fromPartial(e.preferences) : void 0, r.name = e.name ?? "", r;
|
|
701
|
+
}
|
|
702
|
+
};
|
|
703
|
+
function oe() {
|
|
704
|
+
return { preferences: void 0, filePathOrName: "" };
|
|
705
|
+
}
|
|
706
|
+
const gr = {
|
|
707
|
+
encode(e, r = new u()) {
|
|
708
|
+
return e.preferences !== void 0 && o.encode(e.preferences, r.uint32(10).fork()).join(), e.filePathOrName !== "" && r.uint32(18).string(e.filePathOrName), r;
|
|
709
|
+
},
|
|
710
|
+
decode(e, r) {
|
|
711
|
+
const n = e instanceof s ? e : new s(e);
|
|
712
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
713
|
+
const t = oe();
|
|
714
|
+
for (; n.pos < a; ) {
|
|
715
|
+
const i = n.uint32();
|
|
716
|
+
switch (i >>> 3) {
|
|
717
|
+
case 1: {
|
|
718
|
+
if (i !== 10)
|
|
719
|
+
break;
|
|
720
|
+
t.preferences = o.decode(n, n.uint32());
|
|
721
|
+
continue;
|
|
722
|
+
}
|
|
723
|
+
case 2: {
|
|
724
|
+
if (i !== 18)
|
|
725
|
+
break;
|
|
726
|
+
t.filePathOrName = n.string();
|
|
727
|
+
continue;
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
if ((i & 7) === 4 || i === 0)
|
|
731
|
+
break;
|
|
732
|
+
n.skip(i & 7);
|
|
733
|
+
}
|
|
734
|
+
return t;
|
|
735
|
+
},
|
|
736
|
+
fromJSON(e) {
|
|
737
|
+
return {
|
|
738
|
+
preferences: l(e.preferences) ? o.fromJSON(e.preferences) : void 0,
|
|
739
|
+
filePathOrName: l(e.filePathOrName) ? globalThis.String(e.filePathOrName) : ""
|
|
740
|
+
};
|
|
741
|
+
},
|
|
742
|
+
toJSON(e) {
|
|
743
|
+
const r = {};
|
|
744
|
+
return e.preferences !== void 0 && (r.preferences = o.toJSON(e.preferences)), e.filePathOrName !== "" && (r.filePathOrName = e.filePathOrName), r;
|
|
745
|
+
},
|
|
746
|
+
create(e) {
|
|
747
|
+
return gr.fromPartial(e ?? {});
|
|
748
|
+
},
|
|
749
|
+
fromPartial(e) {
|
|
750
|
+
const r = oe();
|
|
751
|
+
return r.preferences = e.preferences !== void 0 && e.preferences !== null ? o.fromPartial(e.preferences) : void 0, r.filePathOrName = e.filePathOrName ?? "", r;
|
|
752
|
+
}
|
|
753
|
+
};
|
|
754
|
+
function se() {
|
|
755
|
+
return { name: "", displayName: "", description: "", version: "", author: "", defaultConfig: "" };
|
|
756
|
+
}
|
|
757
|
+
const Jr = {
|
|
758
|
+
encode(e, r = new u()) {
|
|
759
|
+
return e.name !== "" && r.uint32(10).string(e.name), e.displayName !== "" && r.uint32(18).string(e.displayName), e.description !== "" && r.uint32(26).string(e.description), e.version !== "" && r.uint32(34).string(e.version), e.author !== "" && r.uint32(42).string(e.author), e.defaultConfig !== "" && r.uint32(50).string(e.defaultConfig), r;
|
|
760
|
+
},
|
|
761
|
+
decode(e, r) {
|
|
762
|
+
const n = e instanceof s ? e : new s(e);
|
|
763
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
764
|
+
const t = se();
|
|
765
|
+
for (; n.pos < a; ) {
|
|
766
|
+
const i = n.uint32();
|
|
767
|
+
switch (i >>> 3) {
|
|
768
|
+
case 1: {
|
|
769
|
+
if (i !== 10)
|
|
770
|
+
break;
|
|
771
|
+
t.name = n.string();
|
|
772
|
+
continue;
|
|
773
|
+
}
|
|
774
|
+
case 2: {
|
|
775
|
+
if (i !== 18)
|
|
776
|
+
break;
|
|
777
|
+
t.displayName = n.string();
|
|
778
|
+
continue;
|
|
779
|
+
}
|
|
780
|
+
case 3: {
|
|
781
|
+
if (i !== 26)
|
|
782
|
+
break;
|
|
783
|
+
t.description = n.string();
|
|
784
|
+
continue;
|
|
785
|
+
}
|
|
786
|
+
case 4: {
|
|
787
|
+
if (i !== 34)
|
|
788
|
+
break;
|
|
789
|
+
t.version = n.string();
|
|
790
|
+
continue;
|
|
791
|
+
}
|
|
792
|
+
case 5: {
|
|
793
|
+
if (i !== 42)
|
|
794
|
+
break;
|
|
795
|
+
t.author = n.string();
|
|
796
|
+
continue;
|
|
797
|
+
}
|
|
798
|
+
case 6: {
|
|
799
|
+
if (i !== 50)
|
|
800
|
+
break;
|
|
801
|
+
t.defaultConfig = n.string();
|
|
802
|
+
continue;
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
if ((i & 7) === 4 || i === 0)
|
|
806
|
+
break;
|
|
807
|
+
n.skip(i & 7);
|
|
808
|
+
}
|
|
809
|
+
return t;
|
|
810
|
+
},
|
|
811
|
+
fromJSON(e) {
|
|
812
|
+
return {
|
|
813
|
+
name: l(e.name) ? globalThis.String(e.name) : "",
|
|
814
|
+
displayName: l(e.displayName) ? globalThis.String(e.displayName) : "",
|
|
815
|
+
description: l(e.description) ? globalThis.String(e.description) : "",
|
|
816
|
+
version: l(e.version) ? globalThis.String(e.version) : "",
|
|
817
|
+
author: l(e.author) ? globalThis.String(e.author) : "",
|
|
818
|
+
defaultConfig: l(e.defaultConfig) ? globalThis.String(e.defaultConfig) : ""
|
|
819
|
+
};
|
|
820
|
+
},
|
|
821
|
+
toJSON(e) {
|
|
822
|
+
const r = {};
|
|
823
|
+
return e.name !== "" && (r.name = e.name), e.displayName !== "" && (r.displayName = e.displayName), e.description !== "" && (r.description = e.description), e.version !== "" && (r.version = e.version), e.author !== "" && (r.author = e.author), e.defaultConfig !== "" && (r.defaultConfig = e.defaultConfig), r;
|
|
824
|
+
},
|
|
825
|
+
create(e) {
|
|
826
|
+
return Jr.fromPartial(e ?? {});
|
|
827
|
+
},
|
|
828
|
+
fromPartial(e) {
|
|
829
|
+
const r = se();
|
|
830
|
+
return r.name = e.name ?? "", r.displayName = e.displayName ?? "", r.description = e.description ?? "", r.version = e.version ?? "", r.author = e.author ?? "", r.defaultConfig = e.defaultConfig ?? "", r;
|
|
831
|
+
}
|
|
832
|
+
};
|
|
833
|
+
function ue() {
|
|
834
|
+
return { licenses: [] };
|
|
835
|
+
}
|
|
836
|
+
const xr = {
|
|
837
|
+
encode(e, r = new u()) {
|
|
838
|
+
for (const n of e.licenses)
|
|
839
|
+
v.encode(n, r.uint32(10).fork()).join();
|
|
840
|
+
return r;
|
|
841
|
+
},
|
|
842
|
+
decode(e, r) {
|
|
843
|
+
const n = e instanceof s ? e : new s(e);
|
|
844
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
845
|
+
const t = ue();
|
|
846
|
+
for (; n.pos < a; ) {
|
|
847
|
+
const i = n.uint32();
|
|
848
|
+
switch (i >>> 3) {
|
|
849
|
+
case 1: {
|
|
850
|
+
if (i !== 10)
|
|
851
|
+
break;
|
|
852
|
+
t.licenses.push(v.decode(n, n.uint32()));
|
|
853
|
+
continue;
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
if ((i & 7) === 4 || i === 0)
|
|
857
|
+
break;
|
|
858
|
+
n.skip(i & 7);
|
|
859
|
+
}
|
|
860
|
+
return t;
|
|
861
|
+
},
|
|
862
|
+
fromJSON(e) {
|
|
863
|
+
return {
|
|
864
|
+
licenses: globalThis.Array.isArray(e == null ? void 0 : e.licenses) ? e.licenses.map((r) => v.fromJSON(r)) : []
|
|
865
|
+
};
|
|
866
|
+
},
|
|
867
|
+
toJSON(e) {
|
|
868
|
+
var n;
|
|
869
|
+
const r = {};
|
|
870
|
+
return (n = e.licenses) != null && n.length && (r.licenses = e.licenses.map((a) => v.toJSON(a))), r;
|
|
871
|
+
},
|
|
872
|
+
create(e) {
|
|
873
|
+
return xr.fromPartial(e ?? {});
|
|
874
|
+
},
|
|
875
|
+
fromPartial(e) {
|
|
876
|
+
var n;
|
|
877
|
+
const r = ue();
|
|
878
|
+
return r.licenses = ((n = e.licenses) == null ? void 0 : n.map((a) => v.fromPartial(a))) || [], r;
|
|
879
|
+
}
|
|
880
|
+
};
|
|
881
|
+
function ce() {
|
|
882
|
+
return { preferences: void 0, licenseKey: "", productId: "" };
|
|
883
|
+
}
|
|
884
|
+
const Dr = {
|
|
885
|
+
encode(e, r = new u()) {
|
|
886
|
+
return e.preferences !== void 0 && o.encode(e.preferences, r.uint32(10).fork()).join(), e.licenseKey !== "" && r.uint32(18).string(e.licenseKey), e.productId !== "" && r.uint32(26).string(e.productId), r;
|
|
887
|
+
},
|
|
888
|
+
decode(e, r) {
|
|
889
|
+
const n = e instanceof s ? e : new s(e);
|
|
890
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
891
|
+
const t = ce();
|
|
892
|
+
for (; n.pos < a; ) {
|
|
893
|
+
const i = n.uint32();
|
|
894
|
+
switch (i >>> 3) {
|
|
895
|
+
case 1: {
|
|
896
|
+
if (i !== 10)
|
|
897
|
+
break;
|
|
898
|
+
t.preferences = o.decode(n, n.uint32());
|
|
899
|
+
continue;
|
|
900
|
+
}
|
|
901
|
+
case 2: {
|
|
902
|
+
if (i !== 18)
|
|
903
|
+
break;
|
|
904
|
+
t.licenseKey = n.string();
|
|
905
|
+
continue;
|
|
906
|
+
}
|
|
907
|
+
case 3: {
|
|
908
|
+
if (i !== 26)
|
|
909
|
+
break;
|
|
910
|
+
t.productId = n.string();
|
|
911
|
+
continue;
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
if ((i & 7) === 4 || i === 0)
|
|
915
|
+
break;
|
|
916
|
+
n.skip(i & 7);
|
|
917
|
+
}
|
|
918
|
+
return t;
|
|
919
|
+
},
|
|
920
|
+
fromJSON(e) {
|
|
921
|
+
return {
|
|
922
|
+
preferences: l(e.preferences) ? o.fromJSON(e.preferences) : void 0,
|
|
923
|
+
licenseKey: l(e.licenseKey) ? globalThis.String(e.licenseKey) : "",
|
|
924
|
+
productId: l(e.productId) ? globalThis.String(e.productId) : ""
|
|
925
|
+
};
|
|
926
|
+
},
|
|
927
|
+
toJSON(e) {
|
|
928
|
+
const r = {};
|
|
929
|
+
return e.preferences !== void 0 && (r.preferences = o.toJSON(e.preferences)), e.licenseKey !== "" && (r.licenseKey = e.licenseKey), e.productId !== "" && (r.productId = e.productId), r;
|
|
930
|
+
},
|
|
931
|
+
create(e) {
|
|
932
|
+
return Dr.fromPartial(e ?? {});
|
|
933
|
+
},
|
|
934
|
+
fromPartial(e) {
|
|
935
|
+
const r = ce();
|
|
936
|
+
return r.preferences = e.preferences !== void 0 && e.preferences !== null ? o.fromPartial(e.preferences) : void 0, r.licenseKey = e.licenseKey ?? "", r.productId = e.productId ?? "", r;
|
|
937
|
+
}
|
|
938
|
+
};
|
|
939
|
+
function fe() {
|
|
940
|
+
return { apiVersion: "", serviceVersion: "", canlibVersion: "" };
|
|
941
|
+
}
|
|
942
|
+
const Mr = {
|
|
943
|
+
encode(e, r = new u()) {
|
|
944
|
+
return e.apiVersion !== "" && r.uint32(10).string(e.apiVersion), e.serviceVersion !== "" && r.uint32(18).string(e.serviceVersion), e.canlibVersion !== "" && r.uint32(26).string(e.canlibVersion), r;
|
|
945
|
+
},
|
|
946
|
+
decode(e, r) {
|
|
947
|
+
const n = e instanceof s ? e : new s(e);
|
|
948
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
949
|
+
const t = fe();
|
|
950
|
+
for (; n.pos < a; ) {
|
|
951
|
+
const i = n.uint32();
|
|
952
|
+
switch (i >>> 3) {
|
|
953
|
+
case 1: {
|
|
954
|
+
if (i !== 10)
|
|
955
|
+
break;
|
|
956
|
+
t.apiVersion = n.string();
|
|
957
|
+
continue;
|
|
958
|
+
}
|
|
959
|
+
case 2: {
|
|
960
|
+
if (i !== 18)
|
|
961
|
+
break;
|
|
962
|
+
t.serviceVersion = n.string();
|
|
963
|
+
continue;
|
|
964
|
+
}
|
|
965
|
+
case 3: {
|
|
966
|
+
if (i !== 26)
|
|
967
|
+
break;
|
|
968
|
+
t.canlibVersion = n.string();
|
|
969
|
+
continue;
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
if ((i & 7) === 4 || i === 0)
|
|
973
|
+
break;
|
|
974
|
+
n.skip(i & 7);
|
|
975
|
+
}
|
|
976
|
+
return t;
|
|
977
|
+
},
|
|
978
|
+
fromJSON(e) {
|
|
979
|
+
return {
|
|
980
|
+
apiVersion: l(e.apiVersion) ? globalThis.String(e.apiVersion) : "",
|
|
981
|
+
serviceVersion: l(e.serviceVersion) ? globalThis.String(e.serviceVersion) : "",
|
|
982
|
+
canlibVersion: l(e.canlibVersion) ? globalThis.String(e.canlibVersion) : ""
|
|
983
|
+
};
|
|
984
|
+
},
|
|
985
|
+
toJSON(e) {
|
|
986
|
+
const r = {};
|
|
987
|
+
return e.apiVersion !== "" && (r.apiVersion = e.apiVersion), e.serviceVersion !== "" && (r.serviceVersion = e.serviceVersion), e.canlibVersion !== "" && (r.canlibVersion = e.canlibVersion), r;
|
|
988
|
+
},
|
|
989
|
+
create(e) {
|
|
990
|
+
return Mr.fromPartial(e ?? {});
|
|
991
|
+
},
|
|
992
|
+
fromPartial(e) {
|
|
993
|
+
const r = fe();
|
|
994
|
+
return r.apiVersion = e.apiVersion ?? "", r.serviceVersion = e.serviceVersion ?? "", r.canlibVersion = e.canlibVersion ?? "", r;
|
|
995
|
+
}
|
|
996
|
+
};
|
|
997
|
+
function l(e) {
|
|
998
|
+
return e != null;
|
|
999
|
+
}
|
|
1000
|
+
var br = /* @__PURE__ */ ((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))(br || {});
|
|
1001
|
+
function yr(e) {
|
|
1002
|
+
switch (e) {
|
|
1003
|
+
case 0:
|
|
1004
|
+
case "CAN_CHANNEL_CAP_UNSPECIFIED":
|
|
1005
|
+
return 0;
|
|
1006
|
+
case 1:
|
|
1007
|
+
case "CAN_CHANNEL_CAP_EXTENDED_CAN":
|
|
1008
|
+
return 1;
|
|
1009
|
+
case 2:
|
|
1010
|
+
case "CAN_CHANNEL_CAP_BUS_STATISTICS":
|
|
1011
|
+
return 2;
|
|
1012
|
+
case 3:
|
|
1013
|
+
case "CAN_CHANNEL_CAP_ERROR_COUNTERS":
|
|
1014
|
+
return 3;
|
|
1015
|
+
case 4:
|
|
1016
|
+
case "CAN_CHANNEL_CAP_GENERATE_ERROR":
|
|
1017
|
+
return 4;
|
|
1018
|
+
case 5:
|
|
1019
|
+
case "CAN_CHANNEL_CAP_GENERATE_OVERLOAD":
|
|
1020
|
+
return 5;
|
|
1021
|
+
case 6:
|
|
1022
|
+
case "CAN_CHANNEL_CAP_TXREQUEST":
|
|
1023
|
+
return 6;
|
|
1024
|
+
case 7:
|
|
1025
|
+
case "CAN_CHANNEL_CAP_TXACKNOWLEDGE":
|
|
1026
|
+
return 7;
|
|
1027
|
+
case 8:
|
|
1028
|
+
case "CAN_CHANNEL_CAP_VIRTUAL":
|
|
1029
|
+
return 8;
|
|
1030
|
+
case 9:
|
|
1031
|
+
case "CAN_CHANNEL_CAP_SIMULATED":
|
|
1032
|
+
return 9;
|
|
1033
|
+
case 10:
|
|
1034
|
+
case "CAN_CHANNEL_CAP_CAN_FD":
|
|
1035
|
+
return 10;
|
|
1036
|
+
case 11:
|
|
1037
|
+
case "CAN_CHANNEL_CAP_CAN_FD_NONISO":
|
|
1038
|
+
return 11;
|
|
1039
|
+
case 12:
|
|
1040
|
+
case "CAN_CHANNEL_CAP_SILENT_MODE":
|
|
1041
|
+
return 12;
|
|
1042
|
+
case 13:
|
|
1043
|
+
case "CAN_CHANNEL_CAP_SINGLE_SHOT":
|
|
1044
|
+
return 13;
|
|
1045
|
+
case 14:
|
|
1046
|
+
case "CAN_CHANNEL_CAP_LOGGER":
|
|
1047
|
+
return 14;
|
|
1048
|
+
case 15:
|
|
1049
|
+
case "CAN_CHANNEL_CAP_REMOTE_ACCESS":
|
|
1050
|
+
return 15;
|
|
1051
|
+
case 16:
|
|
1052
|
+
case "CAN_CHANNEL_CAP_SCRIPT":
|
|
1053
|
+
return 16;
|
|
1054
|
+
case 17:
|
|
1055
|
+
case "CAN_CHANNEL_CAP_LIN_HYBRID":
|
|
1056
|
+
return 17;
|
|
1057
|
+
case 18:
|
|
1058
|
+
case "CAN_CHANNEL_CAP_IO_API":
|
|
1059
|
+
return 18;
|
|
1060
|
+
case 19:
|
|
1061
|
+
case "CAN_CHANNEL_CAP_CANTEGRITY":
|
|
1062
|
+
return 19;
|
|
1063
|
+
case 20:
|
|
1064
|
+
case "CAN_CHANNEL_CAP_EX_BUSPARAMS_TQ":
|
|
1065
|
+
return 20;
|
|
1066
|
+
case -1:
|
|
1067
|
+
case "UNRECOGNIZED":
|
|
1068
|
+
default:
|
|
1069
|
+
return -1;
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1072
|
+
function Gr(e) {
|
|
1073
|
+
switch (e) {
|
|
1074
|
+
case 0:
|
|
1075
|
+
return "CAN_CHANNEL_CAP_UNSPECIFIED";
|
|
1076
|
+
case 1:
|
|
1077
|
+
return "CAN_CHANNEL_CAP_EXTENDED_CAN";
|
|
1078
|
+
case 2:
|
|
1079
|
+
return "CAN_CHANNEL_CAP_BUS_STATISTICS";
|
|
1080
|
+
case 3:
|
|
1081
|
+
return "CAN_CHANNEL_CAP_ERROR_COUNTERS";
|
|
1082
|
+
case 4:
|
|
1083
|
+
return "CAN_CHANNEL_CAP_GENERATE_ERROR";
|
|
1084
|
+
case 5:
|
|
1085
|
+
return "CAN_CHANNEL_CAP_GENERATE_OVERLOAD";
|
|
1086
|
+
case 6:
|
|
1087
|
+
return "CAN_CHANNEL_CAP_TXREQUEST";
|
|
1088
|
+
case 7:
|
|
1089
|
+
return "CAN_CHANNEL_CAP_TXACKNOWLEDGE";
|
|
1090
|
+
case 8:
|
|
1091
|
+
return "CAN_CHANNEL_CAP_VIRTUAL";
|
|
1092
|
+
case 9:
|
|
1093
|
+
return "CAN_CHANNEL_CAP_SIMULATED";
|
|
1094
|
+
case 10:
|
|
1095
|
+
return "CAN_CHANNEL_CAP_CAN_FD";
|
|
1096
|
+
case 11:
|
|
1097
|
+
return "CAN_CHANNEL_CAP_CAN_FD_NONISO";
|
|
1098
|
+
case 12:
|
|
1099
|
+
return "CAN_CHANNEL_CAP_SILENT_MODE";
|
|
1100
|
+
case 13:
|
|
1101
|
+
return "CAN_CHANNEL_CAP_SINGLE_SHOT";
|
|
1102
|
+
case 14:
|
|
1103
|
+
return "CAN_CHANNEL_CAP_LOGGER";
|
|
1104
|
+
case 15:
|
|
1105
|
+
return "CAN_CHANNEL_CAP_REMOTE_ACCESS";
|
|
1106
|
+
case 16:
|
|
1107
|
+
return "CAN_CHANNEL_CAP_SCRIPT";
|
|
1108
|
+
case 17:
|
|
1109
|
+
return "CAN_CHANNEL_CAP_LIN_HYBRID";
|
|
1110
|
+
case 18:
|
|
1111
|
+
return "CAN_CHANNEL_CAP_IO_API";
|
|
1112
|
+
case 19:
|
|
1113
|
+
return "CAN_CHANNEL_CAP_CANTEGRITY";
|
|
1114
|
+
case 20:
|
|
1115
|
+
return "CAN_CHANNEL_CAP_EX_BUSPARAMS_TQ";
|
|
1116
|
+
case -1:
|
|
1117
|
+
default:
|
|
1118
|
+
return "UNRECOGNIZED";
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
var Vr = /* @__PURE__ */ ((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))(Vr || {});
|
|
1122
|
+
function Sr(e) {
|
|
1123
|
+
switch (e) {
|
|
1124
|
+
case 0:
|
|
1125
|
+
case "PROTOCOLS_UNSPECIFIED":
|
|
1126
|
+
return 0;
|
|
1127
|
+
case 1:
|
|
1128
|
+
case "PROTOCOLS_CAN":
|
|
1129
|
+
return 1;
|
|
1130
|
+
case 2:
|
|
1131
|
+
case "PROTOCOLS_LIN":
|
|
1132
|
+
return 2;
|
|
1133
|
+
case -1:
|
|
1134
|
+
case "UNRECOGNIZED":
|
|
1135
|
+
default:
|
|
1136
|
+
return -1;
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
function mr(e) {
|
|
1140
|
+
switch (e) {
|
|
1141
|
+
case 0:
|
|
1142
|
+
return "PROTOCOLS_UNSPECIFIED";
|
|
1143
|
+
case 1:
|
|
1144
|
+
return "PROTOCOLS_CAN";
|
|
1145
|
+
case 2:
|
|
1146
|
+
return "PROTOCOLS_LIN";
|
|
1147
|
+
case -1:
|
|
1148
|
+
default:
|
|
1149
|
+
return "UNRECOGNIZED";
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
var Br = /* @__PURE__ */ ((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))(Br || {});
|
|
1153
|
+
function Fr(e) {
|
|
1154
|
+
switch (e) {
|
|
1155
|
+
case 0:
|
|
1156
|
+
case "DEVICE_EVENT_UNSPECIFIED":
|
|
1157
|
+
return 0;
|
|
1158
|
+
case 1:
|
|
1159
|
+
case "DEVICE_EVENT_DEVICES_CHANGED":
|
|
1160
|
+
return 1;
|
|
1161
|
+
case -1:
|
|
1162
|
+
case "UNRECOGNIZED":
|
|
1163
|
+
default:
|
|
1164
|
+
return -1;
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
function Ur(e) {
|
|
1168
|
+
switch (e) {
|
|
1169
|
+
case 0:
|
|
1170
|
+
return "DEVICE_EVENT_UNSPECIFIED";
|
|
1171
|
+
case 1:
|
|
1172
|
+
return "DEVICE_EVENT_DEVICES_CHANGED";
|
|
1173
|
+
case -1:
|
|
1174
|
+
default:
|
|
1175
|
+
return "UNRECOGNIZED";
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
function de() {
|
|
1179
|
+
return { tq: 0, phase1: 0, phase2: 0, sjw: 0, prop: 0, prescaler: 0 };
|
|
1180
|
+
}
|
|
1181
|
+
const S = {
|
|
1182
|
+
encode(e, r = new u()) {
|
|
1183
|
+
return e.tq !== 0 && r.uint32(8).int32(e.tq), e.phase1 !== 0 && r.uint32(16).int32(e.phase1), e.phase2 !== 0 && r.uint32(24).int32(e.phase2), e.sjw !== 0 && r.uint32(32).int32(e.sjw), e.prop !== 0 && r.uint32(40).int32(e.prop), e.prescaler !== 0 && r.uint32(48).int32(e.prescaler), r;
|
|
1184
|
+
},
|
|
1185
|
+
decode(e, r) {
|
|
1186
|
+
const n = e instanceof s ? e : new s(e);
|
|
1187
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
1188
|
+
const t = de();
|
|
1189
|
+
for (; n.pos < a; ) {
|
|
1190
|
+
const i = n.uint32();
|
|
1191
|
+
switch (i >>> 3) {
|
|
1192
|
+
case 1: {
|
|
1193
|
+
if (i !== 8)
|
|
1194
|
+
break;
|
|
1195
|
+
t.tq = n.int32();
|
|
1196
|
+
continue;
|
|
1197
|
+
}
|
|
1198
|
+
case 2: {
|
|
1199
|
+
if (i !== 16)
|
|
1200
|
+
break;
|
|
1201
|
+
t.phase1 = n.int32();
|
|
1202
|
+
continue;
|
|
1203
|
+
}
|
|
1204
|
+
case 3: {
|
|
1205
|
+
if (i !== 24)
|
|
1206
|
+
break;
|
|
1207
|
+
t.phase2 = n.int32();
|
|
1208
|
+
continue;
|
|
1209
|
+
}
|
|
1210
|
+
case 4: {
|
|
1211
|
+
if (i !== 32)
|
|
1212
|
+
break;
|
|
1213
|
+
t.sjw = n.int32();
|
|
1214
|
+
continue;
|
|
1215
|
+
}
|
|
1216
|
+
case 5: {
|
|
1217
|
+
if (i !== 40)
|
|
1218
|
+
break;
|
|
1219
|
+
t.prop = n.int32();
|
|
1220
|
+
continue;
|
|
1221
|
+
}
|
|
1222
|
+
case 6: {
|
|
1223
|
+
if (i !== 48)
|
|
1224
|
+
break;
|
|
1225
|
+
t.prescaler = n.int32();
|
|
1226
|
+
continue;
|
|
1227
|
+
}
|
|
1228
|
+
}
|
|
1229
|
+
if ((i & 7) === 4 || i === 0)
|
|
1230
|
+
break;
|
|
1231
|
+
n.skip(i & 7);
|
|
1232
|
+
}
|
|
1233
|
+
return t;
|
|
1234
|
+
},
|
|
1235
|
+
fromJSON(e) {
|
|
1236
|
+
return {
|
|
1237
|
+
tq: f(e.tq) ? globalThis.Number(e.tq) : 0,
|
|
1238
|
+
phase1: f(e.phase1) ? globalThis.Number(e.phase1) : 0,
|
|
1239
|
+
phase2: f(e.phase2) ? globalThis.Number(e.phase2) : 0,
|
|
1240
|
+
sjw: f(e.sjw) ? globalThis.Number(e.sjw) : 0,
|
|
1241
|
+
prop: f(e.prop) ? globalThis.Number(e.prop) : 0,
|
|
1242
|
+
prescaler: f(e.prescaler) ? globalThis.Number(e.prescaler) : 0
|
|
1243
|
+
};
|
|
1244
|
+
},
|
|
1245
|
+
toJSON(e) {
|
|
1246
|
+
const r = {};
|
|
1247
|
+
return e.tq !== 0 && (r.tq = Math.round(e.tq)), e.phase1 !== 0 && (r.phase1 = Math.round(e.phase1)), e.phase2 !== 0 && (r.phase2 = Math.round(e.phase2)), e.sjw !== 0 && (r.sjw = Math.round(e.sjw)), e.prop !== 0 && (r.prop = Math.round(e.prop)), e.prescaler !== 0 && (r.prescaler = Math.round(e.prescaler)), r;
|
|
1248
|
+
},
|
|
1249
|
+
create(e) {
|
|
1250
|
+
return S.fromPartial(e ?? {});
|
|
1251
|
+
},
|
|
1252
|
+
fromPartial(e) {
|
|
1253
|
+
const r = de();
|
|
1254
|
+
return r.tq = e.tq ?? 0, r.phase1 = e.phase1 ?? 0, r.phase2 = e.phase2 ?? 0, r.sjw = e.sjw ?? 0, r.prop = e.prop ?? 0, r.prescaler = e.prescaler ?? 0, r;
|
|
1255
|
+
}
|
|
1256
|
+
};
|
|
1257
|
+
function le() {
|
|
1258
|
+
return {
|
|
1259
|
+
arbitrationMin: void 0,
|
|
1260
|
+
arbitrationMax: void 0,
|
|
1261
|
+
dataMin: void 0,
|
|
1262
|
+
dataMax: void 0,
|
|
1263
|
+
isValid: !1
|
|
1264
|
+
};
|
|
1265
|
+
}
|
|
1266
|
+
const L = {
|
|
1267
|
+
encode(e, r = new u()) {
|
|
1268
|
+
return e.arbitrationMin !== void 0 && S.encode(e.arbitrationMin, r.uint32(10).fork()).join(), e.arbitrationMax !== void 0 && S.encode(e.arbitrationMax, r.uint32(18).fork()).join(), e.dataMin !== void 0 && S.encode(e.dataMin, r.uint32(26).fork()).join(), e.dataMax !== void 0 && S.encode(e.dataMax, r.uint32(34).fork()).join(), e.isValid !== !1 && r.uint32(40).bool(e.isValid), r;
|
|
1269
|
+
},
|
|
1270
|
+
decode(e, r) {
|
|
1271
|
+
const n = e instanceof s ? e : new s(e);
|
|
1272
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
1273
|
+
const t = le();
|
|
1274
|
+
for (; n.pos < a; ) {
|
|
1275
|
+
const i = n.uint32();
|
|
1276
|
+
switch (i >>> 3) {
|
|
1277
|
+
case 1: {
|
|
1278
|
+
if (i !== 10)
|
|
1279
|
+
break;
|
|
1280
|
+
t.arbitrationMin = S.decode(n, n.uint32());
|
|
1281
|
+
continue;
|
|
1282
|
+
}
|
|
1283
|
+
case 2: {
|
|
1284
|
+
if (i !== 18)
|
|
1285
|
+
break;
|
|
1286
|
+
t.arbitrationMax = S.decode(n, n.uint32());
|
|
1287
|
+
continue;
|
|
1288
|
+
}
|
|
1289
|
+
case 3: {
|
|
1290
|
+
if (i !== 26)
|
|
1291
|
+
break;
|
|
1292
|
+
t.dataMin = S.decode(n, n.uint32());
|
|
1293
|
+
continue;
|
|
1294
|
+
}
|
|
1295
|
+
case 4: {
|
|
1296
|
+
if (i !== 34)
|
|
1297
|
+
break;
|
|
1298
|
+
t.dataMax = S.decode(n, n.uint32());
|
|
1299
|
+
continue;
|
|
1300
|
+
}
|
|
1301
|
+
case 5: {
|
|
1302
|
+
if (i !== 40)
|
|
1303
|
+
break;
|
|
1304
|
+
t.isValid = n.bool();
|
|
1305
|
+
continue;
|
|
1306
|
+
}
|
|
1307
|
+
}
|
|
1308
|
+
if ((i & 7) === 4 || i === 0)
|
|
1309
|
+
break;
|
|
1310
|
+
n.skip(i & 7);
|
|
1311
|
+
}
|
|
1312
|
+
return t;
|
|
1313
|
+
},
|
|
1314
|
+
fromJSON(e) {
|
|
1315
|
+
return {
|
|
1316
|
+
arbitrationMin: f(e.arbitrationMin) ? S.fromJSON(e.arbitrationMin) : void 0,
|
|
1317
|
+
arbitrationMax: f(e.arbitrationMax) ? S.fromJSON(e.arbitrationMax) : void 0,
|
|
1318
|
+
dataMin: f(e.dataMin) ? S.fromJSON(e.dataMin) : void 0,
|
|
1319
|
+
dataMax: f(e.dataMax) ? S.fromJSON(e.dataMax) : void 0,
|
|
1320
|
+
isValid: f(e.isValid) ? globalThis.Boolean(e.isValid) : !1
|
|
1321
|
+
};
|
|
1322
|
+
},
|
|
1323
|
+
toJSON(e) {
|
|
1324
|
+
const r = {};
|
|
1325
|
+
return e.arbitrationMin !== void 0 && (r.arbitrationMin = S.toJSON(e.arbitrationMin)), e.arbitrationMax !== void 0 && (r.arbitrationMax = S.toJSON(e.arbitrationMax)), e.dataMin !== void 0 && (r.dataMin = S.toJSON(e.dataMin)), e.dataMax !== void 0 && (r.dataMax = S.toJSON(e.dataMax)), e.isValid !== !1 && (r.isValid = e.isValid), r;
|
|
1326
|
+
},
|
|
1327
|
+
create(e) {
|
|
1328
|
+
return L.fromPartial(e ?? {});
|
|
1329
|
+
},
|
|
1330
|
+
fromPartial(e) {
|
|
1331
|
+
const r = le();
|
|
1332
|
+
return r.arbitrationMin = e.arbitrationMin !== void 0 && e.arbitrationMin !== null ? S.fromPartial(e.arbitrationMin) : void 0, r.arbitrationMax = e.arbitrationMax !== void 0 && e.arbitrationMax !== null ? S.fromPartial(e.arbitrationMax) : void 0, r.dataMin = e.dataMin !== void 0 && e.dataMin !== null ? S.fromPartial(e.dataMin) : void 0, r.dataMax = e.dataMax !== void 0 && e.dataMax !== null ? S.fromPartial(e.dataMax) : void 0, r.isValid = e.isValid ?? !1, r;
|
|
1333
|
+
}
|
|
1334
|
+
};
|
|
1335
|
+
function pe() {
|
|
1336
|
+
return {
|
|
1337
|
+
bitRate: 0,
|
|
1338
|
+
actualBitRate: 0,
|
|
1339
|
+
bitRateError: 0,
|
|
1340
|
+
timeSegment1: 0,
|
|
1341
|
+
timeSegment2: 0,
|
|
1342
|
+
samplingPoint: 0,
|
|
1343
|
+
numberOfSamplingPoints: 0,
|
|
1344
|
+
maxSyncJumpWidth: 0,
|
|
1345
|
+
description: ""
|
|
1346
|
+
};
|
|
1347
|
+
}
|
|
1348
|
+
const P = {
|
|
1349
|
+
encode(e, r = new u()) {
|
|
1350
|
+
return e.bitRate !== 0 && r.uint32(8).int32(e.bitRate), e.actualBitRate !== 0 && r.uint32(16).int32(e.actualBitRate), e.bitRateError !== 0 && r.uint32(25).double(e.bitRateError), e.timeSegment1 !== 0 && r.uint32(32).int32(e.timeSegment1), e.timeSegment2 !== 0 && r.uint32(40).int32(e.timeSegment2), e.samplingPoint !== 0 && r.uint32(49).double(e.samplingPoint), e.numberOfSamplingPoints !== 0 && r.uint32(56).int32(e.numberOfSamplingPoints), e.maxSyncJumpWidth !== 0 && r.uint32(64).int32(e.maxSyncJumpWidth), e.description !== "" && r.uint32(74).string(e.description), r;
|
|
1351
|
+
},
|
|
1352
|
+
decode(e, r) {
|
|
1353
|
+
const n = e instanceof s ? e : new s(e);
|
|
1354
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
1355
|
+
const t = pe();
|
|
1356
|
+
for (; n.pos < a; ) {
|
|
1357
|
+
const i = n.uint32();
|
|
1358
|
+
switch (i >>> 3) {
|
|
1359
|
+
case 1: {
|
|
1360
|
+
if (i !== 8)
|
|
1361
|
+
break;
|
|
1362
|
+
t.bitRate = n.int32();
|
|
1363
|
+
continue;
|
|
1364
|
+
}
|
|
1365
|
+
case 2: {
|
|
1366
|
+
if (i !== 16)
|
|
1367
|
+
break;
|
|
1368
|
+
t.actualBitRate = n.int32();
|
|
1369
|
+
continue;
|
|
1370
|
+
}
|
|
1371
|
+
case 3: {
|
|
1372
|
+
if (i !== 25)
|
|
1373
|
+
break;
|
|
1374
|
+
t.bitRateError = n.double();
|
|
1375
|
+
continue;
|
|
1376
|
+
}
|
|
1377
|
+
case 4: {
|
|
1378
|
+
if (i !== 32)
|
|
1379
|
+
break;
|
|
1380
|
+
t.timeSegment1 = n.int32();
|
|
1381
|
+
continue;
|
|
1382
|
+
}
|
|
1383
|
+
case 5: {
|
|
1384
|
+
if (i !== 40)
|
|
1385
|
+
break;
|
|
1386
|
+
t.timeSegment2 = n.int32();
|
|
1387
|
+
continue;
|
|
1388
|
+
}
|
|
1389
|
+
case 6: {
|
|
1390
|
+
if (i !== 49)
|
|
1391
|
+
break;
|
|
1392
|
+
t.samplingPoint = n.double();
|
|
1393
|
+
continue;
|
|
1394
|
+
}
|
|
1395
|
+
case 7: {
|
|
1396
|
+
if (i !== 56)
|
|
1397
|
+
break;
|
|
1398
|
+
t.numberOfSamplingPoints = n.int32();
|
|
1399
|
+
continue;
|
|
1400
|
+
}
|
|
1401
|
+
case 8: {
|
|
1402
|
+
if (i !== 64)
|
|
1403
|
+
break;
|
|
1404
|
+
t.maxSyncJumpWidth = n.int32();
|
|
1405
|
+
continue;
|
|
1406
|
+
}
|
|
1407
|
+
case 9: {
|
|
1408
|
+
if (i !== 74)
|
|
1409
|
+
break;
|
|
1410
|
+
t.description = n.string();
|
|
1411
|
+
continue;
|
|
1412
|
+
}
|
|
1413
|
+
}
|
|
1414
|
+
if ((i & 7) === 4 || i === 0)
|
|
1415
|
+
break;
|
|
1416
|
+
n.skip(i & 7);
|
|
1417
|
+
}
|
|
1418
|
+
return t;
|
|
1419
|
+
},
|
|
1420
|
+
fromJSON(e) {
|
|
1421
|
+
return {
|
|
1422
|
+
bitRate: f(e.bitRate) ? globalThis.Number(e.bitRate) : 0,
|
|
1423
|
+
actualBitRate: f(e.actualBitRate) ? globalThis.Number(e.actualBitRate) : 0,
|
|
1424
|
+
bitRateError: f(e.bitRateError) ? globalThis.Number(e.bitRateError) : 0,
|
|
1425
|
+
timeSegment1: f(e.timeSegment1) ? globalThis.Number(e.timeSegment1) : 0,
|
|
1426
|
+
timeSegment2: f(e.timeSegment2) ? globalThis.Number(e.timeSegment2) : 0,
|
|
1427
|
+
samplingPoint: f(e.samplingPoint) ? globalThis.Number(e.samplingPoint) : 0,
|
|
1428
|
+
numberOfSamplingPoints: f(e.numberOfSamplingPoints) ? globalThis.Number(e.numberOfSamplingPoints) : 0,
|
|
1429
|
+
maxSyncJumpWidth: f(e.maxSyncJumpWidth) ? globalThis.Number(e.maxSyncJumpWidth) : 0,
|
|
1430
|
+
description: f(e.description) ? globalThis.String(e.description) : ""
|
|
1431
|
+
};
|
|
1432
|
+
},
|
|
1433
|
+
toJSON(e) {
|
|
1434
|
+
const r = {};
|
|
1435
|
+
return e.bitRate !== 0 && (r.bitRate = Math.round(e.bitRate)), e.actualBitRate !== 0 && (r.actualBitRate = Math.round(e.actualBitRate)), e.bitRateError !== 0 && (r.bitRateError = e.bitRateError), e.timeSegment1 !== 0 && (r.timeSegment1 = Math.round(e.timeSegment1)), e.timeSegment2 !== 0 && (r.timeSegment2 = Math.round(e.timeSegment2)), e.samplingPoint !== 0 && (r.samplingPoint = e.samplingPoint), e.numberOfSamplingPoints !== 0 && (r.numberOfSamplingPoints = Math.round(e.numberOfSamplingPoints)), e.maxSyncJumpWidth !== 0 && (r.maxSyncJumpWidth = Math.round(e.maxSyncJumpWidth)), e.description !== "" && (r.description = e.description), r;
|
|
1436
|
+
},
|
|
1437
|
+
create(e) {
|
|
1438
|
+
return P.fromPartial(e ?? {});
|
|
1439
|
+
},
|
|
1440
|
+
fromPartial(e) {
|
|
1441
|
+
const r = pe();
|
|
1442
|
+
return r.bitRate = e.bitRate ?? 0, r.actualBitRate = e.actualBitRate ?? 0, r.bitRateError = e.bitRateError ?? 0, r.timeSegment1 = e.timeSegment1 ?? 0, r.timeSegment2 = e.timeSegment2 ?? 0, r.samplingPoint = e.samplingPoint ?? 0, r.numberOfSamplingPoints = e.numberOfSamplingPoints ?? 0, r.maxSyncJumpWidth = e.maxSyncJumpWidth ?? 0, r.description = e.description ?? "", r;
|
|
1443
|
+
}
|
|
1444
|
+
};
|
|
1445
|
+
function Ne() {
|
|
1446
|
+
return {
|
|
1447
|
+
bitRate: 0,
|
|
1448
|
+
timeSegment1: 0,
|
|
1449
|
+
timeSegment2: 0,
|
|
1450
|
+
samplingPoint: 0,
|
|
1451
|
+
numberOfSamplingPoints: 0,
|
|
1452
|
+
maxSyncJumpWidth: 0,
|
|
1453
|
+
prescaler: 0,
|
|
1454
|
+
description: ""
|
|
1455
|
+
};
|
|
1456
|
+
}
|
|
1457
|
+
const E = {
|
|
1458
|
+
encode(e, r = new u()) {
|
|
1459
|
+
return e.bitRate !== 0 && r.uint32(8).int32(e.bitRate), e.timeSegment1 !== 0 && r.uint32(16).int32(e.timeSegment1), e.timeSegment2 !== 0 && r.uint32(24).int32(e.timeSegment2), e.samplingPoint !== 0 && r.uint32(33).double(e.samplingPoint), e.numberOfSamplingPoints !== 0 && r.uint32(40).int32(e.numberOfSamplingPoints), e.maxSyncJumpWidth !== 0 && r.uint32(48).int32(e.maxSyncJumpWidth), e.prescaler !== 0 && r.uint32(56).int32(e.prescaler), e.description !== "" && r.uint32(66).string(e.description), r;
|
|
1460
|
+
},
|
|
1461
|
+
decode(e, r) {
|
|
1462
|
+
const n = e instanceof s ? e : new s(e);
|
|
1463
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
1464
|
+
const t = Ne();
|
|
1465
|
+
for (; n.pos < a; ) {
|
|
1466
|
+
const i = n.uint32();
|
|
1467
|
+
switch (i >>> 3) {
|
|
1468
|
+
case 1: {
|
|
1469
|
+
if (i !== 8)
|
|
1470
|
+
break;
|
|
1471
|
+
t.bitRate = n.int32();
|
|
1472
|
+
continue;
|
|
1473
|
+
}
|
|
1474
|
+
case 2: {
|
|
1475
|
+
if (i !== 16)
|
|
1476
|
+
break;
|
|
1477
|
+
t.timeSegment1 = n.int32();
|
|
1478
|
+
continue;
|
|
1479
|
+
}
|
|
1480
|
+
case 3: {
|
|
1481
|
+
if (i !== 24)
|
|
1482
|
+
break;
|
|
1483
|
+
t.timeSegment2 = n.int32();
|
|
1484
|
+
continue;
|
|
1485
|
+
}
|
|
1486
|
+
case 4: {
|
|
1487
|
+
if (i !== 33)
|
|
1488
|
+
break;
|
|
1489
|
+
t.samplingPoint = n.double();
|
|
1490
|
+
continue;
|
|
1491
|
+
}
|
|
1492
|
+
case 5: {
|
|
1493
|
+
if (i !== 40)
|
|
1494
|
+
break;
|
|
1495
|
+
t.numberOfSamplingPoints = n.int32();
|
|
1496
|
+
continue;
|
|
1497
|
+
}
|
|
1498
|
+
case 6: {
|
|
1499
|
+
if (i !== 48)
|
|
1500
|
+
break;
|
|
1501
|
+
t.maxSyncJumpWidth = n.int32();
|
|
1502
|
+
continue;
|
|
1503
|
+
}
|
|
1504
|
+
case 7: {
|
|
1505
|
+
if (i !== 56)
|
|
1506
|
+
break;
|
|
1507
|
+
t.prescaler = n.int32();
|
|
1508
|
+
continue;
|
|
1509
|
+
}
|
|
1510
|
+
case 8: {
|
|
1511
|
+
if (i !== 66)
|
|
1512
|
+
break;
|
|
1513
|
+
t.description = n.string();
|
|
1514
|
+
continue;
|
|
1515
|
+
}
|
|
1516
|
+
}
|
|
1517
|
+
if ((i & 7) === 4 || i === 0)
|
|
1518
|
+
break;
|
|
1519
|
+
n.skip(i & 7);
|
|
1520
|
+
}
|
|
1521
|
+
return t;
|
|
1522
|
+
},
|
|
1523
|
+
fromJSON(e) {
|
|
1524
|
+
return {
|
|
1525
|
+
bitRate: f(e.bitRate) ? globalThis.Number(e.bitRate) : 0,
|
|
1526
|
+
timeSegment1: f(e.timeSegment1) ? globalThis.Number(e.timeSegment1) : 0,
|
|
1527
|
+
timeSegment2: f(e.timeSegment2) ? globalThis.Number(e.timeSegment2) : 0,
|
|
1528
|
+
samplingPoint: f(e.samplingPoint) ? globalThis.Number(e.samplingPoint) : 0,
|
|
1529
|
+
numberOfSamplingPoints: f(e.numberOfSamplingPoints) ? globalThis.Number(e.numberOfSamplingPoints) : 0,
|
|
1530
|
+
maxSyncJumpWidth: f(e.maxSyncJumpWidth) ? globalThis.Number(e.maxSyncJumpWidth) : 0,
|
|
1531
|
+
prescaler: f(e.prescaler) ? globalThis.Number(e.prescaler) : 0,
|
|
1532
|
+
description: f(e.description) ? globalThis.String(e.description) : ""
|
|
1533
|
+
};
|
|
1534
|
+
},
|
|
1535
|
+
toJSON(e) {
|
|
1536
|
+
const r = {};
|
|
1537
|
+
return e.bitRate !== 0 && (r.bitRate = Math.round(e.bitRate)), e.timeSegment1 !== 0 && (r.timeSegment1 = Math.round(e.timeSegment1)), e.timeSegment2 !== 0 && (r.timeSegment2 = Math.round(e.timeSegment2)), e.samplingPoint !== 0 && (r.samplingPoint = e.samplingPoint), e.numberOfSamplingPoints !== 0 && (r.numberOfSamplingPoints = Math.round(e.numberOfSamplingPoints)), e.maxSyncJumpWidth !== 0 && (r.maxSyncJumpWidth = Math.round(e.maxSyncJumpWidth)), e.prescaler !== 0 && (r.prescaler = Math.round(e.prescaler)), e.description !== "" && (r.description = e.description), r;
|
|
1538
|
+
},
|
|
1539
|
+
create(e) {
|
|
1540
|
+
return E.fromPartial(e ?? {});
|
|
1541
|
+
},
|
|
1542
|
+
fromPartial(e) {
|
|
1543
|
+
const r = Ne();
|
|
1544
|
+
return r.bitRate = e.bitRate ?? 0, r.timeSegment1 = e.timeSegment1 ?? 0, r.timeSegment2 = e.timeSegment2 ?? 0, r.samplingPoint = e.samplingPoint ?? 0, r.numberOfSamplingPoints = e.numberOfSamplingPoints ?? 0, r.maxSyncJumpWidth = e.maxSyncJumpWidth ?? 0, r.prescaler = e.prescaler ?? 0, r.description = e.description ?? "", r;
|
|
1545
|
+
}
|
|
1546
|
+
};
|
|
1547
|
+
function Se() {
|
|
1548
|
+
return { busSpeedArbPhase: void 0, busSpeedsDataPhase: [] };
|
|
1549
|
+
}
|
|
1550
|
+
const h = {
|
|
1551
|
+
encode(e, r = new u()) {
|
|
1552
|
+
e.busSpeedArbPhase !== void 0 && E.encode(e.busSpeedArbPhase, r.uint32(10).fork()).join();
|
|
1553
|
+
for (const n of e.busSpeedsDataPhase)
|
|
1554
|
+
E.encode(n, r.uint32(18).fork()).join();
|
|
1555
|
+
return r;
|
|
1556
|
+
},
|
|
1557
|
+
decode(e, r) {
|
|
1558
|
+
const n = e instanceof s ? e : new s(e);
|
|
1559
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
1560
|
+
const t = Se();
|
|
1561
|
+
for (; n.pos < a; ) {
|
|
1562
|
+
const i = n.uint32();
|
|
1563
|
+
switch (i >>> 3) {
|
|
1564
|
+
case 1: {
|
|
1565
|
+
if (i !== 10)
|
|
1566
|
+
break;
|
|
1567
|
+
t.busSpeedArbPhase = E.decode(n, n.uint32());
|
|
1568
|
+
continue;
|
|
1569
|
+
}
|
|
1570
|
+
case 2: {
|
|
1571
|
+
if (i !== 18)
|
|
1572
|
+
break;
|
|
1573
|
+
t.busSpeedsDataPhase.push(E.decode(n, n.uint32()));
|
|
1574
|
+
continue;
|
|
1575
|
+
}
|
|
1576
|
+
}
|
|
1577
|
+
if ((i & 7) === 4 || i === 0)
|
|
1578
|
+
break;
|
|
1579
|
+
n.skip(i & 7);
|
|
1580
|
+
}
|
|
1581
|
+
return t;
|
|
1582
|
+
},
|
|
1583
|
+
fromJSON(e) {
|
|
1584
|
+
return {
|
|
1585
|
+
busSpeedArbPhase: f(e.busSpeedArbPhase) ? E.fromJSON(e.busSpeedArbPhase) : void 0,
|
|
1586
|
+
busSpeedsDataPhase: globalThis.Array.isArray(e == null ? void 0 : e.busSpeedsDataPhase) ? e.busSpeedsDataPhase.map((r) => E.fromJSON(r)) : []
|
|
1587
|
+
};
|
|
1588
|
+
},
|
|
1589
|
+
toJSON(e) {
|
|
1590
|
+
var n;
|
|
1591
|
+
const r = {};
|
|
1592
|
+
return e.busSpeedArbPhase !== void 0 && (r.busSpeedArbPhase = E.toJSON(e.busSpeedArbPhase)), (n = e.busSpeedsDataPhase) != null && n.length && (r.busSpeedsDataPhase = e.busSpeedsDataPhase.map((a) => E.toJSON(a))), r;
|
|
1593
|
+
},
|
|
1594
|
+
create(e) {
|
|
1595
|
+
return h.fromPartial(e ?? {});
|
|
1596
|
+
},
|
|
1597
|
+
fromPartial(e) {
|
|
1598
|
+
var n;
|
|
1599
|
+
const r = Se();
|
|
1600
|
+
return r.busSpeedArbPhase = e.busSpeedArbPhase !== void 0 && e.busSpeedArbPhase !== null ? E.fromPartial(e.busSpeedArbPhase) : void 0, r.busSpeedsDataPhase = ((n = e.busSpeedsDataPhase) == null ? void 0 : n.map((a) => E.fromPartial(a))) || [], r;
|
|
1601
|
+
}
|
|
1602
|
+
};
|
|
1603
|
+
function me() {
|
|
1604
|
+
return { busParamLimits: void 0, channelCaps: [], maxBitRate: 0, clockFrequency: 0 };
|
|
1605
|
+
}
|
|
1606
|
+
const g = {
|
|
1607
|
+
encode(e, r = new u()) {
|
|
1608
|
+
e.busParamLimits !== void 0 && L.encode(e.busParamLimits, r.uint32(10).fork()).join(), r.uint32(18).fork();
|
|
1609
|
+
for (const n of e.channelCaps)
|
|
1610
|
+
r.int32(n);
|
|
1611
|
+
return r.join(), e.maxBitRate !== 0 && r.uint32(24).int32(e.maxBitRate), e.clockFrequency !== 0 && r.uint32(33).double(e.clockFrequency), r;
|
|
1612
|
+
},
|
|
1613
|
+
decode(e, r) {
|
|
1614
|
+
const n = e instanceof s ? e : new s(e);
|
|
1615
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
1616
|
+
const t = me();
|
|
1617
|
+
for (; n.pos < a; ) {
|
|
1618
|
+
const i = n.uint32();
|
|
1619
|
+
switch (i >>> 3) {
|
|
1620
|
+
case 1: {
|
|
1621
|
+
if (i !== 10)
|
|
1622
|
+
break;
|
|
1623
|
+
t.busParamLimits = L.decode(n, n.uint32());
|
|
1624
|
+
continue;
|
|
1625
|
+
}
|
|
1626
|
+
case 2: {
|
|
1627
|
+
if (i === 16) {
|
|
1628
|
+
t.channelCaps.push(n.int32());
|
|
1629
|
+
continue;
|
|
1630
|
+
}
|
|
1631
|
+
if (i === 18) {
|
|
1632
|
+
const p = n.uint32() + n.pos;
|
|
1633
|
+
for (; n.pos < p; )
|
|
1634
|
+
t.channelCaps.push(n.int32());
|
|
1635
|
+
continue;
|
|
1636
|
+
}
|
|
1637
|
+
break;
|
|
1638
|
+
}
|
|
1639
|
+
case 3: {
|
|
1640
|
+
if (i !== 24)
|
|
1641
|
+
break;
|
|
1642
|
+
t.maxBitRate = n.int32();
|
|
1643
|
+
continue;
|
|
1644
|
+
}
|
|
1645
|
+
case 4: {
|
|
1646
|
+
if (i !== 33)
|
|
1647
|
+
break;
|
|
1648
|
+
t.clockFrequency = n.double();
|
|
1649
|
+
continue;
|
|
1650
|
+
}
|
|
1651
|
+
}
|
|
1652
|
+
if ((i & 7) === 4 || i === 0)
|
|
1653
|
+
break;
|
|
1654
|
+
n.skip(i & 7);
|
|
1655
|
+
}
|
|
1656
|
+
return t;
|
|
1657
|
+
},
|
|
1658
|
+
fromJSON(e) {
|
|
1659
|
+
return {
|
|
1660
|
+
busParamLimits: f(e.busParamLimits) ? L.fromJSON(e.busParamLimits) : void 0,
|
|
1661
|
+
channelCaps: globalThis.Array.isArray(e == null ? void 0 : e.channelCaps) ? e.channelCaps.map((r) => yr(r)) : [],
|
|
1662
|
+
maxBitRate: f(e.maxBitRate) ? globalThis.Number(e.maxBitRate) : 0,
|
|
1663
|
+
clockFrequency: f(e.clockFrequency) ? globalThis.Number(e.clockFrequency) : 0
|
|
1664
|
+
};
|
|
1665
|
+
},
|
|
1666
|
+
toJSON(e) {
|
|
1667
|
+
var n;
|
|
1668
|
+
const r = {};
|
|
1669
|
+
return e.busParamLimits !== void 0 && (r.busParamLimits = L.toJSON(e.busParamLimits)), (n = e.channelCaps) != null && n.length && (r.channelCaps = e.channelCaps.map((a) => Gr(a))), e.maxBitRate !== 0 && (r.maxBitRate = Math.round(e.maxBitRate)), e.clockFrequency !== 0 && (r.clockFrequency = e.clockFrequency), r;
|
|
1670
|
+
},
|
|
1671
|
+
create(e) {
|
|
1672
|
+
return g.fromPartial(e ?? {});
|
|
1673
|
+
},
|
|
1674
|
+
fromPartial(e) {
|
|
1675
|
+
var n;
|
|
1676
|
+
const r = me();
|
|
1677
|
+
return r.busParamLimits = e.busParamLimits !== void 0 && e.busParamLimits !== null ? L.fromPartial(e.busParamLimits) : void 0, r.channelCaps = ((n = e.channelCaps) == null ? void 0 : n.map((a) => a)) || [], r.maxBitRate = e.maxBitRate ?? 0, r.clockFrequency = e.clockFrequency ?? 0, r;
|
|
1678
|
+
}
|
|
1679
|
+
};
|
|
1680
|
+
function Ee() {
|
|
1681
|
+
return { channelNumber: 0, channelNumberOnDevice: 0, name: "", protocols: [], canChannelCapacity: void 0 };
|
|
1682
|
+
}
|
|
1683
|
+
const J = {
|
|
1684
|
+
encode(e, r = new u()) {
|
|
1685
|
+
e.channelNumber !== 0 && r.uint32(8).int32(e.channelNumber), e.channelNumberOnDevice !== 0 && r.uint32(16).int32(e.channelNumberOnDevice), e.name !== "" && r.uint32(26).string(e.name), r.uint32(34).fork();
|
|
1686
|
+
for (const n of e.protocols)
|
|
1687
|
+
r.int32(n);
|
|
1688
|
+
return r.join(), e.canChannelCapacity !== void 0 && g.encode(e.canChannelCapacity, r.uint32(42).fork()).join(), r;
|
|
1689
|
+
},
|
|
1690
|
+
decode(e, r) {
|
|
1691
|
+
const n = e instanceof s ? e : new s(e);
|
|
1692
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
1693
|
+
const t = Ee();
|
|
1694
|
+
for (; n.pos < a; ) {
|
|
1695
|
+
const i = n.uint32();
|
|
1696
|
+
switch (i >>> 3) {
|
|
1697
|
+
case 1: {
|
|
1698
|
+
if (i !== 8)
|
|
1699
|
+
break;
|
|
1700
|
+
t.channelNumber = n.int32();
|
|
1701
|
+
continue;
|
|
1702
|
+
}
|
|
1703
|
+
case 2: {
|
|
1704
|
+
if (i !== 16)
|
|
1705
|
+
break;
|
|
1706
|
+
t.channelNumberOnDevice = n.int32();
|
|
1707
|
+
continue;
|
|
1708
|
+
}
|
|
1709
|
+
case 3: {
|
|
1710
|
+
if (i !== 26)
|
|
1711
|
+
break;
|
|
1712
|
+
t.name = n.string();
|
|
1713
|
+
continue;
|
|
1714
|
+
}
|
|
1715
|
+
case 4: {
|
|
1716
|
+
if (i === 32) {
|
|
1717
|
+
t.protocols.push(n.int32());
|
|
1718
|
+
continue;
|
|
1719
|
+
}
|
|
1720
|
+
if (i === 34) {
|
|
1721
|
+
const p = n.uint32() + n.pos;
|
|
1722
|
+
for (; n.pos < p; )
|
|
1723
|
+
t.protocols.push(n.int32());
|
|
1724
|
+
continue;
|
|
1725
|
+
}
|
|
1726
|
+
break;
|
|
1727
|
+
}
|
|
1728
|
+
case 5: {
|
|
1729
|
+
if (i !== 42)
|
|
1730
|
+
break;
|
|
1731
|
+
t.canChannelCapacity = g.decode(n, n.uint32());
|
|
1732
|
+
continue;
|
|
1733
|
+
}
|
|
1734
|
+
}
|
|
1735
|
+
if ((i & 7) === 4 || i === 0)
|
|
1736
|
+
break;
|
|
1737
|
+
n.skip(i & 7);
|
|
1738
|
+
}
|
|
1739
|
+
return t;
|
|
1740
|
+
},
|
|
1741
|
+
fromJSON(e) {
|
|
1742
|
+
return {
|
|
1743
|
+
channelNumber: f(e.channelNumber) ? globalThis.Number(e.channelNumber) : 0,
|
|
1744
|
+
channelNumberOnDevice: f(e.channelNumberOnDevice) ? globalThis.Number(e.channelNumberOnDevice) : 0,
|
|
1745
|
+
name: f(e.name) ? globalThis.String(e.name) : "",
|
|
1746
|
+
protocols: globalThis.Array.isArray(e == null ? void 0 : e.protocols) ? e.protocols.map((r) => Sr(r)) : [],
|
|
1747
|
+
canChannelCapacity: f(e.canChannelCapacity) ? g.fromJSON(e.canChannelCapacity) : void 0
|
|
1748
|
+
};
|
|
1749
|
+
},
|
|
1750
|
+
toJSON(e) {
|
|
1751
|
+
var n;
|
|
1752
|
+
const r = {};
|
|
1753
|
+
return e.channelNumber !== 0 && (r.channelNumber = Math.round(e.channelNumber)), e.channelNumberOnDevice !== 0 && (r.channelNumberOnDevice = Math.round(e.channelNumberOnDevice)), e.name !== "" && (r.name = e.name), (n = e.protocols) != null && n.length && (r.protocols = e.protocols.map((a) => mr(a))), e.canChannelCapacity !== void 0 && (r.canChannelCapacity = g.toJSON(e.canChannelCapacity)), r;
|
|
1754
|
+
},
|
|
1755
|
+
create(e) {
|
|
1756
|
+
return J.fromPartial(e ?? {});
|
|
1757
|
+
},
|
|
1758
|
+
fromPartial(e) {
|
|
1759
|
+
var n;
|
|
1760
|
+
const r = Ee();
|
|
1761
|
+
return r.channelNumber = e.channelNumber ?? 0, r.channelNumberOnDevice = e.channelNumberOnDevice ?? 0, r.name = e.name ?? "", r.protocols = ((n = e.protocols) == null ? void 0 : n.map((a) => a)) || [], r.canChannelCapacity = e.canChannelCapacity !== void 0 && e.canChannelCapacity !== null ? g.fromPartial(e.canChannelCapacity) : void 0, r;
|
|
1762
|
+
}
|
|
1763
|
+
};
|
|
1764
|
+
function ve() {
|
|
1765
|
+
return { cardType: 0, cardNumber: 0, productCode: "", serialNumber: "", name: "", protocols: [], channels: [] };
|
|
1766
|
+
}
|
|
1767
|
+
const O = {
|
|
1768
|
+
encode(e, r = new u()) {
|
|
1769
|
+
e.cardType !== 0 && r.uint32(8).int32(e.cardType), e.cardNumber !== 0 && r.uint32(16).int32(e.cardNumber), e.productCode !== "" && r.uint32(26).string(e.productCode), e.serialNumber !== "" && r.uint32(34).string(e.serialNumber), e.name !== "" && r.uint32(42).string(e.name), r.uint32(50).fork();
|
|
1770
|
+
for (const n of e.protocols)
|
|
1771
|
+
r.int32(n);
|
|
1772
|
+
r.join();
|
|
1773
|
+
for (const n of e.channels)
|
|
1774
|
+
J.encode(n, r.uint32(58).fork()).join();
|
|
1775
|
+
return r;
|
|
1776
|
+
},
|
|
1777
|
+
decode(e, r) {
|
|
1778
|
+
const n = e instanceof s ? e : new s(e);
|
|
1779
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
1780
|
+
const t = ve();
|
|
1781
|
+
for (; n.pos < a; ) {
|
|
1782
|
+
const i = n.uint32();
|
|
1783
|
+
switch (i >>> 3) {
|
|
1784
|
+
case 1: {
|
|
1785
|
+
if (i !== 8)
|
|
1786
|
+
break;
|
|
1787
|
+
t.cardType = n.int32();
|
|
1788
|
+
continue;
|
|
1789
|
+
}
|
|
1790
|
+
case 2: {
|
|
1791
|
+
if (i !== 16)
|
|
1792
|
+
break;
|
|
1793
|
+
t.cardNumber = n.int32();
|
|
1794
|
+
continue;
|
|
1795
|
+
}
|
|
1796
|
+
case 3: {
|
|
1797
|
+
if (i !== 26)
|
|
1798
|
+
break;
|
|
1799
|
+
t.productCode = n.string();
|
|
1800
|
+
continue;
|
|
1801
|
+
}
|
|
1802
|
+
case 4: {
|
|
1803
|
+
if (i !== 34)
|
|
1804
|
+
break;
|
|
1805
|
+
t.serialNumber = n.string();
|
|
1806
|
+
continue;
|
|
1807
|
+
}
|
|
1808
|
+
case 5: {
|
|
1809
|
+
if (i !== 42)
|
|
1810
|
+
break;
|
|
1811
|
+
t.name = n.string();
|
|
1812
|
+
continue;
|
|
1813
|
+
}
|
|
1814
|
+
case 6: {
|
|
1815
|
+
if (i === 48) {
|
|
1816
|
+
t.protocols.push(n.int32());
|
|
1817
|
+
continue;
|
|
1818
|
+
}
|
|
1819
|
+
if (i === 50) {
|
|
1820
|
+
const p = n.uint32() + n.pos;
|
|
1821
|
+
for (; n.pos < p; )
|
|
1822
|
+
t.protocols.push(n.int32());
|
|
1823
|
+
continue;
|
|
1824
|
+
}
|
|
1825
|
+
break;
|
|
1826
|
+
}
|
|
1827
|
+
case 7: {
|
|
1828
|
+
if (i !== 58)
|
|
1829
|
+
break;
|
|
1830
|
+
t.channels.push(J.decode(n, n.uint32()));
|
|
1831
|
+
continue;
|
|
1832
|
+
}
|
|
1833
|
+
}
|
|
1834
|
+
if ((i & 7) === 4 || i === 0)
|
|
1835
|
+
break;
|
|
1836
|
+
n.skip(i & 7);
|
|
1837
|
+
}
|
|
1838
|
+
return t;
|
|
1839
|
+
},
|
|
1840
|
+
fromJSON(e) {
|
|
1841
|
+
return {
|
|
1842
|
+
cardType: f(e.cardType) ? globalThis.Number(e.cardType) : 0,
|
|
1843
|
+
cardNumber: f(e.cardNumber) ? globalThis.Number(e.cardNumber) : 0,
|
|
1844
|
+
productCode: f(e.productCode) ? globalThis.String(e.productCode) : "",
|
|
1845
|
+
serialNumber: f(e.serialNumber) ? globalThis.String(e.serialNumber) : "",
|
|
1846
|
+
name: f(e.name) ? globalThis.String(e.name) : "",
|
|
1847
|
+
protocols: globalThis.Array.isArray(e == null ? void 0 : e.protocols) ? e.protocols.map((r) => Sr(r)) : [],
|
|
1848
|
+
channels: globalThis.Array.isArray(e == null ? void 0 : e.channels) ? e.channels.map((r) => J.fromJSON(r)) : []
|
|
1849
|
+
};
|
|
1850
|
+
},
|
|
1851
|
+
toJSON(e) {
|
|
1852
|
+
var n, a;
|
|
1853
|
+
const r = {};
|
|
1854
|
+
return e.cardType !== 0 && (r.cardType = Math.round(e.cardType)), e.cardNumber !== 0 && (r.cardNumber = Math.round(e.cardNumber)), e.productCode !== "" && (r.productCode = e.productCode), e.serialNumber !== "" && (r.serialNumber = e.serialNumber), e.name !== "" && (r.name = e.name), (n = e.protocols) != null && n.length && (r.protocols = e.protocols.map((t) => mr(t))), (a = e.channels) != null && a.length && (r.channels = e.channels.map((t) => J.toJSON(t))), r;
|
|
1855
|
+
},
|
|
1856
|
+
create(e) {
|
|
1857
|
+
return O.fromPartial(e ?? {});
|
|
1858
|
+
},
|
|
1859
|
+
fromPartial(e) {
|
|
1860
|
+
var n, a;
|
|
1861
|
+
const r = ve();
|
|
1862
|
+
return r.cardType = e.cardType ?? 0, r.cardNumber = e.cardNumber ?? 0, r.productCode = e.productCode ?? "", r.serialNumber = e.serialNumber ?? "", r.name = e.name ?? "", r.protocols = ((n = e.protocols) == null ? void 0 : n.map((t) => t)) || [], r.channels = ((a = e.channels) == null ? void 0 : a.map((t) => J.fromPartial(t))) || [], r;
|
|
1863
|
+
}
|
|
1864
|
+
};
|
|
1865
|
+
function Pe() {
|
|
1866
|
+
return { items: [] };
|
|
1867
|
+
}
|
|
1868
|
+
const x = {
|
|
1869
|
+
encode(e, r = new u()) {
|
|
1870
|
+
for (const n of e.items)
|
|
1871
|
+
O.encode(n, r.uint32(10).fork()).join();
|
|
1872
|
+
return r;
|
|
1873
|
+
},
|
|
1874
|
+
decode(e, r) {
|
|
1875
|
+
const n = e instanceof s ? e : new s(e);
|
|
1876
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
1877
|
+
const t = Pe();
|
|
1878
|
+
for (; n.pos < a; ) {
|
|
1879
|
+
const i = n.uint32();
|
|
1880
|
+
switch (i >>> 3) {
|
|
1881
|
+
case 1: {
|
|
1882
|
+
if (i !== 10)
|
|
1883
|
+
break;
|
|
1884
|
+
t.items.push(O.decode(n, n.uint32()));
|
|
1885
|
+
continue;
|
|
1886
|
+
}
|
|
1887
|
+
}
|
|
1888
|
+
if ((i & 7) === 4 || i === 0)
|
|
1889
|
+
break;
|
|
1890
|
+
n.skip(i & 7);
|
|
1891
|
+
}
|
|
1892
|
+
return t;
|
|
1893
|
+
},
|
|
1894
|
+
fromJSON(e) {
|
|
1895
|
+
return { items: globalThis.Array.isArray(e == null ? void 0 : e.items) ? e.items.map((r) => O.fromJSON(r)) : [] };
|
|
1896
|
+
},
|
|
1897
|
+
toJSON(e) {
|
|
1898
|
+
var n;
|
|
1899
|
+
const r = {};
|
|
1900
|
+
return (n = e.items) != null && n.length && (r.items = e.items.map((a) => O.toJSON(a))), r;
|
|
1901
|
+
},
|
|
1902
|
+
create(e) {
|
|
1903
|
+
return x.fromPartial(e ?? {});
|
|
1904
|
+
},
|
|
1905
|
+
fromPartial(e) {
|
|
1906
|
+
var n;
|
|
1907
|
+
const r = Pe();
|
|
1908
|
+
return r.items = ((n = e.items) == null ? void 0 : n.map((a) => O.fromPartial(a))) || [], r;
|
|
1909
|
+
}
|
|
1910
|
+
};
|
|
1911
|
+
function he() {
|
|
1912
|
+
return { preferences: void 0, includeVirtual: !1 };
|
|
1913
|
+
}
|
|
1914
|
+
const Hr = {
|
|
1915
|
+
encode(e, r = new u()) {
|
|
1916
|
+
return e.preferences !== void 0 && o.encode(e.preferences, r.uint32(10).fork()).join(), e.includeVirtual !== !1 && r.uint32(16).bool(e.includeVirtual), r;
|
|
1917
|
+
},
|
|
1918
|
+
decode(e, r) {
|
|
1919
|
+
const n = e instanceof s ? e : new s(e);
|
|
1920
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
1921
|
+
const t = he();
|
|
1922
|
+
for (; n.pos < a; ) {
|
|
1923
|
+
const i = n.uint32();
|
|
1924
|
+
switch (i >>> 3) {
|
|
1925
|
+
case 1: {
|
|
1926
|
+
if (i !== 10)
|
|
1927
|
+
break;
|
|
1928
|
+
t.preferences = o.decode(n, n.uint32());
|
|
1929
|
+
continue;
|
|
1930
|
+
}
|
|
1931
|
+
case 2: {
|
|
1932
|
+
if (i !== 16)
|
|
1933
|
+
break;
|
|
1934
|
+
t.includeVirtual = n.bool();
|
|
1935
|
+
continue;
|
|
1936
|
+
}
|
|
1937
|
+
}
|
|
1938
|
+
if ((i & 7) === 4 || i === 0)
|
|
1939
|
+
break;
|
|
1940
|
+
n.skip(i & 7);
|
|
1941
|
+
}
|
|
1942
|
+
return t;
|
|
1943
|
+
},
|
|
1944
|
+
fromJSON(e) {
|
|
1945
|
+
return {
|
|
1946
|
+
preferences: f(e.preferences) ? o.fromJSON(e.preferences) : void 0,
|
|
1947
|
+
includeVirtual: f(e.includeVirtual) ? globalThis.Boolean(e.includeVirtual) : !1
|
|
1948
|
+
};
|
|
1949
|
+
},
|
|
1950
|
+
toJSON(e) {
|
|
1951
|
+
const r = {};
|
|
1952
|
+
return e.preferences !== void 0 && (r.preferences = o.toJSON(e.preferences)), e.includeVirtual !== !1 && (r.includeVirtual = e.includeVirtual), r;
|
|
1953
|
+
},
|
|
1954
|
+
create(e) {
|
|
1955
|
+
return Hr.fromPartial(e ?? {});
|
|
1956
|
+
},
|
|
1957
|
+
fromPartial(e) {
|
|
1958
|
+
const r = he();
|
|
1959
|
+
return r.preferences = e.preferences !== void 0 && e.preferences !== null ? o.fromPartial(e.preferences) : void 0, r.includeVirtual = e.includeVirtual ?? !1, r;
|
|
1960
|
+
}
|
|
1961
|
+
};
|
|
1962
|
+
function Oe() {
|
|
1963
|
+
return { devices: [] };
|
|
1964
|
+
}
|
|
1965
|
+
const qr = {
|
|
1966
|
+
encode(e, r = new u()) {
|
|
1967
|
+
for (const n of e.devices)
|
|
1968
|
+
O.encode(n, r.uint32(10).fork()).join();
|
|
1969
|
+
return r;
|
|
1970
|
+
},
|
|
1971
|
+
decode(e, r) {
|
|
1972
|
+
const n = e instanceof s ? e : new s(e);
|
|
1973
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
1974
|
+
const t = Oe();
|
|
1975
|
+
for (; n.pos < a; ) {
|
|
1976
|
+
const i = n.uint32();
|
|
1977
|
+
switch (i >>> 3) {
|
|
1978
|
+
case 1: {
|
|
1979
|
+
if (i !== 10)
|
|
1980
|
+
break;
|
|
1981
|
+
t.devices.push(O.decode(n, n.uint32()));
|
|
1982
|
+
continue;
|
|
1983
|
+
}
|
|
1984
|
+
}
|
|
1985
|
+
if ((i & 7) === 4 || i === 0)
|
|
1986
|
+
break;
|
|
1987
|
+
n.skip(i & 7);
|
|
1988
|
+
}
|
|
1989
|
+
return t;
|
|
1990
|
+
},
|
|
1991
|
+
fromJSON(e) {
|
|
1992
|
+
return {
|
|
1993
|
+
devices: globalThis.Array.isArray(e == null ? void 0 : e.devices) ? e.devices.map((r) => O.fromJSON(r)) : []
|
|
1994
|
+
};
|
|
1995
|
+
},
|
|
1996
|
+
toJSON(e) {
|
|
1997
|
+
var n;
|
|
1998
|
+
const r = {};
|
|
1999
|
+
return (n = e.devices) != null && n.length && (r.devices = e.devices.map((a) => O.toJSON(a))), r;
|
|
2000
|
+
},
|
|
2001
|
+
create(e) {
|
|
2002
|
+
return qr.fromPartial(e ?? {});
|
|
2003
|
+
},
|
|
2004
|
+
fromPartial(e) {
|
|
2005
|
+
var n;
|
|
2006
|
+
const r = Oe();
|
|
2007
|
+
return r.devices = ((n = e.devices) == null ? void 0 : n.map((a) => O.fromPartial(a))) || [], r;
|
|
2008
|
+
}
|
|
2009
|
+
};
|
|
2010
|
+
function Ae() {
|
|
2011
|
+
return { preferences: void 0, channelNumber: 0 };
|
|
2012
|
+
}
|
|
2013
|
+
const wr = {
|
|
2014
|
+
encode(e, r = new u()) {
|
|
2015
|
+
return e.preferences !== void 0 && o.encode(e.preferences, r.uint32(10).fork()).join(), e.channelNumber !== 0 && r.uint32(16).int32(e.channelNumber), r;
|
|
2016
|
+
},
|
|
2017
|
+
decode(e, r) {
|
|
2018
|
+
const n = e instanceof s ? e : new s(e);
|
|
2019
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
2020
|
+
const t = Ae();
|
|
2021
|
+
for (; n.pos < a; ) {
|
|
2022
|
+
const i = n.uint32();
|
|
2023
|
+
switch (i >>> 3) {
|
|
2024
|
+
case 1: {
|
|
2025
|
+
if (i !== 10)
|
|
2026
|
+
break;
|
|
2027
|
+
t.preferences = o.decode(n, n.uint32());
|
|
2028
|
+
continue;
|
|
2029
|
+
}
|
|
2030
|
+
case 2: {
|
|
2031
|
+
if (i !== 16)
|
|
2032
|
+
break;
|
|
2033
|
+
t.channelNumber = n.int32();
|
|
2034
|
+
continue;
|
|
2035
|
+
}
|
|
2036
|
+
}
|
|
2037
|
+
if ((i & 7) === 4 || i === 0)
|
|
2038
|
+
break;
|
|
2039
|
+
n.skip(i & 7);
|
|
2040
|
+
}
|
|
2041
|
+
return t;
|
|
2042
|
+
},
|
|
2043
|
+
fromJSON(e) {
|
|
2044
|
+
return {
|
|
2045
|
+
preferences: f(e.preferences) ? o.fromJSON(e.preferences) : void 0,
|
|
2046
|
+
channelNumber: f(e.channelNumber) ? globalThis.Number(e.channelNumber) : 0
|
|
2047
|
+
};
|
|
2048
|
+
},
|
|
2049
|
+
toJSON(e) {
|
|
2050
|
+
const r = {};
|
|
2051
|
+
return e.preferences !== void 0 && (r.preferences = o.toJSON(e.preferences)), e.channelNumber !== 0 && (r.channelNumber = Math.round(e.channelNumber)), r;
|
|
2052
|
+
},
|
|
2053
|
+
create(e) {
|
|
2054
|
+
return wr.fromPartial(e ?? {});
|
|
2055
|
+
},
|
|
2056
|
+
fromPartial(e) {
|
|
2057
|
+
const r = Ae();
|
|
2058
|
+
return r.preferences = e.preferences !== void 0 && e.preferences !== null ? o.fromPartial(e.preferences) : void 0, r.channelNumber = e.channelNumber ?? 0, r;
|
|
2059
|
+
}
|
|
2060
|
+
};
|
|
2061
|
+
function _e() {
|
|
2062
|
+
return { availableBusSpeeds: [], availableBusSpeedsFd: [] };
|
|
2063
|
+
}
|
|
2064
|
+
const Zr = {
|
|
2065
|
+
encode(e, r = new u()) {
|
|
2066
|
+
for (const n of e.availableBusSpeeds)
|
|
2067
|
+
P.encode(n, r.uint32(10).fork()).join();
|
|
2068
|
+
for (const n of e.availableBusSpeedsFd)
|
|
2069
|
+
h.encode(n, r.uint32(18).fork()).join();
|
|
2070
|
+
return r;
|
|
2071
|
+
},
|
|
2072
|
+
decode(e, r) {
|
|
2073
|
+
const n = e instanceof s ? e : new s(e);
|
|
2074
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
2075
|
+
const t = _e();
|
|
2076
|
+
for (; n.pos < a; ) {
|
|
2077
|
+
const i = n.uint32();
|
|
2078
|
+
switch (i >>> 3) {
|
|
2079
|
+
case 1: {
|
|
2080
|
+
if (i !== 10)
|
|
2081
|
+
break;
|
|
2082
|
+
t.availableBusSpeeds.push(P.decode(n, n.uint32()));
|
|
2083
|
+
continue;
|
|
2084
|
+
}
|
|
2085
|
+
case 2: {
|
|
2086
|
+
if (i !== 18)
|
|
2087
|
+
break;
|
|
2088
|
+
t.availableBusSpeedsFd.push(h.decode(n, n.uint32()));
|
|
2089
|
+
continue;
|
|
2090
|
+
}
|
|
2091
|
+
}
|
|
2092
|
+
if ((i & 7) === 4 || i === 0)
|
|
2093
|
+
break;
|
|
2094
|
+
n.skip(i & 7);
|
|
2095
|
+
}
|
|
2096
|
+
return t;
|
|
2097
|
+
},
|
|
2098
|
+
fromJSON(e) {
|
|
2099
|
+
return {
|
|
2100
|
+
availableBusSpeeds: globalThis.Array.isArray(e == null ? void 0 : e.availableBusSpeeds) ? e.availableBusSpeeds.map((r) => P.fromJSON(r)) : [],
|
|
2101
|
+
availableBusSpeedsFd: globalThis.Array.isArray(e == null ? void 0 : e.availableBusSpeedsFd) ? e.availableBusSpeedsFd.map((r) => h.fromJSON(r)) : []
|
|
2102
|
+
};
|
|
2103
|
+
},
|
|
2104
|
+
toJSON(e) {
|
|
2105
|
+
var n, a;
|
|
2106
|
+
const r = {};
|
|
2107
|
+
return (n = e.availableBusSpeeds) != null && n.length && (r.availableBusSpeeds = e.availableBusSpeeds.map((t) => P.toJSON(t))), (a = e.availableBusSpeedsFd) != null && a.length && (r.availableBusSpeedsFd = e.availableBusSpeedsFd.map((t) => h.toJSON(t))), r;
|
|
2108
|
+
},
|
|
2109
|
+
create(e) {
|
|
2110
|
+
return Zr.fromPartial(e ?? {});
|
|
2111
|
+
},
|
|
2112
|
+
fromPartial(e) {
|
|
2113
|
+
var n, a;
|
|
2114
|
+
const r = _e();
|
|
2115
|
+
return r.availableBusSpeeds = ((n = e.availableBusSpeeds) == null ? void 0 : n.map((t) => P.fromPartial(t))) || [], r.availableBusSpeedsFd = ((a = e.availableBusSpeedsFd) == null ? void 0 : a.map((t) => h.fromPartial(t))) || [], r;
|
|
2116
|
+
}
|
|
2117
|
+
};
|
|
2118
|
+
function Te() {
|
|
2119
|
+
return { preferences: void 0, channelNumber: 0, bitRates: [] };
|
|
2120
|
+
}
|
|
2121
|
+
const Wr = {
|
|
2122
|
+
encode(e, r = new u()) {
|
|
2123
|
+
e.preferences !== void 0 && o.encode(e.preferences, r.uint32(10).fork()).join(), e.channelNumber !== 0 && r.uint32(16).int32(e.channelNumber), r.uint32(26).fork();
|
|
2124
|
+
for (const n of e.bitRates)
|
|
2125
|
+
r.int32(n);
|
|
2126
|
+
return r.join(), r;
|
|
2127
|
+
},
|
|
2128
|
+
decode(e, r) {
|
|
2129
|
+
const n = e instanceof s ? e : new s(e);
|
|
2130
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
2131
|
+
const t = Te();
|
|
2132
|
+
for (; n.pos < a; ) {
|
|
2133
|
+
const i = n.uint32();
|
|
2134
|
+
switch (i >>> 3) {
|
|
2135
|
+
case 1: {
|
|
2136
|
+
if (i !== 10)
|
|
2137
|
+
break;
|
|
2138
|
+
t.preferences = o.decode(n, n.uint32());
|
|
2139
|
+
continue;
|
|
2140
|
+
}
|
|
2141
|
+
case 2: {
|
|
2142
|
+
if (i !== 16)
|
|
2143
|
+
break;
|
|
2144
|
+
t.channelNumber = n.int32();
|
|
2145
|
+
continue;
|
|
2146
|
+
}
|
|
2147
|
+
case 3: {
|
|
2148
|
+
if (i === 24) {
|
|
2149
|
+
t.bitRates.push(n.int32());
|
|
2150
|
+
continue;
|
|
2151
|
+
}
|
|
2152
|
+
if (i === 26) {
|
|
2153
|
+
const p = n.uint32() + n.pos;
|
|
2154
|
+
for (; n.pos < p; )
|
|
2155
|
+
t.bitRates.push(n.int32());
|
|
2156
|
+
continue;
|
|
2157
|
+
}
|
|
2158
|
+
break;
|
|
2159
|
+
}
|
|
2160
|
+
}
|
|
2161
|
+
if ((i & 7) === 4 || i === 0)
|
|
2162
|
+
break;
|
|
2163
|
+
n.skip(i & 7);
|
|
2164
|
+
}
|
|
2165
|
+
return t;
|
|
2166
|
+
},
|
|
2167
|
+
fromJSON(e) {
|
|
2168
|
+
return {
|
|
2169
|
+
preferences: f(e.preferences) ? o.fromJSON(e.preferences) : void 0,
|
|
2170
|
+
channelNumber: f(e.channelNumber) ? globalThis.Number(e.channelNumber) : 0,
|
|
2171
|
+
bitRates: globalThis.Array.isArray(e == null ? void 0 : e.bitRates) ? e.bitRates.map((r) => globalThis.Number(r)) : []
|
|
2172
|
+
};
|
|
2173
|
+
},
|
|
2174
|
+
toJSON(e) {
|
|
2175
|
+
var n;
|
|
2176
|
+
const r = {};
|
|
2177
|
+
return e.preferences !== void 0 && (r.preferences = o.toJSON(e.preferences)), e.channelNumber !== 0 && (r.channelNumber = Math.round(e.channelNumber)), (n = e.bitRates) != null && n.length && (r.bitRates = e.bitRates.map((a) => Math.round(a))), r;
|
|
2178
|
+
},
|
|
2179
|
+
create(e) {
|
|
2180
|
+
return Wr.fromPartial(e ?? {});
|
|
2181
|
+
},
|
|
2182
|
+
fromPartial(e) {
|
|
2183
|
+
var n;
|
|
2184
|
+
const r = Te();
|
|
2185
|
+
return r.preferences = e.preferences !== void 0 && e.preferences !== null ? o.fromPartial(e.preferences) : void 0, r.channelNumber = e.channelNumber ?? 0, r.bitRates = ((n = e.bitRates) == null ? void 0 : n.map((a) => a)) || [], r;
|
|
2186
|
+
}
|
|
2187
|
+
};
|
|
2188
|
+
function Ce() {
|
|
2189
|
+
return { availableBusSpeeds: [] };
|
|
2190
|
+
}
|
|
2191
|
+
const Kr = {
|
|
2192
|
+
encode(e, r = new u()) {
|
|
2193
|
+
for (const n of e.availableBusSpeeds)
|
|
2194
|
+
P.encode(n, r.uint32(10).fork()).join();
|
|
2195
|
+
return r;
|
|
2196
|
+
},
|
|
2197
|
+
decode(e, r) {
|
|
2198
|
+
const n = e instanceof s ? e : new s(e);
|
|
2199
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
2200
|
+
const t = Ce();
|
|
2201
|
+
for (; n.pos < a; ) {
|
|
2202
|
+
const i = n.uint32();
|
|
2203
|
+
switch (i >>> 3) {
|
|
2204
|
+
case 1: {
|
|
2205
|
+
if (i !== 10)
|
|
2206
|
+
break;
|
|
2207
|
+
t.availableBusSpeeds.push(P.decode(n, n.uint32()));
|
|
2208
|
+
continue;
|
|
2209
|
+
}
|
|
2210
|
+
}
|
|
2211
|
+
if ((i & 7) === 4 || i === 0)
|
|
2212
|
+
break;
|
|
2213
|
+
n.skip(i & 7);
|
|
2214
|
+
}
|
|
2215
|
+
return t;
|
|
2216
|
+
},
|
|
2217
|
+
fromJSON(e) {
|
|
2218
|
+
return {
|
|
2219
|
+
availableBusSpeeds: globalThis.Array.isArray(e == null ? void 0 : e.availableBusSpeeds) ? e.availableBusSpeeds.map((r) => P.fromJSON(r)) : []
|
|
2220
|
+
};
|
|
2221
|
+
},
|
|
2222
|
+
toJSON(e) {
|
|
2223
|
+
var n;
|
|
2224
|
+
const r = {};
|
|
2225
|
+
return (n = e.availableBusSpeeds) != null && n.length && (r.availableBusSpeeds = e.availableBusSpeeds.map((a) => P.toJSON(a))), r;
|
|
2226
|
+
},
|
|
2227
|
+
create(e) {
|
|
2228
|
+
return Kr.fromPartial(e ?? {});
|
|
2229
|
+
},
|
|
2230
|
+
fromPartial(e) {
|
|
2231
|
+
var n;
|
|
2232
|
+
const r = Ce();
|
|
2233
|
+
return r.availableBusSpeeds = ((n = e.availableBusSpeeds) == null ? void 0 : n.map((a) => P.fromPartial(a))) || [], r;
|
|
2234
|
+
}
|
|
2235
|
+
};
|
|
2236
|
+
function Re() {
|
|
2237
|
+
return { preferences: void 0, channelNumber: 0, bitRatesArbitrationPhase: [], bitRatesDataPhase: [] };
|
|
2238
|
+
}
|
|
2239
|
+
const Qr = {
|
|
2240
|
+
encode(e, r = new u()) {
|
|
2241
|
+
e.preferences !== void 0 && o.encode(e.preferences, r.uint32(10).fork()).join(), e.channelNumber !== 0 && r.uint32(16).int32(e.channelNumber), r.uint32(26).fork();
|
|
2242
|
+
for (const n of e.bitRatesArbitrationPhase)
|
|
2243
|
+
r.int32(n);
|
|
2244
|
+
r.join(), r.uint32(34).fork();
|
|
2245
|
+
for (const n of e.bitRatesDataPhase)
|
|
2246
|
+
r.int32(n);
|
|
2247
|
+
return r.join(), r;
|
|
2248
|
+
},
|
|
2249
|
+
decode(e, r) {
|
|
2250
|
+
const n = e instanceof s ? e : new s(e);
|
|
2251
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
2252
|
+
const t = Re();
|
|
2253
|
+
for (; n.pos < a; ) {
|
|
2254
|
+
const i = n.uint32();
|
|
2255
|
+
switch (i >>> 3) {
|
|
2256
|
+
case 1: {
|
|
2257
|
+
if (i !== 10)
|
|
2258
|
+
break;
|
|
2259
|
+
t.preferences = o.decode(n, n.uint32());
|
|
2260
|
+
continue;
|
|
2261
|
+
}
|
|
2262
|
+
case 2: {
|
|
2263
|
+
if (i !== 16)
|
|
2264
|
+
break;
|
|
2265
|
+
t.channelNumber = n.int32();
|
|
2266
|
+
continue;
|
|
2267
|
+
}
|
|
2268
|
+
case 3: {
|
|
2269
|
+
if (i === 24) {
|
|
2270
|
+
t.bitRatesArbitrationPhase.push(n.int32());
|
|
2271
|
+
continue;
|
|
2272
|
+
}
|
|
2273
|
+
if (i === 26) {
|
|
2274
|
+
const p = n.uint32() + n.pos;
|
|
2275
|
+
for (; n.pos < p; )
|
|
2276
|
+
t.bitRatesArbitrationPhase.push(n.int32());
|
|
2277
|
+
continue;
|
|
2278
|
+
}
|
|
2279
|
+
break;
|
|
2280
|
+
}
|
|
2281
|
+
case 4: {
|
|
2282
|
+
if (i === 32) {
|
|
2283
|
+
t.bitRatesDataPhase.push(n.int32());
|
|
2284
|
+
continue;
|
|
2285
|
+
}
|
|
2286
|
+
if (i === 34) {
|
|
2287
|
+
const p = n.uint32() + n.pos;
|
|
2288
|
+
for (; n.pos < p; )
|
|
2289
|
+
t.bitRatesDataPhase.push(n.int32());
|
|
2290
|
+
continue;
|
|
2291
|
+
}
|
|
2292
|
+
break;
|
|
2293
|
+
}
|
|
2294
|
+
}
|
|
2295
|
+
if ((i & 7) === 4 || i === 0)
|
|
2296
|
+
break;
|
|
2297
|
+
n.skip(i & 7);
|
|
2298
|
+
}
|
|
2299
|
+
return t;
|
|
2300
|
+
},
|
|
2301
|
+
fromJSON(e) {
|
|
2302
|
+
return {
|
|
2303
|
+
preferences: f(e.preferences) ? o.fromJSON(e.preferences) : void 0,
|
|
2304
|
+
channelNumber: f(e.channelNumber) ? globalThis.Number(e.channelNumber) : 0,
|
|
2305
|
+
bitRatesArbitrationPhase: globalThis.Array.isArray(e == null ? void 0 : e.bitRatesArbitrationPhase) ? e.bitRatesArbitrationPhase.map((r) => globalThis.Number(r)) : [],
|
|
2306
|
+
bitRatesDataPhase: globalThis.Array.isArray(e == null ? void 0 : e.bitRatesDataPhase) ? e.bitRatesDataPhase.map((r) => globalThis.Number(r)) : []
|
|
2307
|
+
};
|
|
2308
|
+
},
|
|
2309
|
+
toJSON(e) {
|
|
2310
|
+
var n, a;
|
|
2311
|
+
const r = {};
|
|
2312
|
+
return e.preferences !== void 0 && (r.preferences = o.toJSON(e.preferences)), e.channelNumber !== 0 && (r.channelNumber = Math.round(e.channelNumber)), (n = e.bitRatesArbitrationPhase) != null && n.length && (r.bitRatesArbitrationPhase = e.bitRatesArbitrationPhase.map((t) => Math.round(t))), (a = e.bitRatesDataPhase) != null && a.length && (r.bitRatesDataPhase = e.bitRatesDataPhase.map((t) => Math.round(t))), r;
|
|
2313
|
+
},
|
|
2314
|
+
create(e) {
|
|
2315
|
+
return Qr.fromPartial(e ?? {});
|
|
2316
|
+
},
|
|
2317
|
+
fromPartial(e) {
|
|
2318
|
+
var n, a;
|
|
2319
|
+
const r = Re();
|
|
2320
|
+
return r.preferences = e.preferences !== void 0 && e.preferences !== null ? o.fromPartial(e.preferences) : void 0, r.channelNumber = e.channelNumber ?? 0, r.bitRatesArbitrationPhase = ((n = e.bitRatesArbitrationPhase) == null ? void 0 : n.map((t) => t)) || [], r.bitRatesDataPhase = ((a = e.bitRatesDataPhase) == null ? void 0 : a.map((t) => t)) || [], r;
|
|
2321
|
+
}
|
|
2322
|
+
};
|
|
2323
|
+
function ke() {
|
|
2324
|
+
return { availableBusSpeedsFd: [] };
|
|
2325
|
+
}
|
|
2326
|
+
const Yr = {
|
|
2327
|
+
encode(e, r = new u()) {
|
|
2328
|
+
for (const n of e.availableBusSpeedsFd)
|
|
2329
|
+
h.encode(n, r.uint32(10).fork()).join();
|
|
2330
|
+
return r;
|
|
2331
|
+
},
|
|
2332
|
+
decode(e, r) {
|
|
2333
|
+
const n = e instanceof s ? e : new s(e);
|
|
2334
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
2335
|
+
const t = ke();
|
|
2336
|
+
for (; n.pos < a; ) {
|
|
2337
|
+
const i = n.uint32();
|
|
2338
|
+
switch (i >>> 3) {
|
|
2339
|
+
case 1: {
|
|
2340
|
+
if (i !== 10)
|
|
2341
|
+
break;
|
|
2342
|
+
t.availableBusSpeedsFd.push(h.decode(n, n.uint32()));
|
|
2343
|
+
continue;
|
|
2344
|
+
}
|
|
2345
|
+
}
|
|
2346
|
+
if ((i & 7) === 4 || i === 0)
|
|
2347
|
+
break;
|
|
2348
|
+
n.skip(i & 7);
|
|
2349
|
+
}
|
|
2350
|
+
return t;
|
|
2351
|
+
},
|
|
2352
|
+
fromJSON(e) {
|
|
2353
|
+
return {
|
|
2354
|
+
availableBusSpeedsFd: globalThis.Array.isArray(e == null ? void 0 : e.availableBusSpeedsFd) ? e.availableBusSpeedsFd.map((r) => h.fromJSON(r)) : []
|
|
2355
|
+
};
|
|
2356
|
+
},
|
|
2357
|
+
toJSON(e) {
|
|
2358
|
+
var n;
|
|
2359
|
+
const r = {};
|
|
2360
|
+
return (n = e.availableBusSpeedsFd) != null && n.length && (r.availableBusSpeedsFd = e.availableBusSpeedsFd.map((a) => h.toJSON(a))), r;
|
|
2361
|
+
},
|
|
2362
|
+
create(e) {
|
|
2363
|
+
return Yr.fromPartial(e ?? {});
|
|
2364
|
+
},
|
|
2365
|
+
fromPartial(e) {
|
|
2366
|
+
var n;
|
|
2367
|
+
const r = ke();
|
|
2368
|
+
return r.availableBusSpeedsFd = ((n = e.availableBusSpeedsFd) == null ? void 0 : n.map((a) => h.fromPartial(a))) || [], r;
|
|
2369
|
+
}
|
|
2370
|
+
};
|
|
2371
|
+
function Ie() {
|
|
2372
|
+
return { eventType: 0, devices: void 0 };
|
|
2373
|
+
}
|
|
2374
|
+
const Xr = {
|
|
2375
|
+
encode(e, r = new u()) {
|
|
2376
|
+
return e.eventType !== 0 && r.uint32(8).int32(e.eventType), e.devices !== void 0 && x.encode(e.devices, r.uint32(18).fork()).join(), r;
|
|
2377
|
+
},
|
|
2378
|
+
decode(e, r) {
|
|
2379
|
+
const n = e instanceof s ? e : new s(e);
|
|
2380
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
2381
|
+
const t = Ie();
|
|
2382
|
+
for (; n.pos < a; ) {
|
|
2383
|
+
const i = n.uint32();
|
|
2384
|
+
switch (i >>> 3) {
|
|
2385
|
+
case 1: {
|
|
2386
|
+
if (i !== 8)
|
|
2387
|
+
break;
|
|
2388
|
+
t.eventType = n.int32();
|
|
2389
|
+
continue;
|
|
2390
|
+
}
|
|
2391
|
+
case 2: {
|
|
2392
|
+
if (i !== 18)
|
|
2393
|
+
break;
|
|
2394
|
+
t.devices = x.decode(n, n.uint32());
|
|
2395
|
+
continue;
|
|
2396
|
+
}
|
|
2397
|
+
}
|
|
2398
|
+
if ((i & 7) === 4 || i === 0)
|
|
2399
|
+
break;
|
|
2400
|
+
n.skip(i & 7);
|
|
2401
|
+
}
|
|
2402
|
+
return t;
|
|
2403
|
+
},
|
|
2404
|
+
fromJSON(e) {
|
|
2405
|
+
return {
|
|
2406
|
+
eventType: f(e.eventType) ? Fr(e.eventType) : 0,
|
|
2407
|
+
devices: f(e.devices) ? x.fromJSON(e.devices) : void 0
|
|
2408
|
+
};
|
|
2409
|
+
},
|
|
2410
|
+
toJSON(e) {
|
|
2411
|
+
const r = {};
|
|
2412
|
+
return e.eventType !== 0 && (r.eventType = Ur(e.eventType)), e.devices !== void 0 && (r.devices = x.toJSON(e.devices)), r;
|
|
2413
|
+
},
|
|
2414
|
+
create(e) {
|
|
2415
|
+
return Xr.fromPartial(e ?? {});
|
|
2416
|
+
},
|
|
2417
|
+
fromPartial(e) {
|
|
2418
|
+
const r = Ie();
|
|
2419
|
+
return r.eventType = e.eventType ?? 0, r.devices = e.devices !== void 0 && e.devices !== null ? x.fromPartial(e.devices) : void 0, r;
|
|
2420
|
+
}
|
|
2421
|
+
};
|
|
2422
|
+
function f(e) {
|
|
2423
|
+
return e != null;
|
|
2424
|
+
}
|
|
2425
|
+
var $r = /* @__PURE__ */ ((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))($r || {});
|
|
2426
|
+
function zr(e) {
|
|
2427
|
+
switch (e) {
|
|
2428
|
+
case 0:
|
|
2429
|
+
case "MEASUREMENT_EVENT_UNSPECIFIED":
|
|
2430
|
+
return 0;
|
|
2431
|
+
case 1:
|
|
2432
|
+
case "MEASUREMENT_EVENT_MEASUREMENT_SETUP_CHANGED":
|
|
2433
|
+
return 1;
|
|
2434
|
+
case 2:
|
|
2435
|
+
case "MEASUREMENT_EVENT_ONLINE_STATUS_CHANGED":
|
|
2436
|
+
return 2;
|
|
2437
|
+
case 3:
|
|
2438
|
+
case "MEASUREMENT_EVENT_PERIODIC_TRANSMISSION_STARTED":
|
|
2439
|
+
return 3;
|
|
2440
|
+
case 4:
|
|
2441
|
+
case "MEASUREMENT_EVENT_PERIODIC_TRANSMISSION_STOPPED":
|
|
2442
|
+
return 4;
|
|
2443
|
+
case -1:
|
|
2444
|
+
case "UNRECOGNIZED":
|
|
2445
|
+
default:
|
|
2446
|
+
return -1;
|
|
2447
|
+
}
|
|
2448
|
+
}
|
|
2449
|
+
function jr(e) {
|
|
2450
|
+
switch (e) {
|
|
2451
|
+
case 0:
|
|
2452
|
+
return "MEASUREMENT_EVENT_UNSPECIFIED";
|
|
2453
|
+
case 1:
|
|
2454
|
+
return "MEASUREMENT_EVENT_MEASUREMENT_SETUP_CHANGED";
|
|
2455
|
+
case 2:
|
|
2456
|
+
return "MEASUREMENT_EVENT_ONLINE_STATUS_CHANGED";
|
|
2457
|
+
case 3:
|
|
2458
|
+
return "MEASUREMENT_EVENT_PERIODIC_TRANSMISSION_STARTED";
|
|
2459
|
+
case 4:
|
|
2460
|
+
return "MEASUREMENT_EVENT_PERIODIC_TRANSMISSION_STOPPED";
|
|
2461
|
+
case -1:
|
|
2462
|
+
default:
|
|
2463
|
+
return "UNRECOGNIZED";
|
|
2464
|
+
}
|
|
2465
|
+
}
|
|
2466
|
+
function Le() {
|
|
2467
|
+
return { preferences: void 0, setup: void 0 };
|
|
2468
|
+
}
|
|
2469
|
+
const en = {
|
|
2470
|
+
encode(e, r = new u()) {
|
|
2471
|
+
return e.preferences !== void 0 && o.encode(e.preferences, r.uint32(10).fork()).join(), e.setup !== void 0 && A.encode(e.setup, r.uint32(18).fork()).join(), r;
|
|
2472
|
+
},
|
|
2473
|
+
decode(e, r) {
|
|
2474
|
+
const n = e instanceof s ? e : new s(e);
|
|
2475
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
2476
|
+
const t = Le();
|
|
2477
|
+
for (; n.pos < a; ) {
|
|
2478
|
+
const i = n.uint32();
|
|
2479
|
+
switch (i >>> 3) {
|
|
2480
|
+
case 1: {
|
|
2481
|
+
if (i !== 10)
|
|
2482
|
+
break;
|
|
2483
|
+
t.preferences = o.decode(n, n.uint32());
|
|
2484
|
+
continue;
|
|
2485
|
+
}
|
|
2486
|
+
case 2: {
|
|
2487
|
+
if (i !== 18)
|
|
2488
|
+
break;
|
|
2489
|
+
t.setup = A.decode(n, n.uint32());
|
|
2490
|
+
continue;
|
|
2491
|
+
}
|
|
2492
|
+
}
|
|
2493
|
+
if ((i & 7) === 4 || i === 0)
|
|
2494
|
+
break;
|
|
2495
|
+
n.skip(i & 7);
|
|
2496
|
+
}
|
|
2497
|
+
return t;
|
|
2498
|
+
},
|
|
2499
|
+
fromJSON(e) {
|
|
2500
|
+
return {
|
|
2501
|
+
preferences: c(e.preferences) ? o.fromJSON(e.preferences) : void 0,
|
|
2502
|
+
setup: c(e.setup) ? A.fromJSON(e.setup) : void 0
|
|
2503
|
+
};
|
|
2504
|
+
},
|
|
2505
|
+
toJSON(e) {
|
|
2506
|
+
const r = {};
|
|
2507
|
+
return e.preferences !== void 0 && (r.preferences = o.toJSON(e.preferences)), e.setup !== void 0 && (r.setup = A.toJSON(e.setup)), r;
|
|
2508
|
+
},
|
|
2509
|
+
create(e) {
|
|
2510
|
+
return en.fromPartial(e ?? {});
|
|
2511
|
+
},
|
|
2512
|
+
fromPartial(e) {
|
|
2513
|
+
const r = Le();
|
|
2514
|
+
return r.preferences = e.preferences !== void 0 && e.preferences !== null ? o.fromPartial(e.preferences) : void 0, r.setup = e.setup !== void 0 && e.setup !== null ? A.fromPartial(e.setup) : void 0, r;
|
|
2515
|
+
}
|
|
2516
|
+
};
|
|
2517
|
+
function ge() {
|
|
2518
|
+
return { preferences: void 0, configuration: void 0 };
|
|
2519
|
+
}
|
|
2520
|
+
const rn = {
|
|
2521
|
+
encode(e, r = new u()) {
|
|
2522
|
+
return e.preferences !== void 0 && o.encode(e.preferences, r.uint32(10).fork()).join(), e.configuration !== void 0 && F.encode(e.configuration, r.uint32(18).fork()).join(), r;
|
|
2523
|
+
},
|
|
2524
|
+
decode(e, r) {
|
|
2525
|
+
const n = e instanceof s ? e : new s(e);
|
|
2526
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
2527
|
+
const t = ge();
|
|
2528
|
+
for (; n.pos < a; ) {
|
|
2529
|
+
const i = n.uint32();
|
|
2530
|
+
switch (i >>> 3) {
|
|
2531
|
+
case 1: {
|
|
2532
|
+
if (i !== 10)
|
|
2533
|
+
break;
|
|
2534
|
+
t.preferences = o.decode(n, n.uint32());
|
|
2535
|
+
continue;
|
|
2536
|
+
}
|
|
2537
|
+
case 2: {
|
|
2538
|
+
if (i !== 18)
|
|
2539
|
+
break;
|
|
2540
|
+
t.configuration = F.decode(n, n.uint32());
|
|
2541
|
+
continue;
|
|
2542
|
+
}
|
|
2543
|
+
}
|
|
2544
|
+
if ((i & 7) === 4 || i === 0)
|
|
2545
|
+
break;
|
|
2546
|
+
n.skip(i & 7);
|
|
2547
|
+
}
|
|
2548
|
+
return t;
|
|
2549
|
+
},
|
|
2550
|
+
fromJSON(e) {
|
|
2551
|
+
return {
|
|
2552
|
+
preferences: c(e.preferences) ? o.fromJSON(e.preferences) : void 0,
|
|
2553
|
+
configuration: c(e.configuration) ? F.fromJSON(e.configuration) : void 0
|
|
2554
|
+
};
|
|
2555
|
+
},
|
|
2556
|
+
toJSON(e) {
|
|
2557
|
+
const r = {};
|
|
2558
|
+
return e.preferences !== void 0 && (r.preferences = o.toJSON(e.preferences)), e.configuration !== void 0 && (r.configuration = F.toJSON(e.configuration)), r;
|
|
2559
|
+
},
|
|
2560
|
+
create(e) {
|
|
2561
|
+
return rn.fromPartial(e ?? {});
|
|
2562
|
+
},
|
|
2563
|
+
fromPartial(e) {
|
|
2564
|
+
const r = ge();
|
|
2565
|
+
return r.preferences = e.preferences !== void 0 && e.preferences !== null ? o.fromPartial(e.preferences) : void 0, r.configuration = e.configuration !== void 0 && e.configuration !== null ? F.fromPartial(e.configuration) : void 0, r;
|
|
2566
|
+
}
|
|
2567
|
+
};
|
|
2568
|
+
function Je() {
|
|
2569
|
+
return { preferences: void 0, configuration: void 0 };
|
|
2570
|
+
}
|
|
2571
|
+
const nn = {
|
|
2572
|
+
encode(e, r = new u()) {
|
|
2573
|
+
return e.preferences !== void 0 && o.encode(e.preferences, r.uint32(10).fork()).join(), e.configuration !== void 0 && U.encode(e.configuration, r.uint32(18).fork()).join(), r;
|
|
2574
|
+
},
|
|
2575
|
+
decode(e, r) {
|
|
2576
|
+
const n = e instanceof s ? e : new s(e);
|
|
2577
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
2578
|
+
const t = Je();
|
|
2579
|
+
for (; n.pos < a; ) {
|
|
2580
|
+
const i = n.uint32();
|
|
2581
|
+
switch (i >>> 3) {
|
|
2582
|
+
case 1: {
|
|
2583
|
+
if (i !== 10)
|
|
2584
|
+
break;
|
|
2585
|
+
t.preferences = o.decode(n, n.uint32());
|
|
2586
|
+
continue;
|
|
2587
|
+
}
|
|
2588
|
+
case 2: {
|
|
2589
|
+
if (i !== 18)
|
|
2590
|
+
break;
|
|
2591
|
+
t.configuration = U.decode(n, n.uint32());
|
|
2592
|
+
continue;
|
|
2593
|
+
}
|
|
2594
|
+
}
|
|
2595
|
+
if ((i & 7) === 4 || i === 0)
|
|
2596
|
+
break;
|
|
2597
|
+
n.skip(i & 7);
|
|
2598
|
+
}
|
|
2599
|
+
return t;
|
|
2600
|
+
},
|
|
2601
|
+
fromJSON(e) {
|
|
2602
|
+
return {
|
|
2603
|
+
preferences: c(e.preferences) ? o.fromJSON(e.preferences) : void 0,
|
|
2604
|
+
configuration: c(e.configuration) ? U.fromJSON(e.configuration) : void 0
|
|
2605
|
+
};
|
|
2606
|
+
},
|
|
2607
|
+
toJSON(e) {
|
|
2608
|
+
const r = {};
|
|
2609
|
+
return e.preferences !== void 0 && (r.preferences = o.toJSON(e.preferences)), e.configuration !== void 0 && (r.configuration = U.toJSON(e.configuration)), r;
|
|
2610
|
+
},
|
|
2611
|
+
create(e) {
|
|
2612
|
+
return nn.fromPartial(e ?? {});
|
|
2613
|
+
},
|
|
2614
|
+
fromPartial(e) {
|
|
2615
|
+
const r = Je();
|
|
2616
|
+
return r.preferences = e.preferences !== void 0 && e.preferences !== null ? o.fromPartial(e.preferences) : void 0, r.configuration = e.configuration !== void 0 && e.configuration !== null ? U.fromPartial(e.configuration) : void 0, r;
|
|
2617
|
+
}
|
|
2618
|
+
};
|
|
2619
|
+
function xe() {
|
|
2620
|
+
return { preferences: void 0, source: void 0, replaceAllProperties: !1 };
|
|
2621
|
+
}
|
|
2622
|
+
const tn = {
|
|
2623
|
+
encode(e, r = new u()) {
|
|
2624
|
+
return e.preferences !== void 0 && o.encode(e.preferences, r.uint32(10).fork()).join(), e.source !== void 0 && _.encode(e.source, r.uint32(18).fork()).join(), e.replaceAllProperties !== !1 && r.uint32(24).bool(e.replaceAllProperties), r;
|
|
2625
|
+
},
|
|
2626
|
+
decode(e, r) {
|
|
2627
|
+
const n = e instanceof s ? e : new s(e);
|
|
2628
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
2629
|
+
const t = xe();
|
|
2630
|
+
for (; n.pos < a; ) {
|
|
2631
|
+
const i = n.uint32();
|
|
2632
|
+
switch (i >>> 3) {
|
|
2633
|
+
case 1: {
|
|
2634
|
+
if (i !== 10)
|
|
2635
|
+
break;
|
|
2636
|
+
t.preferences = o.decode(n, n.uint32());
|
|
2637
|
+
continue;
|
|
2638
|
+
}
|
|
2639
|
+
case 2: {
|
|
2640
|
+
if (i !== 18)
|
|
2641
|
+
break;
|
|
2642
|
+
t.source = _.decode(n, n.uint32());
|
|
2643
|
+
continue;
|
|
2644
|
+
}
|
|
2645
|
+
case 3: {
|
|
2646
|
+
if (i !== 24)
|
|
2647
|
+
break;
|
|
2648
|
+
t.replaceAllProperties = n.bool();
|
|
2649
|
+
continue;
|
|
2650
|
+
}
|
|
2651
|
+
}
|
|
2652
|
+
if ((i & 7) === 4 || i === 0)
|
|
2653
|
+
break;
|
|
2654
|
+
n.skip(i & 7);
|
|
2655
|
+
}
|
|
2656
|
+
return t;
|
|
2657
|
+
},
|
|
2658
|
+
fromJSON(e) {
|
|
2659
|
+
return {
|
|
2660
|
+
preferences: c(e.preferences) ? o.fromJSON(e.preferences) : void 0,
|
|
2661
|
+
source: c(e.source) ? _.fromJSON(e.source) : void 0,
|
|
2662
|
+
replaceAllProperties: c(e.replaceAllProperties) ? globalThis.Boolean(e.replaceAllProperties) : !1
|
|
2663
|
+
};
|
|
2664
|
+
},
|
|
2665
|
+
toJSON(e) {
|
|
2666
|
+
const r = {};
|
|
2667
|
+
return e.preferences !== void 0 && (r.preferences = o.toJSON(e.preferences)), e.source !== void 0 && (r.source = _.toJSON(e.source)), e.replaceAllProperties !== !1 && (r.replaceAllProperties = e.replaceAllProperties), r;
|
|
2668
|
+
},
|
|
2669
|
+
create(e) {
|
|
2670
|
+
return tn.fromPartial(e ?? {});
|
|
2671
|
+
},
|
|
2672
|
+
fromPartial(e) {
|
|
2673
|
+
const r = xe();
|
|
2674
|
+
return r.preferences = e.preferences !== void 0 && e.preferences !== null ? o.fromPartial(e.preferences) : void 0, r.source = e.source !== void 0 && e.source !== null ? _.fromPartial(e.source) : void 0, r.replaceAllProperties = e.replaceAllProperties ?? !1, r;
|
|
2675
|
+
}
|
|
2676
|
+
};
|
|
2677
|
+
function De() {
|
|
2678
|
+
return { source: void 0 };
|
|
2679
|
+
}
|
|
2680
|
+
const an = {
|
|
2681
|
+
encode(e, r = new u()) {
|
|
2682
|
+
return e.source !== void 0 && _.encode(e.source, r.uint32(10).fork()).join(), r;
|
|
2683
|
+
},
|
|
2684
|
+
decode(e, r) {
|
|
2685
|
+
const n = e instanceof s ? e : new s(e);
|
|
2686
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
2687
|
+
const t = De();
|
|
2688
|
+
for (; n.pos < a; ) {
|
|
2689
|
+
const i = n.uint32();
|
|
2690
|
+
switch (i >>> 3) {
|
|
2691
|
+
case 1: {
|
|
2692
|
+
if (i !== 10)
|
|
2693
|
+
break;
|
|
2694
|
+
t.source = _.decode(n, n.uint32());
|
|
2695
|
+
continue;
|
|
2696
|
+
}
|
|
2697
|
+
}
|
|
2698
|
+
if ((i & 7) === 4 || i === 0)
|
|
2699
|
+
break;
|
|
2700
|
+
n.skip(i & 7);
|
|
2701
|
+
}
|
|
2702
|
+
return t;
|
|
2703
|
+
},
|
|
2704
|
+
fromJSON(e) {
|
|
2705
|
+
return { source: c(e.source) ? _.fromJSON(e.source) : void 0 };
|
|
2706
|
+
},
|
|
2707
|
+
toJSON(e) {
|
|
2708
|
+
const r = {};
|
|
2709
|
+
return e.source !== void 0 && (r.source = _.toJSON(e.source)), r;
|
|
2710
|
+
},
|
|
2711
|
+
create(e) {
|
|
2712
|
+
return an.fromPartial(e ?? {});
|
|
2713
|
+
},
|
|
2714
|
+
fromPartial(e) {
|
|
2715
|
+
const r = De();
|
|
2716
|
+
return r.source = e.source !== void 0 && e.source !== null ? _.fromPartial(e.source) : void 0, r;
|
|
2717
|
+
}
|
|
2718
|
+
};
|
|
2719
|
+
function Me() {
|
|
2720
|
+
return {
|
|
2721
|
+
preferences: void 0,
|
|
2722
|
+
dataProcessor: void 0,
|
|
2723
|
+
previousNode: "",
|
|
2724
|
+
nextNode: "",
|
|
2725
|
+
replaceAllProperties: !1
|
|
2726
|
+
};
|
|
2727
|
+
}
|
|
2728
|
+
const on = {
|
|
2729
|
+
encode(e, r = new u()) {
|
|
2730
|
+
return e.preferences !== void 0 && o.encode(e.preferences, r.uint32(10).fork()).join(), e.dataProcessor !== void 0 && T.encode(e.dataProcessor, r.uint32(18).fork()).join(), e.previousNode !== "" && r.uint32(26).string(e.previousNode), e.nextNode !== "" && r.uint32(34).string(e.nextNode), e.replaceAllProperties !== !1 && r.uint32(40).bool(e.replaceAllProperties), r;
|
|
2731
|
+
},
|
|
2732
|
+
decode(e, r) {
|
|
2733
|
+
const n = e instanceof s ? e : new s(e);
|
|
2734
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
2735
|
+
const t = Me();
|
|
2736
|
+
for (; n.pos < a; ) {
|
|
2737
|
+
const i = n.uint32();
|
|
2738
|
+
switch (i >>> 3) {
|
|
2739
|
+
case 1: {
|
|
2740
|
+
if (i !== 10)
|
|
2741
|
+
break;
|
|
2742
|
+
t.preferences = o.decode(n, n.uint32());
|
|
2743
|
+
continue;
|
|
2744
|
+
}
|
|
2745
|
+
case 2: {
|
|
2746
|
+
if (i !== 18)
|
|
2747
|
+
break;
|
|
2748
|
+
t.dataProcessor = T.decode(n, n.uint32());
|
|
2749
|
+
continue;
|
|
2750
|
+
}
|
|
2751
|
+
case 3: {
|
|
2752
|
+
if (i !== 26)
|
|
2753
|
+
break;
|
|
2754
|
+
t.previousNode = n.string();
|
|
2755
|
+
continue;
|
|
2756
|
+
}
|
|
2757
|
+
case 4: {
|
|
2758
|
+
if (i !== 34)
|
|
2759
|
+
break;
|
|
2760
|
+
t.nextNode = n.string();
|
|
2761
|
+
continue;
|
|
2762
|
+
}
|
|
2763
|
+
case 5: {
|
|
2764
|
+
if (i !== 40)
|
|
2765
|
+
break;
|
|
2766
|
+
t.replaceAllProperties = n.bool();
|
|
2767
|
+
continue;
|
|
2768
|
+
}
|
|
2769
|
+
}
|
|
2770
|
+
if ((i & 7) === 4 || i === 0)
|
|
2771
|
+
break;
|
|
2772
|
+
n.skip(i & 7);
|
|
2773
|
+
}
|
|
2774
|
+
return t;
|
|
2775
|
+
},
|
|
2776
|
+
fromJSON(e) {
|
|
2777
|
+
return {
|
|
2778
|
+
preferences: c(e.preferences) ? o.fromJSON(e.preferences) : void 0,
|
|
2779
|
+
dataProcessor: c(e.dataProcessor) ? T.fromJSON(e.dataProcessor) : void 0,
|
|
2780
|
+
previousNode: c(e.previousNode) ? globalThis.String(e.previousNode) : "",
|
|
2781
|
+
nextNode: c(e.nextNode) ? globalThis.String(e.nextNode) : "",
|
|
2782
|
+
replaceAllProperties: c(e.replaceAllProperties) ? globalThis.Boolean(e.replaceAllProperties) : !1
|
|
2783
|
+
};
|
|
2784
|
+
},
|
|
2785
|
+
toJSON(e) {
|
|
2786
|
+
const r = {};
|
|
2787
|
+
return e.preferences !== void 0 && (r.preferences = o.toJSON(e.preferences)), e.dataProcessor !== void 0 && (r.dataProcessor = T.toJSON(e.dataProcessor)), e.previousNode !== "" && (r.previousNode = e.previousNode), e.nextNode !== "" && (r.nextNode = e.nextNode), e.replaceAllProperties !== !1 && (r.replaceAllProperties = e.replaceAllProperties), r;
|
|
2788
|
+
},
|
|
2789
|
+
create(e) {
|
|
2790
|
+
return on.fromPartial(e ?? {});
|
|
2791
|
+
},
|
|
2792
|
+
fromPartial(e) {
|
|
2793
|
+
const r = Me();
|
|
2794
|
+
return r.preferences = e.preferences !== void 0 && e.preferences !== null ? o.fromPartial(e.preferences) : void 0, r.dataProcessor = e.dataProcessor !== void 0 && e.dataProcessor !== null ? T.fromPartial(e.dataProcessor) : void 0, r.previousNode = e.previousNode ?? "", r.nextNode = e.nextNode ?? "", r.replaceAllProperties = e.replaceAllProperties ?? !1, r;
|
|
2795
|
+
}
|
|
2796
|
+
};
|
|
2797
|
+
function be() {
|
|
2798
|
+
return { dataProcessor: void 0 };
|
|
2799
|
+
}
|
|
2800
|
+
const sn = {
|
|
2801
|
+
encode(e, r = new u()) {
|
|
2802
|
+
return e.dataProcessor !== void 0 && T.encode(e.dataProcessor, r.uint32(10).fork()).join(), r;
|
|
2803
|
+
},
|
|
2804
|
+
decode(e, r) {
|
|
2805
|
+
const n = e instanceof s ? e : new s(e);
|
|
2806
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
2807
|
+
const t = be();
|
|
2808
|
+
for (; n.pos < a; ) {
|
|
2809
|
+
const i = n.uint32();
|
|
2810
|
+
switch (i >>> 3) {
|
|
2811
|
+
case 1: {
|
|
2812
|
+
if (i !== 10)
|
|
2813
|
+
break;
|
|
2814
|
+
t.dataProcessor = T.decode(n, n.uint32());
|
|
2815
|
+
continue;
|
|
2816
|
+
}
|
|
2817
|
+
}
|
|
2818
|
+
if ((i & 7) === 4 || i === 0)
|
|
2819
|
+
break;
|
|
2820
|
+
n.skip(i & 7);
|
|
2821
|
+
}
|
|
2822
|
+
return t;
|
|
2823
|
+
},
|
|
2824
|
+
fromJSON(e) {
|
|
2825
|
+
return {
|
|
2826
|
+
dataProcessor: c(e.dataProcessor) ? T.fromJSON(e.dataProcessor) : void 0
|
|
2827
|
+
};
|
|
2828
|
+
},
|
|
2829
|
+
toJSON(e) {
|
|
2830
|
+
const r = {};
|
|
2831
|
+
return e.dataProcessor !== void 0 && (r.dataProcessor = T.toJSON(e.dataProcessor)), r;
|
|
2832
|
+
},
|
|
2833
|
+
create(e) {
|
|
2834
|
+
return sn.fromPartial(e ?? {});
|
|
2835
|
+
},
|
|
2836
|
+
fromPartial(e) {
|
|
2837
|
+
const r = be();
|
|
2838
|
+
return r.dataProcessor = e.dataProcessor !== void 0 && e.dataProcessor !== null ? T.fromPartial(e.dataProcessor) : void 0, r;
|
|
2839
|
+
}
|
|
2840
|
+
};
|
|
2841
|
+
function ye() {
|
|
2842
|
+
return { preferences: void 0, target: void 0, replaceAllProperties: !1 };
|
|
2843
|
+
}
|
|
2844
|
+
const un = {
|
|
2845
|
+
encode(e, r = new u()) {
|
|
2846
|
+
return e.preferences !== void 0 && o.encode(e.preferences, r.uint32(10).fork()).join(), e.target !== void 0 && C.encode(e.target, r.uint32(18).fork()).join(), e.replaceAllProperties !== !1 && r.uint32(24).bool(e.replaceAllProperties), r;
|
|
2847
|
+
},
|
|
2848
|
+
decode(e, r) {
|
|
2849
|
+
const n = e instanceof s ? e : new s(e);
|
|
2850
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
2851
|
+
const t = ye();
|
|
2852
|
+
for (; n.pos < a; ) {
|
|
2853
|
+
const i = n.uint32();
|
|
2854
|
+
switch (i >>> 3) {
|
|
2855
|
+
case 1: {
|
|
2856
|
+
if (i !== 10)
|
|
2857
|
+
break;
|
|
2858
|
+
t.preferences = o.decode(n, n.uint32());
|
|
2859
|
+
continue;
|
|
2860
|
+
}
|
|
2861
|
+
case 2: {
|
|
2862
|
+
if (i !== 18)
|
|
2863
|
+
break;
|
|
2864
|
+
t.target = C.decode(n, n.uint32());
|
|
2865
|
+
continue;
|
|
2866
|
+
}
|
|
2867
|
+
case 3: {
|
|
2868
|
+
if (i !== 24)
|
|
2869
|
+
break;
|
|
2870
|
+
t.replaceAllProperties = n.bool();
|
|
2871
|
+
continue;
|
|
2872
|
+
}
|
|
2873
|
+
}
|
|
2874
|
+
if ((i & 7) === 4 || i === 0)
|
|
2875
|
+
break;
|
|
2876
|
+
n.skip(i & 7);
|
|
2877
|
+
}
|
|
2878
|
+
return t;
|
|
2879
|
+
},
|
|
2880
|
+
fromJSON(e) {
|
|
2881
|
+
return {
|
|
2882
|
+
preferences: c(e.preferences) ? o.fromJSON(e.preferences) : void 0,
|
|
2883
|
+
target: c(e.target) ? C.fromJSON(e.target) : void 0,
|
|
2884
|
+
replaceAllProperties: c(e.replaceAllProperties) ? globalThis.Boolean(e.replaceAllProperties) : !1
|
|
2885
|
+
};
|
|
2886
|
+
},
|
|
2887
|
+
toJSON(e) {
|
|
2888
|
+
const r = {};
|
|
2889
|
+
return e.preferences !== void 0 && (r.preferences = o.toJSON(e.preferences)), e.target !== void 0 && (r.target = C.toJSON(e.target)), e.replaceAllProperties !== !1 && (r.replaceAllProperties = e.replaceAllProperties), r;
|
|
2890
|
+
},
|
|
2891
|
+
create(e) {
|
|
2892
|
+
return un.fromPartial(e ?? {});
|
|
2893
|
+
},
|
|
2894
|
+
fromPartial(e) {
|
|
2895
|
+
const r = ye();
|
|
2896
|
+
return r.preferences = e.preferences !== void 0 && e.preferences !== null ? o.fromPartial(e.preferences) : void 0, r.target = e.target !== void 0 && e.target !== null ? C.fromPartial(e.target) : void 0, r.replaceAllProperties = e.replaceAllProperties ?? !1, r;
|
|
2897
|
+
}
|
|
2898
|
+
};
|
|
2899
|
+
function Ge() {
|
|
2900
|
+
return { target: void 0 };
|
|
2901
|
+
}
|
|
2902
|
+
const cn = {
|
|
2903
|
+
encode(e, r = new u()) {
|
|
2904
|
+
return e.target !== void 0 && C.encode(e.target, r.uint32(10).fork()).join(), r;
|
|
2905
|
+
},
|
|
2906
|
+
decode(e, r) {
|
|
2907
|
+
const n = e instanceof s ? e : new s(e);
|
|
2908
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
2909
|
+
const t = Ge();
|
|
2910
|
+
for (; n.pos < a; ) {
|
|
2911
|
+
const i = n.uint32();
|
|
2912
|
+
switch (i >>> 3) {
|
|
2913
|
+
case 1: {
|
|
2914
|
+
if (i !== 10)
|
|
2915
|
+
break;
|
|
2916
|
+
t.target = C.decode(n, n.uint32());
|
|
2917
|
+
continue;
|
|
2918
|
+
}
|
|
2919
|
+
}
|
|
2920
|
+
if ((i & 7) === 4 || i === 0)
|
|
2921
|
+
break;
|
|
2922
|
+
n.skip(i & 7);
|
|
2923
|
+
}
|
|
2924
|
+
return t;
|
|
2925
|
+
},
|
|
2926
|
+
fromJSON(e) {
|
|
2927
|
+
return { target: c(e.target) ? C.fromJSON(e.target) : void 0 };
|
|
2928
|
+
},
|
|
2929
|
+
toJSON(e) {
|
|
2930
|
+
const r = {};
|
|
2931
|
+
return e.target !== void 0 && (r.target = C.toJSON(e.target)), r;
|
|
2932
|
+
},
|
|
2933
|
+
create(e) {
|
|
2934
|
+
return cn.fromPartial(e ?? {});
|
|
2935
|
+
},
|
|
2936
|
+
fromPartial(e) {
|
|
2937
|
+
const r = Ge();
|
|
2938
|
+
return r.target = e.target !== void 0 && e.target !== null ? C.fromPartial(e.target) : void 0, r;
|
|
2939
|
+
}
|
|
2940
|
+
};
|
|
2941
|
+
function Ve() {
|
|
2942
|
+
return { preferences: void 0, startNode: "", endNode: "" };
|
|
2943
|
+
}
|
|
2944
|
+
const fn = {
|
|
2945
|
+
encode(e, r = new u()) {
|
|
2946
|
+
return e.preferences !== void 0 && o.encode(e.preferences, r.uint32(10).fork()).join(), e.startNode !== "" && r.uint32(18).string(e.startNode), e.endNode !== "" && r.uint32(26).string(e.endNode), r;
|
|
2947
|
+
},
|
|
2948
|
+
decode(e, r) {
|
|
2949
|
+
const n = e instanceof s ? e : new s(e);
|
|
2950
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
2951
|
+
const t = Ve();
|
|
2952
|
+
for (; n.pos < a; ) {
|
|
2953
|
+
const i = n.uint32();
|
|
2954
|
+
switch (i >>> 3) {
|
|
2955
|
+
case 1: {
|
|
2956
|
+
if (i !== 10)
|
|
2957
|
+
break;
|
|
2958
|
+
t.preferences = o.decode(n, n.uint32());
|
|
2959
|
+
continue;
|
|
2960
|
+
}
|
|
2961
|
+
case 2: {
|
|
2962
|
+
if (i !== 18)
|
|
2963
|
+
break;
|
|
2964
|
+
t.startNode = n.string();
|
|
2965
|
+
continue;
|
|
2966
|
+
}
|
|
2967
|
+
case 3: {
|
|
2968
|
+
if (i !== 26)
|
|
2969
|
+
break;
|
|
2970
|
+
t.endNode = n.string();
|
|
2971
|
+
continue;
|
|
2972
|
+
}
|
|
2973
|
+
}
|
|
2974
|
+
if ((i & 7) === 4 || i === 0)
|
|
2975
|
+
break;
|
|
2976
|
+
n.skip(i & 7);
|
|
2977
|
+
}
|
|
2978
|
+
return t;
|
|
2979
|
+
},
|
|
2980
|
+
fromJSON(e) {
|
|
2981
|
+
return {
|
|
2982
|
+
preferences: c(e.preferences) ? o.fromJSON(e.preferences) : void 0,
|
|
2983
|
+
startNode: c(e.startNode) ? globalThis.String(e.startNode) : "",
|
|
2984
|
+
endNode: c(e.endNode) ? globalThis.String(e.endNode) : ""
|
|
2985
|
+
};
|
|
2986
|
+
},
|
|
2987
|
+
toJSON(e) {
|
|
2988
|
+
const r = {};
|
|
2989
|
+
return e.preferences !== void 0 && (r.preferences = o.toJSON(e.preferences)), e.startNode !== "" && (r.startNode = e.startNode), e.endNode !== "" && (r.endNode = e.endNode), r;
|
|
2990
|
+
},
|
|
2991
|
+
create(e) {
|
|
2992
|
+
return fn.fromPartial(e ?? {});
|
|
2993
|
+
},
|
|
2994
|
+
fromPartial(e) {
|
|
2995
|
+
const r = Ve();
|
|
2996
|
+
return r.preferences = e.preferences !== void 0 && e.preferences !== null ? o.fromPartial(e.preferences) : void 0, r.startNode = e.startNode ?? "", r.endNode = e.endNode ?? "", r;
|
|
2997
|
+
}
|
|
2998
|
+
};
|
|
2999
|
+
function Be() {
|
|
3000
|
+
return { preferences: void 0, startNode: "", endNode: "" };
|
|
3001
|
+
}
|
|
3002
|
+
const dn = {
|
|
3003
|
+
encode(e, r = new u()) {
|
|
3004
|
+
return e.preferences !== void 0 && o.encode(e.preferences, r.uint32(10).fork()).join(), e.startNode !== "" && r.uint32(18).string(e.startNode), e.endNode !== "" && r.uint32(26).string(e.endNode), r;
|
|
3005
|
+
},
|
|
3006
|
+
decode(e, r) {
|
|
3007
|
+
const n = e instanceof s ? e : new s(e);
|
|
3008
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
3009
|
+
const t = Be();
|
|
3010
|
+
for (; n.pos < a; ) {
|
|
3011
|
+
const i = n.uint32();
|
|
3012
|
+
switch (i >>> 3) {
|
|
3013
|
+
case 1: {
|
|
3014
|
+
if (i !== 10)
|
|
3015
|
+
break;
|
|
3016
|
+
t.preferences = o.decode(n, n.uint32());
|
|
3017
|
+
continue;
|
|
3018
|
+
}
|
|
3019
|
+
case 2: {
|
|
3020
|
+
if (i !== 18)
|
|
3021
|
+
break;
|
|
3022
|
+
t.startNode = n.string();
|
|
3023
|
+
continue;
|
|
3024
|
+
}
|
|
3025
|
+
case 3: {
|
|
3026
|
+
if (i !== 26)
|
|
3027
|
+
break;
|
|
3028
|
+
t.endNode = n.string();
|
|
3029
|
+
continue;
|
|
3030
|
+
}
|
|
3031
|
+
}
|
|
3032
|
+
if ((i & 7) === 4 || i === 0)
|
|
3033
|
+
break;
|
|
3034
|
+
n.skip(i & 7);
|
|
3035
|
+
}
|
|
3036
|
+
return t;
|
|
3037
|
+
},
|
|
3038
|
+
fromJSON(e) {
|
|
3039
|
+
return {
|
|
3040
|
+
preferences: c(e.preferences) ? o.fromJSON(e.preferences) : void 0,
|
|
3041
|
+
startNode: c(e.startNode) ? globalThis.String(e.startNode) : "",
|
|
3042
|
+
endNode: c(e.endNode) ? globalThis.String(e.endNode) : ""
|
|
3043
|
+
};
|
|
3044
|
+
},
|
|
3045
|
+
toJSON(e) {
|
|
3046
|
+
const r = {};
|
|
3047
|
+
return e.preferences !== void 0 && (r.preferences = o.toJSON(e.preferences)), e.startNode !== "" && (r.startNode = e.startNode), e.endNode !== "" && (r.endNode = e.endNode), r;
|
|
3048
|
+
},
|
|
3049
|
+
create(e) {
|
|
3050
|
+
return dn.fromPartial(e ?? {});
|
|
3051
|
+
},
|
|
3052
|
+
fromPartial(e) {
|
|
3053
|
+
const r = Be();
|
|
3054
|
+
return r.preferences = e.preferences !== void 0 && e.preferences !== null ? o.fromPartial(e.preferences) : void 0, r.startNode = e.startNode ?? "", r.endNode = e.endNode ?? "", r;
|
|
3055
|
+
}
|
|
3056
|
+
};
|
|
3057
|
+
function Fe() {
|
|
3058
|
+
return { preferences: void 0, identifier: "" };
|
|
3059
|
+
}
|
|
3060
|
+
const ln = {
|
|
3061
|
+
encode(e, r = new u()) {
|
|
3062
|
+
return e.preferences !== void 0 && o.encode(e.preferences, r.uint32(10).fork()).join(), e.identifier !== "" && r.uint32(18).string(e.identifier), r;
|
|
3063
|
+
},
|
|
3064
|
+
decode(e, r) {
|
|
3065
|
+
const n = e instanceof s ? e : new s(e);
|
|
3066
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
3067
|
+
const t = Fe();
|
|
3068
|
+
for (; n.pos < a; ) {
|
|
3069
|
+
const i = n.uint32();
|
|
3070
|
+
switch (i >>> 3) {
|
|
3071
|
+
case 1: {
|
|
3072
|
+
if (i !== 10)
|
|
3073
|
+
break;
|
|
3074
|
+
t.preferences = o.decode(n, n.uint32());
|
|
3075
|
+
continue;
|
|
3076
|
+
}
|
|
3077
|
+
case 2: {
|
|
3078
|
+
if (i !== 18)
|
|
3079
|
+
break;
|
|
3080
|
+
t.identifier = n.string();
|
|
3081
|
+
continue;
|
|
3082
|
+
}
|
|
3083
|
+
}
|
|
3084
|
+
if ((i & 7) === 4 || i === 0)
|
|
3085
|
+
break;
|
|
3086
|
+
n.skip(i & 7);
|
|
3087
|
+
}
|
|
3088
|
+
return t;
|
|
3089
|
+
},
|
|
3090
|
+
fromJSON(e) {
|
|
3091
|
+
return {
|
|
3092
|
+
preferences: c(e.preferences) ? o.fromJSON(e.preferences) : void 0,
|
|
3093
|
+
identifier: c(e.identifier) ? globalThis.String(e.identifier) : ""
|
|
3094
|
+
};
|
|
3095
|
+
},
|
|
3096
|
+
toJSON(e) {
|
|
3097
|
+
const r = {};
|
|
3098
|
+
return e.preferences !== void 0 && (r.preferences = o.toJSON(e.preferences)), e.identifier !== "" && (r.identifier = e.identifier), r;
|
|
3099
|
+
},
|
|
3100
|
+
create(e) {
|
|
3101
|
+
return ln.fromPartial(e ?? {});
|
|
3102
|
+
},
|
|
3103
|
+
fromPartial(e) {
|
|
3104
|
+
const r = Fe();
|
|
3105
|
+
return r.preferences = e.preferences !== void 0 && e.preferences !== null ? o.fromPartial(e.preferences) : void 0, r.identifier = e.identifier ?? "", r;
|
|
3106
|
+
}
|
|
3107
|
+
};
|
|
3108
|
+
function Ue() {
|
|
3109
|
+
return { preferences: void 0, identifiers: [] };
|
|
3110
|
+
}
|
|
3111
|
+
const pn = {
|
|
3112
|
+
encode(e, r = new u()) {
|
|
3113
|
+
e.preferences !== void 0 && o.encode(e.preferences, r.uint32(10).fork()).join();
|
|
3114
|
+
for (const n of e.identifiers)
|
|
3115
|
+
r.uint32(18).string(n);
|
|
3116
|
+
return r;
|
|
3117
|
+
},
|
|
3118
|
+
decode(e, r) {
|
|
3119
|
+
const n = e instanceof s ? e : new s(e);
|
|
3120
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
3121
|
+
const t = Ue();
|
|
3122
|
+
for (; n.pos < a; ) {
|
|
3123
|
+
const i = n.uint32();
|
|
3124
|
+
switch (i >>> 3) {
|
|
3125
|
+
case 1: {
|
|
3126
|
+
if (i !== 10)
|
|
3127
|
+
break;
|
|
3128
|
+
t.preferences = o.decode(n, n.uint32());
|
|
3129
|
+
continue;
|
|
3130
|
+
}
|
|
3131
|
+
case 2: {
|
|
3132
|
+
if (i !== 18)
|
|
3133
|
+
break;
|
|
3134
|
+
t.identifiers.push(n.string());
|
|
3135
|
+
continue;
|
|
3136
|
+
}
|
|
3137
|
+
}
|
|
3138
|
+
if ((i & 7) === 4 || i === 0)
|
|
3139
|
+
break;
|
|
3140
|
+
n.skip(i & 7);
|
|
3141
|
+
}
|
|
3142
|
+
return t;
|
|
3143
|
+
},
|
|
3144
|
+
fromJSON(e) {
|
|
3145
|
+
return {
|
|
3146
|
+
preferences: c(e.preferences) ? o.fromJSON(e.preferences) : void 0,
|
|
3147
|
+
identifiers: globalThis.Array.isArray(e == null ? void 0 : e.identifiers) ? e.identifiers.map((r) => globalThis.String(r)) : []
|
|
3148
|
+
};
|
|
3149
|
+
},
|
|
3150
|
+
toJSON(e) {
|
|
3151
|
+
var n;
|
|
3152
|
+
const r = {};
|
|
3153
|
+
return e.preferences !== void 0 && (r.preferences = o.toJSON(e.preferences)), (n = e.identifiers) != null && n.length && (r.identifiers = e.identifiers), r;
|
|
3154
|
+
},
|
|
3155
|
+
create(e) {
|
|
3156
|
+
return pn.fromPartial(e ?? {});
|
|
3157
|
+
},
|
|
3158
|
+
fromPartial(e) {
|
|
3159
|
+
var n;
|
|
3160
|
+
const r = Ue();
|
|
3161
|
+
return r.preferences = e.preferences !== void 0 && e.preferences !== null ? o.fromPartial(e.preferences) : void 0, r.identifiers = ((n = e.identifiers) == null ? void 0 : n.map((a) => a)) || [], r;
|
|
3162
|
+
}
|
|
3163
|
+
};
|
|
3164
|
+
function He() {
|
|
3165
|
+
return { preferences: void 0, channelIdentifier: "", frame: void 0 };
|
|
3166
|
+
}
|
|
3167
|
+
const Nn = {
|
|
3168
|
+
encode(e, r = new u()) {
|
|
3169
|
+
return e.preferences !== void 0 && o.encode(e.preferences, r.uint32(10).fork()).join(), e.channelIdentifier !== "" && r.uint32(18).string(e.channelIdentifier), e.frame !== void 0 && R.encode(e.frame, r.uint32(26).fork()).join(), r;
|
|
3170
|
+
},
|
|
3171
|
+
decode(e, r) {
|
|
3172
|
+
const n = e instanceof s ? e : new s(e);
|
|
3173
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
3174
|
+
const t = He();
|
|
3175
|
+
for (; n.pos < a; ) {
|
|
3176
|
+
const i = n.uint32();
|
|
3177
|
+
switch (i >>> 3) {
|
|
3178
|
+
case 1: {
|
|
3179
|
+
if (i !== 10)
|
|
3180
|
+
break;
|
|
3181
|
+
t.preferences = o.decode(n, n.uint32());
|
|
3182
|
+
continue;
|
|
3183
|
+
}
|
|
3184
|
+
case 2: {
|
|
3185
|
+
if (i !== 18)
|
|
3186
|
+
break;
|
|
3187
|
+
t.channelIdentifier = n.string();
|
|
3188
|
+
continue;
|
|
3189
|
+
}
|
|
3190
|
+
case 3: {
|
|
3191
|
+
if (i !== 26)
|
|
3192
|
+
break;
|
|
3193
|
+
t.frame = R.decode(n, n.uint32());
|
|
3194
|
+
continue;
|
|
3195
|
+
}
|
|
3196
|
+
}
|
|
3197
|
+
if ((i & 7) === 4 || i === 0)
|
|
3198
|
+
break;
|
|
3199
|
+
n.skip(i & 7);
|
|
3200
|
+
}
|
|
3201
|
+
return t;
|
|
3202
|
+
},
|
|
3203
|
+
fromJSON(e) {
|
|
3204
|
+
return {
|
|
3205
|
+
preferences: c(e.preferences) ? o.fromJSON(e.preferences) : void 0,
|
|
3206
|
+
channelIdentifier: c(e.channelIdentifier) ? globalThis.String(e.channelIdentifier) : "",
|
|
3207
|
+
frame: c(e.frame) ? R.fromJSON(e.frame) : void 0
|
|
3208
|
+
};
|
|
3209
|
+
},
|
|
3210
|
+
toJSON(e) {
|
|
3211
|
+
const r = {};
|
|
3212
|
+
return e.preferences !== void 0 && (r.preferences = o.toJSON(e.preferences)), e.channelIdentifier !== "" && (r.channelIdentifier = e.channelIdentifier), e.frame !== void 0 && (r.frame = R.toJSON(e.frame)), r;
|
|
3213
|
+
},
|
|
3214
|
+
create(e) {
|
|
3215
|
+
return Nn.fromPartial(e ?? {});
|
|
3216
|
+
},
|
|
3217
|
+
fromPartial(e) {
|
|
3218
|
+
const r = He();
|
|
3219
|
+
return r.preferences = e.preferences !== void 0 && e.preferences !== null ? o.fromPartial(e.preferences) : void 0, r.channelIdentifier = e.channelIdentifier ?? "", r.frame = e.frame !== void 0 && e.frame !== null ? R.fromPartial(e.frame) : void 0, r;
|
|
3220
|
+
}
|
|
3221
|
+
};
|
|
3222
|
+
function qe() {
|
|
3223
|
+
return { preferences: void 0, channelIdentifier: "", count: 0, interval: 0 };
|
|
3224
|
+
}
|
|
3225
|
+
const Sn = {
|
|
3226
|
+
encode(e, r = new u()) {
|
|
3227
|
+
return e.preferences !== void 0 && o.encode(e.preferences, r.uint32(10).fork()).join(), e.channelIdentifier !== "" && r.uint32(18).string(e.channelIdentifier), e.count !== 0 && r.uint32(24).int32(e.count), e.interval !== 0 && r.uint32(32).int32(e.interval), r;
|
|
3228
|
+
},
|
|
3229
|
+
decode(e, r) {
|
|
3230
|
+
const n = e instanceof s ? e : new s(e);
|
|
3231
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
3232
|
+
const t = qe();
|
|
3233
|
+
for (; n.pos < a; ) {
|
|
3234
|
+
const i = n.uint32();
|
|
3235
|
+
switch (i >>> 3) {
|
|
3236
|
+
case 1: {
|
|
3237
|
+
if (i !== 10)
|
|
3238
|
+
break;
|
|
3239
|
+
t.preferences = o.decode(n, n.uint32());
|
|
3240
|
+
continue;
|
|
3241
|
+
}
|
|
3242
|
+
case 2: {
|
|
3243
|
+
if (i !== 18)
|
|
3244
|
+
break;
|
|
3245
|
+
t.channelIdentifier = n.string();
|
|
3246
|
+
continue;
|
|
3247
|
+
}
|
|
3248
|
+
case 3: {
|
|
3249
|
+
if (i !== 24)
|
|
3250
|
+
break;
|
|
3251
|
+
t.count = n.int32();
|
|
3252
|
+
continue;
|
|
3253
|
+
}
|
|
3254
|
+
case 4: {
|
|
3255
|
+
if (i !== 32)
|
|
3256
|
+
break;
|
|
3257
|
+
t.interval = n.int32();
|
|
3258
|
+
continue;
|
|
3259
|
+
}
|
|
3260
|
+
}
|
|
3261
|
+
if ((i & 7) === 4 || i === 0)
|
|
3262
|
+
break;
|
|
3263
|
+
n.skip(i & 7);
|
|
3264
|
+
}
|
|
3265
|
+
return t;
|
|
3266
|
+
},
|
|
3267
|
+
fromJSON(e) {
|
|
3268
|
+
return {
|
|
3269
|
+
preferences: c(e.preferences) ? o.fromJSON(e.preferences) : void 0,
|
|
3270
|
+
channelIdentifier: c(e.channelIdentifier) ? globalThis.String(e.channelIdentifier) : "",
|
|
3271
|
+
count: c(e.count) ? globalThis.Number(e.count) : 0,
|
|
3272
|
+
interval: c(e.interval) ? globalThis.Number(e.interval) : 0
|
|
3273
|
+
};
|
|
3274
|
+
},
|
|
3275
|
+
toJSON(e) {
|
|
3276
|
+
const r = {};
|
|
3277
|
+
return e.preferences !== void 0 && (r.preferences = o.toJSON(e.preferences)), e.channelIdentifier !== "" && (r.channelIdentifier = e.channelIdentifier), e.count !== 0 && (r.count = Math.round(e.count)), e.interval !== 0 && (r.interval = Math.round(e.interval)), r;
|
|
3278
|
+
},
|
|
3279
|
+
create(e) {
|
|
3280
|
+
return Sn.fromPartial(e ?? {});
|
|
3281
|
+
},
|
|
3282
|
+
fromPartial(e) {
|
|
3283
|
+
const r = qe();
|
|
3284
|
+
return r.preferences = e.preferences !== void 0 && e.preferences !== null ? o.fromPartial(e.preferences) : void 0, r.channelIdentifier = e.channelIdentifier ?? "", r.count = e.count ?? 0, r.interval = e.interval ?? 0, r;
|
|
3285
|
+
}
|
|
3286
|
+
};
|
|
3287
|
+
function we() {
|
|
3288
|
+
return { preferences: void 0, channelIdentifier: "", frameId: 0 };
|
|
3289
|
+
}
|
|
3290
|
+
const mn = {
|
|
3291
|
+
encode(e, r = new u()) {
|
|
3292
|
+
return e.preferences !== void 0 && o.encode(e.preferences, r.uint32(10).fork()).join(), e.channelIdentifier !== "" && r.uint32(18).string(e.channelIdentifier), e.frameId !== 0 && r.uint32(24).int32(e.frameId), r;
|
|
3293
|
+
},
|
|
3294
|
+
decode(e, r) {
|
|
3295
|
+
const n = e instanceof s ? e : new s(e);
|
|
3296
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
3297
|
+
const t = we();
|
|
3298
|
+
for (; n.pos < a; ) {
|
|
3299
|
+
const i = n.uint32();
|
|
3300
|
+
switch (i >>> 3) {
|
|
3301
|
+
case 1: {
|
|
3302
|
+
if (i !== 10)
|
|
3303
|
+
break;
|
|
3304
|
+
t.preferences = o.decode(n, n.uint32());
|
|
3305
|
+
continue;
|
|
3306
|
+
}
|
|
3307
|
+
case 2: {
|
|
3308
|
+
if (i !== 18)
|
|
3309
|
+
break;
|
|
3310
|
+
t.channelIdentifier = n.string();
|
|
3311
|
+
continue;
|
|
3312
|
+
}
|
|
3313
|
+
case 3: {
|
|
3314
|
+
if (i !== 24)
|
|
3315
|
+
break;
|
|
3316
|
+
t.frameId = n.int32();
|
|
3317
|
+
continue;
|
|
3318
|
+
}
|
|
3319
|
+
}
|
|
3320
|
+
if ((i & 7) === 4 || i === 0)
|
|
3321
|
+
break;
|
|
3322
|
+
n.skip(i & 7);
|
|
3323
|
+
}
|
|
3324
|
+
return t;
|
|
3325
|
+
},
|
|
3326
|
+
fromJSON(e) {
|
|
3327
|
+
return {
|
|
3328
|
+
preferences: c(e.preferences) ? o.fromJSON(e.preferences) : void 0,
|
|
3329
|
+
channelIdentifier: c(e.channelIdentifier) ? globalThis.String(e.channelIdentifier) : "",
|
|
3330
|
+
frameId: c(e.frameId) ? globalThis.Number(e.frameId) : 0
|
|
3331
|
+
};
|
|
3332
|
+
},
|
|
3333
|
+
toJSON(e) {
|
|
3334
|
+
const r = {};
|
|
3335
|
+
return e.preferences !== void 0 && (r.preferences = o.toJSON(e.preferences)), e.channelIdentifier !== "" && (r.channelIdentifier = e.channelIdentifier), e.frameId !== 0 && (r.frameId = Math.round(e.frameId)), r;
|
|
3336
|
+
},
|
|
3337
|
+
create(e) {
|
|
3338
|
+
return mn.fromPartial(e ?? {});
|
|
3339
|
+
},
|
|
3340
|
+
fromPartial(e) {
|
|
3341
|
+
const r = we();
|
|
3342
|
+
return r.preferences = e.preferences !== void 0 && e.preferences !== null ? o.fromPartial(e.preferences) : void 0, r.channelIdentifier = e.channelIdentifier ?? "", r.frameId = e.frameId ?? 0, r;
|
|
3343
|
+
}
|
|
3344
|
+
};
|
|
3345
|
+
function Ze() {
|
|
3346
|
+
return { preferences: void 0, channelIdentifier: "", frame: void 0 };
|
|
3347
|
+
}
|
|
3348
|
+
const En = {
|
|
3349
|
+
encode(e, r = new u()) {
|
|
3350
|
+
return e.preferences !== void 0 && o.encode(e.preferences, r.uint32(10).fork()).join(), e.channelIdentifier !== "" && r.uint32(18).string(e.channelIdentifier), e.frame !== void 0 && R.encode(e.frame, r.uint32(26).fork()).join(), r;
|
|
3351
|
+
},
|
|
3352
|
+
decode(e, r) {
|
|
3353
|
+
const n = e instanceof s ? e : new s(e);
|
|
3354
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
3355
|
+
const t = Ze();
|
|
3356
|
+
for (; n.pos < a; ) {
|
|
3357
|
+
const i = n.uint32();
|
|
3358
|
+
switch (i >>> 3) {
|
|
3359
|
+
case 1: {
|
|
3360
|
+
if (i !== 10)
|
|
3361
|
+
break;
|
|
3362
|
+
t.preferences = o.decode(n, n.uint32());
|
|
3363
|
+
continue;
|
|
3364
|
+
}
|
|
3365
|
+
case 2: {
|
|
3366
|
+
if (i !== 18)
|
|
3367
|
+
break;
|
|
3368
|
+
t.channelIdentifier = n.string();
|
|
3369
|
+
continue;
|
|
3370
|
+
}
|
|
3371
|
+
case 3: {
|
|
3372
|
+
if (i !== 26)
|
|
3373
|
+
break;
|
|
3374
|
+
t.frame = R.decode(n, n.uint32());
|
|
3375
|
+
continue;
|
|
3376
|
+
}
|
|
3377
|
+
}
|
|
3378
|
+
if ((i & 7) === 4 || i === 0)
|
|
3379
|
+
break;
|
|
3380
|
+
n.skip(i & 7);
|
|
3381
|
+
}
|
|
3382
|
+
return t;
|
|
3383
|
+
},
|
|
3384
|
+
fromJSON(e) {
|
|
3385
|
+
return {
|
|
3386
|
+
preferences: c(e.preferences) ? o.fromJSON(e.preferences) : void 0,
|
|
3387
|
+
channelIdentifier: c(e.channelIdentifier) ? globalThis.String(e.channelIdentifier) : "",
|
|
3388
|
+
frame: c(e.frame) ? R.fromJSON(e.frame) : void 0
|
|
3389
|
+
};
|
|
3390
|
+
},
|
|
3391
|
+
toJSON(e) {
|
|
3392
|
+
const r = {};
|
|
3393
|
+
return e.preferences !== void 0 && (r.preferences = o.toJSON(e.preferences)), e.channelIdentifier !== "" && (r.channelIdentifier = e.channelIdentifier), e.frame !== void 0 && (r.frame = R.toJSON(e.frame)), r;
|
|
3394
|
+
},
|
|
3395
|
+
create(e) {
|
|
3396
|
+
return En.fromPartial(e ?? {});
|
|
3397
|
+
},
|
|
3398
|
+
fromPartial(e) {
|
|
3399
|
+
const r = Ze();
|
|
3400
|
+
return r.preferences = e.preferences !== void 0 && e.preferences !== null ? o.fromPartial(e.preferences) : void 0, r.channelIdentifier = e.channelIdentifier ?? "", r.frame = e.frame !== void 0 && e.frame !== null ? R.fromPartial(e.frame) : void 0, r;
|
|
3401
|
+
}
|
|
3402
|
+
};
|
|
3403
|
+
function We() {
|
|
3404
|
+
return { preferences: void 0, channelIdentifier: "", frameId: 0 };
|
|
3405
|
+
}
|
|
3406
|
+
const vn = {
|
|
3407
|
+
encode(e, r = new u()) {
|
|
3408
|
+
return e.preferences !== void 0 && o.encode(e.preferences, r.uint32(10).fork()).join(), e.channelIdentifier !== "" && r.uint32(18).string(e.channelIdentifier), e.frameId !== 0 && r.uint32(24).int32(e.frameId), r;
|
|
3409
|
+
},
|
|
3410
|
+
decode(e, r) {
|
|
3411
|
+
const n = e instanceof s ? e : new s(e);
|
|
3412
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
3413
|
+
const t = We();
|
|
3414
|
+
for (; n.pos < a; ) {
|
|
3415
|
+
const i = n.uint32();
|
|
3416
|
+
switch (i >>> 3) {
|
|
3417
|
+
case 1: {
|
|
3418
|
+
if (i !== 10)
|
|
3419
|
+
break;
|
|
3420
|
+
t.preferences = o.decode(n, n.uint32());
|
|
3421
|
+
continue;
|
|
3422
|
+
}
|
|
3423
|
+
case 2: {
|
|
3424
|
+
if (i !== 18)
|
|
3425
|
+
break;
|
|
3426
|
+
t.channelIdentifier = n.string();
|
|
3427
|
+
continue;
|
|
3428
|
+
}
|
|
3429
|
+
case 3: {
|
|
3430
|
+
if (i !== 24)
|
|
3431
|
+
break;
|
|
3432
|
+
t.frameId = n.int32();
|
|
3433
|
+
continue;
|
|
3434
|
+
}
|
|
3435
|
+
}
|
|
3436
|
+
if ((i & 7) === 4 || i === 0)
|
|
3437
|
+
break;
|
|
3438
|
+
n.skip(i & 7);
|
|
3439
|
+
}
|
|
3440
|
+
return t;
|
|
3441
|
+
},
|
|
3442
|
+
fromJSON(e) {
|
|
3443
|
+
return {
|
|
3444
|
+
preferences: c(e.preferences) ? o.fromJSON(e.preferences) : void 0,
|
|
3445
|
+
channelIdentifier: c(e.channelIdentifier) ? globalThis.String(e.channelIdentifier) : "",
|
|
3446
|
+
frameId: c(e.frameId) ? globalThis.Number(e.frameId) : 0
|
|
3447
|
+
};
|
|
3448
|
+
},
|
|
3449
|
+
toJSON(e) {
|
|
3450
|
+
const r = {};
|
|
3451
|
+
return e.preferences !== void 0 && (r.preferences = o.toJSON(e.preferences)), e.channelIdentifier !== "" && (r.channelIdentifier = e.channelIdentifier), e.frameId !== 0 && (r.frameId = Math.round(e.frameId)), r;
|
|
3452
|
+
},
|
|
3453
|
+
create(e) {
|
|
3454
|
+
return vn.fromPartial(e ?? {});
|
|
3455
|
+
},
|
|
3456
|
+
fromPartial(e) {
|
|
3457
|
+
const r = We();
|
|
3458
|
+
return r.preferences = e.preferences !== void 0 && e.preferences !== null ? o.fromPartial(e.preferences) : void 0, r.channelIdentifier = e.channelIdentifier ?? "", r.frameId = e.frameId ?? 0, r;
|
|
3459
|
+
}
|
|
3460
|
+
};
|
|
3461
|
+
function Ke() {
|
|
3462
|
+
return { preferences: void 0, settings: void 0 };
|
|
3463
|
+
}
|
|
3464
|
+
const Pn = {
|
|
3465
|
+
encode(e, r = new u()) {
|
|
3466
|
+
return e.preferences !== void 0 && o.encode(e.preferences, r.uint32(10).fork()).join(), e.settings !== void 0 && H.encode(e.settings, r.uint32(18).fork()).join(), r;
|
|
3467
|
+
},
|
|
3468
|
+
decode(e, r) {
|
|
3469
|
+
const n = e instanceof s ? e : new s(e);
|
|
3470
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
3471
|
+
const t = Ke();
|
|
3472
|
+
for (; n.pos < a; ) {
|
|
3473
|
+
const i = n.uint32();
|
|
3474
|
+
switch (i >>> 3) {
|
|
3475
|
+
case 1: {
|
|
3476
|
+
if (i !== 10)
|
|
3477
|
+
break;
|
|
3478
|
+
t.preferences = o.decode(n, n.uint32());
|
|
3479
|
+
continue;
|
|
3480
|
+
}
|
|
3481
|
+
case 2: {
|
|
3482
|
+
if (i !== 18)
|
|
3483
|
+
break;
|
|
3484
|
+
t.settings = H.decode(n, n.uint32());
|
|
3485
|
+
continue;
|
|
3486
|
+
}
|
|
3487
|
+
}
|
|
3488
|
+
if ((i & 7) === 4 || i === 0)
|
|
3489
|
+
break;
|
|
3490
|
+
n.skip(i & 7);
|
|
3491
|
+
}
|
|
3492
|
+
return t;
|
|
3493
|
+
},
|
|
3494
|
+
fromJSON(e) {
|
|
3495
|
+
return {
|
|
3496
|
+
preferences: c(e.preferences) ? o.fromJSON(e.preferences) : void 0,
|
|
3497
|
+
settings: c(e.settings) ? H.fromJSON(e.settings) : void 0
|
|
3498
|
+
};
|
|
3499
|
+
},
|
|
3500
|
+
toJSON(e) {
|
|
3501
|
+
const r = {};
|
|
3502
|
+
return e.preferences !== void 0 && (r.preferences = o.toJSON(e.preferences)), e.settings !== void 0 && (r.settings = H.toJSON(e.settings)), r;
|
|
3503
|
+
},
|
|
3504
|
+
create(e) {
|
|
3505
|
+
return Pn.fromPartial(e ?? {});
|
|
3506
|
+
},
|
|
3507
|
+
fromPartial(e) {
|
|
3508
|
+
const r = Ke();
|
|
3509
|
+
return r.preferences = e.preferences !== void 0 && e.preferences !== null ? o.fromPartial(e.preferences) : void 0, r.settings = e.settings !== void 0 && e.settings !== null ? H.fromPartial(e.settings) : void 0, r;
|
|
3510
|
+
}
|
|
3511
|
+
};
|
|
3512
|
+
function Qe() {
|
|
3513
|
+
return { periodicTransmissionIdentifier: "" };
|
|
3514
|
+
}
|
|
3515
|
+
const hn = {
|
|
3516
|
+
encode(e, r = new u()) {
|
|
3517
|
+
return e.periodicTransmissionIdentifier !== "" && r.uint32(10).string(e.periodicTransmissionIdentifier), r;
|
|
3518
|
+
},
|
|
3519
|
+
decode(e, r) {
|
|
3520
|
+
const n = e instanceof s ? e : new s(e);
|
|
3521
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
3522
|
+
const t = Qe();
|
|
3523
|
+
for (; n.pos < a; ) {
|
|
3524
|
+
const i = n.uint32();
|
|
3525
|
+
switch (i >>> 3) {
|
|
3526
|
+
case 1: {
|
|
3527
|
+
if (i !== 10)
|
|
3528
|
+
break;
|
|
3529
|
+
t.periodicTransmissionIdentifier = n.string();
|
|
3530
|
+
continue;
|
|
3531
|
+
}
|
|
3532
|
+
}
|
|
3533
|
+
if ((i & 7) === 4 || i === 0)
|
|
3534
|
+
break;
|
|
3535
|
+
n.skip(i & 7);
|
|
3536
|
+
}
|
|
3537
|
+
return t;
|
|
3538
|
+
},
|
|
3539
|
+
fromJSON(e) {
|
|
3540
|
+
return {
|
|
3541
|
+
periodicTransmissionIdentifier: c(e.periodicTransmissionIdentifier) ? globalThis.String(e.periodicTransmissionIdentifier) : ""
|
|
3542
|
+
};
|
|
3543
|
+
},
|
|
3544
|
+
toJSON(e) {
|
|
3545
|
+
const r = {};
|
|
3546
|
+
return e.periodicTransmissionIdentifier !== "" && (r.periodicTransmissionIdentifier = e.periodicTransmissionIdentifier), r;
|
|
3547
|
+
},
|
|
3548
|
+
create(e) {
|
|
3549
|
+
return hn.fromPartial(e ?? {});
|
|
3550
|
+
},
|
|
3551
|
+
fromPartial(e) {
|
|
3552
|
+
const r = Qe();
|
|
3553
|
+
return r.periodicTransmissionIdentifier = e.periodicTransmissionIdentifier ?? "", r;
|
|
3554
|
+
}
|
|
3555
|
+
};
|
|
3556
|
+
function Ye() {
|
|
3557
|
+
return { isOnline: !1 };
|
|
3558
|
+
}
|
|
3559
|
+
const D = {
|
|
3560
|
+
encode(e, r = new u()) {
|
|
3561
|
+
return e.isOnline !== !1 && r.uint32(8).bool(e.isOnline), r;
|
|
3562
|
+
},
|
|
3563
|
+
decode(e, r) {
|
|
3564
|
+
const n = e instanceof s ? e : new s(e);
|
|
3565
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
3566
|
+
const t = Ye();
|
|
3567
|
+
for (; n.pos < a; ) {
|
|
3568
|
+
const i = n.uint32();
|
|
3569
|
+
switch (i >>> 3) {
|
|
3570
|
+
case 1: {
|
|
3571
|
+
if (i !== 8)
|
|
3572
|
+
break;
|
|
3573
|
+
t.isOnline = n.bool();
|
|
3574
|
+
continue;
|
|
3575
|
+
}
|
|
3576
|
+
}
|
|
3577
|
+
if ((i & 7) === 4 || i === 0)
|
|
3578
|
+
break;
|
|
3579
|
+
n.skip(i & 7);
|
|
3580
|
+
}
|
|
3581
|
+
return t;
|
|
3582
|
+
},
|
|
3583
|
+
fromJSON(e) {
|
|
3584
|
+
return { isOnline: c(e.isOnline) ? globalThis.Boolean(e.isOnline) : !1 };
|
|
3585
|
+
},
|
|
3586
|
+
toJSON(e) {
|
|
3587
|
+
const r = {};
|
|
3588
|
+
return e.isOnline !== !1 && (r.isOnline = e.isOnline), r;
|
|
3589
|
+
},
|
|
3590
|
+
create(e) {
|
|
3591
|
+
return D.fromPartial(e ?? {});
|
|
3592
|
+
},
|
|
3593
|
+
fromPartial(e) {
|
|
3594
|
+
const r = Ye();
|
|
3595
|
+
return r.isOnline = e.isOnline ?? !1, r;
|
|
3596
|
+
}
|
|
3597
|
+
};
|
|
3598
|
+
function Xe() {
|
|
3599
|
+
return { eventType: 0, identifier: void 0, measurementSetup: void 0, onlineStatus: void 0 };
|
|
3600
|
+
}
|
|
3601
|
+
const On = {
|
|
3602
|
+
encode(e, r = new u()) {
|
|
3603
|
+
return e.eventType !== 0 && r.uint32(8).int32(e.eventType), e.identifier !== void 0 && r.uint32(18).string(e.identifier), e.measurementSetup !== void 0 && A.encode(e.measurementSetup, r.uint32(26).fork()).join(), e.onlineStatus !== void 0 && D.encode(e.onlineStatus, r.uint32(34).fork()).join(), r;
|
|
3604
|
+
},
|
|
3605
|
+
decode(e, r) {
|
|
3606
|
+
const n = e instanceof s ? e : new s(e);
|
|
3607
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
3608
|
+
const t = Xe();
|
|
3609
|
+
for (; n.pos < a; ) {
|
|
3610
|
+
const i = n.uint32();
|
|
3611
|
+
switch (i >>> 3) {
|
|
3612
|
+
case 1: {
|
|
3613
|
+
if (i !== 8)
|
|
3614
|
+
break;
|
|
3615
|
+
t.eventType = n.int32();
|
|
3616
|
+
continue;
|
|
3617
|
+
}
|
|
3618
|
+
case 2: {
|
|
3619
|
+
if (i !== 18)
|
|
3620
|
+
break;
|
|
3621
|
+
t.identifier = n.string();
|
|
3622
|
+
continue;
|
|
3623
|
+
}
|
|
3624
|
+
case 3: {
|
|
3625
|
+
if (i !== 26)
|
|
3626
|
+
break;
|
|
3627
|
+
t.measurementSetup = A.decode(n, n.uint32());
|
|
3628
|
+
continue;
|
|
3629
|
+
}
|
|
3630
|
+
case 4: {
|
|
3631
|
+
if (i !== 34)
|
|
3632
|
+
break;
|
|
3633
|
+
t.onlineStatus = D.decode(n, n.uint32());
|
|
3634
|
+
continue;
|
|
3635
|
+
}
|
|
3636
|
+
}
|
|
3637
|
+
if ((i & 7) === 4 || i === 0)
|
|
3638
|
+
break;
|
|
3639
|
+
n.skip(i & 7);
|
|
3640
|
+
}
|
|
3641
|
+
return t;
|
|
3642
|
+
},
|
|
3643
|
+
fromJSON(e) {
|
|
3644
|
+
return {
|
|
3645
|
+
eventType: c(e.eventType) ? zr(e.eventType) : 0,
|
|
3646
|
+
identifier: c(e.identifier) ? globalThis.String(e.identifier) : void 0,
|
|
3647
|
+
measurementSetup: c(e.measurementSetup) ? A.fromJSON(e.measurementSetup) : void 0,
|
|
3648
|
+
onlineStatus: c(e.onlineStatus) ? D.fromJSON(e.onlineStatus) : void 0
|
|
3649
|
+
};
|
|
3650
|
+
},
|
|
3651
|
+
toJSON(e) {
|
|
3652
|
+
const r = {};
|
|
3653
|
+
return e.eventType !== 0 && (r.eventType = jr(e.eventType)), e.identifier !== void 0 && (r.identifier = e.identifier), e.measurementSetup !== void 0 && (r.measurementSetup = A.toJSON(e.measurementSetup)), e.onlineStatus !== void 0 && (r.onlineStatus = D.toJSON(e.onlineStatus)), r;
|
|
3654
|
+
},
|
|
3655
|
+
create(e) {
|
|
3656
|
+
return On.fromPartial(e ?? {});
|
|
3657
|
+
},
|
|
3658
|
+
fromPartial(e) {
|
|
3659
|
+
const r = Xe();
|
|
3660
|
+
return r.eventType = e.eventType ?? 0, r.identifier = e.identifier ?? void 0, r.measurementSetup = e.measurementSetup !== void 0 && e.measurementSetup !== null ? A.fromPartial(e.measurementSetup) : void 0, r.onlineStatus = e.onlineStatus !== void 0 && e.onlineStatus !== null ? D.fromPartial(e.onlineStatus) : void 0, r;
|
|
3661
|
+
}
|
|
3662
|
+
};
|
|
3663
|
+
function $e() {
|
|
3664
|
+
return { preferences: void 0, messageLog: !1, signalLog: !1 };
|
|
3665
|
+
}
|
|
3666
|
+
const An = {
|
|
3667
|
+
encode(e, r = new u()) {
|
|
3668
|
+
return e.preferences !== void 0 && o.encode(e.preferences, r.uint32(10).fork()).join(), e.messageLog !== !1 && r.uint32(16).bool(e.messageLog), e.signalLog !== !1 && r.uint32(24).bool(e.signalLog), r;
|
|
3669
|
+
},
|
|
3670
|
+
decode(e, r) {
|
|
3671
|
+
const n = e instanceof s ? e : new s(e);
|
|
3672
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
3673
|
+
const t = $e();
|
|
3674
|
+
for (; n.pos < a; ) {
|
|
3675
|
+
const i = n.uint32();
|
|
3676
|
+
switch (i >>> 3) {
|
|
3677
|
+
case 1: {
|
|
3678
|
+
if (i !== 10)
|
|
3679
|
+
break;
|
|
3680
|
+
t.preferences = o.decode(n, n.uint32());
|
|
3681
|
+
continue;
|
|
3682
|
+
}
|
|
3683
|
+
case 2: {
|
|
3684
|
+
if (i !== 16)
|
|
3685
|
+
break;
|
|
3686
|
+
t.messageLog = n.bool();
|
|
3687
|
+
continue;
|
|
3688
|
+
}
|
|
3689
|
+
case 3: {
|
|
3690
|
+
if (i !== 24)
|
|
3691
|
+
break;
|
|
3692
|
+
t.signalLog = n.bool();
|
|
3693
|
+
continue;
|
|
3694
|
+
}
|
|
3695
|
+
}
|
|
3696
|
+
if ((i & 7) === 4 || i === 0)
|
|
3697
|
+
break;
|
|
3698
|
+
n.skip(i & 7);
|
|
3699
|
+
}
|
|
3700
|
+
return t;
|
|
3701
|
+
},
|
|
3702
|
+
fromJSON(e) {
|
|
3703
|
+
return {
|
|
3704
|
+
preferences: c(e.preferences) ? o.fromJSON(e.preferences) : void 0,
|
|
3705
|
+
messageLog: c(e.messageLog) ? globalThis.Boolean(e.messageLog) : !1,
|
|
3706
|
+
signalLog: c(e.signalLog) ? globalThis.Boolean(e.signalLog) : !1
|
|
3707
|
+
};
|
|
3708
|
+
},
|
|
3709
|
+
toJSON(e) {
|
|
3710
|
+
const r = {};
|
|
3711
|
+
return e.preferences !== void 0 && (r.preferences = o.toJSON(e.preferences)), e.messageLog !== !1 && (r.messageLog = e.messageLog), e.signalLog !== !1 && (r.signalLog = e.signalLog), r;
|
|
3712
|
+
},
|
|
3713
|
+
create(e) {
|
|
3714
|
+
return An.fromPartial(e ?? {});
|
|
3715
|
+
},
|
|
3716
|
+
fromPartial(e) {
|
|
3717
|
+
const r = $e();
|
|
3718
|
+
return r.preferences = e.preferences !== void 0 && e.preferences !== null ? o.fromPartial(e.preferences) : void 0, r.messageLog = e.messageLog ?? !1, r.signalLog = e.signalLog ?? !1, r;
|
|
3719
|
+
}
|
|
3720
|
+
};
|
|
3721
|
+
function ze() {
|
|
3722
|
+
return { formats: [], names: [], extensions: [], descriptions: [] };
|
|
3723
|
+
}
|
|
3724
|
+
const _n = {
|
|
3725
|
+
encode(e, r = new u()) {
|
|
3726
|
+
r.uint32(10).fork();
|
|
3727
|
+
for (const n of e.formats)
|
|
3728
|
+
r.int32(n);
|
|
3729
|
+
r.join();
|
|
3730
|
+
for (const n of e.names)
|
|
3731
|
+
r.uint32(18).string(n);
|
|
3732
|
+
for (const n of e.extensions)
|
|
3733
|
+
r.uint32(26).string(n);
|
|
3734
|
+
for (const n of e.descriptions)
|
|
3735
|
+
r.uint32(34).string(n);
|
|
3736
|
+
return r;
|
|
3737
|
+
},
|
|
3738
|
+
decode(e, r) {
|
|
3739
|
+
const n = e instanceof s ? e : new s(e);
|
|
3740
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
3741
|
+
const t = ze();
|
|
3742
|
+
for (; n.pos < a; ) {
|
|
3743
|
+
const i = n.uint32();
|
|
3744
|
+
switch (i >>> 3) {
|
|
3745
|
+
case 1: {
|
|
3746
|
+
if (i === 8) {
|
|
3747
|
+
t.formats.push(n.int32());
|
|
3748
|
+
continue;
|
|
3749
|
+
}
|
|
3750
|
+
if (i === 10) {
|
|
3751
|
+
const p = n.uint32() + n.pos;
|
|
3752
|
+
for (; n.pos < p; )
|
|
3753
|
+
t.formats.push(n.int32());
|
|
3754
|
+
continue;
|
|
3755
|
+
}
|
|
3756
|
+
break;
|
|
3757
|
+
}
|
|
3758
|
+
case 2: {
|
|
3759
|
+
if (i !== 18)
|
|
3760
|
+
break;
|
|
3761
|
+
t.names.push(n.string());
|
|
3762
|
+
continue;
|
|
3763
|
+
}
|
|
3764
|
+
case 3: {
|
|
3765
|
+
if (i !== 26)
|
|
3766
|
+
break;
|
|
3767
|
+
t.extensions.push(n.string());
|
|
3768
|
+
continue;
|
|
3769
|
+
}
|
|
3770
|
+
case 4: {
|
|
3771
|
+
if (i !== 34)
|
|
3772
|
+
break;
|
|
3773
|
+
t.descriptions.push(n.string());
|
|
3774
|
+
continue;
|
|
3775
|
+
}
|
|
3776
|
+
}
|
|
3777
|
+
if ((i & 7) === 4 || i === 0)
|
|
3778
|
+
break;
|
|
3779
|
+
n.skip(i & 7);
|
|
3780
|
+
}
|
|
3781
|
+
return t;
|
|
3782
|
+
},
|
|
3783
|
+
fromJSON(e) {
|
|
3784
|
+
return {
|
|
3785
|
+
formats: globalThis.Array.isArray(e == null ? void 0 : e.formats) ? e.formats.map((r) => Er(r)) : [],
|
|
3786
|
+
names: globalThis.Array.isArray(e == null ? void 0 : e.names) ? e.names.map((r) => globalThis.String(r)) : [],
|
|
3787
|
+
extensions: globalThis.Array.isArray(e == null ? void 0 : e.extensions) ? e.extensions.map((r) => globalThis.String(r)) : [],
|
|
3788
|
+
descriptions: globalThis.Array.isArray(e == null ? void 0 : e.descriptions) ? e.descriptions.map((r) => globalThis.String(r)) : []
|
|
3789
|
+
};
|
|
3790
|
+
},
|
|
3791
|
+
toJSON(e) {
|
|
3792
|
+
var n, a, t, i;
|
|
3793
|
+
const r = {};
|
|
3794
|
+
return (n = e.formats) != null && n.length && (r.formats = e.formats.map((p) => vr(p))), (a = e.names) != null && a.length && (r.names = e.names), (t = e.extensions) != null && t.length && (r.extensions = e.extensions), (i = e.descriptions) != null && i.length && (r.descriptions = e.descriptions), r;
|
|
3795
|
+
},
|
|
3796
|
+
create(e) {
|
|
3797
|
+
return _n.fromPartial(e ?? {});
|
|
3798
|
+
},
|
|
3799
|
+
fromPartial(e) {
|
|
3800
|
+
var n, a, t, i;
|
|
3801
|
+
const r = ze();
|
|
3802
|
+
return r.formats = ((n = e.formats) == null ? void 0 : n.map((p) => p)) || [], r.names = ((a = e.names) == null ? void 0 : a.map((p) => p)) || [], r.extensions = ((t = e.extensions) == null ? void 0 : t.map((p) => p)) || [], r.descriptions = ((i = e.descriptions) == null ? void 0 : i.map((p) => p)) || [], r;
|
|
3803
|
+
}
|
|
3804
|
+
};
|
|
3805
|
+
function je() {
|
|
3806
|
+
return { preferences: void 0, logFile: "" };
|
|
3807
|
+
}
|
|
3808
|
+
const Tn = {
|
|
3809
|
+
encode(e, r = new u()) {
|
|
3810
|
+
return e.preferences !== void 0 && o.encode(e.preferences, r.uint32(10).fork()).join(), e.logFile !== "" && r.uint32(18).string(e.logFile), r;
|
|
3811
|
+
},
|
|
3812
|
+
decode(e, r) {
|
|
3813
|
+
const n = e instanceof s ? e : new s(e);
|
|
3814
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
3815
|
+
const t = je();
|
|
3816
|
+
for (; n.pos < a; ) {
|
|
3817
|
+
const i = n.uint32();
|
|
3818
|
+
switch (i >>> 3) {
|
|
3819
|
+
case 1: {
|
|
3820
|
+
if (i !== 10)
|
|
3821
|
+
break;
|
|
3822
|
+
t.preferences = o.decode(n, n.uint32());
|
|
3823
|
+
continue;
|
|
3824
|
+
}
|
|
3825
|
+
case 2: {
|
|
3826
|
+
if (i !== 18)
|
|
3827
|
+
break;
|
|
3828
|
+
t.logFile = n.string();
|
|
3829
|
+
continue;
|
|
3830
|
+
}
|
|
3831
|
+
}
|
|
3832
|
+
if ((i & 7) === 4 || i === 0)
|
|
3833
|
+
break;
|
|
3834
|
+
n.skip(i & 7);
|
|
3835
|
+
}
|
|
3836
|
+
return t;
|
|
3837
|
+
},
|
|
3838
|
+
fromJSON(e) {
|
|
3839
|
+
return {
|
|
3840
|
+
preferences: c(e.preferences) ? o.fromJSON(e.preferences) : void 0,
|
|
3841
|
+
logFile: c(e.logFile) ? globalThis.String(e.logFile) : ""
|
|
3842
|
+
};
|
|
3843
|
+
},
|
|
3844
|
+
toJSON(e) {
|
|
3845
|
+
const r = {};
|
|
3846
|
+
return e.preferences !== void 0 && (r.preferences = o.toJSON(e.preferences)), e.logFile !== "" && (r.logFile = e.logFile), r;
|
|
3847
|
+
},
|
|
3848
|
+
create(e) {
|
|
3849
|
+
return Tn.fromPartial(e ?? {});
|
|
3850
|
+
},
|
|
3851
|
+
fromPartial(e) {
|
|
3852
|
+
const r = je();
|
|
3853
|
+
return r.preferences = e.preferences !== void 0 && e.preferences !== null ? o.fromPartial(e.preferences) : void 0, r.logFile = e.logFile ?? "", r;
|
|
3854
|
+
}
|
|
3855
|
+
};
|
|
3856
|
+
function er() {
|
|
3857
|
+
return { channels: [] };
|
|
3858
|
+
}
|
|
3859
|
+
const Cn = {
|
|
3860
|
+
encode(e, r = new u()) {
|
|
3861
|
+
r.uint32(10).fork();
|
|
3862
|
+
for (const n of e.channels)
|
|
3863
|
+
r.int32(n);
|
|
3864
|
+
return r.join(), r;
|
|
3865
|
+
},
|
|
3866
|
+
decode(e, r) {
|
|
3867
|
+
const n = e instanceof s ? e : new s(e);
|
|
3868
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
3869
|
+
const t = er();
|
|
3870
|
+
for (; n.pos < a; ) {
|
|
3871
|
+
const i = n.uint32();
|
|
3872
|
+
switch (i >>> 3) {
|
|
3873
|
+
case 1: {
|
|
3874
|
+
if (i === 8) {
|
|
3875
|
+
t.channels.push(n.int32());
|
|
3876
|
+
continue;
|
|
3877
|
+
}
|
|
3878
|
+
if (i === 10) {
|
|
3879
|
+
const p = n.uint32() + n.pos;
|
|
3880
|
+
for (; n.pos < p; )
|
|
3881
|
+
t.channels.push(n.int32());
|
|
3882
|
+
continue;
|
|
3883
|
+
}
|
|
3884
|
+
break;
|
|
3885
|
+
}
|
|
3886
|
+
}
|
|
3887
|
+
if ((i & 7) === 4 || i === 0)
|
|
3888
|
+
break;
|
|
3889
|
+
n.skip(i & 7);
|
|
3890
|
+
}
|
|
3891
|
+
return t;
|
|
3892
|
+
},
|
|
3893
|
+
fromJSON(e) {
|
|
3894
|
+
return {
|
|
3895
|
+
channels: globalThis.Array.isArray(e == null ? void 0 : e.channels) ? e.channels.map((r) => globalThis.Number(r)) : []
|
|
3896
|
+
};
|
|
3897
|
+
},
|
|
3898
|
+
toJSON(e) {
|
|
3899
|
+
var n;
|
|
3900
|
+
const r = {};
|
|
3901
|
+
return (n = e.channels) != null && n.length && (r.channels = e.channels.map((a) => Math.round(a))), r;
|
|
3902
|
+
},
|
|
3903
|
+
create(e) {
|
|
3904
|
+
return Cn.fromPartial(e ?? {});
|
|
3905
|
+
},
|
|
3906
|
+
fromPartial(e) {
|
|
3907
|
+
var n;
|
|
3908
|
+
const r = er();
|
|
3909
|
+
return r.channels = ((n = e.channels) == null ? void 0 : n.map((a) => a)) || [], r;
|
|
3910
|
+
}
|
|
3911
|
+
};
|
|
3912
|
+
function rr() {
|
|
3913
|
+
return { preferences: void 0, files: [] };
|
|
3914
|
+
}
|
|
3915
|
+
const Rn = {
|
|
3916
|
+
encode(e, r = new u()) {
|
|
3917
|
+
e.preferences !== void 0 && o.encode(e.preferences, r.uint32(10).fork()).join();
|
|
3918
|
+
for (const n of e.files)
|
|
3919
|
+
r.uint32(18).string(n);
|
|
3920
|
+
return r;
|
|
3921
|
+
},
|
|
3922
|
+
decode(e, r) {
|
|
3923
|
+
const n = e instanceof s ? e : new s(e);
|
|
3924
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
3925
|
+
const t = rr();
|
|
3926
|
+
for (; n.pos < a; ) {
|
|
3927
|
+
const i = n.uint32();
|
|
3928
|
+
switch (i >>> 3) {
|
|
3929
|
+
case 1: {
|
|
3930
|
+
if (i !== 10)
|
|
3931
|
+
break;
|
|
3932
|
+
t.preferences = o.decode(n, n.uint32());
|
|
3933
|
+
continue;
|
|
3934
|
+
}
|
|
3935
|
+
case 2: {
|
|
3936
|
+
if (i !== 18)
|
|
3937
|
+
break;
|
|
3938
|
+
t.files.push(n.string());
|
|
3939
|
+
continue;
|
|
3940
|
+
}
|
|
3941
|
+
}
|
|
3942
|
+
if ((i & 7) === 4 || i === 0)
|
|
3943
|
+
break;
|
|
3944
|
+
n.skip(i & 7);
|
|
3945
|
+
}
|
|
3946
|
+
return t;
|
|
3947
|
+
},
|
|
3948
|
+
fromJSON(e) {
|
|
3949
|
+
return {
|
|
3950
|
+
preferences: c(e.preferences) ? o.fromJSON(e.preferences) : void 0,
|
|
3951
|
+
files: globalThis.Array.isArray(e == null ? void 0 : e.files) ? e.files.map((r) => globalThis.String(r)) : []
|
|
3952
|
+
};
|
|
3953
|
+
},
|
|
3954
|
+
toJSON(e) {
|
|
3955
|
+
var n;
|
|
3956
|
+
const r = {};
|
|
3957
|
+
return e.preferences !== void 0 && (r.preferences = o.toJSON(e.preferences)), (n = e.files) != null && n.length && (r.files = e.files), r;
|
|
3958
|
+
},
|
|
3959
|
+
create(e) {
|
|
3960
|
+
return Rn.fromPartial(e ?? {});
|
|
3961
|
+
},
|
|
3962
|
+
fromPartial(e) {
|
|
3963
|
+
var n;
|
|
3964
|
+
const r = rr();
|
|
3965
|
+
return r.preferences = e.preferences !== void 0 && e.preferences !== null ? o.fromPartial(e.preferences) : void 0, r.files = ((n = e.files) == null ? void 0 : n.map((a) => a)) || [], r;
|
|
3966
|
+
}
|
|
3967
|
+
};
|
|
3968
|
+
function nr() {
|
|
3969
|
+
return { preferences: void 0, files: [] };
|
|
3970
|
+
}
|
|
3971
|
+
const kn = {
|
|
3972
|
+
encode(e, r = new u()) {
|
|
3973
|
+
e.preferences !== void 0 && o.encode(e.preferences, r.uint32(10).fork()).join();
|
|
3974
|
+
for (const n of e.files)
|
|
3975
|
+
r.uint32(18).string(n);
|
|
3976
|
+
return r;
|
|
3977
|
+
},
|
|
3978
|
+
decode(e, r) {
|
|
3979
|
+
const n = e instanceof s ? e : new s(e);
|
|
3980
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
3981
|
+
const t = nr();
|
|
3982
|
+
for (; n.pos < a; ) {
|
|
3983
|
+
const i = n.uint32();
|
|
3984
|
+
switch (i >>> 3) {
|
|
3985
|
+
case 1: {
|
|
3986
|
+
if (i !== 10)
|
|
3987
|
+
break;
|
|
3988
|
+
t.preferences = o.decode(n, n.uint32());
|
|
3989
|
+
continue;
|
|
3990
|
+
}
|
|
3991
|
+
case 2: {
|
|
3992
|
+
if (i !== 18)
|
|
3993
|
+
break;
|
|
3994
|
+
t.files.push(n.string());
|
|
3995
|
+
continue;
|
|
3996
|
+
}
|
|
3997
|
+
}
|
|
3998
|
+
if ((i & 7) === 4 || i === 0)
|
|
3999
|
+
break;
|
|
4000
|
+
n.skip(i & 7);
|
|
4001
|
+
}
|
|
4002
|
+
return t;
|
|
4003
|
+
},
|
|
4004
|
+
fromJSON(e) {
|
|
4005
|
+
return {
|
|
4006
|
+
preferences: c(e.preferences) ? o.fromJSON(e.preferences) : void 0,
|
|
4007
|
+
files: globalThis.Array.isArray(e == null ? void 0 : e.files) ? e.files.map((r) => globalThis.String(r)) : []
|
|
4008
|
+
};
|
|
4009
|
+
},
|
|
4010
|
+
toJSON(e) {
|
|
4011
|
+
var n;
|
|
4012
|
+
const r = {};
|
|
4013
|
+
return e.preferences !== void 0 && (r.preferences = o.toJSON(e.preferences)), (n = e.files) != null && n.length && (r.files = e.files), r;
|
|
4014
|
+
},
|
|
4015
|
+
create(e) {
|
|
4016
|
+
return kn.fromPartial(e ?? {});
|
|
4017
|
+
},
|
|
4018
|
+
fromPartial(e) {
|
|
4019
|
+
var n;
|
|
4020
|
+
const r = nr();
|
|
4021
|
+
return r.preferences = e.preferences !== void 0 && e.preferences !== null ? o.fromPartial(e.preferences) : void 0, r.files = ((n = e.files) == null ? void 0 : n.map((a) => a)) || [], r;
|
|
4022
|
+
}
|
|
4023
|
+
};
|
|
4024
|
+
function ir() {
|
|
4025
|
+
return { tables: [] };
|
|
4026
|
+
}
|
|
4027
|
+
const In = {
|
|
4028
|
+
encode(e, r = new u()) {
|
|
4029
|
+
for (const n of e.tables)
|
|
4030
|
+
q.encode(n, r.uint32(10).fork()).join();
|
|
4031
|
+
return r;
|
|
4032
|
+
},
|
|
4033
|
+
decode(e, r) {
|
|
4034
|
+
const n = e instanceof s ? e : new s(e);
|
|
4035
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
4036
|
+
const t = ir();
|
|
4037
|
+
for (; n.pos < a; ) {
|
|
4038
|
+
const i = n.uint32();
|
|
4039
|
+
switch (i >>> 3) {
|
|
4040
|
+
case 1: {
|
|
4041
|
+
if (i !== 10)
|
|
4042
|
+
break;
|
|
4043
|
+
t.tables.push(q.decode(n, n.uint32()));
|
|
4044
|
+
continue;
|
|
4045
|
+
}
|
|
4046
|
+
}
|
|
4047
|
+
if ((i & 7) === 4 || i === 0)
|
|
4048
|
+
break;
|
|
4049
|
+
n.skip(i & 7);
|
|
4050
|
+
}
|
|
4051
|
+
return t;
|
|
4052
|
+
},
|
|
4053
|
+
fromJSON(e) {
|
|
4054
|
+
return {
|
|
4055
|
+
tables: globalThis.Array.isArray(e == null ? void 0 : e.tables) ? e.tables.map((r) => q.fromJSON(r)) : []
|
|
4056
|
+
};
|
|
4057
|
+
},
|
|
4058
|
+
toJSON(e) {
|
|
4059
|
+
var n;
|
|
4060
|
+
const r = {};
|
|
4061
|
+
return (n = e.tables) != null && n.length && (r.tables = e.tables.map((a) => q.toJSON(a))), r;
|
|
4062
|
+
},
|
|
4063
|
+
create(e) {
|
|
4064
|
+
return In.fromPartial(e ?? {});
|
|
4065
|
+
},
|
|
4066
|
+
fromPartial(e) {
|
|
4067
|
+
var n;
|
|
4068
|
+
const r = ir();
|
|
4069
|
+
return r.tables = ((n = e.tables) == null ? void 0 : n.map((a) => q.fromPartial(a))) || [], r;
|
|
4070
|
+
}
|
|
4071
|
+
};
|
|
4072
|
+
function tr() {
|
|
4073
|
+
return { preferences: void 0, messageQualifiedName: "", data: [] };
|
|
4074
|
+
}
|
|
4075
|
+
const Ln = {
|
|
4076
|
+
encode(e, r = new u()) {
|
|
4077
|
+
e.preferences !== void 0 && o.encode(e.preferences, r.uint32(10).fork()).join(), e.messageQualifiedName !== "" && r.uint32(18).string(e.messageQualifiedName), r.uint32(26).fork();
|
|
4078
|
+
for (const n of e.data)
|
|
4079
|
+
r.uint32(n);
|
|
4080
|
+
return r.join(), r;
|
|
4081
|
+
},
|
|
4082
|
+
decode(e, r) {
|
|
4083
|
+
const n = e instanceof s ? e : new s(e);
|
|
4084
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
4085
|
+
const t = tr();
|
|
4086
|
+
for (; n.pos < a; ) {
|
|
4087
|
+
const i = n.uint32();
|
|
4088
|
+
switch (i >>> 3) {
|
|
4089
|
+
case 1: {
|
|
4090
|
+
if (i !== 10)
|
|
4091
|
+
break;
|
|
4092
|
+
t.preferences = o.decode(n, n.uint32());
|
|
4093
|
+
continue;
|
|
4094
|
+
}
|
|
4095
|
+
case 2: {
|
|
4096
|
+
if (i !== 18)
|
|
4097
|
+
break;
|
|
4098
|
+
t.messageQualifiedName = n.string();
|
|
4099
|
+
continue;
|
|
4100
|
+
}
|
|
4101
|
+
case 3: {
|
|
4102
|
+
if (i === 24) {
|
|
4103
|
+
t.data.push(n.uint32());
|
|
4104
|
+
continue;
|
|
4105
|
+
}
|
|
4106
|
+
if (i === 26) {
|
|
4107
|
+
const p = n.uint32() + n.pos;
|
|
4108
|
+
for (; n.pos < p; )
|
|
4109
|
+
t.data.push(n.uint32());
|
|
4110
|
+
continue;
|
|
4111
|
+
}
|
|
4112
|
+
break;
|
|
4113
|
+
}
|
|
4114
|
+
}
|
|
4115
|
+
if ((i & 7) === 4 || i === 0)
|
|
4116
|
+
break;
|
|
4117
|
+
n.skip(i & 7);
|
|
4118
|
+
}
|
|
4119
|
+
return t;
|
|
4120
|
+
},
|
|
4121
|
+
fromJSON(e) {
|
|
4122
|
+
return {
|
|
4123
|
+
preferences: c(e.preferences) ? o.fromJSON(e.preferences) : void 0,
|
|
4124
|
+
messageQualifiedName: c(e.messageQualifiedName) ? globalThis.String(e.messageQualifiedName) : "",
|
|
4125
|
+
data: globalThis.Array.isArray(e == null ? void 0 : e.data) ? e.data.map((r) => globalThis.Number(r)) : []
|
|
4126
|
+
};
|
|
4127
|
+
},
|
|
4128
|
+
toJSON(e) {
|
|
4129
|
+
var n;
|
|
4130
|
+
const r = {};
|
|
4131
|
+
return e.preferences !== void 0 && (r.preferences = o.toJSON(e.preferences)), e.messageQualifiedName !== "" && (r.messageQualifiedName = e.messageQualifiedName), (n = e.data) != null && n.length && (r.data = e.data.map((a) => Math.round(a))), r;
|
|
4132
|
+
},
|
|
4133
|
+
create(e) {
|
|
4134
|
+
return Ln.fromPartial(e ?? {});
|
|
4135
|
+
},
|
|
4136
|
+
fromPartial(e) {
|
|
4137
|
+
var n;
|
|
4138
|
+
const r = tr();
|
|
4139
|
+
return r.preferences = e.preferences !== void 0 && e.preferences !== null ? o.fromPartial(e.preferences) : void 0, r.messageQualifiedName = e.messageQualifiedName ?? "", r.data = ((n = e.data) == null ? void 0 : n.map((a) => a)) || [], r;
|
|
4140
|
+
}
|
|
4141
|
+
};
|
|
4142
|
+
function ar() {
|
|
4143
|
+
return { signalValues: [] };
|
|
4144
|
+
}
|
|
4145
|
+
const gn = {
|
|
4146
|
+
encode(e, r = new u()) {
|
|
4147
|
+
for (const n of e.signalValues)
|
|
4148
|
+
m.encode(n, r.uint32(10).fork()).join();
|
|
4149
|
+
return r;
|
|
4150
|
+
},
|
|
4151
|
+
decode(e, r) {
|
|
4152
|
+
const n = e instanceof s ? e : new s(e);
|
|
4153
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
4154
|
+
const t = ar();
|
|
4155
|
+
for (; n.pos < a; ) {
|
|
4156
|
+
const i = n.uint32();
|
|
4157
|
+
switch (i >>> 3) {
|
|
4158
|
+
case 1: {
|
|
4159
|
+
if (i !== 10)
|
|
4160
|
+
break;
|
|
4161
|
+
t.signalValues.push(m.decode(n, n.uint32()));
|
|
4162
|
+
continue;
|
|
4163
|
+
}
|
|
4164
|
+
}
|
|
4165
|
+
if ((i & 7) === 4 || i === 0)
|
|
4166
|
+
break;
|
|
4167
|
+
n.skip(i & 7);
|
|
4168
|
+
}
|
|
4169
|
+
return t;
|
|
4170
|
+
},
|
|
4171
|
+
fromJSON(e) {
|
|
4172
|
+
return {
|
|
4173
|
+
signalValues: globalThis.Array.isArray(e == null ? void 0 : e.signalValues) ? e.signalValues.map((r) => m.fromJSON(r)) : []
|
|
4174
|
+
};
|
|
4175
|
+
},
|
|
4176
|
+
toJSON(e) {
|
|
4177
|
+
var n;
|
|
4178
|
+
const r = {};
|
|
4179
|
+
return (n = e.signalValues) != null && n.length && (r.signalValues = e.signalValues.map((a) => m.toJSON(a))), r;
|
|
4180
|
+
},
|
|
4181
|
+
create(e) {
|
|
4182
|
+
return gn.fromPartial(e ?? {});
|
|
4183
|
+
},
|
|
4184
|
+
fromPartial(e) {
|
|
4185
|
+
var n;
|
|
4186
|
+
const r = ar();
|
|
4187
|
+
return r.signalValues = ((n = e.signalValues) == null ? void 0 : n.map((a) => m.fromPartial(a))) || [], r;
|
|
4188
|
+
}
|
|
4189
|
+
};
|
|
4190
|
+
function or() {
|
|
4191
|
+
return { preferences: void 0, messageQualifiedName: "", data: [], signalValues: [] };
|
|
4192
|
+
}
|
|
4193
|
+
const Jn = {
|
|
4194
|
+
encode(e, r = new u()) {
|
|
4195
|
+
e.preferences !== void 0 && o.encode(e.preferences, r.uint32(10).fork()).join(), e.messageQualifiedName !== "" && r.uint32(18).string(e.messageQualifiedName), r.uint32(26).fork();
|
|
4196
|
+
for (const n of e.data)
|
|
4197
|
+
r.uint32(n);
|
|
4198
|
+
r.join();
|
|
4199
|
+
for (const n of e.signalValues)
|
|
4200
|
+
m.encode(n, r.uint32(34).fork()).join();
|
|
4201
|
+
return r;
|
|
4202
|
+
},
|
|
4203
|
+
decode(e, r) {
|
|
4204
|
+
const n = e instanceof s ? e : new s(e);
|
|
4205
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
4206
|
+
const t = or();
|
|
4207
|
+
for (; n.pos < a; ) {
|
|
4208
|
+
const i = n.uint32();
|
|
4209
|
+
switch (i >>> 3) {
|
|
4210
|
+
case 1: {
|
|
4211
|
+
if (i !== 10)
|
|
4212
|
+
break;
|
|
4213
|
+
t.preferences = o.decode(n, n.uint32());
|
|
4214
|
+
continue;
|
|
4215
|
+
}
|
|
4216
|
+
case 2: {
|
|
4217
|
+
if (i !== 18)
|
|
4218
|
+
break;
|
|
4219
|
+
t.messageQualifiedName = n.string();
|
|
4220
|
+
continue;
|
|
4221
|
+
}
|
|
4222
|
+
case 3: {
|
|
4223
|
+
if (i === 24) {
|
|
4224
|
+
t.data.push(n.uint32());
|
|
4225
|
+
continue;
|
|
4226
|
+
}
|
|
4227
|
+
if (i === 26) {
|
|
4228
|
+
const p = n.uint32() + n.pos;
|
|
4229
|
+
for (; n.pos < p; )
|
|
4230
|
+
t.data.push(n.uint32());
|
|
4231
|
+
continue;
|
|
4232
|
+
}
|
|
4233
|
+
break;
|
|
4234
|
+
}
|
|
4235
|
+
case 4: {
|
|
4236
|
+
if (i !== 34)
|
|
4237
|
+
break;
|
|
4238
|
+
t.signalValues.push(m.decode(n, n.uint32()));
|
|
4239
|
+
continue;
|
|
4240
|
+
}
|
|
4241
|
+
}
|
|
4242
|
+
if ((i & 7) === 4 || i === 0)
|
|
4243
|
+
break;
|
|
4244
|
+
n.skip(i & 7);
|
|
4245
|
+
}
|
|
4246
|
+
return t;
|
|
4247
|
+
},
|
|
4248
|
+
fromJSON(e) {
|
|
4249
|
+
return {
|
|
4250
|
+
preferences: c(e.preferences) ? o.fromJSON(e.preferences) : void 0,
|
|
4251
|
+
messageQualifiedName: c(e.messageQualifiedName) ? globalThis.String(e.messageQualifiedName) : "",
|
|
4252
|
+
data: globalThis.Array.isArray(e == null ? void 0 : e.data) ? e.data.map((r) => globalThis.Number(r)) : [],
|
|
4253
|
+
signalValues: globalThis.Array.isArray(e == null ? void 0 : e.signalValues) ? e.signalValues.map((r) => m.fromJSON(r)) : []
|
|
4254
|
+
};
|
|
4255
|
+
},
|
|
4256
|
+
toJSON(e) {
|
|
4257
|
+
var n, a;
|
|
4258
|
+
const r = {};
|
|
4259
|
+
return e.preferences !== void 0 && (r.preferences = o.toJSON(e.preferences)), e.messageQualifiedName !== "" && (r.messageQualifiedName = e.messageQualifiedName), (n = e.data) != null && n.length && (r.data = e.data.map((t) => Math.round(t))), (a = e.signalValues) != null && a.length && (r.signalValues = e.signalValues.map((t) => m.toJSON(t))), r;
|
|
4260
|
+
},
|
|
4261
|
+
create(e) {
|
|
4262
|
+
return Jn.fromPartial(e ?? {});
|
|
4263
|
+
},
|
|
4264
|
+
fromPartial(e) {
|
|
4265
|
+
var n, a;
|
|
4266
|
+
const r = or();
|
|
4267
|
+
return r.preferences = e.preferences !== void 0 && e.preferences !== null ? o.fromPartial(e.preferences) : void 0, r.messageQualifiedName = e.messageQualifiedName ?? "", r.data = ((n = e.data) == null ? void 0 : n.map((t) => t)) || [], r.signalValues = ((a = e.signalValues) == null ? void 0 : a.map((t) => m.fromPartial(t))) || [], r;
|
|
4268
|
+
}
|
|
4269
|
+
};
|
|
4270
|
+
function sr() {
|
|
4271
|
+
return { signalValues: [], data: [] };
|
|
4272
|
+
}
|
|
4273
|
+
const xn = {
|
|
4274
|
+
encode(e, r = new u()) {
|
|
4275
|
+
for (const n of e.signalValues)
|
|
4276
|
+
m.encode(n, r.uint32(10).fork()).join();
|
|
4277
|
+
r.uint32(18).fork();
|
|
4278
|
+
for (const n of e.data)
|
|
4279
|
+
r.uint32(n);
|
|
4280
|
+
return r.join(), r;
|
|
4281
|
+
},
|
|
4282
|
+
decode(e, r) {
|
|
4283
|
+
const n = e instanceof s ? e : new s(e);
|
|
4284
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
4285
|
+
const t = sr();
|
|
4286
|
+
for (; n.pos < a; ) {
|
|
4287
|
+
const i = n.uint32();
|
|
4288
|
+
switch (i >>> 3) {
|
|
4289
|
+
case 1: {
|
|
4290
|
+
if (i !== 10)
|
|
4291
|
+
break;
|
|
4292
|
+
t.signalValues.push(m.decode(n, n.uint32()));
|
|
4293
|
+
continue;
|
|
4294
|
+
}
|
|
4295
|
+
case 2: {
|
|
4296
|
+
if (i === 16) {
|
|
4297
|
+
t.data.push(n.uint32());
|
|
4298
|
+
continue;
|
|
4299
|
+
}
|
|
4300
|
+
if (i === 18) {
|
|
4301
|
+
const p = n.uint32() + n.pos;
|
|
4302
|
+
for (; n.pos < p; )
|
|
4303
|
+
t.data.push(n.uint32());
|
|
4304
|
+
continue;
|
|
4305
|
+
}
|
|
4306
|
+
break;
|
|
4307
|
+
}
|
|
4308
|
+
}
|
|
4309
|
+
if ((i & 7) === 4 || i === 0)
|
|
4310
|
+
break;
|
|
4311
|
+
n.skip(i & 7);
|
|
4312
|
+
}
|
|
4313
|
+
return t;
|
|
4314
|
+
},
|
|
4315
|
+
fromJSON(e) {
|
|
4316
|
+
return {
|
|
4317
|
+
signalValues: globalThis.Array.isArray(e == null ? void 0 : e.signalValues) ? e.signalValues.map((r) => m.fromJSON(r)) : [],
|
|
4318
|
+
data: globalThis.Array.isArray(e == null ? void 0 : e.data) ? e.data.map((r) => globalThis.Number(r)) : []
|
|
4319
|
+
};
|
|
4320
|
+
},
|
|
4321
|
+
toJSON(e) {
|
|
4322
|
+
var n, a;
|
|
4323
|
+
const r = {};
|
|
4324
|
+
return (n = e.signalValues) != null && n.length && (r.signalValues = e.signalValues.map((t) => m.toJSON(t))), (a = e.data) != null && a.length && (r.data = e.data.map((t) => Math.round(t))), r;
|
|
4325
|
+
},
|
|
4326
|
+
create(e) {
|
|
4327
|
+
return xn.fromPartial(e ?? {});
|
|
4328
|
+
},
|
|
4329
|
+
fromPartial(e) {
|
|
4330
|
+
var n, a;
|
|
4331
|
+
const r = sr();
|
|
4332
|
+
return r.signalValues = ((n = e.signalValues) == null ? void 0 : n.map((t) => m.fromPartial(t))) || [], r.data = ((a = e.data) == null ? void 0 : a.map((t) => t)) || [], r;
|
|
4333
|
+
}
|
|
4334
|
+
};
|
|
4335
|
+
function c(e) {
|
|
4336
|
+
return e != null;
|
|
4337
|
+
}
|
|
4338
|
+
var Dn = /* @__PURE__ */ ((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))(Dn || {});
|
|
4339
|
+
function Z(e) {
|
|
4340
|
+
switch (e) {
|
|
4341
|
+
case 0:
|
|
4342
|
+
case "STATUS_LEVEL_NONE":
|
|
4343
|
+
return 0;
|
|
4344
|
+
case 1:
|
|
4345
|
+
case "STATUS_LEVEL_OK":
|
|
4346
|
+
return 1;
|
|
4347
|
+
case 2:
|
|
4348
|
+
case "STATUS_LEVEL_WARNING":
|
|
4349
|
+
return 2;
|
|
4350
|
+
case 3:
|
|
4351
|
+
case "STATUS_LEVEL_ERROR":
|
|
4352
|
+
return 3;
|
|
4353
|
+
case -1:
|
|
4354
|
+
case "UNRECOGNIZED":
|
|
4355
|
+
default:
|
|
4356
|
+
return -1;
|
|
4357
|
+
}
|
|
4358
|
+
}
|
|
4359
|
+
function W(e) {
|
|
4360
|
+
switch (e) {
|
|
4361
|
+
case 0:
|
|
4362
|
+
return "STATUS_LEVEL_NONE";
|
|
4363
|
+
case 1:
|
|
4364
|
+
return "STATUS_LEVEL_OK";
|
|
4365
|
+
case 2:
|
|
4366
|
+
return "STATUS_LEVEL_WARNING";
|
|
4367
|
+
case 3:
|
|
4368
|
+
return "STATUS_LEVEL_ERROR";
|
|
4369
|
+
case -1:
|
|
4370
|
+
default:
|
|
4371
|
+
return "UNRECOGNIZED";
|
|
4372
|
+
}
|
|
4373
|
+
}
|
|
4374
|
+
var Mn = /* @__PURE__ */ ((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))(Mn || {});
|
|
4375
|
+
function bn(e) {
|
|
4376
|
+
switch (e) {
|
|
4377
|
+
case 0:
|
|
4378
|
+
case "LOG_REPLAY_STATE_UNSPECIFIED":
|
|
4379
|
+
return 0;
|
|
4380
|
+
case 1:
|
|
4381
|
+
case "LOG_REPLAY_STATE_STARTED":
|
|
4382
|
+
return 1;
|
|
4383
|
+
case 2:
|
|
4384
|
+
case "LOG_REPLAY_STATE_STOPPED":
|
|
4385
|
+
return 2;
|
|
4386
|
+
case -1:
|
|
4387
|
+
case "UNRECOGNIZED":
|
|
4388
|
+
default:
|
|
4389
|
+
return -1;
|
|
4390
|
+
}
|
|
4391
|
+
}
|
|
4392
|
+
function yn(e) {
|
|
4393
|
+
switch (e) {
|
|
4394
|
+
case 0:
|
|
4395
|
+
return "LOG_REPLAY_STATE_UNSPECIFIED";
|
|
4396
|
+
case 1:
|
|
4397
|
+
return "LOG_REPLAY_STATE_STARTED";
|
|
4398
|
+
case 2:
|
|
4399
|
+
return "LOG_REPLAY_STATE_STOPPED";
|
|
4400
|
+
case -1:
|
|
4401
|
+
default:
|
|
4402
|
+
return "UNRECOGNIZED";
|
|
4403
|
+
}
|
|
4404
|
+
}
|
|
4405
|
+
var Gn = /* @__PURE__ */ ((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))(Gn || {});
|
|
4406
|
+
function Vn(e) {
|
|
4407
|
+
switch (e) {
|
|
4408
|
+
case 0:
|
|
4409
|
+
case "MESSAGE_LOGGER_STATE_UNSPECIFIED":
|
|
4410
|
+
return 0;
|
|
4411
|
+
case 1:
|
|
4412
|
+
case "MESSAGE_LOGGER_STATE_PRESTART":
|
|
4413
|
+
return 1;
|
|
4414
|
+
case 2:
|
|
4415
|
+
case "MESSAGE_LOGGER_STATE_STARTED":
|
|
4416
|
+
return 2;
|
|
4417
|
+
case 3:
|
|
4418
|
+
case "MESSAGE_LOGGER_STATE_STOPPED":
|
|
4419
|
+
return 3;
|
|
4420
|
+
case -1:
|
|
4421
|
+
case "UNRECOGNIZED":
|
|
4422
|
+
default:
|
|
4423
|
+
return -1;
|
|
4424
|
+
}
|
|
4425
|
+
}
|
|
4426
|
+
function Bn(e) {
|
|
4427
|
+
switch (e) {
|
|
4428
|
+
case 0:
|
|
4429
|
+
return "MESSAGE_LOGGER_STATE_UNSPECIFIED";
|
|
4430
|
+
case 1:
|
|
4431
|
+
return "MESSAGE_LOGGER_STATE_PRESTART";
|
|
4432
|
+
case 2:
|
|
4433
|
+
return "MESSAGE_LOGGER_STATE_STARTED";
|
|
4434
|
+
case 3:
|
|
4435
|
+
return "MESSAGE_LOGGER_STATE_STOPPED";
|
|
4436
|
+
case -1:
|
|
4437
|
+
default:
|
|
4438
|
+
return "UNRECOGNIZED";
|
|
4439
|
+
}
|
|
4440
|
+
}
|
|
4441
|
+
function ur() {
|
|
4442
|
+
return {
|
|
4443
|
+
rxMessageCounter: 0,
|
|
4444
|
+
rxMessagesPerSecond: 0,
|
|
4445
|
+
txMessageCounter: 0,
|
|
4446
|
+
txMessagesPerSecond: 0,
|
|
4447
|
+
errorFrameCounter: 0,
|
|
4448
|
+
errorFramesPerSecond: 0,
|
|
4449
|
+
overrunCounter: 0,
|
|
4450
|
+
overrunsPerSecond: 0,
|
|
4451
|
+
rxErrorCounter: 0,
|
|
4452
|
+
txErrorCounter: 0,
|
|
4453
|
+
overrunErrorCounter: 0,
|
|
4454
|
+
busOnStatus: 0,
|
|
4455
|
+
errorStatus: 0,
|
|
4456
|
+
overrunStatus: 0,
|
|
4457
|
+
busLoad: 0
|
|
4458
|
+
};
|
|
4459
|
+
}
|
|
4460
|
+
const M = {
|
|
4461
|
+
encode(e, r = new u()) {
|
|
4462
|
+
return e.rxMessageCounter !== 0 && r.uint32(8).int32(e.rxMessageCounter), e.rxMessagesPerSecond !== 0 && r.uint32(16).int32(e.rxMessagesPerSecond), e.txMessageCounter !== 0 && r.uint32(24).int32(e.txMessageCounter), e.txMessagesPerSecond !== 0 && r.uint32(32).int32(e.txMessagesPerSecond), e.errorFrameCounter !== 0 && r.uint32(40).int32(e.errorFrameCounter), e.errorFramesPerSecond !== 0 && r.uint32(48).int32(e.errorFramesPerSecond), e.overrunCounter !== 0 && r.uint32(56).int32(e.overrunCounter), e.overrunsPerSecond !== 0 && r.uint32(64).int32(e.overrunsPerSecond), e.rxErrorCounter !== 0 && r.uint32(72).int32(e.rxErrorCounter), e.txErrorCounter !== 0 && r.uint32(80).int32(e.txErrorCounter), e.overrunErrorCounter !== 0 && r.uint32(88).int32(e.overrunErrorCounter), e.busOnStatus !== 0 && r.uint32(96).int32(e.busOnStatus), e.errorStatus !== 0 && r.uint32(104).int32(e.errorStatus), e.overrunStatus !== 0 && r.uint32(112).int32(e.overrunStatus), e.busLoad !== 0 && r.uint32(120).int32(e.busLoad), r;
|
|
4463
|
+
},
|
|
4464
|
+
decode(e, r) {
|
|
4465
|
+
const n = e instanceof s ? e : new s(e);
|
|
4466
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
4467
|
+
const t = ur();
|
|
4468
|
+
for (; n.pos < a; ) {
|
|
4469
|
+
const i = n.uint32();
|
|
4470
|
+
switch (i >>> 3) {
|
|
4471
|
+
case 1: {
|
|
4472
|
+
if (i !== 8)
|
|
4473
|
+
break;
|
|
4474
|
+
t.rxMessageCounter = n.int32();
|
|
4475
|
+
continue;
|
|
4476
|
+
}
|
|
4477
|
+
case 2: {
|
|
4478
|
+
if (i !== 16)
|
|
4479
|
+
break;
|
|
4480
|
+
t.rxMessagesPerSecond = n.int32();
|
|
4481
|
+
continue;
|
|
4482
|
+
}
|
|
4483
|
+
case 3: {
|
|
4484
|
+
if (i !== 24)
|
|
4485
|
+
break;
|
|
4486
|
+
t.txMessageCounter = n.int32();
|
|
4487
|
+
continue;
|
|
4488
|
+
}
|
|
4489
|
+
case 4: {
|
|
4490
|
+
if (i !== 32)
|
|
4491
|
+
break;
|
|
4492
|
+
t.txMessagesPerSecond = n.int32();
|
|
4493
|
+
continue;
|
|
4494
|
+
}
|
|
4495
|
+
case 5: {
|
|
4496
|
+
if (i !== 40)
|
|
4497
|
+
break;
|
|
4498
|
+
t.errorFrameCounter = n.int32();
|
|
4499
|
+
continue;
|
|
4500
|
+
}
|
|
4501
|
+
case 6: {
|
|
4502
|
+
if (i !== 48)
|
|
4503
|
+
break;
|
|
4504
|
+
t.errorFramesPerSecond = n.int32();
|
|
4505
|
+
continue;
|
|
4506
|
+
}
|
|
4507
|
+
case 7: {
|
|
4508
|
+
if (i !== 56)
|
|
4509
|
+
break;
|
|
4510
|
+
t.overrunCounter = n.int32();
|
|
4511
|
+
continue;
|
|
4512
|
+
}
|
|
4513
|
+
case 8: {
|
|
4514
|
+
if (i !== 64)
|
|
4515
|
+
break;
|
|
4516
|
+
t.overrunsPerSecond = n.int32();
|
|
4517
|
+
continue;
|
|
4518
|
+
}
|
|
4519
|
+
case 9: {
|
|
4520
|
+
if (i !== 72)
|
|
4521
|
+
break;
|
|
4522
|
+
t.rxErrorCounter = n.int32();
|
|
4523
|
+
continue;
|
|
4524
|
+
}
|
|
4525
|
+
case 10: {
|
|
4526
|
+
if (i !== 80)
|
|
4527
|
+
break;
|
|
4528
|
+
t.txErrorCounter = n.int32();
|
|
4529
|
+
continue;
|
|
4530
|
+
}
|
|
4531
|
+
case 11: {
|
|
4532
|
+
if (i !== 88)
|
|
4533
|
+
break;
|
|
4534
|
+
t.overrunErrorCounter = n.int32();
|
|
4535
|
+
continue;
|
|
4536
|
+
}
|
|
4537
|
+
case 12: {
|
|
4538
|
+
if (i !== 96)
|
|
4539
|
+
break;
|
|
4540
|
+
t.busOnStatus = n.int32();
|
|
4541
|
+
continue;
|
|
4542
|
+
}
|
|
4543
|
+
case 13: {
|
|
4544
|
+
if (i !== 104)
|
|
4545
|
+
break;
|
|
4546
|
+
t.errorStatus = n.int32();
|
|
4547
|
+
continue;
|
|
4548
|
+
}
|
|
4549
|
+
case 14: {
|
|
4550
|
+
if (i !== 112)
|
|
4551
|
+
break;
|
|
4552
|
+
t.overrunStatus = n.int32();
|
|
4553
|
+
continue;
|
|
4554
|
+
}
|
|
4555
|
+
case 15: {
|
|
4556
|
+
if (i !== 120)
|
|
4557
|
+
break;
|
|
4558
|
+
t.busLoad = n.int32();
|
|
4559
|
+
continue;
|
|
4560
|
+
}
|
|
4561
|
+
}
|
|
4562
|
+
if ((i & 7) === 4 || i === 0)
|
|
4563
|
+
break;
|
|
4564
|
+
n.skip(i & 7);
|
|
4565
|
+
}
|
|
4566
|
+
return t;
|
|
4567
|
+
},
|
|
4568
|
+
fromJSON(e) {
|
|
4569
|
+
return {
|
|
4570
|
+
rxMessageCounter: N(e.rxMessageCounter) ? globalThis.Number(e.rxMessageCounter) : 0,
|
|
4571
|
+
rxMessagesPerSecond: N(e.rxMessagesPerSecond) ? globalThis.Number(e.rxMessagesPerSecond) : 0,
|
|
4572
|
+
txMessageCounter: N(e.txMessageCounter) ? globalThis.Number(e.txMessageCounter) : 0,
|
|
4573
|
+
txMessagesPerSecond: N(e.txMessagesPerSecond) ? globalThis.Number(e.txMessagesPerSecond) : 0,
|
|
4574
|
+
errorFrameCounter: N(e.errorFrameCounter) ? globalThis.Number(e.errorFrameCounter) : 0,
|
|
4575
|
+
errorFramesPerSecond: N(e.errorFramesPerSecond) ? globalThis.Number(e.errorFramesPerSecond) : 0,
|
|
4576
|
+
overrunCounter: N(e.overrunCounter) ? globalThis.Number(e.overrunCounter) : 0,
|
|
4577
|
+
overrunsPerSecond: N(e.overrunsPerSecond) ? globalThis.Number(e.overrunsPerSecond) : 0,
|
|
4578
|
+
rxErrorCounter: N(e.rxErrorCounter) ? globalThis.Number(e.rxErrorCounter) : 0,
|
|
4579
|
+
txErrorCounter: N(e.txErrorCounter) ? globalThis.Number(e.txErrorCounter) : 0,
|
|
4580
|
+
overrunErrorCounter: N(e.overrunErrorCounter) ? globalThis.Number(e.overrunErrorCounter) : 0,
|
|
4581
|
+
busOnStatus: N(e.busOnStatus) ? Z(e.busOnStatus) : 0,
|
|
4582
|
+
errorStatus: N(e.errorStatus) ? Z(e.errorStatus) : 0,
|
|
4583
|
+
overrunStatus: N(e.overrunStatus) ? Z(e.overrunStatus) : 0,
|
|
4584
|
+
busLoad: N(e.busLoad) ? globalThis.Number(e.busLoad) : 0
|
|
4585
|
+
};
|
|
4586
|
+
},
|
|
4587
|
+
toJSON(e) {
|
|
4588
|
+
const r = {};
|
|
4589
|
+
return e.rxMessageCounter !== 0 && (r.rxMessageCounter = Math.round(e.rxMessageCounter)), e.rxMessagesPerSecond !== 0 && (r.rxMessagesPerSecond = Math.round(e.rxMessagesPerSecond)), e.txMessageCounter !== 0 && (r.txMessageCounter = Math.round(e.txMessageCounter)), e.txMessagesPerSecond !== 0 && (r.txMessagesPerSecond = Math.round(e.txMessagesPerSecond)), e.errorFrameCounter !== 0 && (r.errorFrameCounter = Math.round(e.errorFrameCounter)), e.errorFramesPerSecond !== 0 && (r.errorFramesPerSecond = Math.round(e.errorFramesPerSecond)), e.overrunCounter !== 0 && (r.overrunCounter = Math.round(e.overrunCounter)), e.overrunsPerSecond !== 0 && (r.overrunsPerSecond = Math.round(e.overrunsPerSecond)), e.rxErrorCounter !== 0 && (r.rxErrorCounter = Math.round(e.rxErrorCounter)), e.txErrorCounter !== 0 && (r.txErrorCounter = Math.round(e.txErrorCounter)), e.overrunErrorCounter !== 0 && (r.overrunErrorCounter = Math.round(e.overrunErrorCounter)), e.busOnStatus !== 0 && (r.busOnStatus = W(e.busOnStatus)), e.errorStatus !== 0 && (r.errorStatus = W(e.errorStatus)), e.overrunStatus !== 0 && (r.overrunStatus = W(e.overrunStatus)), e.busLoad !== 0 && (r.busLoad = Math.round(e.busLoad)), r;
|
|
4590
|
+
},
|
|
4591
|
+
create(e) {
|
|
4592
|
+
return M.fromPartial(e ?? {});
|
|
4593
|
+
},
|
|
4594
|
+
fromPartial(e) {
|
|
4595
|
+
const r = ur();
|
|
4596
|
+
return r.rxMessageCounter = e.rxMessageCounter ?? 0, r.rxMessagesPerSecond = e.rxMessagesPerSecond ?? 0, r.txMessageCounter = e.txMessageCounter ?? 0, r.txMessagesPerSecond = e.txMessagesPerSecond ?? 0, r.errorFrameCounter = e.errorFrameCounter ?? 0, r.errorFramesPerSecond = e.errorFramesPerSecond ?? 0, r.overrunCounter = e.overrunCounter ?? 0, r.overrunsPerSecond = e.overrunsPerSecond ?? 0, r.rxErrorCounter = e.rxErrorCounter ?? 0, r.txErrorCounter = e.txErrorCounter ?? 0, r.overrunErrorCounter = e.overrunErrorCounter ?? 0, r.busOnStatus = e.busOnStatus ?? 0, r.errorStatus = e.errorStatus ?? 0, r.overrunStatus = e.overrunStatus ?? 0, r.busLoad = e.busLoad ?? 0, r;
|
|
4597
|
+
}
|
|
4598
|
+
};
|
|
4599
|
+
function cr() {
|
|
4600
|
+
return { errorCounter: 0, lastExecutionTime: d.ZERO, minExecutionTime: d.ZERO, maxExecutionTime: d.ZERO };
|
|
4601
|
+
}
|
|
4602
|
+
const b = {
|
|
4603
|
+
encode(e, r = new u()) {
|
|
4604
|
+
return e.errorCounter !== 0 && r.uint32(8).int32(e.errorCounter), e.lastExecutionTime.equals(d.ZERO) || r.uint32(16).int64(e.lastExecutionTime.toString()), e.minExecutionTime.equals(d.ZERO) || r.uint32(24).int64(e.minExecutionTime.toString()), e.maxExecutionTime.equals(d.ZERO) || r.uint32(32).int64(e.maxExecutionTime.toString()), r;
|
|
4605
|
+
},
|
|
4606
|
+
decode(e, r) {
|
|
4607
|
+
const n = e instanceof s ? e : new s(e);
|
|
4608
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
4609
|
+
const t = cr();
|
|
4610
|
+
for (; n.pos < a; ) {
|
|
4611
|
+
const i = n.uint32();
|
|
4612
|
+
switch (i >>> 3) {
|
|
4613
|
+
case 1: {
|
|
4614
|
+
if (i !== 8)
|
|
4615
|
+
break;
|
|
4616
|
+
t.errorCounter = n.int32();
|
|
4617
|
+
continue;
|
|
4618
|
+
}
|
|
4619
|
+
case 2: {
|
|
4620
|
+
if (i !== 16)
|
|
4621
|
+
break;
|
|
4622
|
+
t.lastExecutionTime = d.fromString(n.int64().toString());
|
|
4623
|
+
continue;
|
|
4624
|
+
}
|
|
4625
|
+
case 3: {
|
|
4626
|
+
if (i !== 24)
|
|
4627
|
+
break;
|
|
4628
|
+
t.minExecutionTime = d.fromString(n.int64().toString());
|
|
4629
|
+
continue;
|
|
4630
|
+
}
|
|
4631
|
+
case 4: {
|
|
4632
|
+
if (i !== 32)
|
|
4633
|
+
break;
|
|
4634
|
+
t.maxExecutionTime = d.fromString(n.int64().toString());
|
|
4635
|
+
continue;
|
|
4636
|
+
}
|
|
4637
|
+
}
|
|
4638
|
+
if ((i & 7) === 4 || i === 0)
|
|
4639
|
+
break;
|
|
4640
|
+
n.skip(i & 7);
|
|
4641
|
+
}
|
|
4642
|
+
return t;
|
|
4643
|
+
},
|
|
4644
|
+
fromJSON(e) {
|
|
4645
|
+
return {
|
|
4646
|
+
errorCounter: N(e.errorCounter) ? globalThis.Number(e.errorCounter) : 0,
|
|
4647
|
+
lastExecutionTime: N(e.lastExecutionTime) ? d.fromValue(e.lastExecutionTime) : d.ZERO,
|
|
4648
|
+
minExecutionTime: N(e.minExecutionTime) ? d.fromValue(e.minExecutionTime) : d.ZERO,
|
|
4649
|
+
maxExecutionTime: N(e.maxExecutionTime) ? d.fromValue(e.maxExecutionTime) : d.ZERO
|
|
4650
|
+
};
|
|
4651
|
+
},
|
|
4652
|
+
toJSON(e) {
|
|
4653
|
+
const r = {};
|
|
4654
|
+
return e.errorCounter !== 0 && (r.errorCounter = Math.round(e.errorCounter)), e.lastExecutionTime.equals(d.ZERO) || (r.lastExecutionTime = (e.lastExecutionTime || d.ZERO).toString()), e.minExecutionTime.equals(d.ZERO) || (r.minExecutionTime = (e.minExecutionTime || d.ZERO).toString()), e.maxExecutionTime.equals(d.ZERO) || (r.maxExecutionTime = (e.maxExecutionTime || d.ZERO).toString()), r;
|
|
4655
|
+
},
|
|
4656
|
+
create(e) {
|
|
4657
|
+
return b.fromPartial(e ?? {});
|
|
4658
|
+
},
|
|
4659
|
+
fromPartial(e) {
|
|
4660
|
+
const r = cr();
|
|
4661
|
+
return r.errorCounter = e.errorCounter ?? 0, r.lastExecutionTime = e.lastExecutionTime !== void 0 && e.lastExecutionTime !== null ? d.fromValue(e.lastExecutionTime) : d.ZERO, r.minExecutionTime = e.minExecutionTime !== void 0 && e.minExecutionTime !== null ? d.fromValue(e.minExecutionTime) : d.ZERO, r.maxExecutionTime = e.maxExecutionTime !== void 0 && e.maxExecutionTime !== null ? d.fromValue(e.maxExecutionTime) : d.ZERO, r;
|
|
4662
|
+
}
|
|
4663
|
+
};
|
|
4664
|
+
function fr() {
|
|
4665
|
+
return { state: 0 };
|
|
4666
|
+
}
|
|
4667
|
+
const y = {
|
|
4668
|
+
encode(e, r = new u()) {
|
|
4669
|
+
return e.state !== 0 && r.uint32(8).int32(e.state), r;
|
|
4670
|
+
},
|
|
4671
|
+
decode(e, r) {
|
|
4672
|
+
const n = e instanceof s ? e : new s(e);
|
|
4673
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
4674
|
+
const t = fr();
|
|
4675
|
+
for (; n.pos < a; ) {
|
|
4676
|
+
const i = n.uint32();
|
|
4677
|
+
switch (i >>> 3) {
|
|
4678
|
+
case 1: {
|
|
4679
|
+
if (i !== 8)
|
|
4680
|
+
break;
|
|
4681
|
+
t.state = n.int32();
|
|
4682
|
+
continue;
|
|
4683
|
+
}
|
|
4684
|
+
}
|
|
4685
|
+
if ((i & 7) === 4 || i === 0)
|
|
4686
|
+
break;
|
|
4687
|
+
n.skip(i & 7);
|
|
4688
|
+
}
|
|
4689
|
+
return t;
|
|
4690
|
+
},
|
|
4691
|
+
fromJSON(e) {
|
|
4692
|
+
return { state: N(e.state) ? bn(e.state) : 0 };
|
|
4693
|
+
},
|
|
4694
|
+
toJSON(e) {
|
|
4695
|
+
const r = {};
|
|
4696
|
+
return e.state !== 0 && (r.state = yn(e.state)), r;
|
|
4697
|
+
},
|
|
4698
|
+
create(e) {
|
|
4699
|
+
return y.fromPartial(e ?? {});
|
|
4700
|
+
},
|
|
4701
|
+
fromPartial(e) {
|
|
4702
|
+
const r = fr();
|
|
4703
|
+
return r.state = e.state ?? 0, r;
|
|
4704
|
+
}
|
|
4705
|
+
};
|
|
4706
|
+
function dr() {
|
|
4707
|
+
return { state: 0 };
|
|
4708
|
+
}
|
|
4709
|
+
const G = {
|
|
4710
|
+
encode(e, r = new u()) {
|
|
4711
|
+
return e.state !== 0 && r.uint32(8).int32(e.state), r;
|
|
4712
|
+
},
|
|
4713
|
+
decode(e, r) {
|
|
4714
|
+
const n = e instanceof s ? e : new s(e);
|
|
4715
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
4716
|
+
const t = dr();
|
|
4717
|
+
for (; n.pos < a; ) {
|
|
4718
|
+
const i = n.uint32();
|
|
4719
|
+
switch (i >>> 3) {
|
|
4720
|
+
case 1: {
|
|
4721
|
+
if (i !== 8)
|
|
4722
|
+
break;
|
|
4723
|
+
t.state = n.int32();
|
|
4724
|
+
continue;
|
|
4725
|
+
}
|
|
4726
|
+
}
|
|
4727
|
+
if ((i & 7) === 4 || i === 0)
|
|
4728
|
+
break;
|
|
4729
|
+
n.skip(i & 7);
|
|
4730
|
+
}
|
|
4731
|
+
return t;
|
|
4732
|
+
},
|
|
4733
|
+
fromJSON(e) {
|
|
4734
|
+
return { state: N(e.state) ? Vn(e.state) : 0 };
|
|
4735
|
+
},
|
|
4736
|
+
toJSON(e) {
|
|
4737
|
+
const r = {};
|
|
4738
|
+
return e.state !== 0 && (r.state = Bn(e.state)), r;
|
|
4739
|
+
},
|
|
4740
|
+
create(e) {
|
|
4741
|
+
return G.fromPartial(e ?? {});
|
|
4742
|
+
},
|
|
4743
|
+
fromPartial(e) {
|
|
4744
|
+
const r = dr();
|
|
4745
|
+
return r.state = e.state ?? 0, r;
|
|
4746
|
+
}
|
|
4747
|
+
};
|
|
4748
|
+
function lr() {
|
|
4749
|
+
return { errors: "" };
|
|
4750
|
+
}
|
|
4751
|
+
const V = {
|
|
4752
|
+
encode(e, r = new u()) {
|
|
4753
|
+
return e.errors !== "" && r.uint32(10).string(e.errors), r;
|
|
4754
|
+
},
|
|
4755
|
+
decode(e, r) {
|
|
4756
|
+
const n = e instanceof s ? e : new s(e);
|
|
4757
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
4758
|
+
const t = lr();
|
|
4759
|
+
for (; n.pos < a; ) {
|
|
4760
|
+
const i = n.uint32();
|
|
4761
|
+
switch (i >>> 3) {
|
|
4762
|
+
case 1: {
|
|
4763
|
+
if (i !== 10)
|
|
4764
|
+
break;
|
|
4765
|
+
t.errors = n.string();
|
|
4766
|
+
continue;
|
|
4767
|
+
}
|
|
4768
|
+
}
|
|
4769
|
+
if ((i & 7) === 4 || i === 0)
|
|
4770
|
+
break;
|
|
4771
|
+
n.skip(i & 7);
|
|
4772
|
+
}
|
|
4773
|
+
return t;
|
|
4774
|
+
},
|
|
4775
|
+
fromJSON(e) {
|
|
4776
|
+
return { errors: N(e.errors) ? globalThis.String(e.errors) : "" };
|
|
4777
|
+
},
|
|
4778
|
+
toJSON(e) {
|
|
4779
|
+
const r = {};
|
|
4780
|
+
return e.errors !== "" && (r.errors = e.errors), r;
|
|
4781
|
+
},
|
|
4782
|
+
create(e) {
|
|
4783
|
+
return V.fromPartial(e ?? {});
|
|
4784
|
+
},
|
|
4785
|
+
fromPartial(e) {
|
|
4786
|
+
const r = lr();
|
|
4787
|
+
return r.errors = e.errors ?? "", r;
|
|
4788
|
+
}
|
|
4789
|
+
};
|
|
4790
|
+
function pr() {
|
|
4791
|
+
return {
|
|
4792
|
+
nodeId: "",
|
|
4793
|
+
nodeName: "",
|
|
4794
|
+
streamId: "",
|
|
4795
|
+
busStatus: void 0,
|
|
4796
|
+
dataProcessingStatus: void 0,
|
|
4797
|
+
logReplayStatus: void 0,
|
|
4798
|
+
messageLoggerStatus: void 0,
|
|
4799
|
+
errorStatus: void 0
|
|
4800
|
+
};
|
|
4801
|
+
}
|
|
4802
|
+
const B = {
|
|
4803
|
+
encode(e, r = new u()) {
|
|
4804
|
+
return e.nodeId !== "" && r.uint32(10).string(e.nodeId), e.nodeName !== "" && r.uint32(18).string(e.nodeName), e.streamId !== "" && r.uint32(26).string(e.streamId), e.busStatus !== void 0 && M.encode(e.busStatus, r.uint32(34).fork()).join(), e.dataProcessingStatus !== void 0 && b.encode(e.dataProcessingStatus, r.uint32(42).fork()).join(), e.logReplayStatus !== void 0 && y.encode(e.logReplayStatus, r.uint32(50).fork()).join(), e.messageLoggerStatus !== void 0 && G.encode(e.messageLoggerStatus, r.uint32(58).fork()).join(), e.errorStatus !== void 0 && V.encode(e.errorStatus, r.uint32(66).fork()).join(), r;
|
|
4805
|
+
},
|
|
4806
|
+
decode(e, r) {
|
|
4807
|
+
const n = e instanceof s ? e : new s(e);
|
|
4808
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
4809
|
+
const t = pr();
|
|
4810
|
+
for (; n.pos < a; ) {
|
|
4811
|
+
const i = n.uint32();
|
|
4812
|
+
switch (i >>> 3) {
|
|
4813
|
+
case 1: {
|
|
4814
|
+
if (i !== 10)
|
|
4815
|
+
break;
|
|
4816
|
+
t.nodeId = n.string();
|
|
4817
|
+
continue;
|
|
4818
|
+
}
|
|
4819
|
+
case 2: {
|
|
4820
|
+
if (i !== 18)
|
|
4821
|
+
break;
|
|
4822
|
+
t.nodeName = n.string();
|
|
4823
|
+
continue;
|
|
4824
|
+
}
|
|
4825
|
+
case 3: {
|
|
4826
|
+
if (i !== 26)
|
|
4827
|
+
break;
|
|
4828
|
+
t.streamId = n.string();
|
|
4829
|
+
continue;
|
|
4830
|
+
}
|
|
4831
|
+
case 4: {
|
|
4832
|
+
if (i !== 34)
|
|
4833
|
+
break;
|
|
4834
|
+
t.busStatus = M.decode(n, n.uint32());
|
|
4835
|
+
continue;
|
|
4836
|
+
}
|
|
4837
|
+
case 5: {
|
|
4838
|
+
if (i !== 42)
|
|
4839
|
+
break;
|
|
4840
|
+
t.dataProcessingStatus = b.decode(n, n.uint32());
|
|
4841
|
+
continue;
|
|
4842
|
+
}
|
|
4843
|
+
case 6: {
|
|
4844
|
+
if (i !== 50)
|
|
4845
|
+
break;
|
|
4846
|
+
t.logReplayStatus = y.decode(n, n.uint32());
|
|
4847
|
+
continue;
|
|
4848
|
+
}
|
|
4849
|
+
case 7: {
|
|
4850
|
+
if (i !== 58)
|
|
4851
|
+
break;
|
|
4852
|
+
t.messageLoggerStatus = G.decode(n, n.uint32());
|
|
4853
|
+
continue;
|
|
4854
|
+
}
|
|
4855
|
+
case 8: {
|
|
4856
|
+
if (i !== 66)
|
|
4857
|
+
break;
|
|
4858
|
+
t.errorStatus = V.decode(n, n.uint32());
|
|
4859
|
+
continue;
|
|
4860
|
+
}
|
|
4861
|
+
}
|
|
4862
|
+
if ((i & 7) === 4 || i === 0)
|
|
4863
|
+
break;
|
|
4864
|
+
n.skip(i & 7);
|
|
4865
|
+
}
|
|
4866
|
+
return t;
|
|
4867
|
+
},
|
|
4868
|
+
fromJSON(e) {
|
|
4869
|
+
return {
|
|
4870
|
+
nodeId: N(e.nodeId) ? globalThis.String(e.nodeId) : "",
|
|
4871
|
+
nodeName: N(e.nodeName) ? globalThis.String(e.nodeName) : "",
|
|
4872
|
+
streamId: N(e.streamId) ? globalThis.String(e.streamId) : "",
|
|
4873
|
+
busStatus: N(e.busStatus) ? M.fromJSON(e.busStatus) : void 0,
|
|
4874
|
+
dataProcessingStatus: N(e.dataProcessingStatus) ? b.fromJSON(e.dataProcessingStatus) : void 0,
|
|
4875
|
+
logReplayStatus: N(e.logReplayStatus) ? y.fromJSON(e.logReplayStatus) : void 0,
|
|
4876
|
+
messageLoggerStatus: N(e.messageLoggerStatus) ? G.fromJSON(e.messageLoggerStatus) : void 0,
|
|
4877
|
+
errorStatus: N(e.errorStatus) ? V.fromJSON(e.errorStatus) : void 0
|
|
4878
|
+
};
|
|
4879
|
+
},
|
|
4880
|
+
toJSON(e) {
|
|
4881
|
+
const r = {};
|
|
4882
|
+
return e.nodeId !== "" && (r.nodeId = e.nodeId), e.nodeName !== "" && (r.nodeName = e.nodeName), e.streamId !== "" && (r.streamId = e.streamId), e.busStatus !== void 0 && (r.busStatus = M.toJSON(e.busStatus)), e.dataProcessingStatus !== void 0 && (r.dataProcessingStatus = b.toJSON(e.dataProcessingStatus)), e.logReplayStatus !== void 0 && (r.logReplayStatus = y.toJSON(e.logReplayStatus)), e.messageLoggerStatus !== void 0 && (r.messageLoggerStatus = G.toJSON(e.messageLoggerStatus)), e.errorStatus !== void 0 && (r.errorStatus = V.toJSON(e.errorStatus)), r;
|
|
4883
|
+
},
|
|
4884
|
+
create(e) {
|
|
4885
|
+
return B.fromPartial(e ?? {});
|
|
4886
|
+
},
|
|
4887
|
+
fromPartial(e) {
|
|
4888
|
+
const r = pr();
|
|
4889
|
+
return r.nodeId = e.nodeId ?? "", r.nodeName = e.nodeName ?? "", r.streamId = e.streamId ?? "", r.busStatus = e.busStatus !== void 0 && e.busStatus !== null ? M.fromPartial(e.busStatus) : void 0, r.dataProcessingStatus = e.dataProcessingStatus !== void 0 && e.dataProcessingStatus !== null ? b.fromPartial(e.dataProcessingStatus) : void 0, r.logReplayStatus = e.logReplayStatus !== void 0 && e.logReplayStatus !== null ? y.fromPartial(e.logReplayStatus) : void 0, r.messageLoggerStatus = e.messageLoggerStatus !== void 0 && e.messageLoggerStatus !== null ? G.fromPartial(e.messageLoggerStatus) : void 0, r.errorStatus = e.errorStatus !== void 0 && e.errorStatus !== null ? V.fromPartial(e.errorStatus) : void 0, r;
|
|
4890
|
+
}
|
|
4891
|
+
};
|
|
4892
|
+
function Nr() {
|
|
4893
|
+
return { items: [] };
|
|
4894
|
+
}
|
|
4895
|
+
const Fn = {
|
|
4896
|
+
encode(e, r = new u()) {
|
|
4897
|
+
for (const n of e.items)
|
|
4898
|
+
B.encode(n, r.uint32(10).fork()).join();
|
|
4899
|
+
return r;
|
|
4900
|
+
},
|
|
4901
|
+
decode(e, r) {
|
|
4902
|
+
const n = e instanceof s ? e : new s(e);
|
|
4903
|
+
let a = r === void 0 ? n.len : n.pos + r;
|
|
4904
|
+
const t = Nr();
|
|
4905
|
+
for (; n.pos < a; ) {
|
|
4906
|
+
const i = n.uint32();
|
|
4907
|
+
switch (i >>> 3) {
|
|
4908
|
+
case 1: {
|
|
4909
|
+
if (i !== 10)
|
|
4910
|
+
break;
|
|
4911
|
+
t.items.push(B.decode(n, n.uint32()));
|
|
4912
|
+
continue;
|
|
4913
|
+
}
|
|
4914
|
+
}
|
|
4915
|
+
if ((i & 7) === 4 || i === 0)
|
|
4916
|
+
break;
|
|
4917
|
+
n.skip(i & 7);
|
|
4918
|
+
}
|
|
4919
|
+
return t;
|
|
4920
|
+
},
|
|
4921
|
+
fromJSON(e) {
|
|
4922
|
+
return {
|
|
4923
|
+
items: globalThis.Array.isArray(e == null ? void 0 : e.items) ? e.items.map((r) => B.fromJSON(r)) : []
|
|
4924
|
+
};
|
|
4925
|
+
},
|
|
4926
|
+
toJSON(e) {
|
|
4927
|
+
var n;
|
|
4928
|
+
const r = {};
|
|
4929
|
+
return (n = e.items) != null && n.length && (r.items = e.items.map((a) => B.toJSON(a))), r;
|
|
4930
|
+
},
|
|
4931
|
+
create(e) {
|
|
4932
|
+
return Fn.fromPartial(e ?? {});
|
|
4933
|
+
},
|
|
4934
|
+
fromPartial(e) {
|
|
4935
|
+
var n;
|
|
4936
|
+
const r = Nr();
|
|
4937
|
+
return r.items = ((n = e.items) == null ? void 0 : n.map((a) => B.fromPartial(a))) || [], r;
|
|
4938
|
+
}
|
|
4939
|
+
};
|
|
4940
|
+
function N(e) {
|
|
4941
|
+
return e != null;
|
|
4942
|
+
}
|
|
4943
|
+
export {
|
|
4944
|
+
en as $,
|
|
4945
|
+
o as A,
|
|
4946
|
+
h as B,
|
|
4947
|
+
br as C,
|
|
4948
|
+
Br as D,
|
|
4949
|
+
Pr as E,
|
|
4950
|
+
g as F,
|
|
4951
|
+
Cr as G,
|
|
4952
|
+
J as H,
|
|
4953
|
+
Ir as I,
|
|
4954
|
+
O as J,
|
|
4955
|
+
x as K,
|
|
4956
|
+
hr as L,
|
|
4957
|
+
Hr as M,
|
|
4958
|
+
qr as N,
|
|
4959
|
+
wr as O,
|
|
4960
|
+
Vr as P,
|
|
4961
|
+
Zr as Q,
|
|
4962
|
+
Wr as R,
|
|
4963
|
+
Dn as S,
|
|
4964
|
+
Kr as T,
|
|
4965
|
+
Lr as U,
|
|
4966
|
+
Qr as V,
|
|
4967
|
+
Yr as W,
|
|
4968
|
+
Xr as X,
|
|
4969
|
+
$r as Y,
|
|
4970
|
+
zr as Z,
|
|
4971
|
+
jr as _,
|
|
4972
|
+
Q as a,
|
|
4973
|
+
rn as a0,
|
|
4974
|
+
nn as a1,
|
|
4975
|
+
tn as a2,
|
|
4976
|
+
an as a3,
|
|
4977
|
+
on as a4,
|
|
4978
|
+
sn as a5,
|
|
4979
|
+
un as a6,
|
|
4980
|
+
cn as a7,
|
|
4981
|
+
fn as a8,
|
|
4982
|
+
dn as a9,
|
|
4983
|
+
yn as aA,
|
|
4984
|
+
Gn as aB,
|
|
4985
|
+
Vn as aC,
|
|
4986
|
+
Bn as aD,
|
|
4987
|
+
M as aE,
|
|
4988
|
+
b as aF,
|
|
4989
|
+
y as aG,
|
|
4990
|
+
G as aH,
|
|
4991
|
+
V as aI,
|
|
4992
|
+
B as aJ,
|
|
4993
|
+
Fn as aK,
|
|
4994
|
+
ln as aa,
|
|
4995
|
+
pn as ab,
|
|
4996
|
+
Nn as ac,
|
|
4997
|
+
Sn as ad,
|
|
4998
|
+
mn as ae,
|
|
4999
|
+
En as af,
|
|
5000
|
+
vn as ag,
|
|
5001
|
+
Pn as ah,
|
|
5002
|
+
hn as ai,
|
|
5003
|
+
D as aj,
|
|
5004
|
+
On as ak,
|
|
5005
|
+
An as al,
|
|
5006
|
+
_n as am,
|
|
5007
|
+
Tn as an,
|
|
5008
|
+
Cn as ao,
|
|
5009
|
+
Rn as ap,
|
|
5010
|
+
kn as aq,
|
|
5011
|
+
In as ar,
|
|
5012
|
+
Ln as as,
|
|
5013
|
+
gn as at,
|
|
5014
|
+
Jn as au,
|
|
5015
|
+
xn as av,
|
|
5016
|
+
Z as aw,
|
|
5017
|
+
W as ax,
|
|
5018
|
+
Mn as ay,
|
|
5019
|
+
bn as az,
|
|
5020
|
+
Or as b,
|
|
5021
|
+
Ar as c,
|
|
5022
|
+
_r as d,
|
|
5023
|
+
Tr as e,
|
|
5024
|
+
k as f,
|
|
5025
|
+
Rr as g,
|
|
5026
|
+
v as h,
|
|
5027
|
+
I as i,
|
|
5028
|
+
kr as j,
|
|
5029
|
+
gr as k,
|
|
5030
|
+
K as l,
|
|
5031
|
+
Jr as m,
|
|
5032
|
+
xr as n,
|
|
5033
|
+
Dr as o,
|
|
5034
|
+
Mr as p,
|
|
5035
|
+
yr as q,
|
|
5036
|
+
Gr as r,
|
|
5037
|
+
Sr as s,
|
|
5038
|
+
mr as t,
|
|
5039
|
+
Fr as u,
|
|
5040
|
+
Ur as v,
|
|
5041
|
+
S as w,
|
|
5042
|
+
L as x,
|
|
5043
|
+
P as y,
|
|
5044
|
+
E as z
|
|
5045
|
+
};
|