@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,4132 @@
|
|
|
1
|
+
function Qe() {
|
|
2
|
+
let e = 0, n = 0;
|
|
3
|
+
for (let a = 0; a < 28; a += 7) {
|
|
4
|
+
let r = this.buf[this.pos++];
|
|
5
|
+
if (e |= (r & 127) << a, !(r & 128))
|
|
6
|
+
return this.assertBounds(), [e, n];
|
|
7
|
+
}
|
|
8
|
+
let i = this.buf[this.pos++];
|
|
9
|
+
if (e |= (i & 15) << 28, n = (i & 112) >> 4, !(i & 128))
|
|
10
|
+
return this.assertBounds(), [e, n];
|
|
11
|
+
for (let a = 3; a <= 31; a += 7) {
|
|
12
|
+
let r = this.buf[this.pos++];
|
|
13
|
+
if (n |= (r & 127) << a, !(r & 128))
|
|
14
|
+
return this.assertBounds(), [e, n];
|
|
15
|
+
}
|
|
16
|
+
throw new Error("invalid varint");
|
|
17
|
+
}
|
|
18
|
+
function Q(e, n, i) {
|
|
19
|
+
for (let t = 0; t < 28; t = t + 7) {
|
|
20
|
+
const u = e >>> t, l = !(!(u >>> 7) && n == 0), E = (l ? u | 128 : u) & 255;
|
|
21
|
+
if (i.push(E), !l)
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
const a = e >>> 28 & 15 | (n & 7) << 4, r = !!(n >> 3);
|
|
25
|
+
if (i.push((r ? a | 128 : a) & 255), !!r) {
|
|
26
|
+
for (let t = 3; t < 31; t = t + 7) {
|
|
27
|
+
const u = n >>> t, l = !!(u >>> 7), E = (l ? u | 128 : u) & 255;
|
|
28
|
+
if (i.push(E), !l)
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
i.push(n >>> 31 & 1);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
const X = 4294967296;
|
|
35
|
+
function $(e) {
|
|
36
|
+
const n = e[0] === "-";
|
|
37
|
+
n && (e = e.slice(1));
|
|
38
|
+
const i = 1e6;
|
|
39
|
+
let a = 0, r = 0;
|
|
40
|
+
function t(u, l) {
|
|
41
|
+
const E = Number(e.slice(u, l));
|
|
42
|
+
r *= i, a = a * i + E, a >= X && (r = r + (a / X | 0), a = a % X);
|
|
43
|
+
}
|
|
44
|
+
return t(-24, -18), t(-18, -12), t(-12, -6), t(-6), n ? He(a, r) : W(a, r);
|
|
45
|
+
}
|
|
46
|
+
function Ze(e, n) {
|
|
47
|
+
let i = W(e, n);
|
|
48
|
+
const a = i.hi & 2147483648;
|
|
49
|
+
a && (i = He(i.lo, i.hi));
|
|
50
|
+
const r = we(i.lo, i.hi);
|
|
51
|
+
return a ? "-" + r : r;
|
|
52
|
+
}
|
|
53
|
+
function we(e, n) {
|
|
54
|
+
if ({ lo: e, hi: n } = ze(e, n), n <= 2097151)
|
|
55
|
+
return String(X * n + e);
|
|
56
|
+
const i = e & 16777215, a = (e >>> 24 | n << 8) & 16777215, r = n >> 16 & 65535;
|
|
57
|
+
let t = i + a * 6777216 + r * 6710656, u = a + r * 8147497, l = r * 2;
|
|
58
|
+
const E = 1e7;
|
|
59
|
+
return t >= E && (u += Math.floor(t / E), t %= E), u >= E && (l += Math.floor(u / E), u %= E), l.toString() + j(u) + j(t);
|
|
60
|
+
}
|
|
61
|
+
function ze(e, n) {
|
|
62
|
+
return { lo: e >>> 0, hi: n >>> 0 };
|
|
63
|
+
}
|
|
64
|
+
function W(e, n) {
|
|
65
|
+
return { lo: e | 0, hi: n | 0 };
|
|
66
|
+
}
|
|
67
|
+
function He(e, n) {
|
|
68
|
+
return n = ~n, e ? e = ~e + 1 : n += 1, W(e, n);
|
|
69
|
+
}
|
|
70
|
+
const j = (e) => {
|
|
71
|
+
const n = String(e);
|
|
72
|
+
return "0000000".slice(n.length) + n;
|
|
73
|
+
};
|
|
74
|
+
function ee(e, n) {
|
|
75
|
+
if (e >= 0) {
|
|
76
|
+
for (; e > 127; )
|
|
77
|
+
n.push(e & 127 | 128), e = e >>> 7;
|
|
78
|
+
n.push(e);
|
|
79
|
+
} else {
|
|
80
|
+
for (let i = 0; i < 9; i++)
|
|
81
|
+
n.push(e & 127 | 128), e = e >> 7;
|
|
82
|
+
n.push(1);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
function qe() {
|
|
86
|
+
let e = this.buf[this.pos++], n = e & 127;
|
|
87
|
+
if (!(e & 128))
|
|
88
|
+
return this.assertBounds(), n;
|
|
89
|
+
if (e = this.buf[this.pos++], n |= (e & 127) << 7, !(e & 128))
|
|
90
|
+
return this.assertBounds(), n;
|
|
91
|
+
if (e = this.buf[this.pos++], n |= (e & 127) << 14, !(e & 128))
|
|
92
|
+
return this.assertBounds(), n;
|
|
93
|
+
if (e = this.buf[this.pos++], n |= (e & 127) << 21, !(e & 128))
|
|
94
|
+
return this.assertBounds(), n;
|
|
95
|
+
e = this.buf[this.pos++], n |= (e & 15) << 28;
|
|
96
|
+
for (let i = 5; e & 128 && i < 10; i++)
|
|
97
|
+
e = this.buf[this.pos++];
|
|
98
|
+
if (e & 128)
|
|
99
|
+
throw new Error("invalid varint");
|
|
100
|
+
return this.assertBounds(), n >>> 0;
|
|
101
|
+
}
|
|
102
|
+
const T = /* @__PURE__ */ Ke();
|
|
103
|
+
function Ke() {
|
|
104
|
+
const e = new DataView(new ArrayBuffer(8));
|
|
105
|
+
if (typeof BigInt == "function" && typeof e.getBigInt64 == "function" && typeof e.getBigUint64 == "function" && typeof e.setBigInt64 == "function" && typeof e.setBigUint64 == "function" && (typeof process != "object" || typeof process.env != "object" || process.env.BUF_BIGINT_DISABLE !== "1")) {
|
|
106
|
+
const i = BigInt("-9223372036854775808"), a = BigInt("9223372036854775807"), r = BigInt("0"), t = BigInt("18446744073709551615");
|
|
107
|
+
return {
|
|
108
|
+
zero: BigInt(0),
|
|
109
|
+
supported: !0,
|
|
110
|
+
parse(u) {
|
|
111
|
+
const l = typeof u == "bigint" ? u : BigInt(u);
|
|
112
|
+
if (l > a || l < i)
|
|
113
|
+
throw new Error(`invalid int64: ${u}`);
|
|
114
|
+
return l;
|
|
115
|
+
},
|
|
116
|
+
uParse(u) {
|
|
117
|
+
const l = typeof u == "bigint" ? u : BigInt(u);
|
|
118
|
+
if (l > t || l < r)
|
|
119
|
+
throw new Error(`invalid uint64: ${u}`);
|
|
120
|
+
return l;
|
|
121
|
+
},
|
|
122
|
+
enc(u) {
|
|
123
|
+
return e.setBigInt64(0, this.parse(u), !0), {
|
|
124
|
+
lo: e.getInt32(0, !0),
|
|
125
|
+
hi: e.getInt32(4, !0)
|
|
126
|
+
};
|
|
127
|
+
},
|
|
128
|
+
uEnc(u) {
|
|
129
|
+
return e.setBigInt64(0, this.uParse(u), !0), {
|
|
130
|
+
lo: e.getInt32(0, !0),
|
|
131
|
+
hi: e.getInt32(4, !0)
|
|
132
|
+
};
|
|
133
|
+
},
|
|
134
|
+
dec(u, l) {
|
|
135
|
+
return e.setInt32(0, u, !0), e.setInt32(4, l, !0), e.getBigInt64(0, !0);
|
|
136
|
+
},
|
|
137
|
+
uDec(u, l) {
|
|
138
|
+
return e.setInt32(0, u, !0), e.setInt32(4, l, !0), e.getBigUint64(0, !0);
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
return {
|
|
143
|
+
zero: "0",
|
|
144
|
+
supported: !1,
|
|
145
|
+
parse(i) {
|
|
146
|
+
return typeof i != "string" && (i = i.toString()), ne(i), i;
|
|
147
|
+
},
|
|
148
|
+
uParse(i) {
|
|
149
|
+
return typeof i != "string" && (i = i.toString()), ie(i), i;
|
|
150
|
+
},
|
|
151
|
+
enc(i) {
|
|
152
|
+
return typeof i != "string" && (i = i.toString()), ne(i), $(i);
|
|
153
|
+
},
|
|
154
|
+
uEnc(i) {
|
|
155
|
+
return typeof i != "string" && (i = i.toString()), ie(i), $(i);
|
|
156
|
+
},
|
|
157
|
+
dec(i, a) {
|
|
158
|
+
return Ze(i, a);
|
|
159
|
+
},
|
|
160
|
+
uDec(i, a) {
|
|
161
|
+
return we(i, a);
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
function ne(e) {
|
|
166
|
+
if (!/^-?[0-9]+$/.test(e))
|
|
167
|
+
throw new Error("invalid int64: " + e);
|
|
168
|
+
}
|
|
169
|
+
function ie(e) {
|
|
170
|
+
if (!/^[0-9]+$/.test(e))
|
|
171
|
+
throw new Error("invalid uint64: " + e);
|
|
172
|
+
}
|
|
173
|
+
const Z = Symbol.for("@bufbuild/protobuf/text-encoding");
|
|
174
|
+
function Xe() {
|
|
175
|
+
if (globalThis[Z] == null) {
|
|
176
|
+
const e = new globalThis.TextEncoder(), n = new globalThis.TextDecoder();
|
|
177
|
+
globalThis[Z] = {
|
|
178
|
+
encodeUtf8(i) {
|
|
179
|
+
return e.encode(i);
|
|
180
|
+
},
|
|
181
|
+
decodeUtf8(i) {
|
|
182
|
+
return n.decode(i);
|
|
183
|
+
},
|
|
184
|
+
checkUtf8(i) {
|
|
185
|
+
try {
|
|
186
|
+
return encodeURIComponent(i), !0;
|
|
187
|
+
} catch {
|
|
188
|
+
return !1;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
return globalThis[Z];
|
|
194
|
+
}
|
|
195
|
+
var F;
|
|
196
|
+
(function(e) {
|
|
197
|
+
e[e.Varint = 0] = "Varint", e[e.Bit64 = 1] = "Bit64", e[e.LengthDelimited = 2] = "LengthDelimited", e[e.StartGroup = 3] = "StartGroup", e[e.EndGroup = 4] = "EndGroup", e[e.Bit32 = 5] = "Bit32";
|
|
198
|
+
})(F || (F = {}));
|
|
199
|
+
const Ye = 34028234663852886e22, We = -34028234663852886e22, $e = 4294967295, je = 2147483647, en = -2147483648;
|
|
200
|
+
class d {
|
|
201
|
+
constructor(n = Xe().encodeUtf8) {
|
|
202
|
+
this.encodeUtf8 = n, this.stack = [], this.chunks = [], this.buf = [];
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Return all bytes written and reset this writer.
|
|
206
|
+
*/
|
|
207
|
+
finish() {
|
|
208
|
+
this.buf.length && (this.chunks.push(new Uint8Array(this.buf)), this.buf = []);
|
|
209
|
+
let n = 0;
|
|
210
|
+
for (let r = 0; r < this.chunks.length; r++)
|
|
211
|
+
n += this.chunks[r].length;
|
|
212
|
+
let i = new Uint8Array(n), a = 0;
|
|
213
|
+
for (let r = 0; r < this.chunks.length; r++)
|
|
214
|
+
i.set(this.chunks[r], a), a += this.chunks[r].length;
|
|
215
|
+
return this.chunks = [], i;
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Start a new fork for length-delimited data like a message
|
|
219
|
+
* or a packed repeated field.
|
|
220
|
+
*
|
|
221
|
+
* Must be joined later with `join()`.
|
|
222
|
+
*/
|
|
223
|
+
fork() {
|
|
224
|
+
return this.stack.push({ chunks: this.chunks, buf: this.buf }), this.chunks = [], this.buf = [], this;
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Join the last fork. Write its length and bytes, then
|
|
228
|
+
* return to the previous state.
|
|
229
|
+
*/
|
|
230
|
+
join() {
|
|
231
|
+
let n = this.finish(), i = this.stack.pop();
|
|
232
|
+
if (!i)
|
|
233
|
+
throw new Error("invalid state, fork stack empty");
|
|
234
|
+
return this.chunks = i.chunks, this.buf = i.buf, this.uint32(n.byteLength), this.raw(n);
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* Writes a tag (field number and wire type).
|
|
238
|
+
*
|
|
239
|
+
* Equivalent to `uint32( (fieldNo << 3 | type) >>> 0 )`.
|
|
240
|
+
*
|
|
241
|
+
* Generated code should compute the tag ahead of time and call `uint32()`.
|
|
242
|
+
*/
|
|
243
|
+
tag(n, i) {
|
|
244
|
+
return this.uint32((n << 3 | i) >>> 0);
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Write a chunk of raw bytes.
|
|
248
|
+
*/
|
|
249
|
+
raw(n) {
|
|
250
|
+
return this.buf.length && (this.chunks.push(new Uint8Array(this.buf)), this.buf = []), this.chunks.push(n), this;
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Write a `uint32` value, an unsigned 32 bit varint.
|
|
254
|
+
*/
|
|
255
|
+
uint32(n) {
|
|
256
|
+
for (te(n); n > 127; )
|
|
257
|
+
this.buf.push(n & 127 | 128), n = n >>> 7;
|
|
258
|
+
return this.buf.push(n), this;
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* Write a `int32` value, a signed 32 bit varint.
|
|
262
|
+
*/
|
|
263
|
+
int32(n) {
|
|
264
|
+
return z(n), ee(n, this.buf), this;
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* Write a `bool` value, a variant.
|
|
268
|
+
*/
|
|
269
|
+
bool(n) {
|
|
270
|
+
return this.buf.push(n ? 1 : 0), this;
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* Write a `bytes` value, length-delimited arbitrary data.
|
|
274
|
+
*/
|
|
275
|
+
bytes(n) {
|
|
276
|
+
return this.uint32(n.byteLength), this.raw(n);
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* Write a `string` value, length-delimited data converted to UTF-8 text.
|
|
280
|
+
*/
|
|
281
|
+
string(n) {
|
|
282
|
+
let i = this.encodeUtf8(n);
|
|
283
|
+
return this.uint32(i.byteLength), this.raw(i);
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* Write a `float` value, 32-bit floating point number.
|
|
287
|
+
*/
|
|
288
|
+
float(n) {
|
|
289
|
+
nn(n);
|
|
290
|
+
let i = new Uint8Array(4);
|
|
291
|
+
return new DataView(i.buffer).setFloat32(0, n, !0), this.raw(i);
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Write a `double` value, a 64-bit floating point number.
|
|
295
|
+
*/
|
|
296
|
+
double(n) {
|
|
297
|
+
let i = new Uint8Array(8);
|
|
298
|
+
return new DataView(i.buffer).setFloat64(0, n, !0), this.raw(i);
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* Write a `fixed32` value, an unsigned, fixed-length 32-bit integer.
|
|
302
|
+
*/
|
|
303
|
+
fixed32(n) {
|
|
304
|
+
te(n);
|
|
305
|
+
let i = new Uint8Array(4);
|
|
306
|
+
return new DataView(i.buffer).setUint32(0, n, !0), this.raw(i);
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Write a `sfixed32` value, a signed, fixed-length 32-bit integer.
|
|
310
|
+
*/
|
|
311
|
+
sfixed32(n) {
|
|
312
|
+
z(n);
|
|
313
|
+
let i = new Uint8Array(4);
|
|
314
|
+
return new DataView(i.buffer).setInt32(0, n, !0), this.raw(i);
|
|
315
|
+
}
|
|
316
|
+
/**
|
|
317
|
+
* Write a `sint32` value, a signed, zigzag-encoded 32-bit varint.
|
|
318
|
+
*/
|
|
319
|
+
sint32(n) {
|
|
320
|
+
return z(n), n = (n << 1 ^ n >> 31) >>> 0, ee(n, this.buf), this;
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
* Write a `fixed64` value, a signed, fixed-length 64-bit integer.
|
|
324
|
+
*/
|
|
325
|
+
sfixed64(n) {
|
|
326
|
+
let i = new Uint8Array(8), a = new DataView(i.buffer), r = T.enc(n);
|
|
327
|
+
return a.setInt32(0, r.lo, !0), a.setInt32(4, r.hi, !0), this.raw(i);
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* Write a `fixed64` value, an unsigned, fixed-length 64 bit integer.
|
|
331
|
+
*/
|
|
332
|
+
fixed64(n) {
|
|
333
|
+
let i = new Uint8Array(8), a = new DataView(i.buffer), r = T.uEnc(n);
|
|
334
|
+
return a.setInt32(0, r.lo, !0), a.setInt32(4, r.hi, !0), this.raw(i);
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* Write a `int64` value, a signed 64-bit varint.
|
|
338
|
+
*/
|
|
339
|
+
int64(n) {
|
|
340
|
+
let i = T.enc(n);
|
|
341
|
+
return Q(i.lo, i.hi, this.buf), this;
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* Write a `sint64` value, a signed, zig-zag-encoded 64-bit varint.
|
|
345
|
+
*/
|
|
346
|
+
sint64(n) {
|
|
347
|
+
let i = T.enc(n), a = i.hi >> 31, r = i.lo << 1 ^ a, t = (i.hi << 1 | i.lo >>> 31) ^ a;
|
|
348
|
+
return Q(r, t, this.buf), this;
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* Write a `uint64` value, an unsigned 64-bit varint.
|
|
352
|
+
*/
|
|
353
|
+
uint64(n) {
|
|
354
|
+
let i = T.uEnc(n);
|
|
355
|
+
return Q(i.lo, i.hi, this.buf), this;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
class s {
|
|
359
|
+
constructor(n, i = Xe().decodeUtf8) {
|
|
360
|
+
this.decodeUtf8 = i, this.varint64 = Qe, this.uint32 = qe, this.buf = n, this.len = n.length, this.pos = 0, this.view = new DataView(n.buffer, n.byteOffset, n.byteLength);
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* Reads a tag - field number and wire type.
|
|
364
|
+
*/
|
|
365
|
+
tag() {
|
|
366
|
+
let n = this.uint32(), i = n >>> 3, a = n & 7;
|
|
367
|
+
if (i <= 0 || a < 0 || a > 5)
|
|
368
|
+
throw new Error("illegal tag: field no " + i + " wire type " + a);
|
|
369
|
+
return [i, a];
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* Skip one element and return the skipped data.
|
|
373
|
+
*
|
|
374
|
+
* When skipping StartGroup, provide the tags field number to check for
|
|
375
|
+
* matching field number in the EndGroup tag.
|
|
376
|
+
*/
|
|
377
|
+
skip(n, i) {
|
|
378
|
+
let a = this.pos;
|
|
379
|
+
switch (n) {
|
|
380
|
+
case F.Varint:
|
|
381
|
+
for (; this.buf[this.pos++] & 128; )
|
|
382
|
+
;
|
|
383
|
+
break;
|
|
384
|
+
case F.Bit64:
|
|
385
|
+
this.pos += 4;
|
|
386
|
+
case F.Bit32:
|
|
387
|
+
this.pos += 4;
|
|
388
|
+
break;
|
|
389
|
+
case F.LengthDelimited:
|
|
390
|
+
let r = this.uint32();
|
|
391
|
+
this.pos += r;
|
|
392
|
+
break;
|
|
393
|
+
case F.StartGroup:
|
|
394
|
+
for (; ; ) {
|
|
395
|
+
const [t, u] = this.tag();
|
|
396
|
+
if (u === F.EndGroup) {
|
|
397
|
+
if (i !== void 0 && t !== i)
|
|
398
|
+
throw new Error("invalid end group tag");
|
|
399
|
+
break;
|
|
400
|
+
}
|
|
401
|
+
this.skip(u, t);
|
|
402
|
+
}
|
|
403
|
+
break;
|
|
404
|
+
default:
|
|
405
|
+
throw new Error("cant skip wire type " + n);
|
|
406
|
+
}
|
|
407
|
+
return this.assertBounds(), this.buf.subarray(a, this.pos);
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* Throws error if position in byte array is out of range.
|
|
411
|
+
*/
|
|
412
|
+
assertBounds() {
|
|
413
|
+
if (this.pos > this.len)
|
|
414
|
+
throw new RangeError("premature EOF");
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* Read a `int32` field, a signed 32 bit varint.
|
|
418
|
+
*/
|
|
419
|
+
int32() {
|
|
420
|
+
return this.uint32() | 0;
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* Read a `sint32` field, a signed, zigzag-encoded 32-bit varint.
|
|
424
|
+
*/
|
|
425
|
+
sint32() {
|
|
426
|
+
let n = this.uint32();
|
|
427
|
+
return n >>> 1 ^ -(n & 1);
|
|
428
|
+
}
|
|
429
|
+
/**
|
|
430
|
+
* Read a `int64` field, a signed 64-bit varint.
|
|
431
|
+
*/
|
|
432
|
+
int64() {
|
|
433
|
+
return T.dec(...this.varint64());
|
|
434
|
+
}
|
|
435
|
+
/**
|
|
436
|
+
* Read a `uint64` field, an unsigned 64-bit varint.
|
|
437
|
+
*/
|
|
438
|
+
uint64() {
|
|
439
|
+
return T.uDec(...this.varint64());
|
|
440
|
+
}
|
|
441
|
+
/**
|
|
442
|
+
* Read a `sint64` field, a signed, zig-zag-encoded 64-bit varint.
|
|
443
|
+
*/
|
|
444
|
+
sint64() {
|
|
445
|
+
let [n, i] = this.varint64(), a = -(n & 1);
|
|
446
|
+
return n = (n >>> 1 | (i & 1) << 31) ^ a, i = i >>> 1 ^ a, T.dec(n, i);
|
|
447
|
+
}
|
|
448
|
+
/**
|
|
449
|
+
* Read a `bool` field, a variant.
|
|
450
|
+
*/
|
|
451
|
+
bool() {
|
|
452
|
+
let [n, i] = this.varint64();
|
|
453
|
+
return n !== 0 || i !== 0;
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* Read a `fixed32` field, an unsigned, fixed-length 32-bit integer.
|
|
457
|
+
*/
|
|
458
|
+
fixed32() {
|
|
459
|
+
return this.view.getUint32((this.pos += 4) - 4, !0);
|
|
460
|
+
}
|
|
461
|
+
/**
|
|
462
|
+
* Read a `sfixed32` field, a signed, fixed-length 32-bit integer.
|
|
463
|
+
*/
|
|
464
|
+
sfixed32() {
|
|
465
|
+
return this.view.getInt32((this.pos += 4) - 4, !0);
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
* Read a `fixed64` field, an unsigned, fixed-length 64 bit integer.
|
|
469
|
+
*/
|
|
470
|
+
fixed64() {
|
|
471
|
+
return T.uDec(this.sfixed32(), this.sfixed32());
|
|
472
|
+
}
|
|
473
|
+
/**
|
|
474
|
+
* Read a `fixed64` field, a signed, fixed-length 64-bit integer.
|
|
475
|
+
*/
|
|
476
|
+
sfixed64() {
|
|
477
|
+
return T.dec(this.sfixed32(), this.sfixed32());
|
|
478
|
+
}
|
|
479
|
+
/**
|
|
480
|
+
* Read a `float` field, 32-bit floating point number.
|
|
481
|
+
*/
|
|
482
|
+
float() {
|
|
483
|
+
return this.view.getFloat32((this.pos += 4) - 4, !0);
|
|
484
|
+
}
|
|
485
|
+
/**
|
|
486
|
+
* Read a `double` field, a 64-bit floating point number.
|
|
487
|
+
*/
|
|
488
|
+
double() {
|
|
489
|
+
return this.view.getFloat64((this.pos += 8) - 8, !0);
|
|
490
|
+
}
|
|
491
|
+
/**
|
|
492
|
+
* Read a `bytes` field, length-delimited arbitrary data.
|
|
493
|
+
*/
|
|
494
|
+
bytes() {
|
|
495
|
+
let n = this.uint32(), i = this.pos;
|
|
496
|
+
return this.pos += n, this.assertBounds(), this.buf.subarray(i, i + n);
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
* Read a `string` field, length-delimited data converted to UTF-8 text.
|
|
500
|
+
*/
|
|
501
|
+
string() {
|
|
502
|
+
return this.decodeUtf8(this.bytes());
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
function z(e) {
|
|
506
|
+
if (typeof e == "string")
|
|
507
|
+
e = Number(e);
|
|
508
|
+
else if (typeof e != "number")
|
|
509
|
+
throw new Error("invalid int32: " + typeof e);
|
|
510
|
+
if (!Number.isInteger(e) || e > je || e < en)
|
|
511
|
+
throw new Error("invalid int32: " + e);
|
|
512
|
+
}
|
|
513
|
+
function te(e) {
|
|
514
|
+
if (typeof e == "string")
|
|
515
|
+
e = Number(e);
|
|
516
|
+
else if (typeof e != "number")
|
|
517
|
+
throw new Error("invalid uint32: " + typeof e);
|
|
518
|
+
if (!Number.isInteger(e) || e > $e || e < 0)
|
|
519
|
+
throw new Error("invalid uint32: " + e);
|
|
520
|
+
}
|
|
521
|
+
function nn(e) {
|
|
522
|
+
if (typeof e == "string") {
|
|
523
|
+
const n = e;
|
|
524
|
+
if (e = Number(e), isNaN(e) && n !== "NaN")
|
|
525
|
+
throw new Error("invalid float32: " + n);
|
|
526
|
+
} else if (typeof e != "number")
|
|
527
|
+
throw new Error("invalid float32: " + typeof e);
|
|
528
|
+
if (Number.isFinite(e) && (e > Ye || e < We))
|
|
529
|
+
throw new Error("invalid float32: " + e);
|
|
530
|
+
}
|
|
531
|
+
var tn = /* @__PURE__ */ ((e) => (e[e.SIGNAL_ENCODING_INTEL = 0] = "SIGNAL_ENCODING_INTEL", e[e.SIGNAL_ENCODING_MOTOROLA = 1] = "SIGNAL_ENCODING_MOTOROLA", e[e.UNRECOGNIZED = -1] = "UNRECOGNIZED", e))(tn || {});
|
|
532
|
+
function rn(e) {
|
|
533
|
+
switch (e) {
|
|
534
|
+
case 0:
|
|
535
|
+
case "SIGNAL_ENCODING_INTEL":
|
|
536
|
+
return 0;
|
|
537
|
+
case 1:
|
|
538
|
+
case "SIGNAL_ENCODING_MOTOROLA":
|
|
539
|
+
return 1;
|
|
540
|
+
case -1:
|
|
541
|
+
case "UNRECOGNIZED":
|
|
542
|
+
default:
|
|
543
|
+
return -1;
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
function an(e) {
|
|
547
|
+
switch (e) {
|
|
548
|
+
case 0:
|
|
549
|
+
return "SIGNAL_ENCODING_INTEL";
|
|
550
|
+
case 1:
|
|
551
|
+
return "SIGNAL_ENCODING_MOTOROLA";
|
|
552
|
+
case -1:
|
|
553
|
+
default:
|
|
554
|
+
return "UNRECOGNIZED";
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
var on = /* @__PURE__ */ ((e) => (e[e.SIGNAL_TYPE_INVALID = 0] = "SIGNAL_TYPE_INVALID", e[e.SIGNAL_TYPE_SIGNED = 1] = "SIGNAL_TYPE_SIGNED", e[e.SIGNAL_TYPE_UNSIGNED = 2] = "SIGNAL_TYPE_UNSIGNED", e[e.SIGNAL_TYPE_FLOAT = 3] = "SIGNAL_TYPE_FLOAT", e[e.SIGNAL_TYPE_DOUBLE = 4] = "SIGNAL_TYPE_DOUBLE", e[e.UNRECOGNIZED = -1] = "UNRECOGNIZED", e))(on || {});
|
|
558
|
+
function sn(e) {
|
|
559
|
+
switch (e) {
|
|
560
|
+
case 0:
|
|
561
|
+
case "SIGNAL_TYPE_INVALID":
|
|
562
|
+
return 0;
|
|
563
|
+
case 1:
|
|
564
|
+
case "SIGNAL_TYPE_SIGNED":
|
|
565
|
+
return 1;
|
|
566
|
+
case 2:
|
|
567
|
+
case "SIGNAL_TYPE_UNSIGNED":
|
|
568
|
+
return 2;
|
|
569
|
+
case 3:
|
|
570
|
+
case "SIGNAL_TYPE_FLOAT":
|
|
571
|
+
return 3;
|
|
572
|
+
case 4:
|
|
573
|
+
case "SIGNAL_TYPE_DOUBLE":
|
|
574
|
+
return 4;
|
|
575
|
+
case -1:
|
|
576
|
+
case "UNRECOGNIZED":
|
|
577
|
+
default:
|
|
578
|
+
return -1;
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
function un(e) {
|
|
582
|
+
switch (e) {
|
|
583
|
+
case 0:
|
|
584
|
+
return "SIGNAL_TYPE_INVALID";
|
|
585
|
+
case 1:
|
|
586
|
+
return "SIGNAL_TYPE_SIGNED";
|
|
587
|
+
case 2:
|
|
588
|
+
return "SIGNAL_TYPE_UNSIGNED";
|
|
589
|
+
case 3:
|
|
590
|
+
return "SIGNAL_TYPE_FLOAT";
|
|
591
|
+
case 4:
|
|
592
|
+
return "SIGNAL_TYPE_DOUBLE";
|
|
593
|
+
case -1:
|
|
594
|
+
default:
|
|
595
|
+
return "UNRECOGNIZED";
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
function re() {
|
|
599
|
+
return {
|
|
600
|
+
name: "",
|
|
601
|
+
qualifiedName: "",
|
|
602
|
+
comment: "",
|
|
603
|
+
encoding: 0,
|
|
604
|
+
dataType: 0,
|
|
605
|
+
startbit: 0,
|
|
606
|
+
length: 0,
|
|
607
|
+
unit: "",
|
|
608
|
+
factor: 0,
|
|
609
|
+
offset: 0,
|
|
610
|
+
minValue: 0,
|
|
611
|
+
maxValue: 0,
|
|
612
|
+
enumValues: {}
|
|
613
|
+
};
|
|
614
|
+
}
|
|
615
|
+
const S = {
|
|
616
|
+
encode(e, n = new d()) {
|
|
617
|
+
return e.name !== "" && n.uint32(10).string(e.name), e.qualifiedName !== "" && n.uint32(18).string(e.qualifiedName), e.comment !== "" && n.uint32(26).string(e.comment), e.encoding !== 0 && n.uint32(32).int32(e.encoding), e.dataType !== 0 && n.uint32(40).int32(e.dataType), e.startbit !== 0 && n.uint32(48).int32(e.startbit), e.length !== 0 && n.uint32(56).int32(e.length), e.unit !== "" && n.uint32(66).string(e.unit), e.factor !== 0 && n.uint32(73).double(e.factor), e.offset !== 0 && n.uint32(81).double(e.offset), e.minValue !== 0 && n.uint32(89).double(e.minValue), e.maxValue !== 0 && n.uint32(97).double(e.maxValue), Object.entries(e.enumValues).forEach(([i, a]) => {
|
|
618
|
+
q.encode({ key: i, value: a }, n.uint32(106).fork()).join();
|
|
619
|
+
}), n;
|
|
620
|
+
},
|
|
621
|
+
decode(e, n) {
|
|
622
|
+
const i = e instanceof s ? e : new s(e);
|
|
623
|
+
let a = n === void 0 ? i.len : i.pos + n;
|
|
624
|
+
const r = re();
|
|
625
|
+
for (; i.pos < a; ) {
|
|
626
|
+
const t = i.uint32();
|
|
627
|
+
switch (t >>> 3) {
|
|
628
|
+
case 1: {
|
|
629
|
+
if (t !== 10)
|
|
630
|
+
break;
|
|
631
|
+
r.name = i.string();
|
|
632
|
+
continue;
|
|
633
|
+
}
|
|
634
|
+
case 2: {
|
|
635
|
+
if (t !== 18)
|
|
636
|
+
break;
|
|
637
|
+
r.qualifiedName = i.string();
|
|
638
|
+
continue;
|
|
639
|
+
}
|
|
640
|
+
case 3: {
|
|
641
|
+
if (t !== 26)
|
|
642
|
+
break;
|
|
643
|
+
r.comment = i.string();
|
|
644
|
+
continue;
|
|
645
|
+
}
|
|
646
|
+
case 4: {
|
|
647
|
+
if (t !== 32)
|
|
648
|
+
break;
|
|
649
|
+
r.encoding = i.int32();
|
|
650
|
+
continue;
|
|
651
|
+
}
|
|
652
|
+
case 5: {
|
|
653
|
+
if (t !== 40)
|
|
654
|
+
break;
|
|
655
|
+
r.dataType = i.int32();
|
|
656
|
+
continue;
|
|
657
|
+
}
|
|
658
|
+
case 6: {
|
|
659
|
+
if (t !== 48)
|
|
660
|
+
break;
|
|
661
|
+
r.startbit = i.int32();
|
|
662
|
+
continue;
|
|
663
|
+
}
|
|
664
|
+
case 7: {
|
|
665
|
+
if (t !== 56)
|
|
666
|
+
break;
|
|
667
|
+
r.length = i.int32();
|
|
668
|
+
continue;
|
|
669
|
+
}
|
|
670
|
+
case 8: {
|
|
671
|
+
if (t !== 66)
|
|
672
|
+
break;
|
|
673
|
+
r.unit = i.string();
|
|
674
|
+
continue;
|
|
675
|
+
}
|
|
676
|
+
case 9: {
|
|
677
|
+
if (t !== 73)
|
|
678
|
+
break;
|
|
679
|
+
r.factor = i.double();
|
|
680
|
+
continue;
|
|
681
|
+
}
|
|
682
|
+
case 10: {
|
|
683
|
+
if (t !== 81)
|
|
684
|
+
break;
|
|
685
|
+
r.offset = i.double();
|
|
686
|
+
continue;
|
|
687
|
+
}
|
|
688
|
+
case 11: {
|
|
689
|
+
if (t !== 89)
|
|
690
|
+
break;
|
|
691
|
+
r.minValue = i.double();
|
|
692
|
+
continue;
|
|
693
|
+
}
|
|
694
|
+
case 12: {
|
|
695
|
+
if (t !== 97)
|
|
696
|
+
break;
|
|
697
|
+
r.maxValue = i.double();
|
|
698
|
+
continue;
|
|
699
|
+
}
|
|
700
|
+
case 13: {
|
|
701
|
+
if (t !== 106)
|
|
702
|
+
break;
|
|
703
|
+
const u = q.decode(i, i.uint32());
|
|
704
|
+
u.value !== void 0 && (r.enumValues[u.key] = u.value);
|
|
705
|
+
continue;
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
if ((t & 7) === 4 || t === 0)
|
|
709
|
+
break;
|
|
710
|
+
i.skip(t & 7);
|
|
711
|
+
}
|
|
712
|
+
return r;
|
|
713
|
+
},
|
|
714
|
+
fromJSON(e) {
|
|
715
|
+
return {
|
|
716
|
+
name: N(e.name) ? globalThis.String(e.name) : "",
|
|
717
|
+
qualifiedName: N(e.qualifiedName) ? globalThis.String(e.qualifiedName) : "",
|
|
718
|
+
comment: N(e.comment) ? globalThis.String(e.comment) : "",
|
|
719
|
+
encoding: N(e.encoding) ? rn(e.encoding) : 0,
|
|
720
|
+
dataType: N(e.dataType) ? sn(e.dataType) : 0,
|
|
721
|
+
startbit: N(e.startbit) ? globalThis.Number(e.startbit) : 0,
|
|
722
|
+
length: N(e.length) ? globalThis.Number(e.length) : 0,
|
|
723
|
+
unit: N(e.unit) ? globalThis.String(e.unit) : "",
|
|
724
|
+
factor: N(e.factor) ? globalThis.Number(e.factor) : 0,
|
|
725
|
+
offset: N(e.offset) ? globalThis.Number(e.offset) : 0,
|
|
726
|
+
minValue: N(e.minValue) ? globalThis.Number(e.minValue) : 0,
|
|
727
|
+
maxValue: N(e.maxValue) ? globalThis.Number(e.maxValue) : 0,
|
|
728
|
+
enumValues: fn(e.enumValues) ? Object.entries(e.enumValues).reduce((n, [i, a]) => (n[i] = Number(a), n), {}) : {}
|
|
729
|
+
};
|
|
730
|
+
},
|
|
731
|
+
toJSON(e) {
|
|
732
|
+
const n = {};
|
|
733
|
+
if (e.name !== "" && (n.name = e.name), e.qualifiedName !== "" && (n.qualifiedName = e.qualifiedName), e.comment !== "" && (n.comment = e.comment), e.encoding !== 0 && (n.encoding = an(e.encoding)), e.dataType !== 0 && (n.dataType = un(e.dataType)), e.startbit !== 0 && (n.startbit = Math.round(e.startbit)), e.length !== 0 && (n.length = Math.round(e.length)), e.unit !== "" && (n.unit = e.unit), e.factor !== 0 && (n.factor = e.factor), e.offset !== 0 && (n.offset = e.offset), e.minValue !== 0 && (n.minValue = e.minValue), e.maxValue !== 0 && (n.maxValue = e.maxValue), e.enumValues) {
|
|
734
|
+
const i = Object.entries(e.enumValues);
|
|
735
|
+
i.length > 0 && (n.enumValues = {}, i.forEach(([a, r]) => {
|
|
736
|
+
n.enumValues[a] = Math.round(r);
|
|
737
|
+
}));
|
|
738
|
+
}
|
|
739
|
+
return n;
|
|
740
|
+
},
|
|
741
|
+
create(e) {
|
|
742
|
+
return S.fromPartial(e ?? {});
|
|
743
|
+
},
|
|
744
|
+
fromPartial(e) {
|
|
745
|
+
const n = re();
|
|
746
|
+
return n.name = e.name ?? "", n.qualifiedName = e.qualifiedName ?? "", n.comment = e.comment ?? "", n.encoding = e.encoding ?? 0, n.dataType = e.dataType ?? 0, n.startbit = e.startbit ?? 0, n.length = e.length ?? 0, n.unit = e.unit ?? "", n.factor = e.factor ?? 0, n.offset = e.offset ?? 0, n.minValue = e.minValue ?? 0, n.maxValue = e.maxValue ?? 0, n.enumValues = Object.entries(e.enumValues ?? {}).reduce(
|
|
747
|
+
(i, [a, r]) => (r !== void 0 && (i[a] = globalThis.Number(r)), i),
|
|
748
|
+
{}
|
|
749
|
+
), n;
|
|
750
|
+
}
|
|
751
|
+
};
|
|
752
|
+
function ae() {
|
|
753
|
+
return { key: "", value: 0 };
|
|
754
|
+
}
|
|
755
|
+
const q = {
|
|
756
|
+
encode(e, n = new d()) {
|
|
757
|
+
return e.key !== "" && n.uint32(10).string(e.key), e.value !== 0 && n.uint32(16).int32(e.value), n;
|
|
758
|
+
},
|
|
759
|
+
decode(e, n) {
|
|
760
|
+
const i = e instanceof s ? e : new s(e);
|
|
761
|
+
let a = n === void 0 ? i.len : i.pos + n;
|
|
762
|
+
const r = ae();
|
|
763
|
+
for (; i.pos < a; ) {
|
|
764
|
+
const t = i.uint32();
|
|
765
|
+
switch (t >>> 3) {
|
|
766
|
+
case 1: {
|
|
767
|
+
if (t !== 10)
|
|
768
|
+
break;
|
|
769
|
+
r.key = i.string();
|
|
770
|
+
continue;
|
|
771
|
+
}
|
|
772
|
+
case 2: {
|
|
773
|
+
if (t !== 16)
|
|
774
|
+
break;
|
|
775
|
+
r.value = i.int32();
|
|
776
|
+
continue;
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
if ((t & 7) === 4 || t === 0)
|
|
780
|
+
break;
|
|
781
|
+
i.skip(t & 7);
|
|
782
|
+
}
|
|
783
|
+
return r;
|
|
784
|
+
},
|
|
785
|
+
fromJSON(e) {
|
|
786
|
+
return {
|
|
787
|
+
key: N(e.key) ? globalThis.String(e.key) : "",
|
|
788
|
+
value: N(e.value) ? globalThis.Number(e.value) : 0
|
|
789
|
+
};
|
|
790
|
+
},
|
|
791
|
+
toJSON(e) {
|
|
792
|
+
const n = {};
|
|
793
|
+
return e.key !== "" && (n.key = e.key), e.value !== 0 && (n.value = Math.round(e.value)), n;
|
|
794
|
+
},
|
|
795
|
+
create(e) {
|
|
796
|
+
return q.fromPartial(e ?? {});
|
|
797
|
+
},
|
|
798
|
+
fromPartial(e) {
|
|
799
|
+
const n = ae();
|
|
800
|
+
return n.key = e.key ?? "", n.value = e.value ?? 0, n;
|
|
801
|
+
}
|
|
802
|
+
};
|
|
803
|
+
function oe() {
|
|
804
|
+
return { items: [] };
|
|
805
|
+
}
|
|
806
|
+
const dn = {
|
|
807
|
+
encode(e, n = new d()) {
|
|
808
|
+
for (const i of e.items)
|
|
809
|
+
S.encode(i, n.uint32(10).fork()).join();
|
|
810
|
+
return n;
|
|
811
|
+
},
|
|
812
|
+
decode(e, n) {
|
|
813
|
+
const i = e instanceof s ? e : new s(e);
|
|
814
|
+
let a = n === void 0 ? i.len : i.pos + n;
|
|
815
|
+
const r = oe();
|
|
816
|
+
for (; i.pos < a; ) {
|
|
817
|
+
const t = i.uint32();
|
|
818
|
+
switch (t >>> 3) {
|
|
819
|
+
case 1: {
|
|
820
|
+
if (t !== 10)
|
|
821
|
+
break;
|
|
822
|
+
r.items.push(S.decode(i, i.uint32()));
|
|
823
|
+
continue;
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
if ((t & 7) === 4 || t === 0)
|
|
827
|
+
break;
|
|
828
|
+
i.skip(t & 7);
|
|
829
|
+
}
|
|
830
|
+
return r;
|
|
831
|
+
},
|
|
832
|
+
fromJSON(e) {
|
|
833
|
+
return {
|
|
834
|
+
items: globalThis.Array.isArray(e == null ? void 0 : e.items) ? e.items.map((n) => S.fromJSON(n)) : []
|
|
835
|
+
};
|
|
836
|
+
},
|
|
837
|
+
toJSON(e) {
|
|
838
|
+
var i;
|
|
839
|
+
const n = {};
|
|
840
|
+
return (i = e.items) != null && i.length && (n.items = e.items.map((a) => S.toJSON(a))), n;
|
|
841
|
+
},
|
|
842
|
+
create(e) {
|
|
843
|
+
return dn.fromPartial(e ?? {});
|
|
844
|
+
},
|
|
845
|
+
fromPartial(e) {
|
|
846
|
+
var i;
|
|
847
|
+
const n = oe();
|
|
848
|
+
return n.items = ((i = e.items) == null ? void 0 : i.map((a) => S.fromPartial(a))) || [], n;
|
|
849
|
+
}
|
|
850
|
+
};
|
|
851
|
+
function fn(e) {
|
|
852
|
+
return typeof e == "object" && e !== null;
|
|
853
|
+
}
|
|
854
|
+
function N(e) {
|
|
855
|
+
return e != null;
|
|
856
|
+
}
|
|
857
|
+
var ln = /* @__PURE__ */ ((e) => (e[e.CAN_FRAME_FLAG_UNSPECIFIED = 0] = "CAN_FRAME_FLAG_UNSPECIFIED", e[e.CAN_FRAME_FLAG_RTR = 1] = "CAN_FRAME_FLAG_RTR", e[e.CAN_FRAME_FLAG_STD = 2] = "CAN_FRAME_FLAG_STD", e[e.CAN_FRAME_FLAG_EXT = 4] = "CAN_FRAME_FLAG_EXT", e[e.CAN_FRAME_FLAG_WAKEUP = 8] = "CAN_FRAME_FLAG_WAKEUP", e[e.CAN_FRAME_FLAG_NERR = 16] = "CAN_FRAME_FLAG_NERR", e[e.CAN_FRAME_FLAG_ERROR_FRAME = 32] = "CAN_FRAME_FLAG_ERROR_FRAME", e[e.CAN_FRAME_FLAG_TXACK = 64] = "CAN_FRAME_FLAG_TXACK", e[e.CAN_FRAME_FLAG_TXRQ = 128] = "CAN_FRAME_FLAG_TXRQ", e[e.CAN_FRAME_FLAG_DELAY_MSG = 256] = "CAN_FRAME_FLAG_DELAY_MSG", e[e.CAN_FRAME_FLAG_LOCAL_TXACK = 268435456] = "CAN_FRAME_FLAG_LOCAL_TXACK", e[e.CAN_FRAME_FLAG_SINGLE_SHOT = 16777216] = "CAN_FRAME_FLAG_SINGLE_SHOT", e[e.CAN_FRAME_FLAG_TXNACK = 33554432] = "CAN_FRAME_FLAG_TXNACK", e[e.CAN_FRAME_FLAG_ABL = 67108864] = "CAN_FRAME_FLAG_ABL", e[e.CAN_FRAME_FLAG_FD_FDF = 65536] = "CAN_FRAME_FLAG_FD_FDF", e[e.CAN_FRAME_FLAG_FD_BRS = 131072] = "CAN_FRAME_FLAG_FD_BRS", e[e.CAN_FRAME_FLAG_FD_ESI = 262144] = "CAN_FRAME_FLAG_FD_ESI", e[e.CAN_FRAME_FLAG_ERR_HW_OVERRUN = 512] = "CAN_FRAME_FLAG_ERR_HW_OVERRUN", e[e.CAN_FRAME_FLAG_ERR_SW_OVERRUN = 1024] = "CAN_FRAME_FLAG_ERR_SW_OVERRUN", e[e.CAN_FRAME_FLAG_ERR_STUFF = 2048] = "CAN_FRAME_FLAG_ERR_STUFF", e[e.CAN_FRAME_FLAG_ERR_FORM = 4096] = "CAN_FRAME_FLAG_ERR_FORM", e[e.CAN_FRAME_FLAG_ERR_CRC = 8192] = "CAN_FRAME_FLAG_ERR_CRC", e[e.CAN_FRAME_FLAG_ERR_BIT0 = 16384] = "CAN_FRAME_FLAG_ERR_BIT0", e[e.CAN_FRAME_FLAG_ERR_BIT1 = 32768] = "CAN_FRAME_FLAG_ERR_BIT1", e[e.UNRECOGNIZED = -1] = "UNRECOGNIZED", e))(ln || {});
|
|
858
|
+
function cn(e) {
|
|
859
|
+
switch (e) {
|
|
860
|
+
case 0:
|
|
861
|
+
case "CAN_FRAME_FLAG_UNSPECIFIED":
|
|
862
|
+
return 0;
|
|
863
|
+
case 1:
|
|
864
|
+
case "CAN_FRAME_FLAG_RTR":
|
|
865
|
+
return 1;
|
|
866
|
+
case 2:
|
|
867
|
+
case "CAN_FRAME_FLAG_STD":
|
|
868
|
+
return 2;
|
|
869
|
+
case 4:
|
|
870
|
+
case "CAN_FRAME_FLAG_EXT":
|
|
871
|
+
return 4;
|
|
872
|
+
case 8:
|
|
873
|
+
case "CAN_FRAME_FLAG_WAKEUP":
|
|
874
|
+
return 8;
|
|
875
|
+
case 16:
|
|
876
|
+
case "CAN_FRAME_FLAG_NERR":
|
|
877
|
+
return 16;
|
|
878
|
+
case 32:
|
|
879
|
+
case "CAN_FRAME_FLAG_ERROR_FRAME":
|
|
880
|
+
return 32;
|
|
881
|
+
case 64:
|
|
882
|
+
case "CAN_FRAME_FLAG_TXACK":
|
|
883
|
+
return 64;
|
|
884
|
+
case 128:
|
|
885
|
+
case "CAN_FRAME_FLAG_TXRQ":
|
|
886
|
+
return 128;
|
|
887
|
+
case 256:
|
|
888
|
+
case "CAN_FRAME_FLAG_DELAY_MSG":
|
|
889
|
+
return 256;
|
|
890
|
+
case 268435456:
|
|
891
|
+
case "CAN_FRAME_FLAG_LOCAL_TXACK":
|
|
892
|
+
return 268435456;
|
|
893
|
+
case 16777216:
|
|
894
|
+
case "CAN_FRAME_FLAG_SINGLE_SHOT":
|
|
895
|
+
return 16777216;
|
|
896
|
+
case 33554432:
|
|
897
|
+
case "CAN_FRAME_FLAG_TXNACK":
|
|
898
|
+
return 33554432;
|
|
899
|
+
case 67108864:
|
|
900
|
+
case "CAN_FRAME_FLAG_ABL":
|
|
901
|
+
return 67108864;
|
|
902
|
+
case 65536:
|
|
903
|
+
case "CAN_FRAME_FLAG_FD_FDF":
|
|
904
|
+
return 65536;
|
|
905
|
+
case 131072:
|
|
906
|
+
case "CAN_FRAME_FLAG_FD_BRS":
|
|
907
|
+
return 131072;
|
|
908
|
+
case 262144:
|
|
909
|
+
case "CAN_FRAME_FLAG_FD_ESI":
|
|
910
|
+
return 262144;
|
|
911
|
+
case 512:
|
|
912
|
+
case "CAN_FRAME_FLAG_ERR_HW_OVERRUN":
|
|
913
|
+
return 512;
|
|
914
|
+
case 1024:
|
|
915
|
+
case "CAN_FRAME_FLAG_ERR_SW_OVERRUN":
|
|
916
|
+
return 1024;
|
|
917
|
+
case 2048:
|
|
918
|
+
case "CAN_FRAME_FLAG_ERR_STUFF":
|
|
919
|
+
return 2048;
|
|
920
|
+
case 4096:
|
|
921
|
+
case "CAN_FRAME_FLAG_ERR_FORM":
|
|
922
|
+
return 4096;
|
|
923
|
+
case 8192:
|
|
924
|
+
case "CAN_FRAME_FLAG_ERR_CRC":
|
|
925
|
+
return 8192;
|
|
926
|
+
case 16384:
|
|
927
|
+
case "CAN_FRAME_FLAG_ERR_BIT0":
|
|
928
|
+
return 16384;
|
|
929
|
+
case 32768:
|
|
930
|
+
case "CAN_FRAME_FLAG_ERR_BIT1":
|
|
931
|
+
return 32768;
|
|
932
|
+
case -1:
|
|
933
|
+
case "UNRECOGNIZED":
|
|
934
|
+
default:
|
|
935
|
+
return -1;
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
function _n(e) {
|
|
939
|
+
switch (e) {
|
|
940
|
+
case 0:
|
|
941
|
+
return "CAN_FRAME_FLAG_UNSPECIFIED";
|
|
942
|
+
case 1:
|
|
943
|
+
return "CAN_FRAME_FLAG_RTR";
|
|
944
|
+
case 2:
|
|
945
|
+
return "CAN_FRAME_FLAG_STD";
|
|
946
|
+
case 4:
|
|
947
|
+
return "CAN_FRAME_FLAG_EXT";
|
|
948
|
+
case 8:
|
|
949
|
+
return "CAN_FRAME_FLAG_WAKEUP";
|
|
950
|
+
case 16:
|
|
951
|
+
return "CAN_FRAME_FLAG_NERR";
|
|
952
|
+
case 32:
|
|
953
|
+
return "CAN_FRAME_FLAG_ERROR_FRAME";
|
|
954
|
+
case 64:
|
|
955
|
+
return "CAN_FRAME_FLAG_TXACK";
|
|
956
|
+
case 128:
|
|
957
|
+
return "CAN_FRAME_FLAG_TXRQ";
|
|
958
|
+
case 256:
|
|
959
|
+
return "CAN_FRAME_FLAG_DELAY_MSG";
|
|
960
|
+
case 268435456:
|
|
961
|
+
return "CAN_FRAME_FLAG_LOCAL_TXACK";
|
|
962
|
+
case 16777216:
|
|
963
|
+
return "CAN_FRAME_FLAG_SINGLE_SHOT";
|
|
964
|
+
case 33554432:
|
|
965
|
+
return "CAN_FRAME_FLAG_TXNACK";
|
|
966
|
+
case 67108864:
|
|
967
|
+
return "CAN_FRAME_FLAG_ABL";
|
|
968
|
+
case 65536:
|
|
969
|
+
return "CAN_FRAME_FLAG_FD_FDF";
|
|
970
|
+
case 131072:
|
|
971
|
+
return "CAN_FRAME_FLAG_FD_BRS";
|
|
972
|
+
case 262144:
|
|
973
|
+
return "CAN_FRAME_FLAG_FD_ESI";
|
|
974
|
+
case 512:
|
|
975
|
+
return "CAN_FRAME_FLAG_ERR_HW_OVERRUN";
|
|
976
|
+
case 1024:
|
|
977
|
+
return "CAN_FRAME_FLAG_ERR_SW_OVERRUN";
|
|
978
|
+
case 2048:
|
|
979
|
+
return "CAN_FRAME_FLAG_ERR_STUFF";
|
|
980
|
+
case 4096:
|
|
981
|
+
return "CAN_FRAME_FLAG_ERR_FORM";
|
|
982
|
+
case 8192:
|
|
983
|
+
return "CAN_FRAME_FLAG_ERR_CRC";
|
|
984
|
+
case 16384:
|
|
985
|
+
return "CAN_FRAME_FLAG_ERR_BIT0";
|
|
986
|
+
case 32768:
|
|
987
|
+
return "CAN_FRAME_FLAG_ERR_BIT1";
|
|
988
|
+
case -1:
|
|
989
|
+
default:
|
|
990
|
+
return "UNRECOGNIZED";
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
var Nn = /* @__PURE__ */ ((e) => (e[e.LIN_FRAME_FLAG_UNSPECIFIED = 0] = "LIN_FRAME_FLAG_UNSPECIFIED", e[e.LIN_FRAME_FLAG_TX = 1] = "LIN_FRAME_FLAG_TX", e[e.LIN_FRAME_FLAG_RX = 2] = "LIN_FRAME_FLAG_RX", e[e.LIN_FRAME_FLAG_WAKEUP_FRAME = 4] = "LIN_FRAME_FLAG_WAKEUP_FRAME", e[e.LIN_FRAME_FLAG_NODATA = 8] = "LIN_FRAME_FLAG_NODATA", e[e.LIN_FRAME_FLAG_CSUM_ERROR = 16] = "LIN_FRAME_FLAG_CSUM_ERROR", e[e.LIN_FRAME_FLAG_PARITY_ERROR = 32] = "LIN_FRAME_FLAG_PARITY_ERROR", e[e.LIN_FRAME_FLAG_SYNCH_ERROR = 64] = "LIN_FRAME_FLAG_SYNCH_ERROR", e[e.LIN_FRAME_FLAG_BIT_ERROR = 128] = "LIN_FRAME_FLAG_BIT_ERROR", e[e.UNRECOGNIZED = -1] = "UNRECOGNIZED", e))(Nn || {});
|
|
994
|
+
function En(e) {
|
|
995
|
+
switch (e) {
|
|
996
|
+
case 0:
|
|
997
|
+
case "LIN_FRAME_FLAG_UNSPECIFIED":
|
|
998
|
+
return 0;
|
|
999
|
+
case 1:
|
|
1000
|
+
case "LIN_FRAME_FLAG_TX":
|
|
1001
|
+
return 1;
|
|
1002
|
+
case 2:
|
|
1003
|
+
case "LIN_FRAME_FLAG_RX":
|
|
1004
|
+
return 2;
|
|
1005
|
+
case 4:
|
|
1006
|
+
case "LIN_FRAME_FLAG_WAKEUP_FRAME":
|
|
1007
|
+
return 4;
|
|
1008
|
+
case 8:
|
|
1009
|
+
case "LIN_FRAME_FLAG_NODATA":
|
|
1010
|
+
return 8;
|
|
1011
|
+
case 16:
|
|
1012
|
+
case "LIN_FRAME_FLAG_CSUM_ERROR":
|
|
1013
|
+
return 16;
|
|
1014
|
+
case 32:
|
|
1015
|
+
case "LIN_FRAME_FLAG_PARITY_ERROR":
|
|
1016
|
+
return 32;
|
|
1017
|
+
case 64:
|
|
1018
|
+
case "LIN_FRAME_FLAG_SYNCH_ERROR":
|
|
1019
|
+
return 64;
|
|
1020
|
+
case 128:
|
|
1021
|
+
case "LIN_FRAME_FLAG_BIT_ERROR":
|
|
1022
|
+
return 128;
|
|
1023
|
+
case -1:
|
|
1024
|
+
case "UNRECOGNIZED":
|
|
1025
|
+
default:
|
|
1026
|
+
return -1;
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
function An(e) {
|
|
1030
|
+
switch (e) {
|
|
1031
|
+
case 0:
|
|
1032
|
+
return "LIN_FRAME_FLAG_UNSPECIFIED";
|
|
1033
|
+
case 1:
|
|
1034
|
+
return "LIN_FRAME_FLAG_TX";
|
|
1035
|
+
case 2:
|
|
1036
|
+
return "LIN_FRAME_FLAG_RX";
|
|
1037
|
+
case 4:
|
|
1038
|
+
return "LIN_FRAME_FLAG_WAKEUP_FRAME";
|
|
1039
|
+
case 8:
|
|
1040
|
+
return "LIN_FRAME_FLAG_NODATA";
|
|
1041
|
+
case 16:
|
|
1042
|
+
return "LIN_FRAME_FLAG_CSUM_ERROR";
|
|
1043
|
+
case 32:
|
|
1044
|
+
return "LIN_FRAME_FLAG_PARITY_ERROR";
|
|
1045
|
+
case 64:
|
|
1046
|
+
return "LIN_FRAME_FLAG_SYNCH_ERROR";
|
|
1047
|
+
case 128:
|
|
1048
|
+
return "LIN_FRAME_FLAG_BIT_ERROR";
|
|
1049
|
+
case -1:
|
|
1050
|
+
default:
|
|
1051
|
+
return "UNRECOGNIZED";
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
function se() {
|
|
1055
|
+
return { flags: [] };
|
|
1056
|
+
}
|
|
1057
|
+
const c = {
|
|
1058
|
+
encode(e, n = new d()) {
|
|
1059
|
+
n.uint32(10).fork();
|
|
1060
|
+
for (const i of e.flags)
|
|
1061
|
+
n.int32(i);
|
|
1062
|
+
return n.join(), n;
|
|
1063
|
+
},
|
|
1064
|
+
decode(e, n) {
|
|
1065
|
+
const i = e instanceof s ? e : new s(e);
|
|
1066
|
+
let a = n === void 0 ? i.len : i.pos + n;
|
|
1067
|
+
const r = se();
|
|
1068
|
+
for (; i.pos < a; ) {
|
|
1069
|
+
const t = i.uint32();
|
|
1070
|
+
switch (t >>> 3) {
|
|
1071
|
+
case 1: {
|
|
1072
|
+
if (t === 8) {
|
|
1073
|
+
r.flags.push(i.int32());
|
|
1074
|
+
continue;
|
|
1075
|
+
}
|
|
1076
|
+
if (t === 10) {
|
|
1077
|
+
const u = i.uint32() + i.pos;
|
|
1078
|
+
for (; i.pos < u; )
|
|
1079
|
+
r.flags.push(i.int32());
|
|
1080
|
+
continue;
|
|
1081
|
+
}
|
|
1082
|
+
break;
|
|
1083
|
+
}
|
|
1084
|
+
}
|
|
1085
|
+
if ((t & 7) === 4 || t === 0)
|
|
1086
|
+
break;
|
|
1087
|
+
i.skip(t & 7);
|
|
1088
|
+
}
|
|
1089
|
+
return r;
|
|
1090
|
+
},
|
|
1091
|
+
fromJSON(e) {
|
|
1092
|
+
return {
|
|
1093
|
+
flags: globalThis.Array.isArray(e == null ? void 0 : e.flags) ? e.flags.map((n) => cn(n)) : []
|
|
1094
|
+
};
|
|
1095
|
+
},
|
|
1096
|
+
toJSON(e) {
|
|
1097
|
+
var i;
|
|
1098
|
+
const n = {};
|
|
1099
|
+
return (i = e.flags) != null && i.length && (n.flags = e.flags.map((a) => _n(a))), n;
|
|
1100
|
+
},
|
|
1101
|
+
create(e) {
|
|
1102
|
+
return c.fromPartial(e ?? {});
|
|
1103
|
+
},
|
|
1104
|
+
fromPartial(e) {
|
|
1105
|
+
var i;
|
|
1106
|
+
const n = se();
|
|
1107
|
+
return n.flags = ((i = e.flags) == null ? void 0 : i.map((a) => a)) || [], n;
|
|
1108
|
+
}
|
|
1109
|
+
};
|
|
1110
|
+
function ue() {
|
|
1111
|
+
return { flags: [] };
|
|
1112
|
+
}
|
|
1113
|
+
const O = {
|
|
1114
|
+
encode(e, n = new d()) {
|
|
1115
|
+
n.uint32(10).fork();
|
|
1116
|
+
for (const i of e.flags)
|
|
1117
|
+
n.int32(i);
|
|
1118
|
+
return n.join(), n;
|
|
1119
|
+
},
|
|
1120
|
+
decode(e, n) {
|
|
1121
|
+
const i = e instanceof s ? e : new s(e);
|
|
1122
|
+
let a = n === void 0 ? i.len : i.pos + n;
|
|
1123
|
+
const r = ue();
|
|
1124
|
+
for (; i.pos < a; ) {
|
|
1125
|
+
const t = i.uint32();
|
|
1126
|
+
switch (t >>> 3) {
|
|
1127
|
+
case 1: {
|
|
1128
|
+
if (t === 8) {
|
|
1129
|
+
r.flags.push(i.int32());
|
|
1130
|
+
continue;
|
|
1131
|
+
}
|
|
1132
|
+
if (t === 10) {
|
|
1133
|
+
const u = i.uint32() + i.pos;
|
|
1134
|
+
for (; i.pos < u; )
|
|
1135
|
+
r.flags.push(i.int32());
|
|
1136
|
+
continue;
|
|
1137
|
+
}
|
|
1138
|
+
break;
|
|
1139
|
+
}
|
|
1140
|
+
}
|
|
1141
|
+
if ((t & 7) === 4 || t === 0)
|
|
1142
|
+
break;
|
|
1143
|
+
i.skip(t & 7);
|
|
1144
|
+
}
|
|
1145
|
+
return r;
|
|
1146
|
+
},
|
|
1147
|
+
fromJSON(e) {
|
|
1148
|
+
return {
|
|
1149
|
+
flags: globalThis.Array.isArray(e == null ? void 0 : e.flags) ? e.flags.map((n) => En(n)) : []
|
|
1150
|
+
};
|
|
1151
|
+
},
|
|
1152
|
+
toJSON(e) {
|
|
1153
|
+
var i;
|
|
1154
|
+
const n = {};
|
|
1155
|
+
return (i = e.flags) != null && i.length && (n.flags = e.flags.map((a) => An(a))), n;
|
|
1156
|
+
},
|
|
1157
|
+
create(e) {
|
|
1158
|
+
return O.fromPartial(e ?? {});
|
|
1159
|
+
},
|
|
1160
|
+
fromPartial(e) {
|
|
1161
|
+
var i;
|
|
1162
|
+
const n = ue();
|
|
1163
|
+
return n.flags = ((i = e.flags) == null ? void 0 : i.map((a) => a)) || [], n;
|
|
1164
|
+
}
|
|
1165
|
+
};
|
|
1166
|
+
function de() {
|
|
1167
|
+
return { stringValue: void 0, doubleValue: void 0 };
|
|
1168
|
+
}
|
|
1169
|
+
const M = {
|
|
1170
|
+
encode(e, n = new d()) {
|
|
1171
|
+
return e.stringValue !== void 0 && n.uint32(10).string(e.stringValue), e.doubleValue !== void 0 && n.uint32(17).double(e.doubleValue), n;
|
|
1172
|
+
},
|
|
1173
|
+
decode(e, n) {
|
|
1174
|
+
const i = e instanceof s ? e : new s(e);
|
|
1175
|
+
let a = n === void 0 ? i.len : i.pos + n;
|
|
1176
|
+
const r = de();
|
|
1177
|
+
for (; i.pos < a; ) {
|
|
1178
|
+
const t = i.uint32();
|
|
1179
|
+
switch (t >>> 3) {
|
|
1180
|
+
case 1: {
|
|
1181
|
+
if (t !== 10)
|
|
1182
|
+
break;
|
|
1183
|
+
r.stringValue = i.string();
|
|
1184
|
+
continue;
|
|
1185
|
+
}
|
|
1186
|
+
case 2: {
|
|
1187
|
+
if (t !== 17)
|
|
1188
|
+
break;
|
|
1189
|
+
r.doubleValue = i.double();
|
|
1190
|
+
continue;
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1193
|
+
if ((t & 7) === 4 || t === 0)
|
|
1194
|
+
break;
|
|
1195
|
+
i.skip(t & 7);
|
|
1196
|
+
}
|
|
1197
|
+
return r;
|
|
1198
|
+
},
|
|
1199
|
+
fromJSON(e) {
|
|
1200
|
+
return {
|
|
1201
|
+
stringValue: f(e.stringValue) ? globalThis.String(e.stringValue) : void 0,
|
|
1202
|
+
doubleValue: f(e.doubleValue) ? globalThis.Number(e.doubleValue) : void 0
|
|
1203
|
+
};
|
|
1204
|
+
},
|
|
1205
|
+
toJSON(e) {
|
|
1206
|
+
const n = {};
|
|
1207
|
+
return e.stringValue !== void 0 && (n.stringValue = e.stringValue), e.doubleValue !== void 0 && (n.doubleValue = e.doubleValue), n;
|
|
1208
|
+
},
|
|
1209
|
+
create(e) {
|
|
1210
|
+
return M.fromPartial(e ?? {});
|
|
1211
|
+
},
|
|
1212
|
+
fromPartial(e) {
|
|
1213
|
+
const n = de();
|
|
1214
|
+
return n.stringValue = e.stringValue ?? void 0, n.doubleValue = e.doubleValue ?? void 0, n;
|
|
1215
|
+
}
|
|
1216
|
+
};
|
|
1217
|
+
function fe() {
|
|
1218
|
+
return { name: "", qualifiedName: "", unit: "", stringValue: void 0, doubleValue: void 0 };
|
|
1219
|
+
}
|
|
1220
|
+
const h = {
|
|
1221
|
+
encode(e, n = new d()) {
|
|
1222
|
+
return e.name !== "" && n.uint32(10).string(e.name), e.qualifiedName !== "" && n.uint32(18).string(e.qualifiedName), e.unit !== "" && n.uint32(26).string(e.unit), e.stringValue !== void 0 && n.uint32(34).string(e.stringValue), e.doubleValue !== void 0 && n.uint32(41).double(e.doubleValue), n;
|
|
1223
|
+
},
|
|
1224
|
+
decode(e, n) {
|
|
1225
|
+
const i = e instanceof s ? e : new s(e);
|
|
1226
|
+
let a = n === void 0 ? i.len : i.pos + n;
|
|
1227
|
+
const r = fe();
|
|
1228
|
+
for (; i.pos < a; ) {
|
|
1229
|
+
const t = i.uint32();
|
|
1230
|
+
switch (t >>> 3) {
|
|
1231
|
+
case 1: {
|
|
1232
|
+
if (t !== 10)
|
|
1233
|
+
break;
|
|
1234
|
+
r.name = i.string();
|
|
1235
|
+
continue;
|
|
1236
|
+
}
|
|
1237
|
+
case 2: {
|
|
1238
|
+
if (t !== 18)
|
|
1239
|
+
break;
|
|
1240
|
+
r.qualifiedName = i.string();
|
|
1241
|
+
continue;
|
|
1242
|
+
}
|
|
1243
|
+
case 3: {
|
|
1244
|
+
if (t !== 26)
|
|
1245
|
+
break;
|
|
1246
|
+
r.unit = i.string();
|
|
1247
|
+
continue;
|
|
1248
|
+
}
|
|
1249
|
+
case 4: {
|
|
1250
|
+
if (t !== 34)
|
|
1251
|
+
break;
|
|
1252
|
+
r.stringValue = i.string();
|
|
1253
|
+
continue;
|
|
1254
|
+
}
|
|
1255
|
+
case 5: {
|
|
1256
|
+
if (t !== 41)
|
|
1257
|
+
break;
|
|
1258
|
+
r.doubleValue = i.double();
|
|
1259
|
+
continue;
|
|
1260
|
+
}
|
|
1261
|
+
}
|
|
1262
|
+
if ((t & 7) === 4 || t === 0)
|
|
1263
|
+
break;
|
|
1264
|
+
i.skip(t & 7);
|
|
1265
|
+
}
|
|
1266
|
+
return r;
|
|
1267
|
+
},
|
|
1268
|
+
fromJSON(e) {
|
|
1269
|
+
return {
|
|
1270
|
+
name: f(e.name) ? globalThis.String(e.name) : "",
|
|
1271
|
+
qualifiedName: f(e.qualifiedName) ? globalThis.String(e.qualifiedName) : "",
|
|
1272
|
+
unit: f(e.unit) ? globalThis.String(e.unit) : "",
|
|
1273
|
+
stringValue: f(e.stringValue) ? globalThis.String(e.stringValue) : void 0,
|
|
1274
|
+
doubleValue: f(e.doubleValue) ? globalThis.Number(e.doubleValue) : void 0
|
|
1275
|
+
};
|
|
1276
|
+
},
|
|
1277
|
+
toJSON(e) {
|
|
1278
|
+
const n = {};
|
|
1279
|
+
return e.name !== "" && (n.name = e.name), e.qualifiedName !== "" && (n.qualifiedName = e.qualifiedName), e.unit !== "" && (n.unit = e.unit), e.stringValue !== void 0 && (n.stringValue = e.stringValue), e.doubleValue !== void 0 && (n.doubleValue = e.doubleValue), n;
|
|
1280
|
+
},
|
|
1281
|
+
create(e) {
|
|
1282
|
+
return h.fromPartial(e ?? {});
|
|
1283
|
+
},
|
|
1284
|
+
fromPartial(e) {
|
|
1285
|
+
const n = fe();
|
|
1286
|
+
return n.name = e.name ?? "", n.qualifiedName = e.qualifiedName ?? "", n.unit = e.unit ?? "", n.stringValue = e.stringValue ?? void 0, n.doubleValue = e.doubleValue ?? void 0, n;
|
|
1287
|
+
}
|
|
1288
|
+
};
|
|
1289
|
+
function le() {
|
|
1290
|
+
return {
|
|
1291
|
+
sourceId: "",
|
|
1292
|
+
sourceName: "",
|
|
1293
|
+
streamId: "",
|
|
1294
|
+
id: 0,
|
|
1295
|
+
messageName: "",
|
|
1296
|
+
data: [],
|
|
1297
|
+
time: 0,
|
|
1298
|
+
tx: !1,
|
|
1299
|
+
dlc: 0,
|
|
1300
|
+
hashCode: 0,
|
|
1301
|
+
properties: {},
|
|
1302
|
+
signalValues: [],
|
|
1303
|
+
canFrameFlags: void 0,
|
|
1304
|
+
linFrameFlags: void 0
|
|
1305
|
+
};
|
|
1306
|
+
}
|
|
1307
|
+
const m = {
|
|
1308
|
+
encode(e, n = new d()) {
|
|
1309
|
+
e.sourceId !== "" && n.uint32(10).string(e.sourceId), e.sourceName !== "" && n.uint32(18).string(e.sourceName), e.streamId !== "" && n.uint32(26).string(e.streamId), e.id !== 0 && n.uint32(32).int32(e.id), e.messageName !== "" && n.uint32(42).string(e.messageName), n.uint32(50).fork();
|
|
1310
|
+
for (const i of e.data)
|
|
1311
|
+
n.uint32(i);
|
|
1312
|
+
n.join(), e.time !== 0 && n.uint32(57).double(e.time), e.tx !== !1 && n.uint32(64).bool(e.tx), e.dlc !== 0 && n.uint32(72).int32(e.dlc), e.hashCode !== 0 && n.uint32(80).int32(e.hashCode), Object.entries(e.properties).forEach(([i, a]) => {
|
|
1313
|
+
K.encode({ key: i, value: a }, n.uint32(90).fork()).join();
|
|
1314
|
+
});
|
|
1315
|
+
for (const i of e.signalValues)
|
|
1316
|
+
h.encode(i, n.uint32(98).fork()).join();
|
|
1317
|
+
return e.canFrameFlags !== void 0 && c.encode(e.canFrameFlags, n.uint32(106).fork()).join(), e.linFrameFlags !== void 0 && O.encode(e.linFrameFlags, n.uint32(114).fork()).join(), n;
|
|
1318
|
+
},
|
|
1319
|
+
decode(e, n) {
|
|
1320
|
+
const i = e instanceof s ? e : new s(e);
|
|
1321
|
+
let a = n === void 0 ? i.len : i.pos + n;
|
|
1322
|
+
const r = le();
|
|
1323
|
+
for (; i.pos < a; ) {
|
|
1324
|
+
const t = i.uint32();
|
|
1325
|
+
switch (t >>> 3) {
|
|
1326
|
+
case 1: {
|
|
1327
|
+
if (t !== 10)
|
|
1328
|
+
break;
|
|
1329
|
+
r.sourceId = i.string();
|
|
1330
|
+
continue;
|
|
1331
|
+
}
|
|
1332
|
+
case 2: {
|
|
1333
|
+
if (t !== 18)
|
|
1334
|
+
break;
|
|
1335
|
+
r.sourceName = i.string();
|
|
1336
|
+
continue;
|
|
1337
|
+
}
|
|
1338
|
+
case 3: {
|
|
1339
|
+
if (t !== 26)
|
|
1340
|
+
break;
|
|
1341
|
+
r.streamId = i.string();
|
|
1342
|
+
continue;
|
|
1343
|
+
}
|
|
1344
|
+
case 4: {
|
|
1345
|
+
if (t !== 32)
|
|
1346
|
+
break;
|
|
1347
|
+
r.id = i.int32();
|
|
1348
|
+
continue;
|
|
1349
|
+
}
|
|
1350
|
+
case 5: {
|
|
1351
|
+
if (t !== 42)
|
|
1352
|
+
break;
|
|
1353
|
+
r.messageName = i.string();
|
|
1354
|
+
continue;
|
|
1355
|
+
}
|
|
1356
|
+
case 6: {
|
|
1357
|
+
if (t === 48) {
|
|
1358
|
+
r.data.push(i.uint32());
|
|
1359
|
+
continue;
|
|
1360
|
+
}
|
|
1361
|
+
if (t === 50) {
|
|
1362
|
+
const u = i.uint32() + i.pos;
|
|
1363
|
+
for (; i.pos < u; )
|
|
1364
|
+
r.data.push(i.uint32());
|
|
1365
|
+
continue;
|
|
1366
|
+
}
|
|
1367
|
+
break;
|
|
1368
|
+
}
|
|
1369
|
+
case 7: {
|
|
1370
|
+
if (t !== 57)
|
|
1371
|
+
break;
|
|
1372
|
+
r.time = i.double();
|
|
1373
|
+
continue;
|
|
1374
|
+
}
|
|
1375
|
+
case 8: {
|
|
1376
|
+
if (t !== 64)
|
|
1377
|
+
break;
|
|
1378
|
+
r.tx = i.bool();
|
|
1379
|
+
continue;
|
|
1380
|
+
}
|
|
1381
|
+
case 9: {
|
|
1382
|
+
if (t !== 72)
|
|
1383
|
+
break;
|
|
1384
|
+
r.dlc = i.int32();
|
|
1385
|
+
continue;
|
|
1386
|
+
}
|
|
1387
|
+
case 10: {
|
|
1388
|
+
if (t !== 80)
|
|
1389
|
+
break;
|
|
1390
|
+
r.hashCode = i.int32();
|
|
1391
|
+
continue;
|
|
1392
|
+
}
|
|
1393
|
+
case 11: {
|
|
1394
|
+
if (t !== 90)
|
|
1395
|
+
break;
|
|
1396
|
+
const u = K.decode(i, i.uint32());
|
|
1397
|
+
u.value !== void 0 && (r.properties[u.key] = u.value);
|
|
1398
|
+
continue;
|
|
1399
|
+
}
|
|
1400
|
+
case 12: {
|
|
1401
|
+
if (t !== 98)
|
|
1402
|
+
break;
|
|
1403
|
+
r.signalValues.push(h.decode(i, i.uint32()));
|
|
1404
|
+
continue;
|
|
1405
|
+
}
|
|
1406
|
+
case 13: {
|
|
1407
|
+
if (t !== 106)
|
|
1408
|
+
break;
|
|
1409
|
+
r.canFrameFlags = c.decode(i, i.uint32());
|
|
1410
|
+
continue;
|
|
1411
|
+
}
|
|
1412
|
+
case 14: {
|
|
1413
|
+
if (t !== 114)
|
|
1414
|
+
break;
|
|
1415
|
+
r.linFrameFlags = O.decode(i, i.uint32());
|
|
1416
|
+
continue;
|
|
1417
|
+
}
|
|
1418
|
+
}
|
|
1419
|
+
if ((t & 7) === 4 || t === 0)
|
|
1420
|
+
break;
|
|
1421
|
+
i.skip(t & 7);
|
|
1422
|
+
}
|
|
1423
|
+
return r;
|
|
1424
|
+
},
|
|
1425
|
+
fromJSON(e) {
|
|
1426
|
+
return {
|
|
1427
|
+
sourceId: f(e.sourceId) ? globalThis.String(e.sourceId) : "",
|
|
1428
|
+
sourceName: f(e.sourceName) ? globalThis.String(e.sourceName) : "",
|
|
1429
|
+
streamId: f(e.streamId) ? globalThis.String(e.streamId) : "",
|
|
1430
|
+
id: f(e.id) ? globalThis.Number(e.id) : 0,
|
|
1431
|
+
messageName: f(e.messageName) ? globalThis.String(e.messageName) : "",
|
|
1432
|
+
data: globalThis.Array.isArray(e == null ? void 0 : e.data) ? e.data.map((n) => globalThis.Number(n)) : [],
|
|
1433
|
+
time: f(e.time) ? globalThis.Number(e.time) : 0,
|
|
1434
|
+
tx: f(e.tx) ? globalThis.Boolean(e.tx) : !1,
|
|
1435
|
+
dlc: f(e.dlc) ? globalThis.Number(e.dlc) : 0,
|
|
1436
|
+
hashCode: f(e.hashCode) ? globalThis.Number(e.hashCode) : 0,
|
|
1437
|
+
properties: In(e.properties) ? Object.entries(e.properties).reduce((n, [i, a]) => (n[i] = M.fromJSON(a), n), {}) : {},
|
|
1438
|
+
signalValues: globalThis.Array.isArray(e == null ? void 0 : e.signalValues) ? e.signalValues.map((n) => h.fromJSON(n)) : [],
|
|
1439
|
+
canFrameFlags: f(e.canFrameFlags) ? c.fromJSON(e.canFrameFlags) : void 0,
|
|
1440
|
+
linFrameFlags: f(e.linFrameFlags) ? O.fromJSON(e.linFrameFlags) : void 0
|
|
1441
|
+
};
|
|
1442
|
+
},
|
|
1443
|
+
toJSON(e) {
|
|
1444
|
+
var i, a;
|
|
1445
|
+
const n = {};
|
|
1446
|
+
if (e.sourceId !== "" && (n.sourceId = e.sourceId), e.sourceName !== "" && (n.sourceName = e.sourceName), e.streamId !== "" && (n.streamId = e.streamId), e.id !== 0 && (n.id = Math.round(e.id)), e.messageName !== "" && (n.messageName = e.messageName), (i = e.data) != null && i.length && (n.data = e.data.map((r) => Math.round(r))), e.time !== 0 && (n.time = e.time), e.tx !== !1 && (n.tx = e.tx), e.dlc !== 0 && (n.dlc = Math.round(e.dlc)), e.hashCode !== 0 && (n.hashCode = Math.round(e.hashCode)), e.properties) {
|
|
1447
|
+
const r = Object.entries(e.properties);
|
|
1448
|
+
r.length > 0 && (n.properties = {}, r.forEach(([t, u]) => {
|
|
1449
|
+
n.properties[t] = M.toJSON(u);
|
|
1450
|
+
}));
|
|
1451
|
+
}
|
|
1452
|
+
return (a = e.signalValues) != null && a.length && (n.signalValues = e.signalValues.map((r) => h.toJSON(r))), e.canFrameFlags !== void 0 && (n.canFrameFlags = c.toJSON(e.canFrameFlags)), e.linFrameFlags !== void 0 && (n.linFrameFlags = O.toJSON(e.linFrameFlags)), n;
|
|
1453
|
+
},
|
|
1454
|
+
create(e) {
|
|
1455
|
+
return m.fromPartial(e ?? {});
|
|
1456
|
+
},
|
|
1457
|
+
fromPartial(e) {
|
|
1458
|
+
var i, a;
|
|
1459
|
+
const n = le();
|
|
1460
|
+
return n.sourceId = e.sourceId ?? "", n.sourceName = e.sourceName ?? "", n.streamId = e.streamId ?? "", n.id = e.id ?? 0, n.messageName = e.messageName ?? "", n.data = ((i = e.data) == null ? void 0 : i.map((r) => r)) || [], n.time = e.time ?? 0, n.tx = e.tx ?? !1, n.dlc = e.dlc ?? 0, n.hashCode = e.hashCode ?? 0, n.properties = Object.entries(e.properties ?? {}).reduce(
|
|
1461
|
+
(r, [t, u]) => (u !== void 0 && (r[t] = M.fromPartial(u)), r),
|
|
1462
|
+
{}
|
|
1463
|
+
), n.signalValues = ((a = e.signalValues) == null ? void 0 : a.map((r) => h.fromPartial(r))) || [], n.canFrameFlags = e.canFrameFlags !== void 0 && e.canFrameFlags !== null ? c.fromPartial(e.canFrameFlags) : void 0, n.linFrameFlags = e.linFrameFlags !== void 0 && e.linFrameFlags !== null ? O.fromPartial(e.linFrameFlags) : void 0, n;
|
|
1464
|
+
}
|
|
1465
|
+
};
|
|
1466
|
+
function ce() {
|
|
1467
|
+
return { key: "", value: void 0 };
|
|
1468
|
+
}
|
|
1469
|
+
const K = {
|
|
1470
|
+
encode(e, n = new d()) {
|
|
1471
|
+
return e.key !== "" && n.uint32(10).string(e.key), e.value !== void 0 && M.encode(e.value, n.uint32(18).fork()).join(), n;
|
|
1472
|
+
},
|
|
1473
|
+
decode(e, n) {
|
|
1474
|
+
const i = e instanceof s ? e : new s(e);
|
|
1475
|
+
let a = n === void 0 ? i.len : i.pos + n;
|
|
1476
|
+
const r = ce();
|
|
1477
|
+
for (; i.pos < a; ) {
|
|
1478
|
+
const t = i.uint32();
|
|
1479
|
+
switch (t >>> 3) {
|
|
1480
|
+
case 1: {
|
|
1481
|
+
if (t !== 10)
|
|
1482
|
+
break;
|
|
1483
|
+
r.key = i.string();
|
|
1484
|
+
continue;
|
|
1485
|
+
}
|
|
1486
|
+
case 2: {
|
|
1487
|
+
if (t !== 18)
|
|
1488
|
+
break;
|
|
1489
|
+
r.value = M.decode(i, i.uint32());
|
|
1490
|
+
continue;
|
|
1491
|
+
}
|
|
1492
|
+
}
|
|
1493
|
+
if ((t & 7) === 4 || t === 0)
|
|
1494
|
+
break;
|
|
1495
|
+
i.skip(t & 7);
|
|
1496
|
+
}
|
|
1497
|
+
return r;
|
|
1498
|
+
},
|
|
1499
|
+
fromJSON(e) {
|
|
1500
|
+
return {
|
|
1501
|
+
key: f(e.key) ? globalThis.String(e.key) : "",
|
|
1502
|
+
value: f(e.value) ? M.fromJSON(e.value) : void 0
|
|
1503
|
+
};
|
|
1504
|
+
},
|
|
1505
|
+
toJSON(e) {
|
|
1506
|
+
const n = {};
|
|
1507
|
+
return e.key !== "" && (n.key = e.key), e.value !== void 0 && (n.value = M.toJSON(e.value)), n;
|
|
1508
|
+
},
|
|
1509
|
+
create(e) {
|
|
1510
|
+
return K.fromPartial(e ?? {});
|
|
1511
|
+
},
|
|
1512
|
+
fromPartial(e) {
|
|
1513
|
+
const n = ce();
|
|
1514
|
+
return n.key = e.key ?? "", n.value = e.value !== void 0 && e.value !== null ? M.fromPartial(e.value) : void 0, n;
|
|
1515
|
+
}
|
|
1516
|
+
};
|
|
1517
|
+
function _e() {
|
|
1518
|
+
return { items: [] };
|
|
1519
|
+
}
|
|
1520
|
+
const Rn = {
|
|
1521
|
+
encode(e, n = new d()) {
|
|
1522
|
+
for (const i of e.items)
|
|
1523
|
+
m.encode(i, n.uint32(10).fork()).join();
|
|
1524
|
+
return n;
|
|
1525
|
+
},
|
|
1526
|
+
decode(e, n) {
|
|
1527
|
+
const i = e instanceof s ? e : new s(e);
|
|
1528
|
+
let a = n === void 0 ? i.len : i.pos + n;
|
|
1529
|
+
const r = _e();
|
|
1530
|
+
for (; i.pos < a; ) {
|
|
1531
|
+
const t = i.uint32();
|
|
1532
|
+
switch (t >>> 3) {
|
|
1533
|
+
case 1: {
|
|
1534
|
+
if (t !== 10)
|
|
1535
|
+
break;
|
|
1536
|
+
r.items.push(m.decode(i, i.uint32()));
|
|
1537
|
+
continue;
|
|
1538
|
+
}
|
|
1539
|
+
}
|
|
1540
|
+
if ((t & 7) === 4 || t === 0)
|
|
1541
|
+
break;
|
|
1542
|
+
i.skip(t & 7);
|
|
1543
|
+
}
|
|
1544
|
+
return r;
|
|
1545
|
+
},
|
|
1546
|
+
fromJSON(e) {
|
|
1547
|
+
return { items: globalThis.Array.isArray(e == null ? void 0 : e.items) ? e.items.map((n) => m.fromJSON(n)) : [] };
|
|
1548
|
+
},
|
|
1549
|
+
toJSON(e) {
|
|
1550
|
+
var i;
|
|
1551
|
+
const n = {};
|
|
1552
|
+
return (i = e.items) != null && i.length && (n.items = e.items.map((a) => m.toJSON(a))), n;
|
|
1553
|
+
},
|
|
1554
|
+
create(e) {
|
|
1555
|
+
return Rn.fromPartial(e ?? {});
|
|
1556
|
+
},
|
|
1557
|
+
fromPartial(e) {
|
|
1558
|
+
var i;
|
|
1559
|
+
const n = _e();
|
|
1560
|
+
return n.items = ((i = e.items) == null ? void 0 : i.map((a) => m.fromPartial(a))) || [], n;
|
|
1561
|
+
}
|
|
1562
|
+
};
|
|
1563
|
+
function Ne() {
|
|
1564
|
+
return { id: 0, data: [], canFrameFlags: void 0, linFrameFlags: void 0 };
|
|
1565
|
+
}
|
|
1566
|
+
const L = {
|
|
1567
|
+
encode(e, n = new d()) {
|
|
1568
|
+
e.id !== 0 && n.uint32(8).int32(e.id), n.uint32(18).fork();
|
|
1569
|
+
for (const i of e.data)
|
|
1570
|
+
n.uint32(i);
|
|
1571
|
+
return n.join(), e.canFrameFlags !== void 0 && c.encode(e.canFrameFlags, n.uint32(26).fork()).join(), e.linFrameFlags !== void 0 && O.encode(e.linFrameFlags, n.uint32(34).fork()).join(), n;
|
|
1572
|
+
},
|
|
1573
|
+
decode(e, n) {
|
|
1574
|
+
const i = e instanceof s ? e : new s(e);
|
|
1575
|
+
let a = n === void 0 ? i.len : i.pos + n;
|
|
1576
|
+
const r = Ne();
|
|
1577
|
+
for (; i.pos < a; ) {
|
|
1578
|
+
const t = i.uint32();
|
|
1579
|
+
switch (t >>> 3) {
|
|
1580
|
+
case 1: {
|
|
1581
|
+
if (t !== 8)
|
|
1582
|
+
break;
|
|
1583
|
+
r.id = i.int32();
|
|
1584
|
+
continue;
|
|
1585
|
+
}
|
|
1586
|
+
case 2: {
|
|
1587
|
+
if (t === 16) {
|
|
1588
|
+
r.data.push(i.uint32());
|
|
1589
|
+
continue;
|
|
1590
|
+
}
|
|
1591
|
+
if (t === 18) {
|
|
1592
|
+
const u = i.uint32() + i.pos;
|
|
1593
|
+
for (; i.pos < u; )
|
|
1594
|
+
r.data.push(i.uint32());
|
|
1595
|
+
continue;
|
|
1596
|
+
}
|
|
1597
|
+
break;
|
|
1598
|
+
}
|
|
1599
|
+
case 3: {
|
|
1600
|
+
if (t !== 26)
|
|
1601
|
+
break;
|
|
1602
|
+
r.canFrameFlags = c.decode(i, i.uint32());
|
|
1603
|
+
continue;
|
|
1604
|
+
}
|
|
1605
|
+
case 4: {
|
|
1606
|
+
if (t !== 34)
|
|
1607
|
+
break;
|
|
1608
|
+
r.linFrameFlags = O.decode(i, i.uint32());
|
|
1609
|
+
continue;
|
|
1610
|
+
}
|
|
1611
|
+
}
|
|
1612
|
+
if ((t & 7) === 4 || t === 0)
|
|
1613
|
+
break;
|
|
1614
|
+
i.skip(t & 7);
|
|
1615
|
+
}
|
|
1616
|
+
return r;
|
|
1617
|
+
},
|
|
1618
|
+
fromJSON(e) {
|
|
1619
|
+
return {
|
|
1620
|
+
id: f(e.id) ? globalThis.Number(e.id) : 0,
|
|
1621
|
+
data: globalThis.Array.isArray(e == null ? void 0 : e.data) ? e.data.map((n) => globalThis.Number(n)) : [],
|
|
1622
|
+
canFrameFlags: f(e.canFrameFlags) ? c.fromJSON(e.canFrameFlags) : void 0,
|
|
1623
|
+
linFrameFlags: f(e.linFrameFlags) ? O.fromJSON(e.linFrameFlags) : void 0
|
|
1624
|
+
};
|
|
1625
|
+
},
|
|
1626
|
+
toJSON(e) {
|
|
1627
|
+
var i;
|
|
1628
|
+
const n = {};
|
|
1629
|
+
return e.id !== 0 && (n.id = Math.round(e.id)), (i = e.data) != null && i.length && (n.data = e.data.map((a) => Math.round(a))), e.canFrameFlags !== void 0 && (n.canFrameFlags = c.toJSON(e.canFrameFlags)), e.linFrameFlags !== void 0 && (n.linFrameFlags = O.toJSON(e.linFrameFlags)), n;
|
|
1630
|
+
},
|
|
1631
|
+
create(e) {
|
|
1632
|
+
return L.fromPartial(e ?? {});
|
|
1633
|
+
},
|
|
1634
|
+
fromPartial(e) {
|
|
1635
|
+
var i;
|
|
1636
|
+
const n = Ne();
|
|
1637
|
+
return n.id = e.id ?? 0, n.data = ((i = e.data) == null ? void 0 : i.map((a) => a)) || [], n.canFrameFlags = e.canFrameFlags !== void 0 && e.canFrameFlags !== null ? c.fromPartial(e.canFrameFlags) : void 0, n.linFrameFlags = e.linFrameFlags !== void 0 && e.linFrameFlags !== null ? O.fromPartial(e.linFrameFlags) : void 0, n;
|
|
1638
|
+
}
|
|
1639
|
+
};
|
|
1640
|
+
function Ee() {
|
|
1641
|
+
return { id: 0, messageName: "", messageQualifiedName: "", signals: [], canFrameFlags: void 0 };
|
|
1642
|
+
}
|
|
1643
|
+
const g = {
|
|
1644
|
+
encode(e, n = new d()) {
|
|
1645
|
+
e.id !== 0 && n.uint32(8).int32(e.id), e.messageName !== "" && n.uint32(18).string(e.messageName), e.messageQualifiedName !== "" && n.uint32(26).string(e.messageQualifiedName);
|
|
1646
|
+
for (const i of e.signals)
|
|
1647
|
+
S.encode(i, n.uint32(34).fork()).join();
|
|
1648
|
+
return e.canFrameFlags !== void 0 && c.encode(e.canFrameFlags, n.uint32(42).fork()).join(), n;
|
|
1649
|
+
},
|
|
1650
|
+
decode(e, n) {
|
|
1651
|
+
const i = e instanceof s ? e : new s(e);
|
|
1652
|
+
let a = n === void 0 ? i.len : i.pos + n;
|
|
1653
|
+
const r = Ee();
|
|
1654
|
+
for (; i.pos < a; ) {
|
|
1655
|
+
const t = i.uint32();
|
|
1656
|
+
switch (t >>> 3) {
|
|
1657
|
+
case 1: {
|
|
1658
|
+
if (t !== 8)
|
|
1659
|
+
break;
|
|
1660
|
+
r.id = i.int32();
|
|
1661
|
+
continue;
|
|
1662
|
+
}
|
|
1663
|
+
case 2: {
|
|
1664
|
+
if (t !== 18)
|
|
1665
|
+
break;
|
|
1666
|
+
r.messageName = i.string();
|
|
1667
|
+
continue;
|
|
1668
|
+
}
|
|
1669
|
+
case 3: {
|
|
1670
|
+
if (t !== 26)
|
|
1671
|
+
break;
|
|
1672
|
+
r.messageQualifiedName = i.string();
|
|
1673
|
+
continue;
|
|
1674
|
+
}
|
|
1675
|
+
case 4: {
|
|
1676
|
+
if (t !== 34)
|
|
1677
|
+
break;
|
|
1678
|
+
r.signals.push(S.decode(i, i.uint32()));
|
|
1679
|
+
continue;
|
|
1680
|
+
}
|
|
1681
|
+
case 5: {
|
|
1682
|
+
if (t !== 42)
|
|
1683
|
+
break;
|
|
1684
|
+
r.canFrameFlags = c.decode(i, i.uint32());
|
|
1685
|
+
continue;
|
|
1686
|
+
}
|
|
1687
|
+
}
|
|
1688
|
+
if ((t & 7) === 4 || t === 0)
|
|
1689
|
+
break;
|
|
1690
|
+
i.skip(t & 7);
|
|
1691
|
+
}
|
|
1692
|
+
return r;
|
|
1693
|
+
},
|
|
1694
|
+
fromJSON(e) {
|
|
1695
|
+
return {
|
|
1696
|
+
id: f(e.id) ? globalThis.Number(e.id) : 0,
|
|
1697
|
+
messageName: f(e.messageName) ? globalThis.String(e.messageName) : "",
|
|
1698
|
+
messageQualifiedName: f(e.messageQualifiedName) ? globalThis.String(e.messageQualifiedName) : "",
|
|
1699
|
+
signals: globalThis.Array.isArray(e == null ? void 0 : e.signals) ? e.signals.map((n) => S.fromJSON(n)) : [],
|
|
1700
|
+
canFrameFlags: f(e.canFrameFlags) ? c.fromJSON(e.canFrameFlags) : void 0
|
|
1701
|
+
};
|
|
1702
|
+
},
|
|
1703
|
+
toJSON(e) {
|
|
1704
|
+
var i;
|
|
1705
|
+
const n = {};
|
|
1706
|
+
return e.id !== 0 && (n.id = Math.round(e.id)), e.messageName !== "" && (n.messageName = e.messageName), e.messageQualifiedName !== "" && (n.messageQualifiedName = e.messageQualifiedName), (i = e.signals) != null && i.length && (n.signals = e.signals.map((a) => S.toJSON(a))), e.canFrameFlags !== void 0 && (n.canFrameFlags = c.toJSON(e.canFrameFlags)), n;
|
|
1707
|
+
},
|
|
1708
|
+
create(e) {
|
|
1709
|
+
return g.fromPartial(e ?? {});
|
|
1710
|
+
},
|
|
1711
|
+
fromPartial(e) {
|
|
1712
|
+
var i;
|
|
1713
|
+
const n = Ee();
|
|
1714
|
+
return n.id = e.id ?? 0, n.messageName = e.messageName ?? "", n.messageQualifiedName = e.messageQualifiedName ?? "", n.signals = ((i = e.signals) == null ? void 0 : i.map((a) => S.fromPartial(a))) || [], n.canFrameFlags = e.canFrameFlags !== void 0 && e.canFrameFlags !== null ? c.fromPartial(e.canFrameFlags) : void 0, n;
|
|
1715
|
+
}
|
|
1716
|
+
};
|
|
1717
|
+
function Ae() {
|
|
1718
|
+
return { items: [] };
|
|
1719
|
+
}
|
|
1720
|
+
const Sn = {
|
|
1721
|
+
encode(e, n = new d()) {
|
|
1722
|
+
for (const i of e.items)
|
|
1723
|
+
g.encode(i, n.uint32(10).fork()).join();
|
|
1724
|
+
return n;
|
|
1725
|
+
},
|
|
1726
|
+
decode(e, n) {
|
|
1727
|
+
const i = e instanceof s ? e : new s(e);
|
|
1728
|
+
let a = n === void 0 ? i.len : i.pos + n;
|
|
1729
|
+
const r = Ae();
|
|
1730
|
+
for (; i.pos < a; ) {
|
|
1731
|
+
const t = i.uint32();
|
|
1732
|
+
switch (t >>> 3) {
|
|
1733
|
+
case 1: {
|
|
1734
|
+
if (t !== 10)
|
|
1735
|
+
break;
|
|
1736
|
+
r.items.push(g.decode(i, i.uint32()));
|
|
1737
|
+
continue;
|
|
1738
|
+
}
|
|
1739
|
+
}
|
|
1740
|
+
if ((t & 7) === 4 || t === 0)
|
|
1741
|
+
break;
|
|
1742
|
+
i.skip(t & 7);
|
|
1743
|
+
}
|
|
1744
|
+
return r;
|
|
1745
|
+
},
|
|
1746
|
+
fromJSON(e) {
|
|
1747
|
+
return {
|
|
1748
|
+
items: globalThis.Array.isArray(e == null ? void 0 : e.items) ? e.items.map((n) => g.fromJSON(n)) : []
|
|
1749
|
+
};
|
|
1750
|
+
},
|
|
1751
|
+
toJSON(e) {
|
|
1752
|
+
var i;
|
|
1753
|
+
const n = {};
|
|
1754
|
+
return (i = e.items) != null && i.length && (n.items = e.items.map((a) => g.toJSON(a))), n;
|
|
1755
|
+
},
|
|
1756
|
+
create(e) {
|
|
1757
|
+
return Sn.fromPartial(e ?? {});
|
|
1758
|
+
},
|
|
1759
|
+
fromPartial(e) {
|
|
1760
|
+
var i;
|
|
1761
|
+
const n = Ae();
|
|
1762
|
+
return n.items = ((i = e.items) == null ? void 0 : i.map((a) => g.fromPartial(a))) || [], n;
|
|
1763
|
+
}
|
|
1764
|
+
};
|
|
1765
|
+
function Re() {
|
|
1766
|
+
return { messageQualifiedName: "", delay: 0 };
|
|
1767
|
+
}
|
|
1768
|
+
const G = {
|
|
1769
|
+
encode(e, n = new d()) {
|
|
1770
|
+
return e.messageQualifiedName !== "" && n.uint32(10).string(e.messageQualifiedName), e.delay !== 0 && n.uint32(17).double(e.delay), n;
|
|
1771
|
+
},
|
|
1772
|
+
decode(e, n) {
|
|
1773
|
+
const i = e instanceof s ? e : new s(e);
|
|
1774
|
+
let a = n === void 0 ? i.len : i.pos + n;
|
|
1775
|
+
const r = Re();
|
|
1776
|
+
for (; i.pos < a; ) {
|
|
1777
|
+
const t = i.uint32();
|
|
1778
|
+
switch (t >>> 3) {
|
|
1779
|
+
case 1: {
|
|
1780
|
+
if (t !== 10)
|
|
1781
|
+
break;
|
|
1782
|
+
r.messageQualifiedName = i.string();
|
|
1783
|
+
continue;
|
|
1784
|
+
}
|
|
1785
|
+
case 2: {
|
|
1786
|
+
if (t !== 17)
|
|
1787
|
+
break;
|
|
1788
|
+
r.delay = i.double();
|
|
1789
|
+
continue;
|
|
1790
|
+
}
|
|
1791
|
+
}
|
|
1792
|
+
if ((t & 7) === 4 || t === 0)
|
|
1793
|
+
break;
|
|
1794
|
+
i.skip(t & 7);
|
|
1795
|
+
}
|
|
1796
|
+
return r;
|
|
1797
|
+
},
|
|
1798
|
+
fromJSON(e) {
|
|
1799
|
+
return {
|
|
1800
|
+
messageQualifiedName: f(e.messageQualifiedName) ? globalThis.String(e.messageQualifiedName) : "",
|
|
1801
|
+
delay: f(e.delay) ? globalThis.Number(e.delay) : 0
|
|
1802
|
+
};
|
|
1803
|
+
},
|
|
1804
|
+
toJSON(e) {
|
|
1805
|
+
const n = {};
|
|
1806
|
+
return e.messageQualifiedName !== "" && (n.messageQualifiedName = e.messageQualifiedName), e.delay !== 0 && (n.delay = e.delay), n;
|
|
1807
|
+
},
|
|
1808
|
+
create(e) {
|
|
1809
|
+
return G.fromPartial(e ?? {});
|
|
1810
|
+
},
|
|
1811
|
+
fromPartial(e) {
|
|
1812
|
+
const n = Re();
|
|
1813
|
+
return n.messageQualifiedName = e.messageQualifiedName ?? "", n.delay = e.delay ?? 0, n;
|
|
1814
|
+
}
|
|
1815
|
+
};
|
|
1816
|
+
function Se() {
|
|
1817
|
+
return { name: "", qualifiedName: "", entries: [] };
|
|
1818
|
+
}
|
|
1819
|
+
const On = {
|
|
1820
|
+
encode(e, n = new d()) {
|
|
1821
|
+
e.name !== "" && n.uint32(10).string(e.name), e.qualifiedName !== "" && n.uint32(18).string(e.qualifiedName);
|
|
1822
|
+
for (const i of e.entries)
|
|
1823
|
+
G.encode(i, n.uint32(26).fork()).join();
|
|
1824
|
+
return n;
|
|
1825
|
+
},
|
|
1826
|
+
decode(e, n) {
|
|
1827
|
+
const i = e instanceof s ? e : new s(e);
|
|
1828
|
+
let a = n === void 0 ? i.len : i.pos + n;
|
|
1829
|
+
const r = Se();
|
|
1830
|
+
for (; i.pos < a; ) {
|
|
1831
|
+
const t = i.uint32();
|
|
1832
|
+
switch (t >>> 3) {
|
|
1833
|
+
case 1: {
|
|
1834
|
+
if (t !== 10)
|
|
1835
|
+
break;
|
|
1836
|
+
r.name = i.string();
|
|
1837
|
+
continue;
|
|
1838
|
+
}
|
|
1839
|
+
case 2: {
|
|
1840
|
+
if (t !== 18)
|
|
1841
|
+
break;
|
|
1842
|
+
r.qualifiedName = i.string();
|
|
1843
|
+
continue;
|
|
1844
|
+
}
|
|
1845
|
+
case 3: {
|
|
1846
|
+
if (t !== 26)
|
|
1847
|
+
break;
|
|
1848
|
+
r.entries.push(G.decode(i, i.uint32()));
|
|
1849
|
+
continue;
|
|
1850
|
+
}
|
|
1851
|
+
}
|
|
1852
|
+
if ((t & 7) === 4 || t === 0)
|
|
1853
|
+
break;
|
|
1854
|
+
i.skip(t & 7);
|
|
1855
|
+
}
|
|
1856
|
+
return r;
|
|
1857
|
+
},
|
|
1858
|
+
fromJSON(e) {
|
|
1859
|
+
return {
|
|
1860
|
+
name: f(e.name) ? globalThis.String(e.name) : "",
|
|
1861
|
+
qualifiedName: f(e.qualifiedName) ? globalThis.String(e.qualifiedName) : "",
|
|
1862
|
+
entries: globalThis.Array.isArray(e == null ? void 0 : e.entries) ? e.entries.map((n) => G.fromJSON(n)) : []
|
|
1863
|
+
};
|
|
1864
|
+
},
|
|
1865
|
+
toJSON(e) {
|
|
1866
|
+
var i;
|
|
1867
|
+
const n = {};
|
|
1868
|
+
return e.name !== "" && (n.name = e.name), e.qualifiedName !== "" && (n.qualifiedName = e.qualifiedName), (i = e.entries) != null && i.length && (n.entries = e.entries.map((a) => G.toJSON(a))), n;
|
|
1869
|
+
},
|
|
1870
|
+
create(e) {
|
|
1871
|
+
return On.fromPartial(e ?? {});
|
|
1872
|
+
},
|
|
1873
|
+
fromPartial(e) {
|
|
1874
|
+
var i;
|
|
1875
|
+
const n = Se();
|
|
1876
|
+
return n.name = e.name ?? "", n.qualifiedName = e.qualifiedName ?? "", n.entries = ((i = e.entries) == null ? void 0 : i.map((a) => G.fromPartial(a))) || [], n;
|
|
1877
|
+
}
|
|
1878
|
+
};
|
|
1879
|
+
function In(e) {
|
|
1880
|
+
return typeof e == "object" && e !== null;
|
|
1881
|
+
}
|
|
1882
|
+
function f(e) {
|
|
1883
|
+
return e != null;
|
|
1884
|
+
}
|
|
1885
|
+
var Tn = /* @__PURE__ */ ((e) => (e[e.CAN_MODE_UNSPECIFIED = 0] = "CAN_MODE_UNSPECIFIED", e[e.CAN_MODE_CAN = 1] = "CAN_MODE_CAN", e[e.CAN_MODE_CAN_FD = 2] = "CAN_MODE_CAN_FD", e[e.CAN_MODE_CAN_FD_NONISO = 3] = "CAN_MODE_CAN_FD_NONISO", e[e.UNRECOGNIZED = -1] = "UNRECOGNIZED", e))(Tn || {});
|
|
1886
|
+
function Mn(e) {
|
|
1887
|
+
switch (e) {
|
|
1888
|
+
case 0:
|
|
1889
|
+
case "CAN_MODE_UNSPECIFIED":
|
|
1890
|
+
return 0;
|
|
1891
|
+
case 1:
|
|
1892
|
+
case "CAN_MODE_CAN":
|
|
1893
|
+
return 1;
|
|
1894
|
+
case 2:
|
|
1895
|
+
case "CAN_MODE_CAN_FD":
|
|
1896
|
+
return 2;
|
|
1897
|
+
case 3:
|
|
1898
|
+
case "CAN_MODE_CAN_FD_NONISO":
|
|
1899
|
+
return 3;
|
|
1900
|
+
case -1:
|
|
1901
|
+
case "UNRECOGNIZED":
|
|
1902
|
+
default:
|
|
1903
|
+
return -1;
|
|
1904
|
+
}
|
|
1905
|
+
}
|
|
1906
|
+
function Fn(e) {
|
|
1907
|
+
switch (e) {
|
|
1908
|
+
case 0:
|
|
1909
|
+
return "CAN_MODE_UNSPECIFIED";
|
|
1910
|
+
case 1:
|
|
1911
|
+
return "CAN_MODE_CAN";
|
|
1912
|
+
case 2:
|
|
1913
|
+
return "CAN_MODE_CAN_FD";
|
|
1914
|
+
case 3:
|
|
1915
|
+
return "CAN_MODE_CAN_FD_NONISO";
|
|
1916
|
+
case -1:
|
|
1917
|
+
default:
|
|
1918
|
+
return "UNRECOGNIZED";
|
|
1919
|
+
}
|
|
1920
|
+
}
|
|
1921
|
+
var hn = /* @__PURE__ */ ((e) => (e[e.ACCESS_MODE_UNSPECIFIED = 0] = "ACCESS_MODE_UNSPECIFIED", e[e.ACCESS_MODE_INIT_ACCESS = 1] = "ACCESS_MODE_INIT_ACCESS", e[e.ACCESS_MODE_NO_INIT_ACCESS = 2] = "ACCESS_MODE_NO_INIT_ACCESS", e[e.ACCESS_MODE_EXCLUSIVE_ACCESS = 3] = "ACCESS_MODE_EXCLUSIVE_ACCESS", e[e.UNRECOGNIZED = -1] = "UNRECOGNIZED", e))(hn || {});
|
|
1922
|
+
function mn(e) {
|
|
1923
|
+
switch (e) {
|
|
1924
|
+
case 0:
|
|
1925
|
+
case "ACCESS_MODE_UNSPECIFIED":
|
|
1926
|
+
return 0;
|
|
1927
|
+
case 1:
|
|
1928
|
+
case "ACCESS_MODE_INIT_ACCESS":
|
|
1929
|
+
return 1;
|
|
1930
|
+
case 2:
|
|
1931
|
+
case "ACCESS_MODE_NO_INIT_ACCESS":
|
|
1932
|
+
return 2;
|
|
1933
|
+
case 3:
|
|
1934
|
+
case "ACCESS_MODE_EXCLUSIVE_ACCESS":
|
|
1935
|
+
return 3;
|
|
1936
|
+
case -1:
|
|
1937
|
+
case "UNRECOGNIZED":
|
|
1938
|
+
default:
|
|
1939
|
+
return -1;
|
|
1940
|
+
}
|
|
1941
|
+
}
|
|
1942
|
+
function Ln(e) {
|
|
1943
|
+
switch (e) {
|
|
1944
|
+
case 0:
|
|
1945
|
+
return "ACCESS_MODE_UNSPECIFIED";
|
|
1946
|
+
case 1:
|
|
1947
|
+
return "ACCESS_MODE_INIT_ACCESS";
|
|
1948
|
+
case 2:
|
|
1949
|
+
return "ACCESS_MODE_NO_INIT_ACCESS";
|
|
1950
|
+
case 3:
|
|
1951
|
+
return "ACCESS_MODE_EXCLUSIVE_ACCESS";
|
|
1952
|
+
case -1:
|
|
1953
|
+
default:
|
|
1954
|
+
return "UNRECOGNIZED";
|
|
1955
|
+
}
|
|
1956
|
+
}
|
|
1957
|
+
var gn = /* @__PURE__ */ ((e) => (e[e.SIGNAL_VALUE_TRIGGER_OPERATOR_UNSPECIFIED = 0] = "SIGNAL_VALUE_TRIGGER_OPERATOR_UNSPECIFIED", e[e.SIGNAL_VALUE_TRIGGER_OPERATOR_EQUAL_TO = 1] = "SIGNAL_VALUE_TRIGGER_OPERATOR_EQUAL_TO", e[e.SIGNAL_VALUE_TRIGGER_OPERATOR_NOT_EQUAL_TO = 2] = "SIGNAL_VALUE_TRIGGER_OPERATOR_NOT_EQUAL_TO", e[e.SIGNAL_VALUE_TRIGGER_OPERATOR_LESS_THAN = 3] = "SIGNAL_VALUE_TRIGGER_OPERATOR_LESS_THAN", e[e.SIGNAL_VALUE_TRIGGER_OPERATOR_LESS_THAN_OR_EQUAL = 4] = "SIGNAL_VALUE_TRIGGER_OPERATOR_LESS_THAN_OR_EQUAL", e[e.SIGNAL_VALUE_TRIGGER_OPERATOR_GREATER_THAN_OR_EQUAL = 5] = "SIGNAL_VALUE_TRIGGER_OPERATOR_GREATER_THAN_OR_EQUAL", e[e.SIGNAL_VALUE_TRIGGER_OPERATOR_GREATER_THAN = 6] = "SIGNAL_VALUE_TRIGGER_OPERATOR_GREATER_THAN", e[e.SIGNAL_VALUE_TRIGGER_OPERATOR_CHANGE_TO = 7] = "SIGNAL_VALUE_TRIGGER_OPERATOR_CHANGE_TO", e[e.SIGNAL_VALUE_TRIGGER_OPERATOR_CHANGE_FROM = 8] = "SIGNAL_VALUE_TRIGGER_OPERATOR_CHANGE_FROM", e[e.SIGNAL_VALUE_TRIGGER_OPERATOR_ON_CHANGE = 9] = "SIGNAL_VALUE_TRIGGER_OPERATOR_ON_CHANGE", e[e.UNRECOGNIZED = -1] = "UNRECOGNIZED", e))(gn || {});
|
|
1958
|
+
function Gn(e) {
|
|
1959
|
+
switch (e) {
|
|
1960
|
+
case 0:
|
|
1961
|
+
case "SIGNAL_VALUE_TRIGGER_OPERATOR_UNSPECIFIED":
|
|
1962
|
+
return 0;
|
|
1963
|
+
case 1:
|
|
1964
|
+
case "SIGNAL_VALUE_TRIGGER_OPERATOR_EQUAL_TO":
|
|
1965
|
+
return 1;
|
|
1966
|
+
case 2:
|
|
1967
|
+
case "SIGNAL_VALUE_TRIGGER_OPERATOR_NOT_EQUAL_TO":
|
|
1968
|
+
return 2;
|
|
1969
|
+
case 3:
|
|
1970
|
+
case "SIGNAL_VALUE_TRIGGER_OPERATOR_LESS_THAN":
|
|
1971
|
+
return 3;
|
|
1972
|
+
case 4:
|
|
1973
|
+
case "SIGNAL_VALUE_TRIGGER_OPERATOR_LESS_THAN_OR_EQUAL":
|
|
1974
|
+
return 4;
|
|
1975
|
+
case 5:
|
|
1976
|
+
case "SIGNAL_VALUE_TRIGGER_OPERATOR_GREATER_THAN_OR_EQUAL":
|
|
1977
|
+
return 5;
|
|
1978
|
+
case 6:
|
|
1979
|
+
case "SIGNAL_VALUE_TRIGGER_OPERATOR_GREATER_THAN":
|
|
1980
|
+
return 6;
|
|
1981
|
+
case 7:
|
|
1982
|
+
case "SIGNAL_VALUE_TRIGGER_OPERATOR_CHANGE_TO":
|
|
1983
|
+
return 7;
|
|
1984
|
+
case 8:
|
|
1985
|
+
case "SIGNAL_VALUE_TRIGGER_OPERATOR_CHANGE_FROM":
|
|
1986
|
+
return 8;
|
|
1987
|
+
case 9:
|
|
1988
|
+
case "SIGNAL_VALUE_TRIGGER_OPERATOR_ON_CHANGE":
|
|
1989
|
+
return 9;
|
|
1990
|
+
case -1:
|
|
1991
|
+
case "UNRECOGNIZED":
|
|
1992
|
+
default:
|
|
1993
|
+
return -1;
|
|
1994
|
+
}
|
|
1995
|
+
}
|
|
1996
|
+
function Cn(e) {
|
|
1997
|
+
switch (e) {
|
|
1998
|
+
case 0:
|
|
1999
|
+
return "SIGNAL_VALUE_TRIGGER_OPERATOR_UNSPECIFIED";
|
|
2000
|
+
case 1:
|
|
2001
|
+
return "SIGNAL_VALUE_TRIGGER_OPERATOR_EQUAL_TO";
|
|
2002
|
+
case 2:
|
|
2003
|
+
return "SIGNAL_VALUE_TRIGGER_OPERATOR_NOT_EQUAL_TO";
|
|
2004
|
+
case 3:
|
|
2005
|
+
return "SIGNAL_VALUE_TRIGGER_OPERATOR_LESS_THAN";
|
|
2006
|
+
case 4:
|
|
2007
|
+
return "SIGNAL_VALUE_TRIGGER_OPERATOR_LESS_THAN_OR_EQUAL";
|
|
2008
|
+
case 5:
|
|
2009
|
+
return "SIGNAL_VALUE_TRIGGER_OPERATOR_GREATER_THAN_OR_EQUAL";
|
|
2010
|
+
case 6:
|
|
2011
|
+
return "SIGNAL_VALUE_TRIGGER_OPERATOR_GREATER_THAN";
|
|
2012
|
+
case 7:
|
|
2013
|
+
return "SIGNAL_VALUE_TRIGGER_OPERATOR_CHANGE_TO";
|
|
2014
|
+
case 8:
|
|
2015
|
+
return "SIGNAL_VALUE_TRIGGER_OPERATOR_CHANGE_FROM";
|
|
2016
|
+
case 9:
|
|
2017
|
+
return "SIGNAL_VALUE_TRIGGER_OPERATOR_ON_CHANGE";
|
|
2018
|
+
case -1:
|
|
2019
|
+
default:
|
|
2020
|
+
return "UNRECOGNIZED";
|
|
2021
|
+
}
|
|
2022
|
+
}
|
|
2023
|
+
var pn = /* @__PURE__ */ ((e) => (e[e.TRIGGER_OPERATOR_UNSPECIFIED = 0] = "TRIGGER_OPERATOR_UNSPECIFIED", e[e.TRIGGER_OPERATOR_AND = 1] = "TRIGGER_OPERATOR_AND", e[e.TRIGGER_OPERATOR_OR = 2] = "TRIGGER_OPERATOR_OR", e[e.UNRECOGNIZED = -1] = "UNRECOGNIZED", e))(pn || {});
|
|
2024
|
+
function Oe(e) {
|
|
2025
|
+
switch (e) {
|
|
2026
|
+
case 0:
|
|
2027
|
+
case "TRIGGER_OPERATOR_UNSPECIFIED":
|
|
2028
|
+
return 0;
|
|
2029
|
+
case 1:
|
|
2030
|
+
case "TRIGGER_OPERATOR_AND":
|
|
2031
|
+
return 1;
|
|
2032
|
+
case 2:
|
|
2033
|
+
case "TRIGGER_OPERATOR_OR":
|
|
2034
|
+
return 2;
|
|
2035
|
+
case -1:
|
|
2036
|
+
case "UNRECOGNIZED":
|
|
2037
|
+
default:
|
|
2038
|
+
return -1;
|
|
2039
|
+
}
|
|
2040
|
+
}
|
|
2041
|
+
function Ie(e) {
|
|
2042
|
+
switch (e) {
|
|
2043
|
+
case 0:
|
|
2044
|
+
return "TRIGGER_OPERATOR_UNSPECIFIED";
|
|
2045
|
+
case 1:
|
|
2046
|
+
return "TRIGGER_OPERATOR_AND";
|
|
2047
|
+
case 2:
|
|
2048
|
+
return "TRIGGER_OPERATOR_OR";
|
|
2049
|
+
case -1:
|
|
2050
|
+
default:
|
|
2051
|
+
return "UNRECOGNIZED";
|
|
2052
|
+
}
|
|
2053
|
+
}
|
|
2054
|
+
var vn = /* @__PURE__ */ ((e) => (e[e.LOG_FILE_FORMAT_UNSPECIFIED = 0] = "LOG_FILE_FORMAT_UNSPECIFIED", e[e.LOG_FILE_FORMAT_KME24 = 1] = "LOG_FILE_FORMAT_KME24", e[e.LOG_FILE_FORMAT_KME25 = 2] = "LOG_FILE_FORMAT_KME25", e[e.LOG_FILE_FORMAT_VECTOR_ASC = 3] = "LOG_FILE_FORMAT_VECTOR_ASC", e[e.LOG_FILE_FORMAT_CSV = 4] = "LOG_FILE_FORMAT_CSV", e[e.LOG_FILE_FORMAT_PLAIN_ASC = 5] = "LOG_FILE_FORMAT_PLAIN_ASC", e[e.LOG_FILE_FORMAT_MEMO_LOG = 6] = "LOG_FILE_FORMAT_MEMO_LOG", e[e.LOG_FILE_FORMAT_KME40 = 7] = "LOG_FILE_FORMAT_KME40", e[e.LOG_FILE_FORMAT_VECTOR_BLF = 8] = "LOG_FILE_FORMAT_VECTOR_BLF", e[e.LOG_FILE_FORMAT_KME50 = 9] = "LOG_FILE_FORMAT_KME50", e[e.LOG_FILE_FORMAT_CSV_SIGNAL = 100] = "LOG_FILE_FORMAT_CSV_SIGNAL", e[e.LOG_FILE_FORMAT_MDF = 101] = "LOG_FILE_FORMAT_MDF", e[e.LOG_FILE_FORMAT_MATLAB = 102] = "LOG_FILE_FORMAT_MATLAB", e[e.LOG_FILE_FORMAT_J1587 = 103] = "LOG_FILE_FORMAT_J1587", e[e.LOG_FILE_FORMAT_J1587_ALT = 104] = "LOG_FILE_FORMAT_J1587_ALT", e[e.LOG_FILE_FORMAT_FAMOS = 105] = "LOG_FILE_FORMAT_FAMOS", e[e.LOG_FILE_FORMAT_MDF_SIGNAL = 106] = "LOG_FILE_FORMAT_MDF_SIGNAL", e[e.LOG_FILE_FORMAT_MDF_4X = 107] = "LOG_FILE_FORMAT_MDF_4X", e[e.LOG_FILE_FORMAT_MDF_4X_SIGNAL = 108] = "LOG_FILE_FORMAT_MDF_4X_SIGNAL", e[e.LOG_FILE_FORMAT_VECTOR_BLF_FD = 109] = "LOG_FILE_FORMAT_VECTOR_BLF_FD", e[e.LOG_FILE_FORMAT_XCP = 200] = "LOG_FILE_FORMAT_XCP", e[e.LOG_FILE_FORMAT_FAMOS_XCP = 201] = "LOG_FILE_FORMAT_FAMOS_XCP", e[e.LOG_FILE_FORMAT_DEBUG = 1e3] = "LOG_FILE_FORMAT_DEBUG", e[e.UNRECOGNIZED = -1] = "UNRECOGNIZED", e))(vn || {});
|
|
2055
|
+
function kn(e) {
|
|
2056
|
+
switch (e) {
|
|
2057
|
+
case 0:
|
|
2058
|
+
case "LOG_FILE_FORMAT_UNSPECIFIED":
|
|
2059
|
+
return 0;
|
|
2060
|
+
case 1:
|
|
2061
|
+
case "LOG_FILE_FORMAT_KME24":
|
|
2062
|
+
return 1;
|
|
2063
|
+
case 2:
|
|
2064
|
+
case "LOG_FILE_FORMAT_KME25":
|
|
2065
|
+
return 2;
|
|
2066
|
+
case 3:
|
|
2067
|
+
case "LOG_FILE_FORMAT_VECTOR_ASC":
|
|
2068
|
+
return 3;
|
|
2069
|
+
case 4:
|
|
2070
|
+
case "LOG_FILE_FORMAT_CSV":
|
|
2071
|
+
return 4;
|
|
2072
|
+
case 5:
|
|
2073
|
+
case "LOG_FILE_FORMAT_PLAIN_ASC":
|
|
2074
|
+
return 5;
|
|
2075
|
+
case 6:
|
|
2076
|
+
case "LOG_FILE_FORMAT_MEMO_LOG":
|
|
2077
|
+
return 6;
|
|
2078
|
+
case 7:
|
|
2079
|
+
case "LOG_FILE_FORMAT_KME40":
|
|
2080
|
+
return 7;
|
|
2081
|
+
case 8:
|
|
2082
|
+
case "LOG_FILE_FORMAT_VECTOR_BLF":
|
|
2083
|
+
return 8;
|
|
2084
|
+
case 9:
|
|
2085
|
+
case "LOG_FILE_FORMAT_KME50":
|
|
2086
|
+
return 9;
|
|
2087
|
+
case 100:
|
|
2088
|
+
case "LOG_FILE_FORMAT_CSV_SIGNAL":
|
|
2089
|
+
return 100;
|
|
2090
|
+
case 101:
|
|
2091
|
+
case "LOG_FILE_FORMAT_MDF":
|
|
2092
|
+
return 101;
|
|
2093
|
+
case 102:
|
|
2094
|
+
case "LOG_FILE_FORMAT_MATLAB":
|
|
2095
|
+
return 102;
|
|
2096
|
+
case 103:
|
|
2097
|
+
case "LOG_FILE_FORMAT_J1587":
|
|
2098
|
+
return 103;
|
|
2099
|
+
case 104:
|
|
2100
|
+
case "LOG_FILE_FORMAT_J1587_ALT":
|
|
2101
|
+
return 104;
|
|
2102
|
+
case 105:
|
|
2103
|
+
case "LOG_FILE_FORMAT_FAMOS":
|
|
2104
|
+
return 105;
|
|
2105
|
+
case 106:
|
|
2106
|
+
case "LOG_FILE_FORMAT_MDF_SIGNAL":
|
|
2107
|
+
return 106;
|
|
2108
|
+
case 107:
|
|
2109
|
+
case "LOG_FILE_FORMAT_MDF_4X":
|
|
2110
|
+
return 107;
|
|
2111
|
+
case 108:
|
|
2112
|
+
case "LOG_FILE_FORMAT_MDF_4X_SIGNAL":
|
|
2113
|
+
return 108;
|
|
2114
|
+
case 109:
|
|
2115
|
+
case "LOG_FILE_FORMAT_VECTOR_BLF_FD":
|
|
2116
|
+
return 109;
|
|
2117
|
+
case 200:
|
|
2118
|
+
case "LOG_FILE_FORMAT_XCP":
|
|
2119
|
+
return 200;
|
|
2120
|
+
case 201:
|
|
2121
|
+
case "LOG_FILE_FORMAT_FAMOS_XCP":
|
|
2122
|
+
return 201;
|
|
2123
|
+
case 1e3:
|
|
2124
|
+
case "LOG_FILE_FORMAT_DEBUG":
|
|
2125
|
+
return 1e3;
|
|
2126
|
+
case -1:
|
|
2127
|
+
case "UNRECOGNIZED":
|
|
2128
|
+
default:
|
|
2129
|
+
return -1;
|
|
2130
|
+
}
|
|
2131
|
+
}
|
|
2132
|
+
function Pn(e) {
|
|
2133
|
+
switch (e) {
|
|
2134
|
+
case 0:
|
|
2135
|
+
return "LOG_FILE_FORMAT_UNSPECIFIED";
|
|
2136
|
+
case 1:
|
|
2137
|
+
return "LOG_FILE_FORMAT_KME24";
|
|
2138
|
+
case 2:
|
|
2139
|
+
return "LOG_FILE_FORMAT_KME25";
|
|
2140
|
+
case 3:
|
|
2141
|
+
return "LOG_FILE_FORMAT_VECTOR_ASC";
|
|
2142
|
+
case 4:
|
|
2143
|
+
return "LOG_FILE_FORMAT_CSV";
|
|
2144
|
+
case 5:
|
|
2145
|
+
return "LOG_FILE_FORMAT_PLAIN_ASC";
|
|
2146
|
+
case 6:
|
|
2147
|
+
return "LOG_FILE_FORMAT_MEMO_LOG";
|
|
2148
|
+
case 7:
|
|
2149
|
+
return "LOG_FILE_FORMAT_KME40";
|
|
2150
|
+
case 8:
|
|
2151
|
+
return "LOG_FILE_FORMAT_VECTOR_BLF";
|
|
2152
|
+
case 9:
|
|
2153
|
+
return "LOG_FILE_FORMAT_KME50";
|
|
2154
|
+
case 100:
|
|
2155
|
+
return "LOG_FILE_FORMAT_CSV_SIGNAL";
|
|
2156
|
+
case 101:
|
|
2157
|
+
return "LOG_FILE_FORMAT_MDF";
|
|
2158
|
+
case 102:
|
|
2159
|
+
return "LOG_FILE_FORMAT_MATLAB";
|
|
2160
|
+
case 103:
|
|
2161
|
+
return "LOG_FILE_FORMAT_J1587";
|
|
2162
|
+
case 104:
|
|
2163
|
+
return "LOG_FILE_FORMAT_J1587_ALT";
|
|
2164
|
+
case 105:
|
|
2165
|
+
return "LOG_FILE_FORMAT_FAMOS";
|
|
2166
|
+
case 106:
|
|
2167
|
+
return "LOG_FILE_FORMAT_MDF_SIGNAL";
|
|
2168
|
+
case 107:
|
|
2169
|
+
return "LOG_FILE_FORMAT_MDF_4X";
|
|
2170
|
+
case 108:
|
|
2171
|
+
return "LOG_FILE_FORMAT_MDF_4X_SIGNAL";
|
|
2172
|
+
case 109:
|
|
2173
|
+
return "LOG_FILE_FORMAT_VECTOR_BLF_FD";
|
|
2174
|
+
case 200:
|
|
2175
|
+
return "LOG_FILE_FORMAT_XCP";
|
|
2176
|
+
case 201:
|
|
2177
|
+
return "LOG_FILE_FORMAT_FAMOS_XCP";
|
|
2178
|
+
case 1e3:
|
|
2179
|
+
return "LOG_FILE_FORMAT_DEBUG";
|
|
2180
|
+
case -1:
|
|
2181
|
+
default:
|
|
2182
|
+
return "UNRECOGNIZED";
|
|
2183
|
+
}
|
|
2184
|
+
}
|
|
2185
|
+
var Dn = /* @__PURE__ */ ((e) => (e[e.FILE_CONFLICT_ACTION_UNSPECIFIED = 0] = "FILE_CONFLICT_ACTION_UNSPECIFIED", e[e.FILE_CONFLICT_ACTION_OVERWRITE = 1] = "FILE_CONFLICT_ACTION_OVERWRITE", e[e.FILE_CONFLICT_ACTION_APPEND_INDEX = 2] = "FILE_CONFLICT_ACTION_APPEND_INDEX", e[e.FILE_CONFLICT_ACTION_APPEND_TIMESTAMP = 3] = "FILE_CONFLICT_ACTION_APPEND_TIMESTAMP", e[e.UNRECOGNIZED = -1] = "UNRECOGNIZED", e))(Dn || {});
|
|
2186
|
+
function bn(e) {
|
|
2187
|
+
switch (e) {
|
|
2188
|
+
case 0:
|
|
2189
|
+
case "FILE_CONFLICT_ACTION_UNSPECIFIED":
|
|
2190
|
+
return 0;
|
|
2191
|
+
case 1:
|
|
2192
|
+
case "FILE_CONFLICT_ACTION_OVERWRITE":
|
|
2193
|
+
return 1;
|
|
2194
|
+
case 2:
|
|
2195
|
+
case "FILE_CONFLICT_ACTION_APPEND_INDEX":
|
|
2196
|
+
return 2;
|
|
2197
|
+
case 3:
|
|
2198
|
+
case "FILE_CONFLICT_ACTION_APPEND_TIMESTAMP":
|
|
2199
|
+
return 3;
|
|
2200
|
+
case -1:
|
|
2201
|
+
case "UNRECOGNIZED":
|
|
2202
|
+
default:
|
|
2203
|
+
return -1;
|
|
2204
|
+
}
|
|
2205
|
+
}
|
|
2206
|
+
function yn(e) {
|
|
2207
|
+
switch (e) {
|
|
2208
|
+
case 0:
|
|
2209
|
+
return "FILE_CONFLICT_ACTION_UNSPECIFIED";
|
|
2210
|
+
case 1:
|
|
2211
|
+
return "FILE_CONFLICT_ACTION_OVERWRITE";
|
|
2212
|
+
case 2:
|
|
2213
|
+
return "FILE_CONFLICT_ACTION_APPEND_INDEX";
|
|
2214
|
+
case 3:
|
|
2215
|
+
return "FILE_CONFLICT_ACTION_APPEND_TIMESTAMP";
|
|
2216
|
+
case -1:
|
|
2217
|
+
default:
|
|
2218
|
+
return "UNRECOGNIZED";
|
|
2219
|
+
}
|
|
2220
|
+
}
|
|
2221
|
+
var Vn = /* @__PURE__ */ ((e) => (e[e.DECIMAL_CHAR_UNSPECIFIED = 0] = "DECIMAL_CHAR_UNSPECIFIED", e[e.DECIMAL_CHAR_DEC_DOT = 1] = "DECIMAL_CHAR_DEC_DOT", e[e.DECIMAL_CHAR_DEC_COMMA = 2] = "DECIMAL_CHAR_DEC_COMMA", e[e.UNRECOGNIZED = -1] = "UNRECOGNIZED", e))(Vn || {});
|
|
2222
|
+
function Un(e) {
|
|
2223
|
+
switch (e) {
|
|
2224
|
+
case 0:
|
|
2225
|
+
case "DECIMAL_CHAR_UNSPECIFIED":
|
|
2226
|
+
return 0;
|
|
2227
|
+
case 1:
|
|
2228
|
+
case "DECIMAL_CHAR_DEC_DOT":
|
|
2229
|
+
return 1;
|
|
2230
|
+
case 2:
|
|
2231
|
+
case "DECIMAL_CHAR_DEC_COMMA":
|
|
2232
|
+
return 2;
|
|
2233
|
+
case -1:
|
|
2234
|
+
case "UNRECOGNIZED":
|
|
2235
|
+
default:
|
|
2236
|
+
return -1;
|
|
2237
|
+
}
|
|
2238
|
+
}
|
|
2239
|
+
function Bn(e) {
|
|
2240
|
+
switch (e) {
|
|
2241
|
+
case 0:
|
|
2242
|
+
return "DECIMAL_CHAR_UNSPECIFIED";
|
|
2243
|
+
case 1:
|
|
2244
|
+
return "DECIMAL_CHAR_DEC_DOT";
|
|
2245
|
+
case 2:
|
|
2246
|
+
return "DECIMAL_CHAR_DEC_COMMA";
|
|
2247
|
+
case -1:
|
|
2248
|
+
default:
|
|
2249
|
+
return "UNRECOGNIZED";
|
|
2250
|
+
}
|
|
2251
|
+
}
|
|
2252
|
+
var xn = /* @__PURE__ */ ((e) => (e[e.SEPARATOR_UNSPECIFIED = 0] = "SEPARATOR_UNSPECIFIED", e[e.SEPARATOR_COMMA = 1] = "SEPARATOR_COMMA", e[e.SEPARATOR_SEMICOLON = 2] = "SEPARATOR_SEMICOLON", e[e.UNRECOGNIZED = -1] = "UNRECOGNIZED", e))(xn || {});
|
|
2253
|
+
function Jn(e) {
|
|
2254
|
+
switch (e) {
|
|
2255
|
+
case 0:
|
|
2256
|
+
case "SEPARATOR_UNSPECIFIED":
|
|
2257
|
+
return 0;
|
|
2258
|
+
case 1:
|
|
2259
|
+
case "SEPARATOR_COMMA":
|
|
2260
|
+
return 1;
|
|
2261
|
+
case 2:
|
|
2262
|
+
case "SEPARATOR_SEMICOLON":
|
|
2263
|
+
return 2;
|
|
2264
|
+
case -1:
|
|
2265
|
+
case "UNRECOGNIZED":
|
|
2266
|
+
default:
|
|
2267
|
+
return -1;
|
|
2268
|
+
}
|
|
2269
|
+
}
|
|
2270
|
+
function wn(e) {
|
|
2271
|
+
switch (e) {
|
|
2272
|
+
case 0:
|
|
2273
|
+
return "SEPARATOR_UNSPECIFIED";
|
|
2274
|
+
case 1:
|
|
2275
|
+
return "SEPARATOR_COMMA";
|
|
2276
|
+
case 2:
|
|
2277
|
+
return "SEPARATOR_SEMICOLON";
|
|
2278
|
+
case -1:
|
|
2279
|
+
default:
|
|
2280
|
+
return "UNRECOGNIZED";
|
|
2281
|
+
}
|
|
2282
|
+
}
|
|
2283
|
+
var Hn = /* @__PURE__ */ ((e) => (e[e.TIME_REFERENCE_UNSPECIFIED = 0] = "TIME_REFERENCE_UNSPECIFIED", e[e.TIME_REFERENCE_FIRST_TRIGGER = 1] = "TIME_REFERENCE_FIRST_TRIGGER", e[e.TIME_REFERENCE_START_OF_MEASUREMENT = 2] = "TIME_REFERENCE_START_OF_MEASUREMENT", e[e.UNRECOGNIZED = -1] = "UNRECOGNIZED", e))(Hn || {});
|
|
2284
|
+
function Xn(e) {
|
|
2285
|
+
switch (e) {
|
|
2286
|
+
case 0:
|
|
2287
|
+
case "TIME_REFERENCE_UNSPECIFIED":
|
|
2288
|
+
return 0;
|
|
2289
|
+
case 1:
|
|
2290
|
+
case "TIME_REFERENCE_FIRST_TRIGGER":
|
|
2291
|
+
return 1;
|
|
2292
|
+
case 2:
|
|
2293
|
+
case "TIME_REFERENCE_START_OF_MEASUREMENT":
|
|
2294
|
+
return 2;
|
|
2295
|
+
case -1:
|
|
2296
|
+
case "UNRECOGNIZED":
|
|
2297
|
+
default:
|
|
2298
|
+
return -1;
|
|
2299
|
+
}
|
|
2300
|
+
}
|
|
2301
|
+
function Qn(e) {
|
|
2302
|
+
switch (e) {
|
|
2303
|
+
case 0:
|
|
2304
|
+
return "TIME_REFERENCE_UNSPECIFIED";
|
|
2305
|
+
case 1:
|
|
2306
|
+
return "TIME_REFERENCE_FIRST_TRIGGER";
|
|
2307
|
+
case 2:
|
|
2308
|
+
return "TIME_REFERENCE_START_OF_MEASUREMENT";
|
|
2309
|
+
case -1:
|
|
2310
|
+
default:
|
|
2311
|
+
return "UNRECOGNIZED";
|
|
2312
|
+
}
|
|
2313
|
+
}
|
|
2314
|
+
function Te() {
|
|
2315
|
+
return { bitRate: 0, timeSegment1: 0, timeSegment2: 0, syncJumpWidth: 0, numberOfSamplePoints: 0, prescaler: 0 };
|
|
2316
|
+
}
|
|
2317
|
+
const A = {
|
|
2318
|
+
encode(e, n = new d()) {
|
|
2319
|
+
return e.bitRate !== 0 && n.uint32(8).int32(e.bitRate), e.timeSegment1 !== 0 && n.uint32(16).int32(e.timeSegment1), e.timeSegment2 !== 0 && n.uint32(24).int32(e.timeSegment2), e.syncJumpWidth !== 0 && n.uint32(32).int32(e.syncJumpWidth), e.numberOfSamplePoints !== 0 && n.uint32(40).int32(e.numberOfSamplePoints), e.prescaler !== 0 && n.uint32(48).int32(e.prescaler), n;
|
|
2320
|
+
},
|
|
2321
|
+
decode(e, n) {
|
|
2322
|
+
const i = e instanceof s ? e : new s(e);
|
|
2323
|
+
let a = n === void 0 ? i.len : i.pos + n;
|
|
2324
|
+
const r = Te();
|
|
2325
|
+
for (; i.pos < a; ) {
|
|
2326
|
+
const t = i.uint32();
|
|
2327
|
+
switch (t >>> 3) {
|
|
2328
|
+
case 1: {
|
|
2329
|
+
if (t !== 8)
|
|
2330
|
+
break;
|
|
2331
|
+
r.bitRate = i.int32();
|
|
2332
|
+
continue;
|
|
2333
|
+
}
|
|
2334
|
+
case 2: {
|
|
2335
|
+
if (t !== 16)
|
|
2336
|
+
break;
|
|
2337
|
+
r.timeSegment1 = i.int32();
|
|
2338
|
+
continue;
|
|
2339
|
+
}
|
|
2340
|
+
case 3: {
|
|
2341
|
+
if (t !== 24)
|
|
2342
|
+
break;
|
|
2343
|
+
r.timeSegment2 = i.int32();
|
|
2344
|
+
continue;
|
|
2345
|
+
}
|
|
2346
|
+
case 4: {
|
|
2347
|
+
if (t !== 32)
|
|
2348
|
+
break;
|
|
2349
|
+
r.syncJumpWidth = i.int32();
|
|
2350
|
+
continue;
|
|
2351
|
+
}
|
|
2352
|
+
case 5: {
|
|
2353
|
+
if (t !== 40)
|
|
2354
|
+
break;
|
|
2355
|
+
r.numberOfSamplePoints = i.int32();
|
|
2356
|
+
continue;
|
|
2357
|
+
}
|
|
2358
|
+
case 6: {
|
|
2359
|
+
if (t !== 48)
|
|
2360
|
+
break;
|
|
2361
|
+
r.prescaler = i.int32();
|
|
2362
|
+
continue;
|
|
2363
|
+
}
|
|
2364
|
+
}
|
|
2365
|
+
if ((t & 7) === 4 || t === 0)
|
|
2366
|
+
break;
|
|
2367
|
+
i.skip(t & 7);
|
|
2368
|
+
}
|
|
2369
|
+
return r;
|
|
2370
|
+
},
|
|
2371
|
+
fromJSON(e) {
|
|
2372
|
+
return {
|
|
2373
|
+
bitRate: o(e.bitRate) ? globalThis.Number(e.bitRate) : 0,
|
|
2374
|
+
timeSegment1: o(e.timeSegment1) ? globalThis.Number(e.timeSegment1) : 0,
|
|
2375
|
+
timeSegment2: o(e.timeSegment2) ? globalThis.Number(e.timeSegment2) : 0,
|
|
2376
|
+
syncJumpWidth: o(e.syncJumpWidth) ? globalThis.Number(e.syncJumpWidth) : 0,
|
|
2377
|
+
numberOfSamplePoints: o(e.numberOfSamplePoints) ? globalThis.Number(e.numberOfSamplePoints) : 0,
|
|
2378
|
+
prescaler: o(e.prescaler) ? globalThis.Number(e.prescaler) : 0
|
|
2379
|
+
};
|
|
2380
|
+
},
|
|
2381
|
+
toJSON(e) {
|
|
2382
|
+
const n = {};
|
|
2383
|
+
return e.bitRate !== 0 && (n.bitRate = Math.round(e.bitRate)), e.timeSegment1 !== 0 && (n.timeSegment1 = Math.round(e.timeSegment1)), e.timeSegment2 !== 0 && (n.timeSegment2 = Math.round(e.timeSegment2)), e.syncJumpWidth !== 0 && (n.syncJumpWidth = Math.round(e.syncJumpWidth)), e.numberOfSamplePoints !== 0 && (n.numberOfSamplePoints = Math.round(e.numberOfSamplePoints)), e.prescaler !== 0 && (n.prescaler = Math.round(e.prescaler)), n;
|
|
2384
|
+
},
|
|
2385
|
+
create(e) {
|
|
2386
|
+
return A.fromPartial(e ?? {});
|
|
2387
|
+
},
|
|
2388
|
+
fromPartial(e) {
|
|
2389
|
+
const n = Te();
|
|
2390
|
+
return n.bitRate = e.bitRate ?? 0, n.timeSegment1 = e.timeSegment1 ?? 0, n.timeSegment2 = e.timeSegment2 ?? 0, n.syncJumpWidth = e.syncJumpWidth ?? 0, n.numberOfSamplePoints = e.numberOfSamplePoints ?? 0, n.prescaler = e.prescaler ?? 0, n;
|
|
2391
|
+
}
|
|
2392
|
+
};
|
|
2393
|
+
function Me() {
|
|
2394
|
+
return { canMode: 0, accessMode: 0, silentMode: !1, busSpeed: void 0, busSpeedDataPhase: void 0 };
|
|
2395
|
+
}
|
|
2396
|
+
const C = {
|
|
2397
|
+
encode(e, n = new d()) {
|
|
2398
|
+
return e.canMode !== 0 && n.uint32(8).int32(e.canMode), e.accessMode !== 0 && n.uint32(16).int32(e.accessMode), e.silentMode !== !1 && n.uint32(24).bool(e.silentMode), e.busSpeed !== void 0 && A.encode(e.busSpeed, n.uint32(34).fork()).join(), e.busSpeedDataPhase !== void 0 && A.encode(e.busSpeedDataPhase, n.uint32(42).fork()).join(), n;
|
|
2399
|
+
},
|
|
2400
|
+
decode(e, n) {
|
|
2401
|
+
const i = e instanceof s ? e : new s(e);
|
|
2402
|
+
let a = n === void 0 ? i.len : i.pos + n;
|
|
2403
|
+
const r = Me();
|
|
2404
|
+
for (; i.pos < a; ) {
|
|
2405
|
+
const t = i.uint32();
|
|
2406
|
+
switch (t >>> 3) {
|
|
2407
|
+
case 1: {
|
|
2408
|
+
if (t !== 8)
|
|
2409
|
+
break;
|
|
2410
|
+
r.canMode = i.int32();
|
|
2411
|
+
continue;
|
|
2412
|
+
}
|
|
2413
|
+
case 2: {
|
|
2414
|
+
if (t !== 16)
|
|
2415
|
+
break;
|
|
2416
|
+
r.accessMode = i.int32();
|
|
2417
|
+
continue;
|
|
2418
|
+
}
|
|
2419
|
+
case 3: {
|
|
2420
|
+
if (t !== 24)
|
|
2421
|
+
break;
|
|
2422
|
+
r.silentMode = i.bool();
|
|
2423
|
+
continue;
|
|
2424
|
+
}
|
|
2425
|
+
case 4: {
|
|
2426
|
+
if (t !== 34)
|
|
2427
|
+
break;
|
|
2428
|
+
r.busSpeed = A.decode(i, i.uint32());
|
|
2429
|
+
continue;
|
|
2430
|
+
}
|
|
2431
|
+
case 5: {
|
|
2432
|
+
if (t !== 42)
|
|
2433
|
+
break;
|
|
2434
|
+
r.busSpeedDataPhase = A.decode(i, i.uint32());
|
|
2435
|
+
continue;
|
|
2436
|
+
}
|
|
2437
|
+
}
|
|
2438
|
+
if ((t & 7) === 4 || t === 0)
|
|
2439
|
+
break;
|
|
2440
|
+
i.skip(t & 7);
|
|
2441
|
+
}
|
|
2442
|
+
return r;
|
|
2443
|
+
},
|
|
2444
|
+
fromJSON(e) {
|
|
2445
|
+
return {
|
|
2446
|
+
canMode: o(e.canMode) ? Mn(e.canMode) : 0,
|
|
2447
|
+
accessMode: o(e.accessMode) ? mn(e.accessMode) : 0,
|
|
2448
|
+
silentMode: o(e.silentMode) ? globalThis.Boolean(e.silentMode) : !1,
|
|
2449
|
+
busSpeed: o(e.busSpeed) ? A.fromJSON(e.busSpeed) : void 0,
|
|
2450
|
+
busSpeedDataPhase: o(e.busSpeedDataPhase) ? A.fromJSON(e.busSpeedDataPhase) : void 0
|
|
2451
|
+
};
|
|
2452
|
+
},
|
|
2453
|
+
toJSON(e) {
|
|
2454
|
+
const n = {};
|
|
2455
|
+
return e.canMode !== 0 && (n.canMode = Fn(e.canMode)), e.accessMode !== 0 && (n.accessMode = Ln(e.accessMode)), e.silentMode !== !1 && (n.silentMode = e.silentMode), e.busSpeed !== void 0 && (n.busSpeed = A.toJSON(e.busSpeed)), e.busSpeedDataPhase !== void 0 && (n.busSpeedDataPhase = A.toJSON(e.busSpeedDataPhase)), n;
|
|
2456
|
+
},
|
|
2457
|
+
create(e) {
|
|
2458
|
+
return C.fromPartial(e ?? {});
|
|
2459
|
+
},
|
|
2460
|
+
fromPartial(e) {
|
|
2461
|
+
const n = Me();
|
|
2462
|
+
return n.canMode = e.canMode ?? 0, n.accessMode = e.accessMode ?? 0, n.silentMode = e.silentMode ?? !1, n.busSpeed = e.busSpeed !== void 0 && e.busSpeed !== null ? A.fromPartial(e.busSpeed) : void 0, n.busSpeedDataPhase = e.busSpeedDataPhase !== void 0 && e.busSpeedDataPhase !== null ? A.fromPartial(e.busSpeedDataPhase) : void 0, n;
|
|
2463
|
+
}
|
|
2464
|
+
};
|
|
2465
|
+
function Fe() {
|
|
2466
|
+
return { bitRate: 0, protocolVersion: "", masterMode: !1, databaseFile: void 0, scheduleTable: void 0 };
|
|
2467
|
+
}
|
|
2468
|
+
const p = {
|
|
2469
|
+
encode(e, n = new d()) {
|
|
2470
|
+
return e.bitRate !== 0 && n.uint32(8).int32(e.bitRate), e.protocolVersion !== "" && n.uint32(18).string(e.protocolVersion), e.masterMode !== !1 && n.uint32(24).bool(e.masterMode), e.databaseFile !== void 0 && n.uint32(34).string(e.databaseFile), e.scheduleTable !== void 0 && n.uint32(42).string(e.scheduleTable), n;
|
|
2471
|
+
},
|
|
2472
|
+
decode(e, n) {
|
|
2473
|
+
const i = e instanceof s ? e : new s(e);
|
|
2474
|
+
let a = n === void 0 ? i.len : i.pos + n;
|
|
2475
|
+
const r = Fe();
|
|
2476
|
+
for (; i.pos < a; ) {
|
|
2477
|
+
const t = i.uint32();
|
|
2478
|
+
switch (t >>> 3) {
|
|
2479
|
+
case 1: {
|
|
2480
|
+
if (t !== 8)
|
|
2481
|
+
break;
|
|
2482
|
+
r.bitRate = i.int32();
|
|
2483
|
+
continue;
|
|
2484
|
+
}
|
|
2485
|
+
case 2: {
|
|
2486
|
+
if (t !== 18)
|
|
2487
|
+
break;
|
|
2488
|
+
r.protocolVersion = i.string();
|
|
2489
|
+
continue;
|
|
2490
|
+
}
|
|
2491
|
+
case 3: {
|
|
2492
|
+
if (t !== 24)
|
|
2493
|
+
break;
|
|
2494
|
+
r.masterMode = i.bool();
|
|
2495
|
+
continue;
|
|
2496
|
+
}
|
|
2497
|
+
case 4: {
|
|
2498
|
+
if (t !== 34)
|
|
2499
|
+
break;
|
|
2500
|
+
r.databaseFile = i.string();
|
|
2501
|
+
continue;
|
|
2502
|
+
}
|
|
2503
|
+
case 5: {
|
|
2504
|
+
if (t !== 42)
|
|
2505
|
+
break;
|
|
2506
|
+
r.scheduleTable = i.string();
|
|
2507
|
+
continue;
|
|
2508
|
+
}
|
|
2509
|
+
}
|
|
2510
|
+
if ((t & 7) === 4 || t === 0)
|
|
2511
|
+
break;
|
|
2512
|
+
i.skip(t & 7);
|
|
2513
|
+
}
|
|
2514
|
+
return r;
|
|
2515
|
+
},
|
|
2516
|
+
fromJSON(e) {
|
|
2517
|
+
return {
|
|
2518
|
+
bitRate: o(e.bitRate) ? globalThis.Number(e.bitRate) : 0,
|
|
2519
|
+
protocolVersion: o(e.protocolVersion) ? globalThis.String(e.protocolVersion) : "",
|
|
2520
|
+
masterMode: o(e.masterMode) ? globalThis.Boolean(e.masterMode) : !1,
|
|
2521
|
+
databaseFile: o(e.databaseFile) ? globalThis.String(e.databaseFile) : void 0,
|
|
2522
|
+
scheduleTable: o(e.scheduleTable) ? globalThis.String(e.scheduleTable) : void 0
|
|
2523
|
+
};
|
|
2524
|
+
},
|
|
2525
|
+
toJSON(e) {
|
|
2526
|
+
const n = {};
|
|
2527
|
+
return e.bitRate !== 0 && (n.bitRate = Math.round(e.bitRate)), e.protocolVersion !== "" && (n.protocolVersion = e.protocolVersion), e.masterMode !== !1 && (n.masterMode = e.masterMode), e.databaseFile !== void 0 && (n.databaseFile = e.databaseFile), e.scheduleTable !== void 0 && (n.scheduleTable = e.scheduleTable), n;
|
|
2528
|
+
},
|
|
2529
|
+
create(e) {
|
|
2530
|
+
return p.fromPartial(e ?? {});
|
|
2531
|
+
},
|
|
2532
|
+
fromPartial(e) {
|
|
2533
|
+
const n = Fe();
|
|
2534
|
+
return n.bitRate = e.bitRate ?? 0, n.protocolVersion = e.protocolVersion ?? "", n.masterMode = e.masterMode ?? !1, n.databaseFile = e.databaseFile ?? void 0, n.scheduleTable = e.scheduleTable ?? void 0, n;
|
|
2535
|
+
}
|
|
2536
|
+
};
|
|
2537
|
+
function he() {
|
|
2538
|
+
return {
|
|
2539
|
+
channelNumber: 0,
|
|
2540
|
+
lockedToSerialNumber: !1,
|
|
2541
|
+
deviceProductCode: "",
|
|
2542
|
+
deviceSerialNumber: "",
|
|
2543
|
+
channelNumberOnDevice: 0,
|
|
2544
|
+
deviceCardType: 0,
|
|
2545
|
+
deviceCardNumber: 0,
|
|
2546
|
+
canConfiguration: void 0,
|
|
2547
|
+
linConfiguration: void 0
|
|
2548
|
+
};
|
|
2549
|
+
}
|
|
2550
|
+
const v = {
|
|
2551
|
+
encode(e, n = new d()) {
|
|
2552
|
+
return e.channelNumber !== 0 && n.uint32(8).int32(e.channelNumber), e.lockedToSerialNumber !== !1 && n.uint32(16).bool(e.lockedToSerialNumber), e.deviceProductCode !== "" && n.uint32(26).string(e.deviceProductCode), e.deviceSerialNumber !== "" && n.uint32(34).string(e.deviceSerialNumber), e.channelNumberOnDevice !== 0 && n.uint32(40).int32(e.channelNumberOnDevice), e.deviceCardType !== 0 && n.uint32(48).int32(e.deviceCardType), e.deviceCardNumber !== 0 && n.uint32(56).int32(e.deviceCardNumber), e.canConfiguration !== void 0 && C.encode(e.canConfiguration, n.uint32(66).fork()).join(), e.linConfiguration !== void 0 && p.encode(e.linConfiguration, n.uint32(74).fork()).join(), n;
|
|
2553
|
+
},
|
|
2554
|
+
decode(e, n) {
|
|
2555
|
+
const i = e instanceof s ? e : new s(e);
|
|
2556
|
+
let a = n === void 0 ? i.len : i.pos + n;
|
|
2557
|
+
const r = he();
|
|
2558
|
+
for (; i.pos < a; ) {
|
|
2559
|
+
const t = i.uint32();
|
|
2560
|
+
switch (t >>> 3) {
|
|
2561
|
+
case 1: {
|
|
2562
|
+
if (t !== 8)
|
|
2563
|
+
break;
|
|
2564
|
+
r.channelNumber = i.int32();
|
|
2565
|
+
continue;
|
|
2566
|
+
}
|
|
2567
|
+
case 2: {
|
|
2568
|
+
if (t !== 16)
|
|
2569
|
+
break;
|
|
2570
|
+
r.lockedToSerialNumber = i.bool();
|
|
2571
|
+
continue;
|
|
2572
|
+
}
|
|
2573
|
+
case 3: {
|
|
2574
|
+
if (t !== 26)
|
|
2575
|
+
break;
|
|
2576
|
+
r.deviceProductCode = i.string();
|
|
2577
|
+
continue;
|
|
2578
|
+
}
|
|
2579
|
+
case 4: {
|
|
2580
|
+
if (t !== 34)
|
|
2581
|
+
break;
|
|
2582
|
+
r.deviceSerialNumber = i.string();
|
|
2583
|
+
continue;
|
|
2584
|
+
}
|
|
2585
|
+
case 5: {
|
|
2586
|
+
if (t !== 40)
|
|
2587
|
+
break;
|
|
2588
|
+
r.channelNumberOnDevice = i.int32();
|
|
2589
|
+
continue;
|
|
2590
|
+
}
|
|
2591
|
+
case 6: {
|
|
2592
|
+
if (t !== 48)
|
|
2593
|
+
break;
|
|
2594
|
+
r.deviceCardType = i.int32();
|
|
2595
|
+
continue;
|
|
2596
|
+
}
|
|
2597
|
+
case 7: {
|
|
2598
|
+
if (t !== 56)
|
|
2599
|
+
break;
|
|
2600
|
+
r.deviceCardNumber = i.int32();
|
|
2601
|
+
continue;
|
|
2602
|
+
}
|
|
2603
|
+
case 8: {
|
|
2604
|
+
if (t !== 66)
|
|
2605
|
+
break;
|
|
2606
|
+
r.canConfiguration = C.decode(i, i.uint32());
|
|
2607
|
+
continue;
|
|
2608
|
+
}
|
|
2609
|
+
case 9: {
|
|
2610
|
+
if (t !== 74)
|
|
2611
|
+
break;
|
|
2612
|
+
r.linConfiguration = p.decode(i, i.uint32());
|
|
2613
|
+
continue;
|
|
2614
|
+
}
|
|
2615
|
+
}
|
|
2616
|
+
if ((t & 7) === 4 || t === 0)
|
|
2617
|
+
break;
|
|
2618
|
+
i.skip(t & 7);
|
|
2619
|
+
}
|
|
2620
|
+
return r;
|
|
2621
|
+
},
|
|
2622
|
+
fromJSON(e) {
|
|
2623
|
+
return {
|
|
2624
|
+
channelNumber: o(e.channelNumber) ? globalThis.Number(e.channelNumber) : 0,
|
|
2625
|
+
lockedToSerialNumber: o(e.lockedToSerialNumber) ? globalThis.Boolean(e.lockedToSerialNumber) : !1,
|
|
2626
|
+
deviceProductCode: o(e.deviceProductCode) ? globalThis.String(e.deviceProductCode) : "",
|
|
2627
|
+
deviceSerialNumber: o(e.deviceSerialNumber) ? globalThis.String(e.deviceSerialNumber) : "",
|
|
2628
|
+
channelNumberOnDevice: o(e.channelNumberOnDevice) ? globalThis.Number(e.channelNumberOnDevice) : 0,
|
|
2629
|
+
deviceCardType: o(e.deviceCardType) ? globalThis.Number(e.deviceCardType) : 0,
|
|
2630
|
+
deviceCardNumber: o(e.deviceCardNumber) ? globalThis.Number(e.deviceCardNumber) : 0,
|
|
2631
|
+
canConfiguration: o(e.canConfiguration) ? C.fromJSON(e.canConfiguration) : void 0,
|
|
2632
|
+
linConfiguration: o(e.linConfiguration) ? p.fromJSON(e.linConfiguration) : void 0
|
|
2633
|
+
};
|
|
2634
|
+
},
|
|
2635
|
+
toJSON(e) {
|
|
2636
|
+
const n = {};
|
|
2637
|
+
return e.channelNumber !== 0 && (n.channelNumber = Math.round(e.channelNumber)), e.lockedToSerialNumber !== !1 && (n.lockedToSerialNumber = e.lockedToSerialNumber), e.deviceProductCode !== "" && (n.deviceProductCode = e.deviceProductCode), e.deviceSerialNumber !== "" && (n.deviceSerialNumber = e.deviceSerialNumber), e.channelNumberOnDevice !== 0 && (n.channelNumberOnDevice = Math.round(e.channelNumberOnDevice)), e.deviceCardType !== 0 && (n.deviceCardType = Math.round(e.deviceCardType)), e.deviceCardNumber !== 0 && (n.deviceCardNumber = Math.round(e.deviceCardNumber)), e.canConfiguration !== void 0 && (n.canConfiguration = C.toJSON(e.canConfiguration)), e.linConfiguration !== void 0 && (n.linConfiguration = p.toJSON(e.linConfiguration)), n;
|
|
2638
|
+
},
|
|
2639
|
+
create(e) {
|
|
2640
|
+
return v.fromPartial(e ?? {});
|
|
2641
|
+
},
|
|
2642
|
+
fromPartial(e) {
|
|
2643
|
+
const n = he();
|
|
2644
|
+
return n.channelNumber = e.channelNumber ?? 0, n.lockedToSerialNumber = e.lockedToSerialNumber ?? !1, n.deviceProductCode = e.deviceProductCode ?? "", n.deviceSerialNumber = e.deviceSerialNumber ?? "", n.channelNumberOnDevice = e.channelNumberOnDevice ?? 0, n.deviceCardType = e.deviceCardType ?? 0, n.deviceCardNumber = e.deviceCardNumber ?? 0, n.canConfiguration = e.canConfiguration !== void 0 && e.canConfiguration !== null ? C.fromPartial(e.canConfiguration) : void 0, n.linConfiguration = e.linConfiguration !== void 0 && e.linConfiguration !== null ? p.fromPartial(e.linConfiguration) : void 0, n;
|
|
2645
|
+
}
|
|
2646
|
+
};
|
|
2647
|
+
function me() {
|
|
2648
|
+
return {
|
|
2649
|
+
channelIdentifiers: {},
|
|
2650
|
+
logFile: "",
|
|
2651
|
+
iterations: 0,
|
|
2652
|
+
sampleRateMs: 0,
|
|
2653
|
+
transceiverMode: 0,
|
|
2654
|
+
includeErrorFrames: !1,
|
|
2655
|
+
sendFirstMessageMode: 0,
|
|
2656
|
+
timeOffsetMs: void 0,
|
|
2657
|
+
timeFactor: void 0,
|
|
2658
|
+
lowerVariance: void 0,
|
|
2659
|
+
higherVariance: void 0,
|
|
2660
|
+
increaseSpeed: void 0
|
|
2661
|
+
};
|
|
2662
|
+
}
|
|
2663
|
+
const k = {
|
|
2664
|
+
encode(e, n = new d()) {
|
|
2665
|
+
return Object.entries(e.channelIdentifiers).forEach(([i, a]) => {
|
|
2666
|
+
Y.encode({ key: i, value: a }, n.uint32(10).fork()).join();
|
|
2667
|
+
}), e.logFile !== "" && n.uint32(18).string(e.logFile), e.iterations !== 0 && n.uint32(24).int32(e.iterations), e.sampleRateMs !== 0 && n.uint32(32).int32(e.sampleRateMs), e.transceiverMode !== 0 && n.uint32(40).int32(e.transceiverMode), e.includeErrorFrames !== !1 && n.uint32(48).bool(e.includeErrorFrames), e.sendFirstMessageMode !== 0 && n.uint32(56).int32(e.sendFirstMessageMode), e.timeOffsetMs !== void 0 && n.uint32(64).int32(e.timeOffsetMs), e.timeFactor !== void 0 && n.uint32(73).double(e.timeFactor), e.lowerVariance !== void 0 && n.uint32(81).double(e.lowerVariance), e.higherVariance !== void 0 && n.uint32(89).double(e.higherVariance), e.increaseSpeed !== void 0 && n.uint32(96).bool(e.increaseSpeed), n;
|
|
2668
|
+
},
|
|
2669
|
+
decode(e, n) {
|
|
2670
|
+
const i = e instanceof s ? e : new s(e);
|
|
2671
|
+
let a = n === void 0 ? i.len : i.pos + n;
|
|
2672
|
+
const r = me();
|
|
2673
|
+
for (; i.pos < a; ) {
|
|
2674
|
+
const t = i.uint32();
|
|
2675
|
+
switch (t >>> 3) {
|
|
2676
|
+
case 1: {
|
|
2677
|
+
if (t !== 10)
|
|
2678
|
+
break;
|
|
2679
|
+
const u = Y.decode(i, i.uint32());
|
|
2680
|
+
u.value !== void 0 && (r.channelIdentifiers[u.key] = u.value);
|
|
2681
|
+
continue;
|
|
2682
|
+
}
|
|
2683
|
+
case 2: {
|
|
2684
|
+
if (t !== 18)
|
|
2685
|
+
break;
|
|
2686
|
+
r.logFile = i.string();
|
|
2687
|
+
continue;
|
|
2688
|
+
}
|
|
2689
|
+
case 3: {
|
|
2690
|
+
if (t !== 24)
|
|
2691
|
+
break;
|
|
2692
|
+
r.iterations = i.int32();
|
|
2693
|
+
continue;
|
|
2694
|
+
}
|
|
2695
|
+
case 4: {
|
|
2696
|
+
if (t !== 32)
|
|
2697
|
+
break;
|
|
2698
|
+
r.sampleRateMs = i.int32();
|
|
2699
|
+
continue;
|
|
2700
|
+
}
|
|
2701
|
+
case 5: {
|
|
2702
|
+
if (t !== 40)
|
|
2703
|
+
break;
|
|
2704
|
+
r.transceiverMode = i.int32();
|
|
2705
|
+
continue;
|
|
2706
|
+
}
|
|
2707
|
+
case 6: {
|
|
2708
|
+
if (t !== 48)
|
|
2709
|
+
break;
|
|
2710
|
+
r.includeErrorFrames = i.bool();
|
|
2711
|
+
continue;
|
|
2712
|
+
}
|
|
2713
|
+
case 7: {
|
|
2714
|
+
if (t !== 56)
|
|
2715
|
+
break;
|
|
2716
|
+
r.sendFirstMessageMode = i.int32();
|
|
2717
|
+
continue;
|
|
2718
|
+
}
|
|
2719
|
+
case 8: {
|
|
2720
|
+
if (t !== 64)
|
|
2721
|
+
break;
|
|
2722
|
+
r.timeOffsetMs = i.int32();
|
|
2723
|
+
continue;
|
|
2724
|
+
}
|
|
2725
|
+
case 9: {
|
|
2726
|
+
if (t !== 73)
|
|
2727
|
+
break;
|
|
2728
|
+
r.timeFactor = i.double();
|
|
2729
|
+
continue;
|
|
2730
|
+
}
|
|
2731
|
+
case 10: {
|
|
2732
|
+
if (t !== 81)
|
|
2733
|
+
break;
|
|
2734
|
+
r.lowerVariance = i.double();
|
|
2735
|
+
continue;
|
|
2736
|
+
}
|
|
2737
|
+
case 11: {
|
|
2738
|
+
if (t !== 89)
|
|
2739
|
+
break;
|
|
2740
|
+
r.higherVariance = i.double();
|
|
2741
|
+
continue;
|
|
2742
|
+
}
|
|
2743
|
+
case 12: {
|
|
2744
|
+
if (t !== 96)
|
|
2745
|
+
break;
|
|
2746
|
+
r.increaseSpeed = i.bool();
|
|
2747
|
+
continue;
|
|
2748
|
+
}
|
|
2749
|
+
}
|
|
2750
|
+
if ((t & 7) === 4 || t === 0)
|
|
2751
|
+
break;
|
|
2752
|
+
i.skip(t & 7);
|
|
2753
|
+
}
|
|
2754
|
+
return r;
|
|
2755
|
+
},
|
|
2756
|
+
fromJSON(e) {
|
|
2757
|
+
return {
|
|
2758
|
+
channelIdentifiers: zn(e.channelIdentifiers) ? Object.entries(e.channelIdentifiers).reduce((n, [i, a]) => (n[i] = String(a), n), {}) : {},
|
|
2759
|
+
logFile: o(e.logFile) ? globalThis.String(e.logFile) : "",
|
|
2760
|
+
iterations: o(e.iterations) ? globalThis.Number(e.iterations) : 0,
|
|
2761
|
+
sampleRateMs: o(e.sampleRateMs) ? globalThis.Number(e.sampleRateMs) : 0,
|
|
2762
|
+
transceiverMode: o(e.transceiverMode) ? globalThis.Number(e.transceiverMode) : 0,
|
|
2763
|
+
includeErrorFrames: o(e.includeErrorFrames) ? globalThis.Boolean(e.includeErrorFrames) : !1,
|
|
2764
|
+
sendFirstMessageMode: o(e.sendFirstMessageMode) ? globalThis.Number(e.sendFirstMessageMode) : 0,
|
|
2765
|
+
timeOffsetMs: o(e.timeOffsetMs) ? globalThis.Number(e.timeOffsetMs) : void 0,
|
|
2766
|
+
timeFactor: o(e.timeFactor) ? globalThis.Number(e.timeFactor) : void 0,
|
|
2767
|
+
lowerVariance: o(e.lowerVariance) ? globalThis.Number(e.lowerVariance) : void 0,
|
|
2768
|
+
higherVariance: o(e.higherVariance) ? globalThis.Number(e.higherVariance) : void 0,
|
|
2769
|
+
increaseSpeed: o(e.increaseSpeed) ? globalThis.Boolean(e.increaseSpeed) : void 0
|
|
2770
|
+
};
|
|
2771
|
+
},
|
|
2772
|
+
toJSON(e) {
|
|
2773
|
+
const n = {};
|
|
2774
|
+
if (e.channelIdentifiers) {
|
|
2775
|
+
const i = Object.entries(e.channelIdentifiers);
|
|
2776
|
+
i.length > 0 && (n.channelIdentifiers = {}, i.forEach(([a, r]) => {
|
|
2777
|
+
n.channelIdentifiers[a] = r;
|
|
2778
|
+
}));
|
|
2779
|
+
}
|
|
2780
|
+
return e.logFile !== "" && (n.logFile = e.logFile), e.iterations !== 0 && (n.iterations = Math.round(e.iterations)), e.sampleRateMs !== 0 && (n.sampleRateMs = Math.round(e.sampleRateMs)), e.transceiverMode !== 0 && (n.transceiverMode = Math.round(e.transceiverMode)), e.includeErrorFrames !== !1 && (n.includeErrorFrames = e.includeErrorFrames), e.sendFirstMessageMode !== 0 && (n.sendFirstMessageMode = Math.round(e.sendFirstMessageMode)), e.timeOffsetMs !== void 0 && (n.timeOffsetMs = Math.round(e.timeOffsetMs)), e.timeFactor !== void 0 && (n.timeFactor = e.timeFactor), e.lowerVariance !== void 0 && (n.lowerVariance = e.lowerVariance), e.higherVariance !== void 0 && (n.higherVariance = e.higherVariance), e.increaseSpeed !== void 0 && (n.increaseSpeed = e.increaseSpeed), n;
|
|
2781
|
+
},
|
|
2782
|
+
create(e) {
|
|
2783
|
+
return k.fromPartial(e ?? {});
|
|
2784
|
+
},
|
|
2785
|
+
fromPartial(e) {
|
|
2786
|
+
const n = me();
|
|
2787
|
+
return n.channelIdentifiers = Object.entries(e.channelIdentifiers ?? {}).reduce(
|
|
2788
|
+
(i, [a, r]) => (r !== void 0 && (i[a] = globalThis.String(r)), i),
|
|
2789
|
+
{}
|
|
2790
|
+
), n.logFile = e.logFile ?? "", n.iterations = e.iterations ?? 0, n.sampleRateMs = e.sampleRateMs ?? 0, n.transceiverMode = e.transceiverMode ?? 0, n.includeErrorFrames = e.includeErrorFrames ?? !1, n.sendFirstMessageMode = e.sendFirstMessageMode ?? 0, n.timeOffsetMs = e.timeOffsetMs ?? void 0, n.timeFactor = e.timeFactor ?? void 0, n.lowerVariance = e.lowerVariance ?? void 0, n.higherVariance = e.higherVariance ?? void 0, n.increaseSpeed = e.increaseSpeed ?? void 0, n;
|
|
2791
|
+
}
|
|
2792
|
+
};
|
|
2793
|
+
function Le() {
|
|
2794
|
+
return { key: "", value: "" };
|
|
2795
|
+
}
|
|
2796
|
+
const Y = {
|
|
2797
|
+
encode(e, n = new d()) {
|
|
2798
|
+
return e.key !== "" && n.uint32(10).string(e.key), e.value !== "" && n.uint32(18).string(e.value), n;
|
|
2799
|
+
},
|
|
2800
|
+
decode(e, n) {
|
|
2801
|
+
const i = e instanceof s ? e : new s(e);
|
|
2802
|
+
let a = n === void 0 ? i.len : i.pos + n;
|
|
2803
|
+
const r = Le();
|
|
2804
|
+
for (; i.pos < a; ) {
|
|
2805
|
+
const t = i.uint32();
|
|
2806
|
+
switch (t >>> 3) {
|
|
2807
|
+
case 1: {
|
|
2808
|
+
if (t !== 10)
|
|
2809
|
+
break;
|
|
2810
|
+
r.key = i.string();
|
|
2811
|
+
continue;
|
|
2812
|
+
}
|
|
2813
|
+
case 2: {
|
|
2814
|
+
if (t !== 18)
|
|
2815
|
+
break;
|
|
2816
|
+
r.value = i.string();
|
|
2817
|
+
continue;
|
|
2818
|
+
}
|
|
2819
|
+
}
|
|
2820
|
+
if ((t & 7) === 4 || t === 0)
|
|
2821
|
+
break;
|
|
2822
|
+
i.skip(t & 7);
|
|
2823
|
+
}
|
|
2824
|
+
return r;
|
|
2825
|
+
},
|
|
2826
|
+
fromJSON(e) {
|
|
2827
|
+
return {
|
|
2828
|
+
key: o(e.key) ? globalThis.String(e.key) : "",
|
|
2829
|
+
value: o(e.value) ? globalThis.String(e.value) : ""
|
|
2830
|
+
};
|
|
2831
|
+
},
|
|
2832
|
+
toJSON(e) {
|
|
2833
|
+
const n = {};
|
|
2834
|
+
return e.key !== "" && (n.key = e.key), e.value !== "" && (n.value = e.value), n;
|
|
2835
|
+
},
|
|
2836
|
+
create(e) {
|
|
2837
|
+
return Y.fromPartial(e ?? {});
|
|
2838
|
+
},
|
|
2839
|
+
fromPartial(e) {
|
|
2840
|
+
const n = Le();
|
|
2841
|
+
return n.key = e.key ?? "", n.value = e.value ?? "", n;
|
|
2842
|
+
}
|
|
2843
|
+
};
|
|
2844
|
+
function ge() {
|
|
2845
|
+
return {
|
|
2846
|
+
channelIdentifier: "",
|
|
2847
|
+
frame: void 0,
|
|
2848
|
+
randomInterval: !1,
|
|
2849
|
+
constantIntervalMs: 0,
|
|
2850
|
+
randomIntervalMinMs: 0,
|
|
2851
|
+
randomIntervalMaxMs: 0,
|
|
2852
|
+
numberOfMessages: 0,
|
|
2853
|
+
randomDataLength: !1,
|
|
2854
|
+
randomMessageData: !1,
|
|
2855
|
+
randomIdentifier: !1,
|
|
2856
|
+
scanIdentifier: !1,
|
|
2857
|
+
identifierMin: 0,
|
|
2858
|
+
identifierMax: 0,
|
|
2859
|
+
randomBurstSize: !1,
|
|
2860
|
+
constantBurstSize: 0,
|
|
2861
|
+
randomBurstSizeMin: 0,
|
|
2862
|
+
randomBurstSizeMax: 0
|
|
2863
|
+
};
|
|
2864
|
+
}
|
|
2865
|
+
const P = {
|
|
2866
|
+
encode(e, n = new d()) {
|
|
2867
|
+
return e.channelIdentifier !== "" && n.uint32(10).string(e.channelIdentifier), e.frame !== void 0 && L.encode(e.frame, n.uint32(18).fork()).join(), e.randomInterval !== !1 && n.uint32(24).bool(e.randomInterval), e.constantIntervalMs !== 0 && n.uint32(33).double(e.constantIntervalMs), e.randomIntervalMinMs !== 0 && n.uint32(40).int32(e.randomIntervalMinMs), e.randomIntervalMaxMs !== 0 && n.uint32(48).int32(e.randomIntervalMaxMs), e.numberOfMessages !== 0 && n.uint32(56).int32(e.numberOfMessages), e.randomDataLength !== !1 && n.uint32(64).bool(e.randomDataLength), e.randomMessageData !== !1 && n.uint32(72).bool(e.randomMessageData), e.randomIdentifier !== !1 && n.uint32(80).bool(e.randomIdentifier), e.scanIdentifier !== !1 && n.uint32(88).bool(e.scanIdentifier), e.identifierMin !== 0 && n.uint32(96).int32(e.identifierMin), e.identifierMax !== 0 && n.uint32(104).int32(e.identifierMax), e.randomBurstSize !== !1 && n.uint32(112).bool(e.randomBurstSize), e.constantBurstSize !== 0 && n.uint32(120).int32(e.constantBurstSize), e.randomBurstSizeMin !== 0 && n.uint32(128).int32(e.randomBurstSizeMin), e.randomBurstSizeMax !== 0 && n.uint32(136).int32(e.randomBurstSizeMax), n;
|
|
2868
|
+
},
|
|
2869
|
+
decode(e, n) {
|
|
2870
|
+
const i = e instanceof s ? e : new s(e);
|
|
2871
|
+
let a = n === void 0 ? i.len : i.pos + n;
|
|
2872
|
+
const r = ge();
|
|
2873
|
+
for (; i.pos < a; ) {
|
|
2874
|
+
const t = i.uint32();
|
|
2875
|
+
switch (t >>> 3) {
|
|
2876
|
+
case 1: {
|
|
2877
|
+
if (t !== 10)
|
|
2878
|
+
break;
|
|
2879
|
+
r.channelIdentifier = i.string();
|
|
2880
|
+
continue;
|
|
2881
|
+
}
|
|
2882
|
+
case 2: {
|
|
2883
|
+
if (t !== 18)
|
|
2884
|
+
break;
|
|
2885
|
+
r.frame = L.decode(i, i.uint32());
|
|
2886
|
+
continue;
|
|
2887
|
+
}
|
|
2888
|
+
case 3: {
|
|
2889
|
+
if (t !== 24)
|
|
2890
|
+
break;
|
|
2891
|
+
r.randomInterval = i.bool();
|
|
2892
|
+
continue;
|
|
2893
|
+
}
|
|
2894
|
+
case 4: {
|
|
2895
|
+
if (t !== 33)
|
|
2896
|
+
break;
|
|
2897
|
+
r.constantIntervalMs = i.double();
|
|
2898
|
+
continue;
|
|
2899
|
+
}
|
|
2900
|
+
case 5: {
|
|
2901
|
+
if (t !== 40)
|
|
2902
|
+
break;
|
|
2903
|
+
r.randomIntervalMinMs = i.int32();
|
|
2904
|
+
continue;
|
|
2905
|
+
}
|
|
2906
|
+
case 6: {
|
|
2907
|
+
if (t !== 48)
|
|
2908
|
+
break;
|
|
2909
|
+
r.randomIntervalMaxMs = i.int32();
|
|
2910
|
+
continue;
|
|
2911
|
+
}
|
|
2912
|
+
case 7: {
|
|
2913
|
+
if (t !== 56)
|
|
2914
|
+
break;
|
|
2915
|
+
r.numberOfMessages = i.int32();
|
|
2916
|
+
continue;
|
|
2917
|
+
}
|
|
2918
|
+
case 8: {
|
|
2919
|
+
if (t !== 64)
|
|
2920
|
+
break;
|
|
2921
|
+
r.randomDataLength = i.bool();
|
|
2922
|
+
continue;
|
|
2923
|
+
}
|
|
2924
|
+
case 9: {
|
|
2925
|
+
if (t !== 72)
|
|
2926
|
+
break;
|
|
2927
|
+
r.randomMessageData = i.bool();
|
|
2928
|
+
continue;
|
|
2929
|
+
}
|
|
2930
|
+
case 10: {
|
|
2931
|
+
if (t !== 80)
|
|
2932
|
+
break;
|
|
2933
|
+
r.randomIdentifier = i.bool();
|
|
2934
|
+
continue;
|
|
2935
|
+
}
|
|
2936
|
+
case 11: {
|
|
2937
|
+
if (t !== 88)
|
|
2938
|
+
break;
|
|
2939
|
+
r.scanIdentifier = i.bool();
|
|
2940
|
+
continue;
|
|
2941
|
+
}
|
|
2942
|
+
case 12: {
|
|
2943
|
+
if (t !== 96)
|
|
2944
|
+
break;
|
|
2945
|
+
r.identifierMin = i.int32();
|
|
2946
|
+
continue;
|
|
2947
|
+
}
|
|
2948
|
+
case 13: {
|
|
2949
|
+
if (t !== 104)
|
|
2950
|
+
break;
|
|
2951
|
+
r.identifierMax = i.int32();
|
|
2952
|
+
continue;
|
|
2953
|
+
}
|
|
2954
|
+
case 14: {
|
|
2955
|
+
if (t !== 112)
|
|
2956
|
+
break;
|
|
2957
|
+
r.randomBurstSize = i.bool();
|
|
2958
|
+
continue;
|
|
2959
|
+
}
|
|
2960
|
+
case 15: {
|
|
2961
|
+
if (t !== 120)
|
|
2962
|
+
break;
|
|
2963
|
+
r.constantBurstSize = i.int32();
|
|
2964
|
+
continue;
|
|
2965
|
+
}
|
|
2966
|
+
case 16: {
|
|
2967
|
+
if (t !== 128)
|
|
2968
|
+
break;
|
|
2969
|
+
r.randomBurstSizeMin = i.int32();
|
|
2970
|
+
continue;
|
|
2971
|
+
}
|
|
2972
|
+
case 17: {
|
|
2973
|
+
if (t !== 136)
|
|
2974
|
+
break;
|
|
2975
|
+
r.randomBurstSizeMax = i.int32();
|
|
2976
|
+
continue;
|
|
2977
|
+
}
|
|
2978
|
+
}
|
|
2979
|
+
if ((t & 7) === 4 || t === 0)
|
|
2980
|
+
break;
|
|
2981
|
+
i.skip(t & 7);
|
|
2982
|
+
}
|
|
2983
|
+
return r;
|
|
2984
|
+
},
|
|
2985
|
+
fromJSON(e) {
|
|
2986
|
+
return {
|
|
2987
|
+
channelIdentifier: o(e.channelIdentifier) ? globalThis.String(e.channelIdentifier) : "",
|
|
2988
|
+
frame: o(e.frame) ? L.fromJSON(e.frame) : void 0,
|
|
2989
|
+
randomInterval: o(e.randomInterval) ? globalThis.Boolean(e.randomInterval) : !1,
|
|
2990
|
+
constantIntervalMs: o(e.constantIntervalMs) ? globalThis.Number(e.constantIntervalMs) : 0,
|
|
2991
|
+
randomIntervalMinMs: o(e.randomIntervalMinMs) ? globalThis.Number(e.randomIntervalMinMs) : 0,
|
|
2992
|
+
randomIntervalMaxMs: o(e.randomIntervalMaxMs) ? globalThis.Number(e.randomIntervalMaxMs) : 0,
|
|
2993
|
+
numberOfMessages: o(e.numberOfMessages) ? globalThis.Number(e.numberOfMessages) : 0,
|
|
2994
|
+
randomDataLength: o(e.randomDataLength) ? globalThis.Boolean(e.randomDataLength) : !1,
|
|
2995
|
+
randomMessageData: o(e.randomMessageData) ? globalThis.Boolean(e.randomMessageData) : !1,
|
|
2996
|
+
randomIdentifier: o(e.randomIdentifier) ? globalThis.Boolean(e.randomIdentifier) : !1,
|
|
2997
|
+
scanIdentifier: o(e.scanIdentifier) ? globalThis.Boolean(e.scanIdentifier) : !1,
|
|
2998
|
+
identifierMin: o(e.identifierMin) ? globalThis.Number(e.identifierMin) : 0,
|
|
2999
|
+
identifierMax: o(e.identifierMax) ? globalThis.Number(e.identifierMax) : 0,
|
|
3000
|
+
randomBurstSize: o(e.randomBurstSize) ? globalThis.Boolean(e.randomBurstSize) : !1,
|
|
3001
|
+
constantBurstSize: o(e.constantBurstSize) ? globalThis.Number(e.constantBurstSize) : 0,
|
|
3002
|
+
randomBurstSizeMin: o(e.randomBurstSizeMin) ? globalThis.Number(e.randomBurstSizeMin) : 0,
|
|
3003
|
+
randomBurstSizeMax: o(e.randomBurstSizeMax) ? globalThis.Number(e.randomBurstSizeMax) : 0
|
|
3004
|
+
};
|
|
3005
|
+
},
|
|
3006
|
+
toJSON(e) {
|
|
3007
|
+
const n = {};
|
|
3008
|
+
return e.channelIdentifier !== "" && (n.channelIdentifier = e.channelIdentifier), e.frame !== void 0 && (n.frame = L.toJSON(e.frame)), e.randomInterval !== !1 && (n.randomInterval = e.randomInterval), e.constantIntervalMs !== 0 && (n.constantIntervalMs = e.constantIntervalMs), e.randomIntervalMinMs !== 0 && (n.randomIntervalMinMs = Math.round(e.randomIntervalMinMs)), e.randomIntervalMaxMs !== 0 && (n.randomIntervalMaxMs = Math.round(e.randomIntervalMaxMs)), e.numberOfMessages !== 0 && (n.numberOfMessages = Math.round(e.numberOfMessages)), e.randomDataLength !== !1 && (n.randomDataLength = e.randomDataLength), e.randomMessageData !== !1 && (n.randomMessageData = e.randomMessageData), e.randomIdentifier !== !1 && (n.randomIdentifier = e.randomIdentifier), e.scanIdentifier !== !1 && (n.scanIdentifier = e.scanIdentifier), e.identifierMin !== 0 && (n.identifierMin = Math.round(e.identifierMin)), e.identifierMax !== 0 && (n.identifierMax = Math.round(e.identifierMax)), e.randomBurstSize !== !1 && (n.randomBurstSize = e.randomBurstSize), e.constantBurstSize !== 0 && (n.constantBurstSize = Math.round(e.constantBurstSize)), e.randomBurstSizeMin !== 0 && (n.randomBurstSizeMin = Math.round(e.randomBurstSizeMin)), e.randomBurstSizeMax !== 0 && (n.randomBurstSizeMax = Math.round(e.randomBurstSizeMax)), n;
|
|
3009
|
+
},
|
|
3010
|
+
create(e) {
|
|
3011
|
+
return P.fromPartial(e ?? {});
|
|
3012
|
+
},
|
|
3013
|
+
fromPartial(e) {
|
|
3014
|
+
const n = ge();
|
|
3015
|
+
return n.channelIdentifier = e.channelIdentifier ?? "", n.frame = e.frame !== void 0 && e.frame !== null ? L.fromPartial(e.frame) : void 0, n.randomInterval = e.randomInterval ?? !1, n.constantIntervalMs = e.constantIntervalMs ?? 0, n.randomIntervalMinMs = e.randomIntervalMinMs ?? 0, n.randomIntervalMaxMs = e.randomIntervalMaxMs ?? 0, n.numberOfMessages = e.numberOfMessages ?? 0, n.randomDataLength = e.randomDataLength ?? !1, n.randomMessageData = e.randomMessageData ?? !1, n.randomIdentifier = e.randomIdentifier ?? !1, n.scanIdentifier = e.scanIdentifier ?? !1, n.identifierMin = e.identifierMin ?? 0, n.identifierMax = e.identifierMax ?? 0, n.randomBurstSize = e.randomBurstSize ?? !1, n.constantBurstSize = e.constantBurstSize ?? 0, n.randomBurstSizeMin = e.randomBurstSizeMin ?? 0, n.randomBurstSizeMax = e.randomBurstSizeMax ?? 0, n;
|
|
3016
|
+
}
|
|
3017
|
+
};
|
|
3018
|
+
function Ge() {
|
|
3019
|
+
return { stdCanIds: "", extCanIds: "", filterType: "" };
|
|
3020
|
+
}
|
|
3021
|
+
const I = {
|
|
3022
|
+
encode(e, n = new d()) {
|
|
3023
|
+
return e.stdCanIds !== "" && n.uint32(10).string(e.stdCanIds), e.extCanIds !== "" && n.uint32(18).string(e.extCanIds), e.filterType !== "" && n.uint32(26).string(e.filterType), n;
|
|
3024
|
+
},
|
|
3025
|
+
decode(e, n) {
|
|
3026
|
+
const i = e instanceof s ? e : new s(e);
|
|
3027
|
+
let a = n === void 0 ? i.len : i.pos + n;
|
|
3028
|
+
const r = Ge();
|
|
3029
|
+
for (; i.pos < a; ) {
|
|
3030
|
+
const t = i.uint32();
|
|
3031
|
+
switch (t >>> 3) {
|
|
3032
|
+
case 1: {
|
|
3033
|
+
if (t !== 10)
|
|
3034
|
+
break;
|
|
3035
|
+
r.stdCanIds = i.string();
|
|
3036
|
+
continue;
|
|
3037
|
+
}
|
|
3038
|
+
case 2: {
|
|
3039
|
+
if (t !== 18)
|
|
3040
|
+
break;
|
|
3041
|
+
r.extCanIds = i.string();
|
|
3042
|
+
continue;
|
|
3043
|
+
}
|
|
3044
|
+
case 3: {
|
|
3045
|
+
if (t !== 26)
|
|
3046
|
+
break;
|
|
3047
|
+
r.filterType = i.string();
|
|
3048
|
+
continue;
|
|
3049
|
+
}
|
|
3050
|
+
}
|
|
3051
|
+
if ((t & 7) === 4 || t === 0)
|
|
3052
|
+
break;
|
|
3053
|
+
i.skip(t & 7);
|
|
3054
|
+
}
|
|
3055
|
+
return r;
|
|
3056
|
+
},
|
|
3057
|
+
fromJSON(e) {
|
|
3058
|
+
return {
|
|
3059
|
+
stdCanIds: o(e.stdCanIds) ? globalThis.String(e.stdCanIds) : "",
|
|
3060
|
+
extCanIds: o(e.extCanIds) ? globalThis.String(e.extCanIds) : "",
|
|
3061
|
+
filterType: o(e.filterType) ? globalThis.String(e.filterType) : ""
|
|
3062
|
+
};
|
|
3063
|
+
},
|
|
3064
|
+
toJSON(e) {
|
|
3065
|
+
const n = {};
|
|
3066
|
+
return e.stdCanIds !== "" && (n.stdCanIds = e.stdCanIds), e.extCanIds !== "" && (n.extCanIds = e.extCanIds), e.filterType !== "" && (n.filterType = e.filterType), n;
|
|
3067
|
+
},
|
|
3068
|
+
create(e) {
|
|
3069
|
+
return I.fromPartial(e ?? {});
|
|
3070
|
+
},
|
|
3071
|
+
fromPartial(e) {
|
|
3072
|
+
const n = Ge();
|
|
3073
|
+
return n.stdCanIds = e.stdCanIds ?? "", n.extCanIds = e.extCanIds ?? "", n.filterType = e.filterType ?? "", n;
|
|
3074
|
+
}
|
|
3075
|
+
};
|
|
3076
|
+
function Ce() {
|
|
3077
|
+
return { databaseFiles: [] };
|
|
3078
|
+
}
|
|
3079
|
+
const D = {
|
|
3080
|
+
encode(e, n = new d()) {
|
|
3081
|
+
for (const i of e.databaseFiles)
|
|
3082
|
+
n.uint32(10).string(i);
|
|
3083
|
+
return n;
|
|
3084
|
+
},
|
|
3085
|
+
decode(e, n) {
|
|
3086
|
+
const i = e instanceof s ? e : new s(e);
|
|
3087
|
+
let a = n === void 0 ? i.len : i.pos + n;
|
|
3088
|
+
const r = Ce();
|
|
3089
|
+
for (; i.pos < a; ) {
|
|
3090
|
+
const t = i.uint32();
|
|
3091
|
+
switch (t >>> 3) {
|
|
3092
|
+
case 1: {
|
|
3093
|
+
if (t !== 10)
|
|
3094
|
+
break;
|
|
3095
|
+
r.databaseFiles.push(i.string());
|
|
3096
|
+
continue;
|
|
3097
|
+
}
|
|
3098
|
+
}
|
|
3099
|
+
if ((t & 7) === 4 || t === 0)
|
|
3100
|
+
break;
|
|
3101
|
+
i.skip(t & 7);
|
|
3102
|
+
}
|
|
3103
|
+
return r;
|
|
3104
|
+
},
|
|
3105
|
+
fromJSON(e) {
|
|
3106
|
+
return {
|
|
3107
|
+
databaseFiles: globalThis.Array.isArray(e == null ? void 0 : e.databaseFiles) ? e.databaseFiles.map((n) => globalThis.String(n)) : []
|
|
3108
|
+
};
|
|
3109
|
+
},
|
|
3110
|
+
toJSON(e) {
|
|
3111
|
+
var i;
|
|
3112
|
+
const n = {};
|
|
3113
|
+
return (i = e.databaseFiles) != null && i.length && (n.databaseFiles = e.databaseFiles), n;
|
|
3114
|
+
},
|
|
3115
|
+
create(e) {
|
|
3116
|
+
return D.fromPartial(e ?? {});
|
|
3117
|
+
},
|
|
3118
|
+
fromPartial(e) {
|
|
3119
|
+
var i;
|
|
3120
|
+
const n = Ce();
|
|
3121
|
+
return n.databaseFiles = ((i = e.databaseFiles) == null ? void 0 : i.map((a) => a)) || [], n;
|
|
3122
|
+
}
|
|
3123
|
+
};
|
|
3124
|
+
function pe() {
|
|
3125
|
+
return { j1939Settings: void 0 };
|
|
3126
|
+
}
|
|
3127
|
+
const b = {
|
|
3128
|
+
encode(e, n = new d()) {
|
|
3129
|
+
return e.j1939Settings !== void 0 && y.encode(e.j1939Settings, n.uint32(10).fork()).join(), n;
|
|
3130
|
+
},
|
|
3131
|
+
decode(e, n) {
|
|
3132
|
+
const i = e instanceof s ? e : new s(e);
|
|
3133
|
+
let a = n === void 0 ? i.len : i.pos + n;
|
|
3134
|
+
const r = pe();
|
|
3135
|
+
for (; i.pos < a; ) {
|
|
3136
|
+
const t = i.uint32();
|
|
3137
|
+
switch (t >>> 3) {
|
|
3138
|
+
case 1: {
|
|
3139
|
+
if (t !== 10)
|
|
3140
|
+
break;
|
|
3141
|
+
r.j1939Settings = y.decode(i, i.uint32());
|
|
3142
|
+
continue;
|
|
3143
|
+
}
|
|
3144
|
+
}
|
|
3145
|
+
if ((t & 7) === 4 || t === 0)
|
|
3146
|
+
break;
|
|
3147
|
+
i.skip(t & 7);
|
|
3148
|
+
}
|
|
3149
|
+
return r;
|
|
3150
|
+
},
|
|
3151
|
+
fromJSON(e) {
|
|
3152
|
+
return {
|
|
3153
|
+
j1939Settings: o(e.j1939Settings) ? y.fromJSON(e.j1939Settings) : void 0
|
|
3154
|
+
};
|
|
3155
|
+
},
|
|
3156
|
+
toJSON(e) {
|
|
3157
|
+
const n = {};
|
|
3158
|
+
return e.j1939Settings !== void 0 && (n.j1939Settings = y.toJSON(e.j1939Settings)), n;
|
|
3159
|
+
},
|
|
3160
|
+
create(e) {
|
|
3161
|
+
return b.fromPartial(e ?? {});
|
|
3162
|
+
},
|
|
3163
|
+
fromPartial(e) {
|
|
3164
|
+
const n = pe();
|
|
3165
|
+
return n.j1939Settings = e.j1939Settings !== void 0 && e.j1939Settings !== null ? y.fromPartial(e.j1939Settings) : void 0, n;
|
|
3166
|
+
}
|
|
3167
|
+
};
|
|
3168
|
+
function ve() {
|
|
3169
|
+
return {};
|
|
3170
|
+
}
|
|
3171
|
+
const y = {
|
|
3172
|
+
encode(e, n = new d()) {
|
|
3173
|
+
return n;
|
|
3174
|
+
},
|
|
3175
|
+
decode(e, n) {
|
|
3176
|
+
const i = e instanceof s ? e : new s(e);
|
|
3177
|
+
let a = n === void 0 ? i.len : i.pos + n;
|
|
3178
|
+
const r = ve();
|
|
3179
|
+
for (; i.pos < a; ) {
|
|
3180
|
+
const t = i.uint32();
|
|
3181
|
+
if ((t & 7) === 4 || t === 0)
|
|
3182
|
+
break;
|
|
3183
|
+
i.skip(t & 7);
|
|
3184
|
+
}
|
|
3185
|
+
return r;
|
|
3186
|
+
},
|
|
3187
|
+
fromJSON(e) {
|
|
3188
|
+
return {};
|
|
3189
|
+
},
|
|
3190
|
+
toJSON(e) {
|
|
3191
|
+
return {};
|
|
3192
|
+
},
|
|
3193
|
+
create(e) {
|
|
3194
|
+
return y.fromPartial(e ?? {});
|
|
3195
|
+
},
|
|
3196
|
+
fromPartial(e) {
|
|
3197
|
+
return ve();
|
|
3198
|
+
}
|
|
3199
|
+
};
|
|
3200
|
+
function ke() {
|
|
3201
|
+
return { extensionName: "", configuration: void 0 };
|
|
3202
|
+
}
|
|
3203
|
+
const V = {
|
|
3204
|
+
encode(e, n = new d()) {
|
|
3205
|
+
return e.extensionName !== "" && n.uint32(10).string(e.extensionName), e.configuration !== void 0 && n.uint32(18).string(e.configuration), n;
|
|
3206
|
+
},
|
|
3207
|
+
decode(e, n) {
|
|
3208
|
+
const i = e instanceof s ? e : new s(e);
|
|
3209
|
+
let a = n === void 0 ? i.len : i.pos + n;
|
|
3210
|
+
const r = ke();
|
|
3211
|
+
for (; i.pos < a; ) {
|
|
3212
|
+
const t = i.uint32();
|
|
3213
|
+
switch (t >>> 3) {
|
|
3214
|
+
case 1: {
|
|
3215
|
+
if (t !== 10)
|
|
3216
|
+
break;
|
|
3217
|
+
r.extensionName = i.string();
|
|
3218
|
+
continue;
|
|
3219
|
+
}
|
|
3220
|
+
case 2: {
|
|
3221
|
+
if (t !== 18)
|
|
3222
|
+
break;
|
|
3223
|
+
r.configuration = i.string();
|
|
3224
|
+
continue;
|
|
3225
|
+
}
|
|
3226
|
+
}
|
|
3227
|
+
if ((t & 7) === 4 || t === 0)
|
|
3228
|
+
break;
|
|
3229
|
+
i.skip(t & 7);
|
|
3230
|
+
}
|
|
3231
|
+
return r;
|
|
3232
|
+
},
|
|
3233
|
+
fromJSON(e) {
|
|
3234
|
+
return {
|
|
3235
|
+
extensionName: o(e.extensionName) ? globalThis.String(e.extensionName) : "",
|
|
3236
|
+
configuration: o(e.configuration) ? globalThis.String(e.configuration) : void 0
|
|
3237
|
+
};
|
|
3238
|
+
},
|
|
3239
|
+
toJSON(e) {
|
|
3240
|
+
const n = {};
|
|
3241
|
+
return e.extensionName !== "" && (n.extensionName = e.extensionName), e.configuration !== void 0 && (n.configuration = e.configuration), n;
|
|
3242
|
+
},
|
|
3243
|
+
create(e) {
|
|
3244
|
+
return V.fromPartial(e ?? {});
|
|
3245
|
+
},
|
|
3246
|
+
fromPartial(e) {
|
|
3247
|
+
const n = ke();
|
|
3248
|
+
return n.extensionName = e.extensionName ?? "", n.configuration = e.configuration ?? void 0, n;
|
|
3249
|
+
}
|
|
3250
|
+
};
|
|
3251
|
+
function Pe() {
|
|
3252
|
+
return { frameId: "", frameIdType: "" };
|
|
3253
|
+
}
|
|
3254
|
+
const U = {
|
|
3255
|
+
encode(e, n = new d()) {
|
|
3256
|
+
return e.frameId !== "" && n.uint32(10).string(e.frameId), e.frameIdType !== "" && n.uint32(18).string(e.frameIdType), n;
|
|
3257
|
+
},
|
|
3258
|
+
decode(e, n) {
|
|
3259
|
+
const i = e instanceof s ? e : new s(e);
|
|
3260
|
+
let a = n === void 0 ? i.len : i.pos + n;
|
|
3261
|
+
const r = Pe();
|
|
3262
|
+
for (; i.pos < a; ) {
|
|
3263
|
+
const t = i.uint32();
|
|
3264
|
+
switch (t >>> 3) {
|
|
3265
|
+
case 1: {
|
|
3266
|
+
if (t !== 10)
|
|
3267
|
+
break;
|
|
3268
|
+
r.frameId = i.string();
|
|
3269
|
+
continue;
|
|
3270
|
+
}
|
|
3271
|
+
case 2: {
|
|
3272
|
+
if (t !== 18)
|
|
3273
|
+
break;
|
|
3274
|
+
r.frameIdType = i.string();
|
|
3275
|
+
continue;
|
|
3276
|
+
}
|
|
3277
|
+
}
|
|
3278
|
+
if ((t & 7) === 4 || t === 0)
|
|
3279
|
+
break;
|
|
3280
|
+
i.skip(t & 7);
|
|
3281
|
+
}
|
|
3282
|
+
return r;
|
|
3283
|
+
},
|
|
3284
|
+
fromJSON(e) {
|
|
3285
|
+
return {
|
|
3286
|
+
frameId: o(e.frameId) ? globalThis.String(e.frameId) : "",
|
|
3287
|
+
frameIdType: o(e.frameIdType) ? globalThis.String(e.frameIdType) : ""
|
|
3288
|
+
};
|
|
3289
|
+
},
|
|
3290
|
+
toJSON(e) {
|
|
3291
|
+
const n = {};
|
|
3292
|
+
return e.frameId !== "" && (n.frameId = e.frameId), e.frameIdType !== "" && (n.frameIdType = e.frameIdType), n;
|
|
3293
|
+
},
|
|
3294
|
+
create(e) {
|
|
3295
|
+
return U.fromPartial(e ?? {});
|
|
3296
|
+
},
|
|
3297
|
+
fromPartial(e) {
|
|
3298
|
+
const n = Pe();
|
|
3299
|
+
return n.frameId = e.frameId ?? "", n.frameIdType = e.frameIdType ?? "", n;
|
|
3300
|
+
}
|
|
3301
|
+
};
|
|
3302
|
+
function De() {
|
|
3303
|
+
return {
|
|
3304
|
+
frameId: "",
|
|
3305
|
+
signalQualifiedName: "",
|
|
3306
|
+
signalValue: 0,
|
|
3307
|
+
signalMinValue: 0,
|
|
3308
|
+
signalMaxValue: 0,
|
|
3309
|
+
operator: 0,
|
|
3310
|
+
frameIdType: ""
|
|
3311
|
+
};
|
|
3312
|
+
}
|
|
3313
|
+
const B = {
|
|
3314
|
+
encode(e, n = new d()) {
|
|
3315
|
+
return e.frameId !== "" && n.uint32(10).string(e.frameId), e.signalQualifiedName !== "" && n.uint32(18).string(e.signalQualifiedName), e.signalValue !== 0 && n.uint32(25).double(e.signalValue), e.signalMinValue !== 0 && n.uint32(33).double(e.signalMinValue), e.signalMaxValue !== 0 && n.uint32(41).double(e.signalMaxValue), e.operator !== 0 && n.uint32(48).int32(e.operator), e.frameIdType !== "" && n.uint32(58).string(e.frameIdType), n;
|
|
3316
|
+
},
|
|
3317
|
+
decode(e, n) {
|
|
3318
|
+
const i = e instanceof s ? e : new s(e);
|
|
3319
|
+
let a = n === void 0 ? i.len : i.pos + n;
|
|
3320
|
+
const r = De();
|
|
3321
|
+
for (; i.pos < a; ) {
|
|
3322
|
+
const t = i.uint32();
|
|
3323
|
+
switch (t >>> 3) {
|
|
3324
|
+
case 1: {
|
|
3325
|
+
if (t !== 10)
|
|
3326
|
+
break;
|
|
3327
|
+
r.frameId = i.string();
|
|
3328
|
+
continue;
|
|
3329
|
+
}
|
|
3330
|
+
case 2: {
|
|
3331
|
+
if (t !== 18)
|
|
3332
|
+
break;
|
|
3333
|
+
r.signalQualifiedName = i.string();
|
|
3334
|
+
continue;
|
|
3335
|
+
}
|
|
3336
|
+
case 3: {
|
|
3337
|
+
if (t !== 25)
|
|
3338
|
+
break;
|
|
3339
|
+
r.signalValue = i.double();
|
|
3340
|
+
continue;
|
|
3341
|
+
}
|
|
3342
|
+
case 4: {
|
|
3343
|
+
if (t !== 33)
|
|
3344
|
+
break;
|
|
3345
|
+
r.signalMinValue = i.double();
|
|
3346
|
+
continue;
|
|
3347
|
+
}
|
|
3348
|
+
case 5: {
|
|
3349
|
+
if (t !== 41)
|
|
3350
|
+
break;
|
|
3351
|
+
r.signalMaxValue = i.double();
|
|
3352
|
+
continue;
|
|
3353
|
+
}
|
|
3354
|
+
case 6: {
|
|
3355
|
+
if (t !== 48)
|
|
3356
|
+
break;
|
|
3357
|
+
r.operator = i.int32();
|
|
3358
|
+
continue;
|
|
3359
|
+
}
|
|
3360
|
+
case 7: {
|
|
3361
|
+
if (t !== 58)
|
|
3362
|
+
break;
|
|
3363
|
+
r.frameIdType = i.string();
|
|
3364
|
+
continue;
|
|
3365
|
+
}
|
|
3366
|
+
}
|
|
3367
|
+
if ((t & 7) === 4 || t === 0)
|
|
3368
|
+
break;
|
|
3369
|
+
i.skip(t & 7);
|
|
3370
|
+
}
|
|
3371
|
+
return r;
|
|
3372
|
+
},
|
|
3373
|
+
fromJSON(e) {
|
|
3374
|
+
return {
|
|
3375
|
+
frameId: o(e.frameId) ? globalThis.String(e.frameId) : "",
|
|
3376
|
+
signalQualifiedName: o(e.signalQualifiedName) ? globalThis.String(e.signalQualifiedName) : "",
|
|
3377
|
+
signalValue: o(e.signalValue) ? globalThis.Number(e.signalValue) : 0,
|
|
3378
|
+
signalMinValue: o(e.signalMinValue) ? globalThis.Number(e.signalMinValue) : 0,
|
|
3379
|
+
signalMaxValue: o(e.signalMaxValue) ? globalThis.Number(e.signalMaxValue) : 0,
|
|
3380
|
+
operator: o(e.operator) ? Gn(e.operator) : 0,
|
|
3381
|
+
frameIdType: o(e.frameIdType) ? globalThis.String(e.frameIdType) : ""
|
|
3382
|
+
};
|
|
3383
|
+
},
|
|
3384
|
+
toJSON(e) {
|
|
3385
|
+
const n = {};
|
|
3386
|
+
return e.frameId !== "" && (n.frameId = e.frameId), e.signalQualifiedName !== "" && (n.signalQualifiedName = e.signalQualifiedName), e.signalValue !== 0 && (n.signalValue = e.signalValue), e.signalMinValue !== 0 && (n.signalMinValue = e.signalMinValue), e.signalMaxValue !== 0 && (n.signalMaxValue = e.signalMaxValue), e.operator !== 0 && (n.operator = Cn(e.operator)), e.frameIdType !== "" && (n.frameIdType = e.frameIdType), n;
|
|
3387
|
+
},
|
|
3388
|
+
create(e) {
|
|
3389
|
+
return B.fromPartial(e ?? {});
|
|
3390
|
+
},
|
|
3391
|
+
fromPartial(e) {
|
|
3392
|
+
const n = De();
|
|
3393
|
+
return n.frameId = e.frameId ?? "", n.signalQualifiedName = e.signalQualifiedName ?? "", n.signalValue = e.signalValue ?? 0, n.signalMinValue = e.signalMinValue ?? 0, n.signalMaxValue = e.signalMaxValue ?? 0, n.operator = e.operator ?? 0, n.frameIdType = e.frameIdType ?? "", n;
|
|
3394
|
+
}
|
|
3395
|
+
};
|
|
3396
|
+
function be() {
|
|
3397
|
+
return { timeoutTrigger: void 0, frameReceivedTrigger: void 0, signalValueTrigger: void 0 };
|
|
3398
|
+
}
|
|
3399
|
+
const R = {
|
|
3400
|
+
encode(e, n = new d()) {
|
|
3401
|
+
return e.timeoutTrigger !== void 0 && n.uint32(17).double(e.timeoutTrigger), e.frameReceivedTrigger !== void 0 && U.encode(e.frameReceivedTrigger, n.uint32(26).fork()).join(), e.signalValueTrigger !== void 0 && B.encode(e.signalValueTrigger, n.uint32(34).fork()).join(), n;
|
|
3402
|
+
},
|
|
3403
|
+
decode(e, n) {
|
|
3404
|
+
const i = e instanceof s ? e : new s(e);
|
|
3405
|
+
let a = n === void 0 ? i.len : i.pos + n;
|
|
3406
|
+
const r = be();
|
|
3407
|
+
for (; i.pos < a; ) {
|
|
3408
|
+
const t = i.uint32();
|
|
3409
|
+
switch (t >>> 3) {
|
|
3410
|
+
case 2: {
|
|
3411
|
+
if (t !== 17)
|
|
3412
|
+
break;
|
|
3413
|
+
r.timeoutTrigger = i.double();
|
|
3414
|
+
continue;
|
|
3415
|
+
}
|
|
3416
|
+
case 3: {
|
|
3417
|
+
if (t !== 26)
|
|
3418
|
+
break;
|
|
3419
|
+
r.frameReceivedTrigger = U.decode(i, i.uint32());
|
|
3420
|
+
continue;
|
|
3421
|
+
}
|
|
3422
|
+
case 4: {
|
|
3423
|
+
if (t !== 34)
|
|
3424
|
+
break;
|
|
3425
|
+
r.signalValueTrigger = B.decode(i, i.uint32());
|
|
3426
|
+
continue;
|
|
3427
|
+
}
|
|
3428
|
+
}
|
|
3429
|
+
if ((t & 7) === 4 || t === 0)
|
|
3430
|
+
break;
|
|
3431
|
+
i.skip(t & 7);
|
|
3432
|
+
}
|
|
3433
|
+
return r;
|
|
3434
|
+
},
|
|
3435
|
+
fromJSON(e) {
|
|
3436
|
+
return {
|
|
3437
|
+
timeoutTrigger: o(e.timeoutTrigger) ? globalThis.Number(e.timeoutTrigger) : void 0,
|
|
3438
|
+
frameReceivedTrigger: o(e.frameReceivedTrigger) ? U.fromJSON(e.frameReceivedTrigger) : void 0,
|
|
3439
|
+
signalValueTrigger: o(e.signalValueTrigger) ? B.fromJSON(e.signalValueTrigger) : void 0
|
|
3440
|
+
};
|
|
3441
|
+
},
|
|
3442
|
+
toJSON(e) {
|
|
3443
|
+
const n = {};
|
|
3444
|
+
return e.timeoutTrigger !== void 0 && (n.timeoutTrigger = e.timeoutTrigger), e.frameReceivedTrigger !== void 0 && (n.frameReceivedTrigger = U.toJSON(e.frameReceivedTrigger)), e.signalValueTrigger !== void 0 && (n.signalValueTrigger = B.toJSON(e.signalValueTrigger)), n;
|
|
3445
|
+
},
|
|
3446
|
+
create(e) {
|
|
3447
|
+
return R.fromPartial(e ?? {});
|
|
3448
|
+
},
|
|
3449
|
+
fromPartial(e) {
|
|
3450
|
+
const n = be();
|
|
3451
|
+
return n.timeoutTrigger = e.timeoutTrigger ?? void 0, n.frameReceivedTrigger = e.frameReceivedTrigger !== void 0 && e.frameReceivedTrigger !== null ? U.fromPartial(e.frameReceivedTrigger) : void 0, n.signalValueTrigger = e.signalValueTrigger !== void 0 && e.signalValueTrigger !== null ? B.fromPartial(e.signalValueTrigger) : void 0, n;
|
|
3452
|
+
}
|
|
3453
|
+
};
|
|
3454
|
+
function ye() {
|
|
3455
|
+
return {
|
|
3456
|
+
fileName: "",
|
|
3457
|
+
fileFormat: 0,
|
|
3458
|
+
fileConflictAction: 0,
|
|
3459
|
+
canMessageFilter: void 0,
|
|
3460
|
+
startTriggerSettings: [],
|
|
3461
|
+
startTriggersOperator: 0,
|
|
3462
|
+
stopTriggerSettings: [],
|
|
3463
|
+
stopTriggersOperator: 0,
|
|
3464
|
+
autoRestartAfterStop: !1,
|
|
3465
|
+
writeFileHeader: void 0,
|
|
3466
|
+
dataInHex: void 0,
|
|
3467
|
+
idInHex: void 0,
|
|
3468
|
+
decimalSeparator: void 0,
|
|
3469
|
+
colSeparator: void 0,
|
|
3470
|
+
dataBytesLimit: void 0,
|
|
3471
|
+
numberOfTimeDecimals: void 0,
|
|
3472
|
+
timeReference: void 0,
|
|
3473
|
+
calendarTime: void 0,
|
|
3474
|
+
utcTime: void 0
|
|
3475
|
+
};
|
|
3476
|
+
}
|
|
3477
|
+
const x = {
|
|
3478
|
+
encode(e, n = new d()) {
|
|
3479
|
+
e.fileName !== "" && n.uint32(10).string(e.fileName), e.fileFormat !== 0 && n.uint32(16).int32(e.fileFormat), e.fileConflictAction !== 0 && n.uint32(24).int32(e.fileConflictAction), e.canMessageFilter !== void 0 && I.encode(e.canMessageFilter, n.uint32(34).fork()).join();
|
|
3480
|
+
for (const i of e.startTriggerSettings)
|
|
3481
|
+
R.encode(i, n.uint32(42).fork()).join();
|
|
3482
|
+
e.startTriggersOperator !== 0 && n.uint32(48).int32(e.startTriggersOperator);
|
|
3483
|
+
for (const i of e.stopTriggerSettings)
|
|
3484
|
+
R.encode(i, n.uint32(58).fork()).join();
|
|
3485
|
+
return e.stopTriggersOperator !== 0 && n.uint32(64).int32(e.stopTriggersOperator), e.autoRestartAfterStop !== !1 && n.uint32(72).bool(e.autoRestartAfterStop), e.writeFileHeader !== void 0 && n.uint32(80).bool(e.writeFileHeader), e.dataInHex !== void 0 && n.uint32(88).bool(e.dataInHex), e.idInHex !== void 0 && n.uint32(96).bool(e.idInHex), e.decimalSeparator !== void 0 && n.uint32(104).int32(e.decimalSeparator), e.colSeparator !== void 0 && n.uint32(112).int32(e.colSeparator), e.dataBytesLimit !== void 0 && n.uint32(120).int32(e.dataBytesLimit), e.numberOfTimeDecimals !== void 0 && n.uint32(128).int32(e.numberOfTimeDecimals), e.timeReference !== void 0 && n.uint32(136).int32(e.timeReference), e.calendarTime !== void 0 && n.uint32(144).bool(e.calendarTime), e.utcTime !== void 0 && n.uint32(152).bool(e.utcTime), n;
|
|
3486
|
+
},
|
|
3487
|
+
decode(e, n) {
|
|
3488
|
+
const i = e instanceof s ? e : new s(e);
|
|
3489
|
+
let a = n === void 0 ? i.len : i.pos + n;
|
|
3490
|
+
const r = ye();
|
|
3491
|
+
for (; i.pos < a; ) {
|
|
3492
|
+
const t = i.uint32();
|
|
3493
|
+
switch (t >>> 3) {
|
|
3494
|
+
case 1: {
|
|
3495
|
+
if (t !== 10)
|
|
3496
|
+
break;
|
|
3497
|
+
r.fileName = i.string();
|
|
3498
|
+
continue;
|
|
3499
|
+
}
|
|
3500
|
+
case 2: {
|
|
3501
|
+
if (t !== 16)
|
|
3502
|
+
break;
|
|
3503
|
+
r.fileFormat = i.int32();
|
|
3504
|
+
continue;
|
|
3505
|
+
}
|
|
3506
|
+
case 3: {
|
|
3507
|
+
if (t !== 24)
|
|
3508
|
+
break;
|
|
3509
|
+
r.fileConflictAction = i.int32();
|
|
3510
|
+
continue;
|
|
3511
|
+
}
|
|
3512
|
+
case 4: {
|
|
3513
|
+
if (t !== 34)
|
|
3514
|
+
break;
|
|
3515
|
+
r.canMessageFilter = I.decode(i, i.uint32());
|
|
3516
|
+
continue;
|
|
3517
|
+
}
|
|
3518
|
+
case 5: {
|
|
3519
|
+
if (t !== 42)
|
|
3520
|
+
break;
|
|
3521
|
+
r.startTriggerSettings.push(R.decode(i, i.uint32()));
|
|
3522
|
+
continue;
|
|
3523
|
+
}
|
|
3524
|
+
case 6: {
|
|
3525
|
+
if (t !== 48)
|
|
3526
|
+
break;
|
|
3527
|
+
r.startTriggersOperator = i.int32();
|
|
3528
|
+
continue;
|
|
3529
|
+
}
|
|
3530
|
+
case 7: {
|
|
3531
|
+
if (t !== 58)
|
|
3532
|
+
break;
|
|
3533
|
+
r.stopTriggerSettings.push(R.decode(i, i.uint32()));
|
|
3534
|
+
continue;
|
|
3535
|
+
}
|
|
3536
|
+
case 8: {
|
|
3537
|
+
if (t !== 64)
|
|
3538
|
+
break;
|
|
3539
|
+
r.stopTriggersOperator = i.int32();
|
|
3540
|
+
continue;
|
|
3541
|
+
}
|
|
3542
|
+
case 9: {
|
|
3543
|
+
if (t !== 72)
|
|
3544
|
+
break;
|
|
3545
|
+
r.autoRestartAfterStop = i.bool();
|
|
3546
|
+
continue;
|
|
3547
|
+
}
|
|
3548
|
+
case 10: {
|
|
3549
|
+
if (t !== 80)
|
|
3550
|
+
break;
|
|
3551
|
+
r.writeFileHeader = i.bool();
|
|
3552
|
+
continue;
|
|
3553
|
+
}
|
|
3554
|
+
case 11: {
|
|
3555
|
+
if (t !== 88)
|
|
3556
|
+
break;
|
|
3557
|
+
r.dataInHex = i.bool();
|
|
3558
|
+
continue;
|
|
3559
|
+
}
|
|
3560
|
+
case 12: {
|
|
3561
|
+
if (t !== 96)
|
|
3562
|
+
break;
|
|
3563
|
+
r.idInHex = i.bool();
|
|
3564
|
+
continue;
|
|
3565
|
+
}
|
|
3566
|
+
case 13: {
|
|
3567
|
+
if (t !== 104)
|
|
3568
|
+
break;
|
|
3569
|
+
r.decimalSeparator = i.int32();
|
|
3570
|
+
continue;
|
|
3571
|
+
}
|
|
3572
|
+
case 14: {
|
|
3573
|
+
if (t !== 112)
|
|
3574
|
+
break;
|
|
3575
|
+
r.colSeparator = i.int32();
|
|
3576
|
+
continue;
|
|
3577
|
+
}
|
|
3578
|
+
case 15: {
|
|
3579
|
+
if (t !== 120)
|
|
3580
|
+
break;
|
|
3581
|
+
r.dataBytesLimit = i.int32();
|
|
3582
|
+
continue;
|
|
3583
|
+
}
|
|
3584
|
+
case 16: {
|
|
3585
|
+
if (t !== 128)
|
|
3586
|
+
break;
|
|
3587
|
+
r.numberOfTimeDecimals = i.int32();
|
|
3588
|
+
continue;
|
|
3589
|
+
}
|
|
3590
|
+
case 17: {
|
|
3591
|
+
if (t !== 136)
|
|
3592
|
+
break;
|
|
3593
|
+
r.timeReference = i.int32();
|
|
3594
|
+
continue;
|
|
3595
|
+
}
|
|
3596
|
+
case 18: {
|
|
3597
|
+
if (t !== 144)
|
|
3598
|
+
break;
|
|
3599
|
+
r.calendarTime = i.bool();
|
|
3600
|
+
continue;
|
|
3601
|
+
}
|
|
3602
|
+
case 19: {
|
|
3603
|
+
if (t !== 152)
|
|
3604
|
+
break;
|
|
3605
|
+
r.utcTime = i.bool();
|
|
3606
|
+
continue;
|
|
3607
|
+
}
|
|
3608
|
+
}
|
|
3609
|
+
if ((t & 7) === 4 || t === 0)
|
|
3610
|
+
break;
|
|
3611
|
+
i.skip(t & 7);
|
|
3612
|
+
}
|
|
3613
|
+
return r;
|
|
3614
|
+
},
|
|
3615
|
+
fromJSON(e) {
|
|
3616
|
+
return {
|
|
3617
|
+
fileName: o(e.fileName) ? globalThis.String(e.fileName) : "",
|
|
3618
|
+
fileFormat: o(e.fileFormat) ? kn(e.fileFormat) : 0,
|
|
3619
|
+
fileConflictAction: o(e.fileConflictAction) ? bn(e.fileConflictAction) : 0,
|
|
3620
|
+
canMessageFilter: o(e.canMessageFilter) ? I.fromJSON(e.canMessageFilter) : void 0,
|
|
3621
|
+
startTriggerSettings: globalThis.Array.isArray(e == null ? void 0 : e.startTriggerSettings) ? e.startTriggerSettings.map((n) => R.fromJSON(n)) : [],
|
|
3622
|
+
startTriggersOperator: o(e.startTriggersOperator) ? Oe(e.startTriggersOperator) : 0,
|
|
3623
|
+
stopTriggerSettings: globalThis.Array.isArray(e == null ? void 0 : e.stopTriggerSettings) ? e.stopTriggerSettings.map((n) => R.fromJSON(n)) : [],
|
|
3624
|
+
stopTriggersOperator: o(e.stopTriggersOperator) ? Oe(e.stopTriggersOperator) : 0,
|
|
3625
|
+
autoRestartAfterStop: o(e.autoRestartAfterStop) ? globalThis.Boolean(e.autoRestartAfterStop) : !1,
|
|
3626
|
+
writeFileHeader: o(e.writeFileHeader) ? globalThis.Boolean(e.writeFileHeader) : void 0,
|
|
3627
|
+
dataInHex: o(e.dataInHex) ? globalThis.Boolean(e.dataInHex) : void 0,
|
|
3628
|
+
idInHex: o(e.idInHex) ? globalThis.Boolean(e.idInHex) : void 0,
|
|
3629
|
+
decimalSeparator: o(e.decimalSeparator) ? Un(e.decimalSeparator) : void 0,
|
|
3630
|
+
colSeparator: o(e.colSeparator) ? Jn(e.colSeparator) : void 0,
|
|
3631
|
+
dataBytesLimit: o(e.dataBytesLimit) ? globalThis.Number(e.dataBytesLimit) : void 0,
|
|
3632
|
+
numberOfTimeDecimals: o(e.numberOfTimeDecimals) ? globalThis.Number(e.numberOfTimeDecimals) : void 0,
|
|
3633
|
+
timeReference: o(e.timeReference) ? Xn(e.timeReference) : void 0,
|
|
3634
|
+
calendarTime: o(e.calendarTime) ? globalThis.Boolean(e.calendarTime) : void 0,
|
|
3635
|
+
utcTime: o(e.utcTime) ? globalThis.Boolean(e.utcTime) : void 0
|
|
3636
|
+
};
|
|
3637
|
+
},
|
|
3638
|
+
toJSON(e) {
|
|
3639
|
+
var i, a;
|
|
3640
|
+
const n = {};
|
|
3641
|
+
return e.fileName !== "" && (n.fileName = e.fileName), e.fileFormat !== 0 && (n.fileFormat = Pn(e.fileFormat)), e.fileConflictAction !== 0 && (n.fileConflictAction = yn(e.fileConflictAction)), e.canMessageFilter !== void 0 && (n.canMessageFilter = I.toJSON(e.canMessageFilter)), (i = e.startTriggerSettings) != null && i.length && (n.startTriggerSettings = e.startTriggerSettings.map((r) => R.toJSON(r))), e.startTriggersOperator !== 0 && (n.startTriggersOperator = Ie(e.startTriggersOperator)), (a = e.stopTriggerSettings) != null && a.length && (n.stopTriggerSettings = e.stopTriggerSettings.map((r) => R.toJSON(r))), e.stopTriggersOperator !== 0 && (n.stopTriggersOperator = Ie(e.stopTriggersOperator)), e.autoRestartAfterStop !== !1 && (n.autoRestartAfterStop = e.autoRestartAfterStop), e.writeFileHeader !== void 0 && (n.writeFileHeader = e.writeFileHeader), e.dataInHex !== void 0 && (n.dataInHex = e.dataInHex), e.idInHex !== void 0 && (n.idInHex = e.idInHex), e.decimalSeparator !== void 0 && (n.decimalSeparator = Bn(e.decimalSeparator)), e.colSeparator !== void 0 && (n.colSeparator = wn(e.colSeparator)), e.dataBytesLimit !== void 0 && (n.dataBytesLimit = Math.round(e.dataBytesLimit)), e.numberOfTimeDecimals !== void 0 && (n.numberOfTimeDecimals = Math.round(e.numberOfTimeDecimals)), e.timeReference !== void 0 && (n.timeReference = Qn(e.timeReference)), e.calendarTime !== void 0 && (n.calendarTime = e.calendarTime), e.utcTime !== void 0 && (n.utcTime = e.utcTime), n;
|
|
3642
|
+
},
|
|
3643
|
+
create(e) {
|
|
3644
|
+
return x.fromPartial(e ?? {});
|
|
3645
|
+
},
|
|
3646
|
+
fromPartial(e) {
|
|
3647
|
+
var i, a;
|
|
3648
|
+
const n = ye();
|
|
3649
|
+
return n.fileName = e.fileName ?? "", n.fileFormat = e.fileFormat ?? 0, n.fileConflictAction = e.fileConflictAction ?? 0, n.canMessageFilter = e.canMessageFilter !== void 0 && e.canMessageFilter !== null ? I.fromPartial(e.canMessageFilter) : void 0, n.startTriggerSettings = ((i = e.startTriggerSettings) == null ? void 0 : i.map((r) => R.fromPartial(r))) || [], n.startTriggersOperator = e.startTriggersOperator ?? 0, n.stopTriggerSettings = ((a = e.stopTriggerSettings) == null ? void 0 : a.map((r) => R.fromPartial(r))) || [], n.stopTriggersOperator = e.stopTriggersOperator ?? 0, n.autoRestartAfterStop = e.autoRestartAfterStop ?? !1, n.writeFileHeader = e.writeFileHeader ?? void 0, n.dataInHex = e.dataInHex ?? void 0, n.idInHex = e.idInHex ?? void 0, n.decimalSeparator = e.decimalSeparator ?? void 0, n.colSeparator = e.colSeparator ?? void 0, n.dataBytesLimit = e.dataBytesLimit ?? void 0, n.numberOfTimeDecimals = e.numberOfTimeDecimals ?? void 0, n.timeReference = e.timeReference ?? void 0, n.calendarTime = e.calendarTime ?? void 0, n.utcTime = e.utcTime ?? void 0, n;
|
|
3650
|
+
}
|
|
3651
|
+
};
|
|
3652
|
+
function Ve() {
|
|
3653
|
+
return {
|
|
3654
|
+
identifier: "",
|
|
3655
|
+
name: "",
|
|
3656
|
+
description: [],
|
|
3657
|
+
readOnlyProperties: !1,
|
|
3658
|
+
readOnlyConnections: !1,
|
|
3659
|
+
disabled: !1
|
|
3660
|
+
};
|
|
3661
|
+
}
|
|
3662
|
+
const _ = {
|
|
3663
|
+
encode(e, n = new d()) {
|
|
3664
|
+
e.identifier !== "" && n.uint32(10).string(e.identifier), e.name !== "" && n.uint32(18).string(e.name);
|
|
3665
|
+
for (const i of e.description)
|
|
3666
|
+
n.uint32(26).string(i);
|
|
3667
|
+
return e.readOnlyProperties !== !1 && n.uint32(32).bool(e.readOnlyProperties), e.readOnlyConnections !== !1 && n.uint32(40).bool(e.readOnlyConnections), e.disabled !== !1 && n.uint32(48).bool(e.disabled), n;
|
|
3668
|
+
},
|
|
3669
|
+
decode(e, n) {
|
|
3670
|
+
const i = e instanceof s ? e : new s(e);
|
|
3671
|
+
let a = n === void 0 ? i.len : i.pos + n;
|
|
3672
|
+
const r = Ve();
|
|
3673
|
+
for (; i.pos < a; ) {
|
|
3674
|
+
const t = i.uint32();
|
|
3675
|
+
switch (t >>> 3) {
|
|
3676
|
+
case 1: {
|
|
3677
|
+
if (t !== 10)
|
|
3678
|
+
break;
|
|
3679
|
+
r.identifier = i.string();
|
|
3680
|
+
continue;
|
|
3681
|
+
}
|
|
3682
|
+
case 2: {
|
|
3683
|
+
if (t !== 18)
|
|
3684
|
+
break;
|
|
3685
|
+
r.name = i.string();
|
|
3686
|
+
continue;
|
|
3687
|
+
}
|
|
3688
|
+
case 3: {
|
|
3689
|
+
if (t !== 26)
|
|
3690
|
+
break;
|
|
3691
|
+
r.description.push(i.string());
|
|
3692
|
+
continue;
|
|
3693
|
+
}
|
|
3694
|
+
case 4: {
|
|
3695
|
+
if (t !== 32)
|
|
3696
|
+
break;
|
|
3697
|
+
r.readOnlyProperties = i.bool();
|
|
3698
|
+
continue;
|
|
3699
|
+
}
|
|
3700
|
+
case 5: {
|
|
3701
|
+
if (t !== 40)
|
|
3702
|
+
break;
|
|
3703
|
+
r.readOnlyConnections = i.bool();
|
|
3704
|
+
continue;
|
|
3705
|
+
}
|
|
3706
|
+
case 6: {
|
|
3707
|
+
if (t !== 48)
|
|
3708
|
+
break;
|
|
3709
|
+
r.disabled = i.bool();
|
|
3710
|
+
continue;
|
|
3711
|
+
}
|
|
3712
|
+
}
|
|
3713
|
+
if ((t & 7) === 4 || t === 0)
|
|
3714
|
+
break;
|
|
3715
|
+
i.skip(t & 7);
|
|
3716
|
+
}
|
|
3717
|
+
return r;
|
|
3718
|
+
},
|
|
3719
|
+
fromJSON(e) {
|
|
3720
|
+
return {
|
|
3721
|
+
identifier: o(e.identifier) ? globalThis.String(e.identifier) : "",
|
|
3722
|
+
name: o(e.name) ? globalThis.String(e.name) : "",
|
|
3723
|
+
description: globalThis.Array.isArray(e == null ? void 0 : e.description) ? e.description.map((n) => globalThis.String(n)) : [],
|
|
3724
|
+
readOnlyProperties: o(e.readOnlyProperties) ? globalThis.Boolean(e.readOnlyProperties) : !1,
|
|
3725
|
+
readOnlyConnections: o(e.readOnlyConnections) ? globalThis.Boolean(e.readOnlyConnections) : !1,
|
|
3726
|
+
disabled: o(e.disabled) ? globalThis.Boolean(e.disabled) : !1
|
|
3727
|
+
};
|
|
3728
|
+
},
|
|
3729
|
+
toJSON(e) {
|
|
3730
|
+
var i;
|
|
3731
|
+
const n = {};
|
|
3732
|
+
return e.identifier !== "" && (n.identifier = e.identifier), e.name !== "" && (n.name = e.name), (i = e.description) != null && i.length && (n.description = e.description), e.readOnlyProperties !== !1 && (n.readOnlyProperties = e.readOnlyProperties), e.readOnlyConnections !== !1 && (n.readOnlyConnections = e.readOnlyConnections), e.disabled !== !1 && (n.disabled = e.disabled), n;
|
|
3733
|
+
},
|
|
3734
|
+
create(e) {
|
|
3735
|
+
return _.fromPartial(e ?? {});
|
|
3736
|
+
},
|
|
3737
|
+
fromPartial(e) {
|
|
3738
|
+
var i;
|
|
3739
|
+
const n = Ve();
|
|
3740
|
+
return n.identifier = e.identifier ?? "", n.name = e.name ?? "", n.description = ((i = e.description) == null ? void 0 : i.map((a) => a)) || [], n.readOnlyProperties = e.readOnlyProperties ?? !1, n.readOnlyConnections = e.readOnlyConnections ?? !1, n.disabled = e.disabled ?? !1, n;
|
|
3741
|
+
}
|
|
3742
|
+
};
|
|
3743
|
+
function Ue() {
|
|
3744
|
+
return {
|
|
3745
|
+
baseNode: void 0,
|
|
3746
|
+
isDataGenerator: !1,
|
|
3747
|
+
channelSettings: void 0,
|
|
3748
|
+
logReplaySettings: void 0,
|
|
3749
|
+
trafficGeneratorSettings: void 0
|
|
3750
|
+
};
|
|
3751
|
+
}
|
|
3752
|
+
const J = {
|
|
3753
|
+
encode(e, n = new d()) {
|
|
3754
|
+
return e.baseNode !== void 0 && _.encode(e.baseNode, n.uint32(10).fork()).join(), e.isDataGenerator !== !1 && n.uint32(16).bool(e.isDataGenerator), e.channelSettings !== void 0 && v.encode(e.channelSettings, n.uint32(26).fork()).join(), e.logReplaySettings !== void 0 && k.encode(e.logReplaySettings, n.uint32(34).fork()).join(), e.trafficGeneratorSettings !== void 0 && P.encode(e.trafficGeneratorSettings, n.uint32(42).fork()).join(), n;
|
|
3755
|
+
},
|
|
3756
|
+
decode(e, n) {
|
|
3757
|
+
const i = e instanceof s ? e : new s(e);
|
|
3758
|
+
let a = n === void 0 ? i.len : i.pos + n;
|
|
3759
|
+
const r = Ue();
|
|
3760
|
+
for (; i.pos < a; ) {
|
|
3761
|
+
const t = i.uint32();
|
|
3762
|
+
switch (t >>> 3) {
|
|
3763
|
+
case 1: {
|
|
3764
|
+
if (t !== 10)
|
|
3765
|
+
break;
|
|
3766
|
+
r.baseNode = _.decode(i, i.uint32());
|
|
3767
|
+
continue;
|
|
3768
|
+
}
|
|
3769
|
+
case 2: {
|
|
3770
|
+
if (t !== 16)
|
|
3771
|
+
break;
|
|
3772
|
+
r.isDataGenerator = i.bool();
|
|
3773
|
+
continue;
|
|
3774
|
+
}
|
|
3775
|
+
case 3: {
|
|
3776
|
+
if (t !== 26)
|
|
3777
|
+
break;
|
|
3778
|
+
r.channelSettings = v.decode(i, i.uint32());
|
|
3779
|
+
continue;
|
|
3780
|
+
}
|
|
3781
|
+
case 4: {
|
|
3782
|
+
if (t !== 34)
|
|
3783
|
+
break;
|
|
3784
|
+
r.logReplaySettings = k.decode(i, i.uint32());
|
|
3785
|
+
continue;
|
|
3786
|
+
}
|
|
3787
|
+
case 5: {
|
|
3788
|
+
if (t !== 42)
|
|
3789
|
+
break;
|
|
3790
|
+
r.trafficGeneratorSettings = P.decode(i, i.uint32());
|
|
3791
|
+
continue;
|
|
3792
|
+
}
|
|
3793
|
+
}
|
|
3794
|
+
if ((t & 7) === 4 || t === 0)
|
|
3795
|
+
break;
|
|
3796
|
+
i.skip(t & 7);
|
|
3797
|
+
}
|
|
3798
|
+
return r;
|
|
3799
|
+
},
|
|
3800
|
+
fromJSON(e) {
|
|
3801
|
+
return {
|
|
3802
|
+
baseNode: o(e.baseNode) ? _.fromJSON(e.baseNode) : void 0,
|
|
3803
|
+
isDataGenerator: o(e.isDataGenerator) ? globalThis.Boolean(e.isDataGenerator) : !1,
|
|
3804
|
+
channelSettings: o(e.channelSettings) ? v.fromJSON(e.channelSettings) : void 0,
|
|
3805
|
+
logReplaySettings: o(e.logReplaySettings) ? k.fromJSON(e.logReplaySettings) : void 0,
|
|
3806
|
+
trafficGeneratorSettings: o(e.trafficGeneratorSettings) ? P.fromJSON(e.trafficGeneratorSettings) : void 0
|
|
3807
|
+
};
|
|
3808
|
+
},
|
|
3809
|
+
toJSON(e) {
|
|
3810
|
+
const n = {};
|
|
3811
|
+
return e.baseNode !== void 0 && (n.baseNode = _.toJSON(e.baseNode)), e.isDataGenerator !== !1 && (n.isDataGenerator = e.isDataGenerator), e.channelSettings !== void 0 && (n.channelSettings = v.toJSON(e.channelSettings)), e.logReplaySettings !== void 0 && (n.logReplaySettings = k.toJSON(e.logReplaySettings)), e.trafficGeneratorSettings !== void 0 && (n.trafficGeneratorSettings = P.toJSON(e.trafficGeneratorSettings)), n;
|
|
3812
|
+
},
|
|
3813
|
+
create(e) {
|
|
3814
|
+
return J.fromPartial(e ?? {});
|
|
3815
|
+
},
|
|
3816
|
+
fromPartial(e) {
|
|
3817
|
+
const n = Ue();
|
|
3818
|
+
return n.baseNode = e.baseNode !== void 0 && e.baseNode !== null ? _.fromPartial(e.baseNode) : void 0, n.isDataGenerator = e.isDataGenerator ?? !1, n.channelSettings = e.channelSettings !== void 0 && e.channelSettings !== null ? v.fromPartial(e.channelSettings) : void 0, n.logReplaySettings = e.logReplaySettings !== void 0 && e.logReplaySettings !== null ? k.fromPartial(e.logReplaySettings) : void 0, n.trafficGeneratorSettings = e.trafficGeneratorSettings !== void 0 && e.trafficGeneratorSettings !== null ? P.fromPartial(e.trafficGeneratorSettings) : void 0, n;
|
|
3819
|
+
}
|
|
3820
|
+
};
|
|
3821
|
+
function Be() {
|
|
3822
|
+
return {
|
|
3823
|
+
baseNode: void 0,
|
|
3824
|
+
connectedNodes: [],
|
|
3825
|
+
canMessageFilterSettings: void 0,
|
|
3826
|
+
databasesSettings: void 0,
|
|
3827
|
+
interpreterSettings: void 0,
|
|
3828
|
+
extensionSettings: void 0
|
|
3829
|
+
};
|
|
3830
|
+
}
|
|
3831
|
+
const w = {
|
|
3832
|
+
encode(e, n = new d()) {
|
|
3833
|
+
e.baseNode !== void 0 && _.encode(e.baseNode, n.uint32(10).fork()).join();
|
|
3834
|
+
for (const i of e.connectedNodes)
|
|
3835
|
+
n.uint32(18).string(i);
|
|
3836
|
+
return e.canMessageFilterSettings !== void 0 && I.encode(e.canMessageFilterSettings, n.uint32(26).fork()).join(), e.databasesSettings !== void 0 && D.encode(e.databasesSettings, n.uint32(34).fork()).join(), e.interpreterSettings !== void 0 && b.encode(e.interpreterSettings, n.uint32(42).fork()).join(), e.extensionSettings !== void 0 && V.encode(e.extensionSettings, n.uint32(50).fork()).join(), n;
|
|
3837
|
+
},
|
|
3838
|
+
decode(e, n) {
|
|
3839
|
+
const i = e instanceof s ? e : new s(e);
|
|
3840
|
+
let a = n === void 0 ? i.len : i.pos + n;
|
|
3841
|
+
const r = Be();
|
|
3842
|
+
for (; i.pos < a; ) {
|
|
3843
|
+
const t = i.uint32();
|
|
3844
|
+
switch (t >>> 3) {
|
|
3845
|
+
case 1: {
|
|
3846
|
+
if (t !== 10)
|
|
3847
|
+
break;
|
|
3848
|
+
r.baseNode = _.decode(i, i.uint32());
|
|
3849
|
+
continue;
|
|
3850
|
+
}
|
|
3851
|
+
case 2: {
|
|
3852
|
+
if (t !== 18)
|
|
3853
|
+
break;
|
|
3854
|
+
r.connectedNodes.push(i.string());
|
|
3855
|
+
continue;
|
|
3856
|
+
}
|
|
3857
|
+
case 3: {
|
|
3858
|
+
if (t !== 26)
|
|
3859
|
+
break;
|
|
3860
|
+
r.canMessageFilterSettings = I.decode(i, i.uint32());
|
|
3861
|
+
continue;
|
|
3862
|
+
}
|
|
3863
|
+
case 4: {
|
|
3864
|
+
if (t !== 34)
|
|
3865
|
+
break;
|
|
3866
|
+
r.databasesSettings = D.decode(i, i.uint32());
|
|
3867
|
+
continue;
|
|
3868
|
+
}
|
|
3869
|
+
case 5: {
|
|
3870
|
+
if (t !== 42)
|
|
3871
|
+
break;
|
|
3872
|
+
r.interpreterSettings = b.decode(i, i.uint32());
|
|
3873
|
+
continue;
|
|
3874
|
+
}
|
|
3875
|
+
case 6: {
|
|
3876
|
+
if (t !== 50)
|
|
3877
|
+
break;
|
|
3878
|
+
r.extensionSettings = V.decode(i, i.uint32());
|
|
3879
|
+
continue;
|
|
3880
|
+
}
|
|
3881
|
+
}
|
|
3882
|
+
if ((t & 7) === 4 || t === 0)
|
|
3883
|
+
break;
|
|
3884
|
+
i.skip(t & 7);
|
|
3885
|
+
}
|
|
3886
|
+
return r;
|
|
3887
|
+
},
|
|
3888
|
+
fromJSON(e) {
|
|
3889
|
+
return {
|
|
3890
|
+
baseNode: o(e.baseNode) ? _.fromJSON(e.baseNode) : void 0,
|
|
3891
|
+
connectedNodes: globalThis.Array.isArray(e == null ? void 0 : e.connectedNodes) ? e.connectedNodes.map((n) => globalThis.String(n)) : [],
|
|
3892
|
+
canMessageFilterSettings: o(e.canMessageFilterSettings) ? I.fromJSON(e.canMessageFilterSettings) : void 0,
|
|
3893
|
+
databasesSettings: o(e.databasesSettings) ? D.fromJSON(e.databasesSettings) : void 0,
|
|
3894
|
+
interpreterSettings: o(e.interpreterSettings) ? b.fromJSON(e.interpreterSettings) : void 0,
|
|
3895
|
+
extensionSettings: o(e.extensionSettings) ? V.fromJSON(e.extensionSettings) : void 0
|
|
3896
|
+
};
|
|
3897
|
+
},
|
|
3898
|
+
toJSON(e) {
|
|
3899
|
+
var i;
|
|
3900
|
+
const n = {};
|
|
3901
|
+
return e.baseNode !== void 0 && (n.baseNode = _.toJSON(e.baseNode)), (i = e.connectedNodes) != null && i.length && (n.connectedNodes = e.connectedNodes), e.canMessageFilterSettings !== void 0 && (n.canMessageFilterSettings = I.toJSON(e.canMessageFilterSettings)), e.databasesSettings !== void 0 && (n.databasesSettings = D.toJSON(e.databasesSettings)), e.interpreterSettings !== void 0 && (n.interpreterSettings = b.toJSON(e.interpreterSettings)), e.extensionSettings !== void 0 && (n.extensionSettings = V.toJSON(e.extensionSettings)), n;
|
|
3902
|
+
},
|
|
3903
|
+
create(e) {
|
|
3904
|
+
return w.fromPartial(e ?? {});
|
|
3905
|
+
},
|
|
3906
|
+
fromPartial(e) {
|
|
3907
|
+
var i;
|
|
3908
|
+
const n = Be();
|
|
3909
|
+
return n.baseNode = e.baseNode !== void 0 && e.baseNode !== null ? _.fromPartial(e.baseNode) : void 0, n.connectedNodes = ((i = e.connectedNodes) == null ? void 0 : i.map((a) => a)) || [], n.canMessageFilterSettings = e.canMessageFilterSettings !== void 0 && e.canMessageFilterSettings !== null ? I.fromPartial(e.canMessageFilterSettings) : void 0, n.databasesSettings = e.databasesSettings !== void 0 && e.databasesSettings !== null ? D.fromPartial(e.databasesSettings) : void 0, n.interpreterSettings = e.interpreterSettings !== void 0 && e.interpreterSettings !== null ? b.fromPartial(e.interpreterSettings) : void 0, n.extensionSettings = e.extensionSettings !== void 0 && e.extensionSettings !== null ? V.fromPartial(e.extensionSettings) : void 0, n;
|
|
3910
|
+
}
|
|
3911
|
+
};
|
|
3912
|
+
function xe() {
|
|
3913
|
+
return { baseNode: void 0, connectedNodes: [], messageLoggerSettings: void 0 };
|
|
3914
|
+
}
|
|
3915
|
+
const H = {
|
|
3916
|
+
encode(e, n = new d()) {
|
|
3917
|
+
e.baseNode !== void 0 && _.encode(e.baseNode, n.uint32(10).fork()).join();
|
|
3918
|
+
for (const i of e.connectedNodes)
|
|
3919
|
+
n.uint32(18).string(i);
|
|
3920
|
+
return e.messageLoggerSettings !== void 0 && x.encode(e.messageLoggerSettings, n.uint32(26).fork()).join(), n;
|
|
3921
|
+
},
|
|
3922
|
+
decode(e, n) {
|
|
3923
|
+
const i = e instanceof s ? e : new s(e);
|
|
3924
|
+
let a = n === void 0 ? i.len : i.pos + n;
|
|
3925
|
+
const r = xe();
|
|
3926
|
+
for (; i.pos < a; ) {
|
|
3927
|
+
const t = i.uint32();
|
|
3928
|
+
switch (t >>> 3) {
|
|
3929
|
+
case 1: {
|
|
3930
|
+
if (t !== 10)
|
|
3931
|
+
break;
|
|
3932
|
+
r.baseNode = _.decode(i, i.uint32());
|
|
3933
|
+
continue;
|
|
3934
|
+
}
|
|
3935
|
+
case 2: {
|
|
3936
|
+
if (t !== 18)
|
|
3937
|
+
break;
|
|
3938
|
+
r.connectedNodes.push(i.string());
|
|
3939
|
+
continue;
|
|
3940
|
+
}
|
|
3941
|
+
case 3: {
|
|
3942
|
+
if (t !== 26)
|
|
3943
|
+
break;
|
|
3944
|
+
r.messageLoggerSettings = x.decode(i, i.uint32());
|
|
3945
|
+
continue;
|
|
3946
|
+
}
|
|
3947
|
+
}
|
|
3948
|
+
if ((t & 7) === 4 || t === 0)
|
|
3949
|
+
break;
|
|
3950
|
+
i.skip(t & 7);
|
|
3951
|
+
}
|
|
3952
|
+
return r;
|
|
3953
|
+
},
|
|
3954
|
+
fromJSON(e) {
|
|
3955
|
+
return {
|
|
3956
|
+
baseNode: o(e.baseNode) ? _.fromJSON(e.baseNode) : void 0,
|
|
3957
|
+
connectedNodes: globalThis.Array.isArray(e == null ? void 0 : e.connectedNodes) ? e.connectedNodes.map((n) => globalThis.String(n)) : [],
|
|
3958
|
+
messageLoggerSettings: o(e.messageLoggerSettings) ? x.fromJSON(e.messageLoggerSettings) : void 0
|
|
3959
|
+
};
|
|
3960
|
+
},
|
|
3961
|
+
toJSON(e) {
|
|
3962
|
+
var i;
|
|
3963
|
+
const n = {};
|
|
3964
|
+
return e.baseNode !== void 0 && (n.baseNode = _.toJSON(e.baseNode)), (i = e.connectedNodes) != null && i.length && (n.connectedNodes = e.connectedNodes), e.messageLoggerSettings !== void 0 && (n.messageLoggerSettings = x.toJSON(e.messageLoggerSettings)), n;
|
|
3965
|
+
},
|
|
3966
|
+
create(e) {
|
|
3967
|
+
return H.fromPartial(e ?? {});
|
|
3968
|
+
},
|
|
3969
|
+
fromPartial(e) {
|
|
3970
|
+
var i;
|
|
3971
|
+
const n = xe();
|
|
3972
|
+
return n.baseNode = e.baseNode !== void 0 && e.baseNode !== null ? _.fromPartial(e.baseNode) : void 0, n.connectedNodes = ((i = e.connectedNodes) == null ? void 0 : i.map((a) => a)) || [], n.messageLoggerSettings = e.messageLoggerSettings !== void 0 && e.messageLoggerSettings !== null ? x.fromPartial(e.messageLoggerSettings) : void 0, n;
|
|
3973
|
+
}
|
|
3974
|
+
};
|
|
3975
|
+
function Je() {
|
|
3976
|
+
return { sources: [], dataProcessors: [], targets: [], language: "" };
|
|
3977
|
+
}
|
|
3978
|
+
const Zn = {
|
|
3979
|
+
encode(e, n = new d()) {
|
|
3980
|
+
for (const i of e.sources)
|
|
3981
|
+
J.encode(i, n.uint32(10).fork()).join();
|
|
3982
|
+
for (const i of e.dataProcessors)
|
|
3983
|
+
w.encode(i, n.uint32(18).fork()).join();
|
|
3984
|
+
for (const i of e.targets)
|
|
3985
|
+
H.encode(i, n.uint32(26).fork()).join();
|
|
3986
|
+
return e.language !== "" && n.uint32(34).string(e.language), n;
|
|
3987
|
+
},
|
|
3988
|
+
decode(e, n) {
|
|
3989
|
+
const i = e instanceof s ? e : new s(e);
|
|
3990
|
+
let a = n === void 0 ? i.len : i.pos + n;
|
|
3991
|
+
const r = Je();
|
|
3992
|
+
for (; i.pos < a; ) {
|
|
3993
|
+
const t = i.uint32();
|
|
3994
|
+
switch (t >>> 3) {
|
|
3995
|
+
case 1: {
|
|
3996
|
+
if (t !== 10)
|
|
3997
|
+
break;
|
|
3998
|
+
r.sources.push(J.decode(i, i.uint32()));
|
|
3999
|
+
continue;
|
|
4000
|
+
}
|
|
4001
|
+
case 2: {
|
|
4002
|
+
if (t !== 18)
|
|
4003
|
+
break;
|
|
4004
|
+
r.dataProcessors.push(w.decode(i, i.uint32()));
|
|
4005
|
+
continue;
|
|
4006
|
+
}
|
|
4007
|
+
case 3: {
|
|
4008
|
+
if (t !== 26)
|
|
4009
|
+
break;
|
|
4010
|
+
r.targets.push(H.decode(i, i.uint32()));
|
|
4011
|
+
continue;
|
|
4012
|
+
}
|
|
4013
|
+
case 4: {
|
|
4014
|
+
if (t !== 34)
|
|
4015
|
+
break;
|
|
4016
|
+
r.language = i.string();
|
|
4017
|
+
continue;
|
|
4018
|
+
}
|
|
4019
|
+
}
|
|
4020
|
+
if ((t & 7) === 4 || t === 0)
|
|
4021
|
+
break;
|
|
4022
|
+
i.skip(t & 7);
|
|
4023
|
+
}
|
|
4024
|
+
return r;
|
|
4025
|
+
},
|
|
4026
|
+
fromJSON(e) {
|
|
4027
|
+
return {
|
|
4028
|
+
sources: globalThis.Array.isArray(e == null ? void 0 : e.sources) ? e.sources.map((n) => J.fromJSON(n)) : [],
|
|
4029
|
+
dataProcessors: globalThis.Array.isArray(e == null ? void 0 : e.dataProcessors) ? e.dataProcessors.map((n) => w.fromJSON(n)) : [],
|
|
4030
|
+
targets: globalThis.Array.isArray(e == null ? void 0 : e.targets) ? e.targets.map((n) => H.fromJSON(n)) : [],
|
|
4031
|
+
language: o(e.language) ? globalThis.String(e.language) : ""
|
|
4032
|
+
};
|
|
4033
|
+
},
|
|
4034
|
+
toJSON(e) {
|
|
4035
|
+
var i, a, r;
|
|
4036
|
+
const n = {};
|
|
4037
|
+
return (i = e.sources) != null && i.length && (n.sources = e.sources.map((t) => J.toJSON(t))), (a = e.dataProcessors) != null && a.length && (n.dataProcessors = e.dataProcessors.map((t) => w.toJSON(t))), (r = e.targets) != null && r.length && (n.targets = e.targets.map((t) => H.toJSON(t))), e.language !== "" && (n.language = e.language), n;
|
|
4038
|
+
},
|
|
4039
|
+
create(e) {
|
|
4040
|
+
return Zn.fromPartial(e ?? {});
|
|
4041
|
+
},
|
|
4042
|
+
fromPartial(e) {
|
|
4043
|
+
var i, a, r;
|
|
4044
|
+
const n = Je();
|
|
4045
|
+
return n.sources = ((i = e.sources) == null ? void 0 : i.map((t) => J.fromPartial(t))) || [], n.dataProcessors = ((a = e.dataProcessors) == null ? void 0 : a.map((t) => w.fromPartial(t))) || [], n.targets = ((r = e.targets) == null ? void 0 : r.map((t) => H.fromPartial(t))) || [], n.language = e.language ?? "", n;
|
|
4046
|
+
}
|
|
4047
|
+
};
|
|
4048
|
+
function zn(e) {
|
|
4049
|
+
return typeof e == "object" && e !== null;
|
|
4050
|
+
}
|
|
4051
|
+
function o(e) {
|
|
4052
|
+
return e != null;
|
|
4053
|
+
}
|
|
4054
|
+
export {
|
|
4055
|
+
D as $,
|
|
4056
|
+
hn as A,
|
|
4057
|
+
Dn as B,
|
|
4058
|
+
ln as C,
|
|
4059
|
+
bn as D,
|
|
4060
|
+
yn as E,
|
|
4061
|
+
M as F,
|
|
4062
|
+
Vn as G,
|
|
4063
|
+
Un as H,
|
|
4064
|
+
Bn as I,
|
|
4065
|
+
xn as J,
|
|
4066
|
+
Jn as K,
|
|
4067
|
+
Nn as L,
|
|
4068
|
+
wn as M,
|
|
4069
|
+
Hn as N,
|
|
4070
|
+
Xn as O,
|
|
4071
|
+
Qn as P,
|
|
4072
|
+
A as Q,
|
|
4073
|
+
C as R,
|
|
4074
|
+
h as S,
|
|
4075
|
+
pn as T,
|
|
4076
|
+
p as U,
|
|
4077
|
+
v as V,
|
|
4078
|
+
L as W,
|
|
4079
|
+
k as X,
|
|
4080
|
+
Y,
|
|
4081
|
+
P as Z,
|
|
4082
|
+
I as _,
|
|
4083
|
+
_n as a,
|
|
4084
|
+
b as a0,
|
|
4085
|
+
y as a1,
|
|
4086
|
+
V as a2,
|
|
4087
|
+
U as a3,
|
|
4088
|
+
B as a4,
|
|
4089
|
+
R as a5,
|
|
4090
|
+
x as a6,
|
|
4091
|
+
_ as a7,
|
|
4092
|
+
J as a8,
|
|
4093
|
+
w as a9,
|
|
4094
|
+
H as aa,
|
|
4095
|
+
Zn as ab,
|
|
4096
|
+
tn as ac,
|
|
4097
|
+
rn as ad,
|
|
4098
|
+
an as ae,
|
|
4099
|
+
on as af,
|
|
4100
|
+
sn as ag,
|
|
4101
|
+
un as ah,
|
|
4102
|
+
S as ai,
|
|
4103
|
+
q as aj,
|
|
4104
|
+
dn as ak,
|
|
4105
|
+
d as al,
|
|
4106
|
+
s as am,
|
|
4107
|
+
An as b,
|
|
4108
|
+
cn as c,
|
|
4109
|
+
c as d,
|
|
4110
|
+
O as e,
|
|
4111
|
+
m as f,
|
|
4112
|
+
K as g,
|
|
4113
|
+
Rn as h,
|
|
4114
|
+
g as i,
|
|
4115
|
+
Sn as j,
|
|
4116
|
+
G as k,
|
|
4117
|
+
En as l,
|
|
4118
|
+
On as m,
|
|
4119
|
+
Tn as n,
|
|
4120
|
+
Mn as o,
|
|
4121
|
+
Fn as p,
|
|
4122
|
+
mn as q,
|
|
4123
|
+
Ln as r,
|
|
4124
|
+
gn as s,
|
|
4125
|
+
Gn as t,
|
|
4126
|
+
Cn as u,
|
|
4127
|
+
Oe as v,
|
|
4128
|
+
Ie as w,
|
|
4129
|
+
vn as x,
|
|
4130
|
+
kn as y,
|
|
4131
|
+
Pn as z
|
|
4132
|
+
};
|