Files
ham/protocol/meshtastic/pb/admin.pb.go
maze e2b69d92fd
Some checks failed
Run tests / test (1.25) (push) Failing after 1m1s
Run tests / test (stable) (push) Failing after 1m0s
meshtastic: support
2026-03-06 09:24:56 +01:00

2481 lines
85 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v6.33.4
// source: meshtastic/admin.proto
package pb
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Firmware update mode for OTA updates
type OTAMode int32
const (
// Do not reboot into OTA mode
OTAMode_NO_REBOOT_OTA OTAMode = 0
// Reboot into OTA mode for BLE firmware update
OTAMode_OTA_BLE OTAMode = 1
// Reboot into OTA mode for WiFi firmware update
OTAMode_OTA_WIFI OTAMode = 2
)
// Enum value maps for OTAMode.
var (
OTAMode_name = map[int32]string{
0: "NO_REBOOT_OTA",
1: "OTA_BLE",
2: "OTA_WIFI",
}
OTAMode_value = map[string]int32{
"NO_REBOOT_OTA": 0,
"OTA_BLE": 1,
"OTA_WIFI": 2,
}
)
func (x OTAMode) Enum() *OTAMode {
p := new(OTAMode)
*p = x
return p
}
func (x OTAMode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (OTAMode) Descriptor() protoreflect.EnumDescriptor {
return file_meshtastic_admin_proto_enumTypes[0].Descriptor()
}
func (OTAMode) Type() protoreflect.EnumType {
return &file_meshtastic_admin_proto_enumTypes[0]
}
func (x OTAMode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use OTAMode.Descriptor instead.
func (OTAMode) EnumDescriptor() ([]byte, []int) {
return file_meshtastic_admin_proto_rawDescGZIP(), []int{0}
}
// TODO: REPLACE
type AdminMessage_ConfigType int32
const (
// TODO: REPLACE
AdminMessage_DEVICE_CONFIG AdminMessage_ConfigType = 0
// TODO: REPLACE
AdminMessage_POSITION_CONFIG AdminMessage_ConfigType = 1
// TODO: REPLACE
AdminMessage_POWER_CONFIG AdminMessage_ConfigType = 2
// TODO: REPLACE
AdminMessage_NETWORK_CONFIG AdminMessage_ConfigType = 3
// TODO: REPLACE
AdminMessage_DISPLAY_CONFIG AdminMessage_ConfigType = 4
// TODO: REPLACE
AdminMessage_LORA_CONFIG AdminMessage_ConfigType = 5
// TODO: REPLACE
AdminMessage_BLUETOOTH_CONFIG AdminMessage_ConfigType = 6
// TODO: REPLACE
AdminMessage_SECURITY_CONFIG AdminMessage_ConfigType = 7
// Session key config
AdminMessage_SESSIONKEY_CONFIG AdminMessage_ConfigType = 8
// device-ui config
AdminMessage_DEVICEUI_CONFIG AdminMessage_ConfigType = 9
)
// Enum value maps for AdminMessage_ConfigType.
var (
AdminMessage_ConfigType_name = map[int32]string{
0: "DEVICE_CONFIG",
1: "POSITION_CONFIG",
2: "POWER_CONFIG",
3: "NETWORK_CONFIG",
4: "DISPLAY_CONFIG",
5: "LORA_CONFIG",
6: "BLUETOOTH_CONFIG",
7: "SECURITY_CONFIG",
8: "SESSIONKEY_CONFIG",
9: "DEVICEUI_CONFIG",
}
AdminMessage_ConfigType_value = map[string]int32{
"DEVICE_CONFIG": 0,
"POSITION_CONFIG": 1,
"POWER_CONFIG": 2,
"NETWORK_CONFIG": 3,
"DISPLAY_CONFIG": 4,
"LORA_CONFIG": 5,
"BLUETOOTH_CONFIG": 6,
"SECURITY_CONFIG": 7,
"SESSIONKEY_CONFIG": 8,
"DEVICEUI_CONFIG": 9,
}
)
func (x AdminMessage_ConfigType) Enum() *AdminMessage_ConfigType {
p := new(AdminMessage_ConfigType)
*p = x
return p
}
func (x AdminMessage_ConfigType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (AdminMessage_ConfigType) Descriptor() protoreflect.EnumDescriptor {
return file_meshtastic_admin_proto_enumTypes[1].Descriptor()
}
func (AdminMessage_ConfigType) Type() protoreflect.EnumType {
return &file_meshtastic_admin_proto_enumTypes[1]
}
func (x AdminMessage_ConfigType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use AdminMessage_ConfigType.Descriptor instead.
func (AdminMessage_ConfigType) EnumDescriptor() ([]byte, []int) {
return file_meshtastic_admin_proto_rawDescGZIP(), []int{0, 0}
}
// TODO: REPLACE
type AdminMessage_ModuleConfigType int32
const (
// TODO: REPLACE
AdminMessage_MQTT_CONFIG AdminMessage_ModuleConfigType = 0
// TODO: REPLACE
AdminMessage_SERIAL_CONFIG AdminMessage_ModuleConfigType = 1
// TODO: REPLACE
AdminMessage_EXTNOTIF_CONFIG AdminMessage_ModuleConfigType = 2
// TODO: REPLACE
AdminMessage_STOREFORWARD_CONFIG AdminMessage_ModuleConfigType = 3
// TODO: REPLACE
AdminMessage_RANGETEST_CONFIG AdminMessage_ModuleConfigType = 4
// TODO: REPLACE
AdminMessage_TELEMETRY_CONFIG AdminMessage_ModuleConfigType = 5
// TODO: REPLACE
AdminMessage_CANNEDMSG_CONFIG AdminMessage_ModuleConfigType = 6
// TODO: REPLACE
AdminMessage_AUDIO_CONFIG AdminMessage_ModuleConfigType = 7
// TODO: REPLACE
AdminMessage_REMOTEHARDWARE_CONFIG AdminMessage_ModuleConfigType = 8
// TODO: REPLACE
AdminMessage_NEIGHBORINFO_CONFIG AdminMessage_ModuleConfigType = 9
// TODO: REPLACE
AdminMessage_AMBIENTLIGHTING_CONFIG AdminMessage_ModuleConfigType = 10
// TODO: REPLACE
AdminMessage_DETECTIONSENSOR_CONFIG AdminMessage_ModuleConfigType = 11
// TODO: REPLACE
AdminMessage_PAXCOUNTER_CONFIG AdminMessage_ModuleConfigType = 12
// TODO: REPLACE
AdminMessage_STATUSMESSAGE_CONFIG AdminMessage_ModuleConfigType = 13
// Traffic management module config
AdminMessage_TRAFFICMANAGEMENT_CONFIG AdminMessage_ModuleConfigType = 14
// TAK module config
AdminMessage_TAK_CONFIG AdminMessage_ModuleConfigType = 15
)
// Enum value maps for AdminMessage_ModuleConfigType.
var (
AdminMessage_ModuleConfigType_name = map[int32]string{
0: "MQTT_CONFIG",
1: "SERIAL_CONFIG",
2: "EXTNOTIF_CONFIG",
3: "STOREFORWARD_CONFIG",
4: "RANGETEST_CONFIG",
5: "TELEMETRY_CONFIG",
6: "CANNEDMSG_CONFIG",
7: "AUDIO_CONFIG",
8: "REMOTEHARDWARE_CONFIG",
9: "NEIGHBORINFO_CONFIG",
10: "AMBIENTLIGHTING_CONFIG",
11: "DETECTIONSENSOR_CONFIG",
12: "PAXCOUNTER_CONFIG",
13: "STATUSMESSAGE_CONFIG",
14: "TRAFFICMANAGEMENT_CONFIG",
15: "TAK_CONFIG",
}
AdminMessage_ModuleConfigType_value = map[string]int32{
"MQTT_CONFIG": 0,
"SERIAL_CONFIG": 1,
"EXTNOTIF_CONFIG": 2,
"STOREFORWARD_CONFIG": 3,
"RANGETEST_CONFIG": 4,
"TELEMETRY_CONFIG": 5,
"CANNEDMSG_CONFIG": 6,
"AUDIO_CONFIG": 7,
"REMOTEHARDWARE_CONFIG": 8,
"NEIGHBORINFO_CONFIG": 9,
"AMBIENTLIGHTING_CONFIG": 10,
"DETECTIONSENSOR_CONFIG": 11,
"PAXCOUNTER_CONFIG": 12,
"STATUSMESSAGE_CONFIG": 13,
"TRAFFICMANAGEMENT_CONFIG": 14,
"TAK_CONFIG": 15,
}
)
func (x AdminMessage_ModuleConfigType) Enum() *AdminMessage_ModuleConfigType {
p := new(AdminMessage_ModuleConfigType)
*p = x
return p
}
func (x AdminMessage_ModuleConfigType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (AdminMessage_ModuleConfigType) Descriptor() protoreflect.EnumDescriptor {
return file_meshtastic_admin_proto_enumTypes[2].Descriptor()
}
func (AdminMessage_ModuleConfigType) Type() protoreflect.EnumType {
return &file_meshtastic_admin_proto_enumTypes[2]
}
func (x AdminMessage_ModuleConfigType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use AdminMessage_ModuleConfigType.Descriptor instead.
func (AdminMessage_ModuleConfigType) EnumDescriptor() ([]byte, []int) {
return file_meshtastic_admin_proto_rawDescGZIP(), []int{0, 1}
}
type AdminMessage_BackupLocation int32
const (
// Backup to the internal flash
AdminMessage_FLASH AdminMessage_BackupLocation = 0
// Backup to the SD card
AdminMessage_SD AdminMessage_BackupLocation = 1
)
// Enum value maps for AdminMessage_BackupLocation.
var (
AdminMessage_BackupLocation_name = map[int32]string{
0: "FLASH",
1: "SD",
}
AdminMessage_BackupLocation_value = map[string]int32{
"FLASH": 0,
"SD": 1,
}
)
func (x AdminMessage_BackupLocation) Enum() *AdminMessage_BackupLocation {
p := new(AdminMessage_BackupLocation)
*p = x
return p
}
func (x AdminMessage_BackupLocation) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (AdminMessage_BackupLocation) Descriptor() protoreflect.EnumDescriptor {
return file_meshtastic_admin_proto_enumTypes[3].Descriptor()
}
func (AdminMessage_BackupLocation) Type() protoreflect.EnumType {
return &file_meshtastic_admin_proto_enumTypes[3]
}
func (x AdminMessage_BackupLocation) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use AdminMessage_BackupLocation.Descriptor instead.
func (AdminMessage_BackupLocation) EnumDescriptor() ([]byte, []int) {
return file_meshtastic_admin_proto_rawDescGZIP(), []int{0, 2}
}
// Three stages of this request.
type KeyVerificationAdmin_MessageType int32
const (
// This is the first stage, where a client initiates
KeyVerificationAdmin_INITIATE_VERIFICATION KeyVerificationAdmin_MessageType = 0
// After the nonce has been returned over the mesh, the client prompts for the security number
// And uses this message to provide it to the node.
KeyVerificationAdmin_PROVIDE_SECURITY_NUMBER KeyVerificationAdmin_MessageType = 1
// Once the user has compared the verification message, this message notifies the node.
KeyVerificationAdmin_DO_VERIFY KeyVerificationAdmin_MessageType = 2
// This is the cancel path, can be taken at any point
KeyVerificationAdmin_DO_NOT_VERIFY KeyVerificationAdmin_MessageType = 3
)
// Enum value maps for KeyVerificationAdmin_MessageType.
var (
KeyVerificationAdmin_MessageType_name = map[int32]string{
0: "INITIATE_VERIFICATION",
1: "PROVIDE_SECURITY_NUMBER",
2: "DO_VERIFY",
3: "DO_NOT_VERIFY",
}
KeyVerificationAdmin_MessageType_value = map[string]int32{
"INITIATE_VERIFICATION": 0,
"PROVIDE_SECURITY_NUMBER": 1,
"DO_VERIFY": 2,
"DO_NOT_VERIFY": 3,
}
)
func (x KeyVerificationAdmin_MessageType) Enum() *KeyVerificationAdmin_MessageType {
p := new(KeyVerificationAdmin_MessageType)
*p = x
return p
}
func (x KeyVerificationAdmin_MessageType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (KeyVerificationAdmin_MessageType) Descriptor() protoreflect.EnumDescriptor {
return file_meshtastic_admin_proto_enumTypes[4].Descriptor()
}
func (KeyVerificationAdmin_MessageType) Type() protoreflect.EnumType {
return &file_meshtastic_admin_proto_enumTypes[4]
}
func (x KeyVerificationAdmin_MessageType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use KeyVerificationAdmin_MessageType.Descriptor instead.
func (KeyVerificationAdmin_MessageType) EnumDescriptor() ([]byte, []int) {
return file_meshtastic_admin_proto_rawDescGZIP(), []int{4, 0}
}
// This message is handled by the Admin module and is responsible for all settings/channel read/write operations.
// This message is used to do settings operations to both remote AND local nodes.
// (Prior to 1.2 these operations were done via special ToRadio operations)
type AdminMessage struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The node generates this key and sends it with any get_x_response packets.
// The client MUST include the same key with any set_x commands. Key expires after 300 seconds.
// Prevents replay attacks for admin messages.
SessionPasskey []byte `protobuf:"bytes,101,opt,name=session_passkey,json=sessionPasskey,proto3" json:"sessionPasskey,omitempty"`
// TODO: REPLACE
//
// Types that are valid to be assigned to PayloadVariant:
//
// *AdminMessage_GetChannelRequest
// *AdminMessage_GetChannelResponse
// *AdminMessage_GetOwnerRequest
// *AdminMessage_GetOwnerResponse
// *AdminMessage_GetConfigRequest
// *AdminMessage_GetConfigResponse
// *AdminMessage_GetModuleConfigRequest
// *AdminMessage_GetModuleConfigResponse
// *AdminMessage_GetCannedMessageModuleMessagesRequest
// *AdminMessage_GetCannedMessageModuleMessagesResponse
// *AdminMessage_GetDeviceMetadataRequest
// *AdminMessage_GetDeviceMetadataResponse
// *AdminMessage_GetRingtoneRequest
// *AdminMessage_GetRingtoneResponse
// *AdminMessage_GetDeviceConnectionStatusRequest
// *AdminMessage_GetDeviceConnectionStatusResponse
// *AdminMessage_SetHamMode
// *AdminMessage_GetNodeRemoteHardwarePinsRequest
// *AdminMessage_GetNodeRemoteHardwarePinsResponse
// *AdminMessage_EnterDfuModeRequest
// *AdminMessage_DeleteFileRequest
// *AdminMessage_SetScale
// *AdminMessage_BackupPreferences
// *AdminMessage_RestorePreferences
// *AdminMessage_RemoveBackupPreferences
// *AdminMessage_SendInputEvent
// *AdminMessage_SetOwner
// *AdminMessage_SetChannel
// *AdminMessage_SetConfig
// *AdminMessage_SetModuleConfig
// *AdminMessage_SetCannedMessageModuleMessages
// *AdminMessage_SetRingtoneMessage
// *AdminMessage_RemoveByNodenum
// *AdminMessage_SetFavoriteNode
// *AdminMessage_RemoveFavoriteNode
// *AdminMessage_SetFixedPosition
// *AdminMessage_RemoveFixedPosition
// *AdminMessage_SetTimeOnly
// *AdminMessage_GetUiConfigRequest
// *AdminMessage_GetUiConfigResponse
// *AdminMessage_StoreUiConfig
// *AdminMessage_SetIgnoredNode
// *AdminMessage_RemoveIgnoredNode
// *AdminMessage_ToggleMutedNode
// *AdminMessage_BeginEditSettings
// *AdminMessage_CommitEditSettings
// *AdminMessage_AddContact
// *AdminMessage_KeyVerification
// *AdminMessage_FactoryResetDevice
// *AdminMessage_RebootOtaSeconds
// *AdminMessage_ExitSimulator
// *AdminMessage_RebootSeconds
// *AdminMessage_ShutdownSeconds
// *AdminMessage_FactoryResetConfig
// *AdminMessage_NodedbReset
// *AdminMessage_OtaRequest
// *AdminMessage_SensorConfig
PayloadVariant isAdminMessage_PayloadVariant `protobuf_oneof:"payload_variant"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AdminMessage) Reset() {
*x = AdminMessage{}
mi := &file_meshtastic_admin_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AdminMessage) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AdminMessage) ProtoMessage() {}
func (x *AdminMessage) ProtoReflect() protoreflect.Message {
mi := &file_meshtastic_admin_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AdminMessage.ProtoReflect.Descriptor instead.
func (*AdminMessage) Descriptor() ([]byte, []int) {
return file_meshtastic_admin_proto_rawDescGZIP(), []int{0}
}
func (x *AdminMessage) GetSessionPasskey() []byte {
if x != nil {
return x.SessionPasskey
}
return nil
}
func (x *AdminMessage) GetPayloadVariant() isAdminMessage_PayloadVariant {
if x != nil {
return x.PayloadVariant
}
return nil
}
func (x *AdminMessage) GetGetChannelRequest() uint32 {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_GetChannelRequest); ok {
return x.GetChannelRequest
}
}
return 0
}
func (x *AdminMessage) GetGetChannelResponse() *Channel {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_GetChannelResponse); ok {
return x.GetChannelResponse
}
}
return nil
}
func (x *AdminMessage) GetGetOwnerRequest() bool {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_GetOwnerRequest); ok {
return x.GetOwnerRequest
}
}
return false
}
func (x *AdminMessage) GetGetOwnerResponse() *User {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_GetOwnerResponse); ok {
return x.GetOwnerResponse
}
}
return nil
}
func (x *AdminMessage) GetGetConfigRequest() AdminMessage_ConfigType {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_GetConfigRequest); ok {
return x.GetConfigRequest
}
}
return AdminMessage_DEVICE_CONFIG
}
func (x *AdminMessage) GetGetConfigResponse() *Config {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_GetConfigResponse); ok {
return x.GetConfigResponse
}
}
return nil
}
func (x *AdminMessage) GetGetModuleConfigRequest() AdminMessage_ModuleConfigType {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_GetModuleConfigRequest); ok {
return x.GetModuleConfigRequest
}
}
return AdminMessage_MQTT_CONFIG
}
func (x *AdminMessage) GetGetModuleConfigResponse() *ModuleConfig {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_GetModuleConfigResponse); ok {
return x.GetModuleConfigResponse
}
}
return nil
}
func (x *AdminMessage) GetGetCannedMessageModuleMessagesRequest() bool {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_GetCannedMessageModuleMessagesRequest); ok {
return x.GetCannedMessageModuleMessagesRequest
}
}
return false
}
func (x *AdminMessage) GetGetCannedMessageModuleMessagesResponse() string {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_GetCannedMessageModuleMessagesResponse); ok {
return x.GetCannedMessageModuleMessagesResponse
}
}
return ""
}
func (x *AdminMessage) GetGetDeviceMetadataRequest() bool {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_GetDeviceMetadataRequest); ok {
return x.GetDeviceMetadataRequest
}
}
return false
}
func (x *AdminMessage) GetGetDeviceMetadataResponse() *DeviceMetadata {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_GetDeviceMetadataResponse); ok {
return x.GetDeviceMetadataResponse
}
}
return nil
}
func (x *AdminMessage) GetGetRingtoneRequest() bool {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_GetRingtoneRequest); ok {
return x.GetRingtoneRequest
}
}
return false
}
func (x *AdminMessage) GetGetRingtoneResponse() string {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_GetRingtoneResponse); ok {
return x.GetRingtoneResponse
}
}
return ""
}
func (x *AdminMessage) GetGetDeviceConnectionStatusRequest() bool {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_GetDeviceConnectionStatusRequest); ok {
return x.GetDeviceConnectionStatusRequest
}
}
return false
}
func (x *AdminMessage) GetGetDeviceConnectionStatusResponse() *DeviceConnectionStatus {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_GetDeviceConnectionStatusResponse); ok {
return x.GetDeviceConnectionStatusResponse
}
}
return nil
}
func (x *AdminMessage) GetSetHamMode() *HamParameters {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_SetHamMode); ok {
return x.SetHamMode
}
}
return nil
}
func (x *AdminMessage) GetGetNodeRemoteHardwarePinsRequest() bool {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_GetNodeRemoteHardwarePinsRequest); ok {
return x.GetNodeRemoteHardwarePinsRequest
}
}
return false
}
func (x *AdminMessage) GetGetNodeRemoteHardwarePinsResponse() *NodeRemoteHardwarePinsResponse {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_GetNodeRemoteHardwarePinsResponse); ok {
return x.GetNodeRemoteHardwarePinsResponse
}
}
return nil
}
func (x *AdminMessage) GetEnterDfuModeRequest() bool {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_EnterDfuModeRequest); ok {
return x.EnterDfuModeRequest
}
}
return false
}
func (x *AdminMessage) GetDeleteFileRequest() string {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_DeleteFileRequest); ok {
return x.DeleteFileRequest
}
}
return ""
}
func (x *AdminMessage) GetSetScale() uint32 {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_SetScale); ok {
return x.SetScale
}
}
return 0
}
func (x *AdminMessage) GetBackupPreferences() AdminMessage_BackupLocation {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_BackupPreferences); ok {
return x.BackupPreferences
}
}
return AdminMessage_FLASH
}
func (x *AdminMessage) GetRestorePreferences() AdminMessage_BackupLocation {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_RestorePreferences); ok {
return x.RestorePreferences
}
}
return AdminMessage_FLASH
}
func (x *AdminMessage) GetRemoveBackupPreferences() AdminMessage_BackupLocation {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_RemoveBackupPreferences); ok {
return x.RemoveBackupPreferences
}
}
return AdminMessage_FLASH
}
func (x *AdminMessage) GetSendInputEvent() *AdminMessage_InputEvent {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_SendInputEvent); ok {
return x.SendInputEvent
}
}
return nil
}
func (x *AdminMessage) GetSetOwner() *User {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_SetOwner); ok {
return x.SetOwner
}
}
return nil
}
func (x *AdminMessage) GetSetChannel() *Channel {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_SetChannel); ok {
return x.SetChannel
}
}
return nil
}
func (x *AdminMessage) GetSetConfig() *Config {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_SetConfig); ok {
return x.SetConfig
}
}
return nil
}
func (x *AdminMessage) GetSetModuleConfig() *ModuleConfig {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_SetModuleConfig); ok {
return x.SetModuleConfig
}
}
return nil
}
func (x *AdminMessage) GetSetCannedMessageModuleMessages() string {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_SetCannedMessageModuleMessages); ok {
return x.SetCannedMessageModuleMessages
}
}
return ""
}
func (x *AdminMessage) GetSetRingtoneMessage() string {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_SetRingtoneMessage); ok {
return x.SetRingtoneMessage
}
}
return ""
}
func (x *AdminMessage) GetRemoveByNodenum() uint32 {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_RemoveByNodenum); ok {
return x.RemoveByNodenum
}
}
return 0
}
func (x *AdminMessage) GetSetFavoriteNode() uint32 {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_SetFavoriteNode); ok {
return x.SetFavoriteNode
}
}
return 0
}
func (x *AdminMessage) GetRemoveFavoriteNode() uint32 {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_RemoveFavoriteNode); ok {
return x.RemoveFavoriteNode
}
}
return 0
}
func (x *AdminMessage) GetSetFixedPosition() *Position {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_SetFixedPosition); ok {
return x.SetFixedPosition
}
}
return nil
}
func (x *AdminMessage) GetRemoveFixedPosition() bool {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_RemoveFixedPosition); ok {
return x.RemoveFixedPosition
}
}
return false
}
func (x *AdminMessage) GetSetTimeOnly() uint32 {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_SetTimeOnly); ok {
return x.SetTimeOnly
}
}
return 0
}
func (x *AdminMessage) GetGetUiConfigRequest() bool {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_GetUiConfigRequest); ok {
return x.GetUiConfigRequest
}
}
return false
}
func (x *AdminMessage) GetGetUiConfigResponse() *DeviceUIConfig {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_GetUiConfigResponse); ok {
return x.GetUiConfigResponse
}
}
return nil
}
func (x *AdminMessage) GetStoreUiConfig() *DeviceUIConfig {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_StoreUiConfig); ok {
return x.StoreUiConfig
}
}
return nil
}
func (x *AdminMessage) GetSetIgnoredNode() uint32 {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_SetIgnoredNode); ok {
return x.SetIgnoredNode
}
}
return 0
}
func (x *AdminMessage) GetRemoveIgnoredNode() uint32 {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_RemoveIgnoredNode); ok {
return x.RemoveIgnoredNode
}
}
return 0
}
func (x *AdminMessage) GetToggleMutedNode() uint32 {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_ToggleMutedNode); ok {
return x.ToggleMutedNode
}
}
return 0
}
func (x *AdminMessage) GetBeginEditSettings() bool {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_BeginEditSettings); ok {
return x.BeginEditSettings
}
}
return false
}
func (x *AdminMessage) GetCommitEditSettings() bool {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_CommitEditSettings); ok {
return x.CommitEditSettings
}
}
return false
}
func (x *AdminMessage) GetAddContact() *SharedContact {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_AddContact); ok {
return x.AddContact
}
}
return nil
}
func (x *AdminMessage) GetKeyVerification() *KeyVerificationAdmin {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_KeyVerification); ok {
return x.KeyVerification
}
}
return nil
}
func (x *AdminMessage) GetFactoryResetDevice() int32 {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_FactoryResetDevice); ok {
return x.FactoryResetDevice
}
}
return 0
}
// Deprecated: Marked as deprecated in meshtastic/admin.proto.
func (x *AdminMessage) GetRebootOtaSeconds() int32 {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_RebootOtaSeconds); ok {
return x.RebootOtaSeconds
}
}
return 0
}
func (x *AdminMessage) GetExitSimulator() bool {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_ExitSimulator); ok {
return x.ExitSimulator
}
}
return false
}
func (x *AdminMessage) GetRebootSeconds() int32 {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_RebootSeconds); ok {
return x.RebootSeconds
}
}
return 0
}
func (x *AdminMessage) GetShutdownSeconds() int32 {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_ShutdownSeconds); ok {
return x.ShutdownSeconds
}
}
return 0
}
func (x *AdminMessage) GetFactoryResetConfig() int32 {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_FactoryResetConfig); ok {
return x.FactoryResetConfig
}
}
return 0
}
func (x *AdminMessage) GetNodedbReset() bool {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_NodedbReset); ok {
return x.NodedbReset
}
}
return false
}
func (x *AdminMessage) GetOtaRequest() *AdminMessage_OTAEvent {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_OtaRequest); ok {
return x.OtaRequest
}
}
return nil
}
func (x *AdminMessage) GetSensorConfig() *SensorConfig {
if x != nil {
if x, ok := x.PayloadVariant.(*AdminMessage_SensorConfig); ok {
return x.SensorConfig
}
}
return nil
}
type isAdminMessage_PayloadVariant interface {
isAdminMessage_PayloadVariant()
}
type AdminMessage_GetChannelRequest struct {
// Send the specified channel in the response to this message
// NOTE: This field is sent with the channel index + 1 (to ensure we never try to send 'zero' - which protobufs treats as not present)
GetChannelRequest uint32 `protobuf:"varint,1,opt,name=get_channel_request,json=getChannelRequest,proto3,oneof"`
}
type AdminMessage_GetChannelResponse struct {
// TODO: REPLACE
GetChannelResponse *Channel `protobuf:"bytes,2,opt,name=get_channel_response,json=getChannelResponse,proto3,oneof"`
}
type AdminMessage_GetOwnerRequest struct {
// Send the current owner data in the response to this message.
GetOwnerRequest bool `protobuf:"varint,3,opt,name=get_owner_request,json=getOwnerRequest,proto3,oneof"`
}
type AdminMessage_GetOwnerResponse struct {
// TODO: REPLACE
GetOwnerResponse *User `protobuf:"bytes,4,opt,name=get_owner_response,json=getOwnerResponse,proto3,oneof"`
}
type AdminMessage_GetConfigRequest struct {
// Ask for the following config data to be sent
GetConfigRequest AdminMessage_ConfigType `protobuf:"varint,5,opt,name=get_config_request,json=getConfigRequest,proto3,enum=meshtastic.AdminMessage_ConfigType,oneof"`
}
type AdminMessage_GetConfigResponse struct {
// Send the current Config in the response to this message.
GetConfigResponse *Config `protobuf:"bytes,6,opt,name=get_config_response,json=getConfigResponse,proto3,oneof"`
}
type AdminMessage_GetModuleConfigRequest struct {
// Ask for the following config data to be sent
GetModuleConfigRequest AdminMessage_ModuleConfigType `protobuf:"varint,7,opt,name=get_module_config_request,json=getModuleConfigRequest,proto3,enum=meshtastic.AdminMessage_ModuleConfigType,oneof"`
}
type AdminMessage_GetModuleConfigResponse struct {
// Send the current Config in the response to this message.
GetModuleConfigResponse *ModuleConfig `protobuf:"bytes,8,opt,name=get_module_config_response,json=getModuleConfigResponse,proto3,oneof"`
}
type AdminMessage_GetCannedMessageModuleMessagesRequest struct {
// Get the Canned Message Module messages in the response to this message.
GetCannedMessageModuleMessagesRequest bool `protobuf:"varint,10,opt,name=get_canned_message_module_messages_request,json=getCannedMessageModuleMessagesRequest,proto3,oneof"`
}
type AdminMessage_GetCannedMessageModuleMessagesResponse struct {
// Get the Canned Message Module messages in the response to this message.
GetCannedMessageModuleMessagesResponse string `protobuf:"bytes,11,opt,name=get_canned_message_module_messages_response,json=getCannedMessageModuleMessagesResponse,proto3,oneof"`
}
type AdminMessage_GetDeviceMetadataRequest struct {
// Request the node to send device metadata (firmware, protobuf version, etc)
GetDeviceMetadataRequest bool `protobuf:"varint,12,opt,name=get_device_metadata_request,json=getDeviceMetadataRequest,proto3,oneof"`
}
type AdminMessage_GetDeviceMetadataResponse struct {
// Device metadata response
GetDeviceMetadataResponse *DeviceMetadata `protobuf:"bytes,13,opt,name=get_device_metadata_response,json=getDeviceMetadataResponse,proto3,oneof"`
}
type AdminMessage_GetRingtoneRequest struct {
// Get the Ringtone in the response to this message.
GetRingtoneRequest bool `protobuf:"varint,14,opt,name=get_ringtone_request,json=getRingtoneRequest,proto3,oneof"`
}
type AdminMessage_GetRingtoneResponse struct {
// Get the Ringtone in the response to this message.
GetRingtoneResponse string `protobuf:"bytes,15,opt,name=get_ringtone_response,json=getRingtoneResponse,proto3,oneof"`
}
type AdminMessage_GetDeviceConnectionStatusRequest struct {
// Request the node to send it's connection status
GetDeviceConnectionStatusRequest bool `protobuf:"varint,16,opt,name=get_device_connection_status_request,json=getDeviceConnectionStatusRequest,proto3,oneof"`
}
type AdminMessage_GetDeviceConnectionStatusResponse struct {
// Device connection status response
GetDeviceConnectionStatusResponse *DeviceConnectionStatus `protobuf:"bytes,17,opt,name=get_device_connection_status_response,json=getDeviceConnectionStatusResponse,proto3,oneof"`
}
type AdminMessage_SetHamMode struct {
// Setup a node for licensed amateur (ham) radio operation
SetHamMode *HamParameters `protobuf:"bytes,18,opt,name=set_ham_mode,json=setHamMode,proto3,oneof"`
}
type AdminMessage_GetNodeRemoteHardwarePinsRequest struct {
// Get the mesh's nodes with their available gpio pins for RemoteHardware module use
GetNodeRemoteHardwarePinsRequest bool `protobuf:"varint,19,opt,name=get_node_remote_hardware_pins_request,json=getNodeRemoteHardwarePinsRequest,proto3,oneof"`
}
type AdminMessage_GetNodeRemoteHardwarePinsResponse struct {
// Respond with the mesh's nodes with their available gpio pins for RemoteHardware module use
GetNodeRemoteHardwarePinsResponse *NodeRemoteHardwarePinsResponse `protobuf:"bytes,20,opt,name=get_node_remote_hardware_pins_response,json=getNodeRemoteHardwarePinsResponse,proto3,oneof"`
}
type AdminMessage_EnterDfuModeRequest struct {
// Enter (UF2) DFU mode
// Only implemented on NRF52 currently
EnterDfuModeRequest bool `protobuf:"varint,21,opt,name=enter_dfu_mode_request,json=enterDfuModeRequest,proto3,oneof"`
}
type AdminMessage_DeleteFileRequest struct {
// Delete the file by the specified path from the device
DeleteFileRequest string `protobuf:"bytes,22,opt,name=delete_file_request,json=deleteFileRequest,proto3,oneof"`
}
type AdminMessage_SetScale struct {
// Set zero and offset for scale chips
SetScale uint32 `protobuf:"varint,23,opt,name=set_scale,json=setScale,proto3,oneof"`
}
type AdminMessage_BackupPreferences struct {
// Backup the node's preferences
BackupPreferences AdminMessage_BackupLocation `protobuf:"varint,24,opt,name=backup_preferences,json=backupPreferences,proto3,enum=meshtastic.AdminMessage_BackupLocation,oneof"`
}
type AdminMessage_RestorePreferences struct {
// Restore the node's preferences
RestorePreferences AdminMessage_BackupLocation `protobuf:"varint,25,opt,name=restore_preferences,json=restorePreferences,proto3,enum=meshtastic.AdminMessage_BackupLocation,oneof"`
}
type AdminMessage_RemoveBackupPreferences struct {
// Remove backups of the node's preferences
RemoveBackupPreferences AdminMessage_BackupLocation `protobuf:"varint,26,opt,name=remove_backup_preferences,json=removeBackupPreferences,proto3,enum=meshtastic.AdminMessage_BackupLocation,oneof"`
}
type AdminMessage_SendInputEvent struct {
// Send an input event to the node.
// This is used to trigger physical input events like button presses, touch events, etc.
SendInputEvent *AdminMessage_InputEvent `protobuf:"bytes,27,opt,name=send_input_event,json=sendInputEvent,proto3,oneof"`
}
type AdminMessage_SetOwner struct {
// Set the owner for this node
SetOwner *User `protobuf:"bytes,32,opt,name=set_owner,json=setOwner,proto3,oneof"`
}
type AdminMessage_SetChannel struct {
// Set channels (using the new API).
// A special channel is the "primary channel".
// The other records are secondary channels.
// Note: only one channel can be marked as primary.
// If the client sets a particular channel to be primary, the previous channel will be set to SECONDARY automatically.
SetChannel *Channel `protobuf:"bytes,33,opt,name=set_channel,json=setChannel,proto3,oneof"`
}
type AdminMessage_SetConfig struct {
// Set the current Config
SetConfig *Config `protobuf:"bytes,34,opt,name=set_config,json=setConfig,proto3,oneof"`
}
type AdminMessage_SetModuleConfig struct {
// Set the current Config
SetModuleConfig *ModuleConfig `protobuf:"bytes,35,opt,name=set_module_config,json=setModuleConfig,proto3,oneof"`
}
type AdminMessage_SetCannedMessageModuleMessages struct {
// Set the Canned Message Module messages text.
SetCannedMessageModuleMessages string `protobuf:"bytes,36,opt,name=set_canned_message_module_messages,json=setCannedMessageModuleMessages,proto3,oneof"`
}
type AdminMessage_SetRingtoneMessage struct {
// Set the ringtone for ExternalNotification.
SetRingtoneMessage string `protobuf:"bytes,37,opt,name=set_ringtone_message,json=setRingtoneMessage,proto3,oneof"`
}
type AdminMessage_RemoveByNodenum struct {
// Remove the node by the specified node-num from the NodeDB on the device
RemoveByNodenum uint32 `protobuf:"varint,38,opt,name=remove_by_nodenum,json=removeByNodenum,proto3,oneof"`
}
type AdminMessage_SetFavoriteNode struct {
// Set specified node-num to be favorited on the NodeDB on the device
SetFavoriteNode uint32 `protobuf:"varint,39,opt,name=set_favorite_node,json=setFavoriteNode,proto3,oneof"`
}
type AdminMessage_RemoveFavoriteNode struct {
// Set specified node-num to be un-favorited on the NodeDB on the device
RemoveFavoriteNode uint32 `protobuf:"varint,40,opt,name=remove_favorite_node,json=removeFavoriteNode,proto3,oneof"`
}
type AdminMessage_SetFixedPosition struct {
// Set fixed position data on the node and then set the position.fixed_position = true
SetFixedPosition *Position `protobuf:"bytes,41,opt,name=set_fixed_position,json=setFixedPosition,proto3,oneof"`
}
type AdminMessage_RemoveFixedPosition struct {
// Clear fixed position coordinates and then set position.fixed_position = false
RemoveFixedPosition bool `protobuf:"varint,42,opt,name=remove_fixed_position,json=removeFixedPosition,proto3,oneof"`
}
type AdminMessage_SetTimeOnly struct {
// Set time only on the node
// Convenience method to set the time on the node (as Net quality) without any other position data
SetTimeOnly uint32 `protobuf:"fixed32,43,opt,name=set_time_only,json=setTimeOnly,proto3,oneof"`
}
type AdminMessage_GetUiConfigRequest struct {
// Tell the node to send the stored ui data.
GetUiConfigRequest bool `protobuf:"varint,44,opt,name=get_ui_config_request,json=getUiConfigRequest,proto3,oneof"`
}
type AdminMessage_GetUiConfigResponse struct {
// Reply stored device ui data.
GetUiConfigResponse *DeviceUIConfig `protobuf:"bytes,45,opt,name=get_ui_config_response,json=getUiConfigResponse,proto3,oneof"`
}
type AdminMessage_StoreUiConfig struct {
// Tell the node to store UI data persistently.
StoreUiConfig *DeviceUIConfig `protobuf:"bytes,46,opt,name=store_ui_config,json=storeUiConfig,proto3,oneof"`
}
type AdminMessage_SetIgnoredNode struct {
// Set specified node-num to be ignored on the NodeDB on the device
SetIgnoredNode uint32 `protobuf:"varint,47,opt,name=set_ignored_node,json=setIgnoredNode,proto3,oneof"`
}
type AdminMessage_RemoveIgnoredNode struct {
// Set specified node-num to be un-ignored on the NodeDB on the device
RemoveIgnoredNode uint32 `protobuf:"varint,48,opt,name=remove_ignored_node,json=removeIgnoredNode,proto3,oneof"`
}
type AdminMessage_ToggleMutedNode struct {
// Set specified node-num to be muted
ToggleMutedNode uint32 `protobuf:"varint,49,opt,name=toggle_muted_node,json=toggleMutedNode,proto3,oneof"`
}
type AdminMessage_BeginEditSettings struct {
// Begins an edit transaction for config, module config, owner, and channel settings changes
// This will delay the standard *implicit* save to the file system and subsequent reboot behavior until committed (commit_edit_settings)
BeginEditSettings bool `protobuf:"varint,64,opt,name=begin_edit_settings,json=beginEditSettings,proto3,oneof"`
}
type AdminMessage_CommitEditSettings struct {
// Commits an open transaction for any edits made to config, module config, owner, and channel settings
CommitEditSettings bool `protobuf:"varint,65,opt,name=commit_edit_settings,json=commitEditSettings,proto3,oneof"`
}
type AdminMessage_AddContact struct {
// Add a contact (User) to the nodedb
AddContact *SharedContact `protobuf:"bytes,66,opt,name=add_contact,json=addContact,proto3,oneof"`
}
type AdminMessage_KeyVerification struct {
// Initiate or respond to a key verification request
KeyVerification *KeyVerificationAdmin `protobuf:"bytes,67,opt,name=key_verification,json=keyVerification,proto3,oneof"`
}
type AdminMessage_FactoryResetDevice struct {
// Tell the node to factory reset config everything; all device state and configuration will be returned to factory defaults and BLE bonds will be cleared.
FactoryResetDevice int32 `protobuf:"varint,94,opt,name=factory_reset_device,json=factoryResetDevice,proto3,oneof"`
}
type AdminMessage_RebootOtaSeconds struct {
// Tell the node to reboot into the OTA Firmware in this many seconds (or <0 to cancel reboot)
// Only Implemented for ESP32 Devices. This needs to be issued to send a new main firmware via bluetooth.
// Deprecated in favor of reboot_ota_mode in 2.7.17
//
// Deprecated: Marked as deprecated in meshtastic/admin.proto.
RebootOtaSeconds int32 `protobuf:"varint,95,opt,name=reboot_ota_seconds,json=rebootOtaSeconds,proto3,oneof"`
}
type AdminMessage_ExitSimulator struct {
// This message is only supported for the simulator Portduino build.
// If received the simulator will exit successfully.
ExitSimulator bool `protobuf:"varint,96,opt,name=exit_simulator,json=exitSimulator,proto3,oneof"`
}
type AdminMessage_RebootSeconds struct {
// Tell the node to reboot in this many seconds (or <0 to cancel reboot)
RebootSeconds int32 `protobuf:"varint,97,opt,name=reboot_seconds,json=rebootSeconds,proto3,oneof"`
}
type AdminMessage_ShutdownSeconds struct {
// Tell the node to shutdown in this many seconds (or <0 to cancel shutdown)
ShutdownSeconds int32 `protobuf:"varint,98,opt,name=shutdown_seconds,json=shutdownSeconds,proto3,oneof"`
}
type AdminMessage_FactoryResetConfig struct {
// Tell the node to factory reset config; all device state and configuration will be returned to factory defaults; BLE bonds will be preserved.
FactoryResetConfig int32 `protobuf:"varint,99,opt,name=factory_reset_config,json=factoryResetConfig,proto3,oneof"`
}
type AdminMessage_NodedbReset struct {
// Tell the node to reset the nodedb.
// When true, favorites are preserved through reset.
NodedbReset bool `protobuf:"varint,100,opt,name=nodedb_reset,json=nodedbReset,proto3,oneof"`
}
type AdminMessage_OtaRequest struct {
// Tell the node to reset into the OTA Loader
OtaRequest *AdminMessage_OTAEvent `protobuf:"bytes,102,opt,name=ota_request,json=otaRequest,proto3,oneof"`
}
type AdminMessage_SensorConfig struct {
// Parameters and sensor configuration
SensorConfig *SensorConfig `protobuf:"bytes,103,opt,name=sensor_config,json=sensorConfig,proto3,oneof"`
}
func (*AdminMessage_GetChannelRequest) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_GetChannelResponse) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_GetOwnerRequest) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_GetOwnerResponse) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_GetConfigRequest) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_GetConfigResponse) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_GetModuleConfigRequest) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_GetModuleConfigResponse) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_GetCannedMessageModuleMessagesRequest) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_GetCannedMessageModuleMessagesResponse) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_GetDeviceMetadataRequest) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_GetDeviceMetadataResponse) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_GetRingtoneRequest) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_GetRingtoneResponse) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_GetDeviceConnectionStatusRequest) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_GetDeviceConnectionStatusResponse) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_SetHamMode) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_GetNodeRemoteHardwarePinsRequest) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_GetNodeRemoteHardwarePinsResponse) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_EnterDfuModeRequest) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_DeleteFileRequest) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_SetScale) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_BackupPreferences) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_RestorePreferences) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_RemoveBackupPreferences) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_SendInputEvent) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_SetOwner) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_SetChannel) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_SetConfig) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_SetModuleConfig) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_SetCannedMessageModuleMessages) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_SetRingtoneMessage) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_RemoveByNodenum) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_SetFavoriteNode) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_RemoveFavoriteNode) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_SetFixedPosition) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_RemoveFixedPosition) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_SetTimeOnly) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_GetUiConfigRequest) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_GetUiConfigResponse) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_StoreUiConfig) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_SetIgnoredNode) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_RemoveIgnoredNode) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_ToggleMutedNode) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_BeginEditSettings) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_CommitEditSettings) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_AddContact) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_KeyVerification) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_FactoryResetDevice) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_RebootOtaSeconds) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_ExitSimulator) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_RebootSeconds) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_ShutdownSeconds) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_FactoryResetConfig) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_NodedbReset) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_OtaRequest) isAdminMessage_PayloadVariant() {}
func (*AdminMessage_SensorConfig) isAdminMessage_PayloadVariant() {}
// Parameters for setting up Meshtastic for ameteur radio usage
type HamParameters struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Amateur radio call sign, eg. KD2ABC
CallSign string `protobuf:"bytes,1,opt,name=call_sign,json=callSign,proto3" json:"callSign,omitempty"`
// Transmit power in dBm at the LoRA transceiver, not including any amplification
TxPower int32 `protobuf:"varint,2,opt,name=tx_power,json=txPower,proto3" json:"txPower,omitempty"`
// The selected frequency of LoRA operation
// Please respect your local laws, regulations, and band plans.
// Ensure your radio is capable of operating of the selected frequency before setting this.
Frequency float32 `protobuf:"fixed32,3,opt,name=frequency,proto3" json:"frequency,omitempty"`
// Optional short name of user
ShortName string `protobuf:"bytes,4,opt,name=short_name,json=shortName,proto3" json:"shortName,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *HamParameters) Reset() {
*x = HamParameters{}
mi := &file_meshtastic_admin_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *HamParameters) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HamParameters) ProtoMessage() {}
func (x *HamParameters) ProtoReflect() protoreflect.Message {
mi := &file_meshtastic_admin_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use HamParameters.ProtoReflect.Descriptor instead.
func (*HamParameters) Descriptor() ([]byte, []int) {
return file_meshtastic_admin_proto_rawDescGZIP(), []int{1}
}
func (x *HamParameters) GetCallSign() string {
if x != nil {
return x.CallSign
}
return ""
}
func (x *HamParameters) GetTxPower() int32 {
if x != nil {
return x.TxPower
}
return 0
}
func (x *HamParameters) GetFrequency() float32 {
if x != nil {
return x.Frequency
}
return 0
}
func (x *HamParameters) GetShortName() string {
if x != nil {
return x.ShortName
}
return ""
}
// Response envelope for node_remote_hardware_pins
type NodeRemoteHardwarePinsResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Nodes and their respective remote hardware GPIO pins
NodeRemoteHardwarePins []*NodeRemoteHardwarePin `protobuf:"bytes,1,rep,name=node_remote_hardware_pins,json=nodeRemoteHardwarePins,proto3" json:"nodeRemoteHardwarePins,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *NodeRemoteHardwarePinsResponse) Reset() {
*x = NodeRemoteHardwarePinsResponse{}
mi := &file_meshtastic_admin_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *NodeRemoteHardwarePinsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NodeRemoteHardwarePinsResponse) ProtoMessage() {}
func (x *NodeRemoteHardwarePinsResponse) ProtoReflect() protoreflect.Message {
mi := &file_meshtastic_admin_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use NodeRemoteHardwarePinsResponse.ProtoReflect.Descriptor instead.
func (*NodeRemoteHardwarePinsResponse) Descriptor() ([]byte, []int) {
return file_meshtastic_admin_proto_rawDescGZIP(), []int{2}
}
func (x *NodeRemoteHardwarePinsResponse) GetNodeRemoteHardwarePins() []*NodeRemoteHardwarePin {
if x != nil {
return x.NodeRemoteHardwarePins
}
return nil
}
type SharedContact struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The node number of the contact
NodeNum uint32 `protobuf:"varint,1,opt,name=node_num,json=nodeNum,proto3" json:"nodeNum,omitempty"`
// The User of the contact
User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
// Add this contact to the blocked / ignored list
ShouldIgnore bool `protobuf:"varint,3,opt,name=should_ignore,json=shouldIgnore,proto3" json:"shouldIgnore,omitempty"`
// Set the IS_KEY_MANUALLY_VERIFIED bit
ManuallyVerified bool `protobuf:"varint,4,opt,name=manually_verified,json=manuallyVerified,proto3" json:"manuallyVerified,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SharedContact) Reset() {
*x = SharedContact{}
mi := &file_meshtastic_admin_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SharedContact) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SharedContact) ProtoMessage() {}
func (x *SharedContact) ProtoReflect() protoreflect.Message {
mi := &file_meshtastic_admin_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SharedContact.ProtoReflect.Descriptor instead.
func (*SharedContact) Descriptor() ([]byte, []int) {
return file_meshtastic_admin_proto_rawDescGZIP(), []int{3}
}
func (x *SharedContact) GetNodeNum() uint32 {
if x != nil {
return x.NodeNum
}
return 0
}
func (x *SharedContact) GetUser() *User {
if x != nil {
return x.User
}
return nil
}
func (x *SharedContact) GetShouldIgnore() bool {
if x != nil {
return x.ShouldIgnore
}
return false
}
func (x *SharedContact) GetManuallyVerified() bool {
if x != nil {
return x.ManuallyVerified
}
return false
}
// This message is used by a client to initiate or complete a key verification
type KeyVerificationAdmin struct {
state protoimpl.MessageState `protogen:"open.v1"`
MessageType KeyVerificationAdmin_MessageType `protobuf:"varint,1,opt,name=message_type,json=messageType,proto3,enum=meshtastic.KeyVerificationAdmin_MessageType" json:"messageType,omitempty"`
// The nodenum we're requesting
RemoteNodenum uint32 `protobuf:"varint,2,opt,name=remote_nodenum,json=remoteNodenum,proto3" json:"remoteNodenum,omitempty"`
// The nonce is used to track the connection
Nonce uint64 `protobuf:"varint,3,opt,name=nonce,proto3" json:"nonce,omitempty"`
// The 4 digit code generated by the remote node, and communicated outside the mesh
SecurityNumber *uint32 `protobuf:"varint,4,opt,name=security_number,json=securityNumber,proto3,oneof" json:"securityNumber,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *KeyVerificationAdmin) Reset() {
*x = KeyVerificationAdmin{}
mi := &file_meshtastic_admin_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *KeyVerificationAdmin) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*KeyVerificationAdmin) ProtoMessage() {}
func (x *KeyVerificationAdmin) ProtoReflect() protoreflect.Message {
mi := &file_meshtastic_admin_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use KeyVerificationAdmin.ProtoReflect.Descriptor instead.
func (*KeyVerificationAdmin) Descriptor() ([]byte, []int) {
return file_meshtastic_admin_proto_rawDescGZIP(), []int{4}
}
func (x *KeyVerificationAdmin) GetMessageType() KeyVerificationAdmin_MessageType {
if x != nil {
return x.MessageType
}
return KeyVerificationAdmin_INITIATE_VERIFICATION
}
func (x *KeyVerificationAdmin) GetRemoteNodenum() uint32 {
if x != nil {
return x.RemoteNodenum
}
return 0
}
func (x *KeyVerificationAdmin) GetNonce() uint64 {
if x != nil {
return x.Nonce
}
return 0
}
func (x *KeyVerificationAdmin) GetSecurityNumber() uint32 {
if x != nil && x.SecurityNumber != nil {
return *x.SecurityNumber
}
return 0
}
type SensorConfig struct {
state protoimpl.MessageState `protogen:"open.v1"`
// SCD4X CO2 Sensor configuration
Scd4XConfig *SCD4XConfig `protobuf:"bytes,1,opt,name=scd4x_config,json=scd4xConfig,proto3" json:"scd4xConfig,omitempty"`
// SEN5X PM Sensor configuration
Sen5XConfig *SEN5XConfig `protobuf:"bytes,2,opt,name=sen5x_config,json=sen5xConfig,proto3" json:"sen5xConfig,omitempty"`
// SCD30 CO2 Sensor configuration
Scd30Config *SCD30Config `protobuf:"bytes,3,opt,name=scd30_config,json=scd30Config,proto3" json:"scd30Config,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SensorConfig) Reset() {
*x = SensorConfig{}
mi := &file_meshtastic_admin_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SensorConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SensorConfig) ProtoMessage() {}
func (x *SensorConfig) ProtoReflect() protoreflect.Message {
mi := &file_meshtastic_admin_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SensorConfig.ProtoReflect.Descriptor instead.
func (*SensorConfig) Descriptor() ([]byte, []int) {
return file_meshtastic_admin_proto_rawDescGZIP(), []int{5}
}
func (x *SensorConfig) GetScd4XConfig() *SCD4XConfig {
if x != nil {
return x.Scd4XConfig
}
return nil
}
func (x *SensorConfig) GetSen5XConfig() *SEN5XConfig {
if x != nil {
return x.Sen5XConfig
}
return nil
}
func (x *SensorConfig) GetScd30Config() *SCD30Config {
if x != nil {
return x.Scd30Config
}
return nil
}
type SCD4XConfig struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Set Automatic self-calibration enabled
SetAsc *bool `protobuf:"varint,1,opt,name=set_asc,json=setAsc,proto3,oneof" json:"setAsc,omitempty"`
// Recalibration target CO2 concentration in ppm (FRC or ASC)
SetTargetCo2Conc *uint32 `protobuf:"varint,2,opt,name=set_target_co2_conc,json=setTargetCo2Conc,proto3,oneof" json:"setTargetCo2Conc,omitempty"`
// Reference temperature in degC
SetTemperature *float32 `protobuf:"fixed32,3,opt,name=set_temperature,json=setTemperature,proto3,oneof" json:"setTemperature,omitempty"`
// Altitude of sensor in meters above sea level. 0 - 3000m (overrides ambient pressure)
SetAltitude *uint32 `protobuf:"varint,4,opt,name=set_altitude,json=setAltitude,proto3,oneof" json:"setAltitude,omitempty"`
// Sensor ambient pressure in Pa. 70000 - 120000 Pa (overrides altitude)
SetAmbientPressure *uint32 `protobuf:"varint,5,opt,name=set_ambient_pressure,json=setAmbientPressure,proto3,oneof" json:"setAmbientPressure,omitempty"`
// Perform a factory reset of the sensor
FactoryReset *bool `protobuf:"varint,6,opt,name=factory_reset,json=factoryReset,proto3,oneof" json:"factoryReset,omitempty"`
// Power mode for sensor (true for low power, false for normal)
SetPowerMode *bool `protobuf:"varint,7,opt,name=set_power_mode,json=setPowerMode,proto3,oneof" json:"setPowerMode,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SCD4XConfig) Reset() {
*x = SCD4XConfig{}
mi := &file_meshtastic_admin_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SCD4XConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SCD4XConfig) ProtoMessage() {}
func (x *SCD4XConfig) ProtoReflect() protoreflect.Message {
mi := &file_meshtastic_admin_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SCD4XConfig.ProtoReflect.Descriptor instead.
func (*SCD4XConfig) Descriptor() ([]byte, []int) {
return file_meshtastic_admin_proto_rawDescGZIP(), []int{6}
}
func (x *SCD4XConfig) GetSetAsc() bool {
if x != nil && x.SetAsc != nil {
return *x.SetAsc
}
return false
}
func (x *SCD4XConfig) GetSetTargetCo2Conc() uint32 {
if x != nil && x.SetTargetCo2Conc != nil {
return *x.SetTargetCo2Conc
}
return 0
}
func (x *SCD4XConfig) GetSetTemperature() float32 {
if x != nil && x.SetTemperature != nil {
return *x.SetTemperature
}
return 0
}
func (x *SCD4XConfig) GetSetAltitude() uint32 {
if x != nil && x.SetAltitude != nil {
return *x.SetAltitude
}
return 0
}
func (x *SCD4XConfig) GetSetAmbientPressure() uint32 {
if x != nil && x.SetAmbientPressure != nil {
return *x.SetAmbientPressure
}
return 0
}
func (x *SCD4XConfig) GetFactoryReset() bool {
if x != nil && x.FactoryReset != nil {
return *x.FactoryReset
}
return false
}
func (x *SCD4XConfig) GetSetPowerMode() bool {
if x != nil && x.SetPowerMode != nil {
return *x.SetPowerMode
}
return false
}
type SEN5XConfig struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Reference temperature in degC
SetTemperature *float32 `protobuf:"fixed32,1,opt,name=set_temperature,json=setTemperature,proto3,oneof" json:"setTemperature,omitempty"`
// One-shot mode (true for low power - one-shot mode, false for normal - continuous mode)
SetOneShotMode *bool `protobuf:"varint,2,opt,name=set_one_shot_mode,json=setOneShotMode,proto3,oneof" json:"setOneShotMode,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SEN5XConfig) Reset() {
*x = SEN5XConfig{}
mi := &file_meshtastic_admin_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SEN5XConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SEN5XConfig) ProtoMessage() {}
func (x *SEN5XConfig) ProtoReflect() protoreflect.Message {
mi := &file_meshtastic_admin_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SEN5XConfig.ProtoReflect.Descriptor instead.
func (*SEN5XConfig) Descriptor() ([]byte, []int) {
return file_meshtastic_admin_proto_rawDescGZIP(), []int{7}
}
func (x *SEN5XConfig) GetSetTemperature() float32 {
if x != nil && x.SetTemperature != nil {
return *x.SetTemperature
}
return 0
}
func (x *SEN5XConfig) GetSetOneShotMode() bool {
if x != nil && x.SetOneShotMode != nil {
return *x.SetOneShotMode
}
return false
}
type SCD30Config struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Set Automatic self-calibration enabled
SetAsc *bool `protobuf:"varint,1,opt,name=set_asc,json=setAsc,proto3,oneof" json:"setAsc,omitempty"`
// Recalibration target CO2 concentration in ppm (FRC or ASC)
SetTargetCo2Conc *uint32 `protobuf:"varint,2,opt,name=set_target_co2_conc,json=setTargetCo2Conc,proto3,oneof" json:"setTargetCo2Conc,omitempty"`
// Reference temperature in degC
SetTemperature *float32 `protobuf:"fixed32,3,opt,name=set_temperature,json=setTemperature,proto3,oneof" json:"setTemperature,omitempty"`
// Altitude of sensor in meters above sea level. 0 - 3000m (overrides ambient pressure)
SetAltitude *uint32 `protobuf:"varint,4,opt,name=set_altitude,json=setAltitude,proto3,oneof" json:"setAltitude,omitempty"`
// Power mode for sensor (true for low power, false for normal)
SetMeasurementInterval *uint32 `protobuf:"varint,5,opt,name=set_measurement_interval,json=setMeasurementInterval,proto3,oneof" json:"setMeasurementInterval,omitempty"`
// Perform a factory reset of the sensor
SoftReset *bool `protobuf:"varint,6,opt,name=soft_reset,json=softReset,proto3,oneof" json:"softReset,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SCD30Config) Reset() {
*x = SCD30Config{}
mi := &file_meshtastic_admin_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SCD30Config) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SCD30Config) ProtoMessage() {}
func (x *SCD30Config) ProtoReflect() protoreflect.Message {
mi := &file_meshtastic_admin_proto_msgTypes[8]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SCD30Config.ProtoReflect.Descriptor instead.
func (*SCD30Config) Descriptor() ([]byte, []int) {
return file_meshtastic_admin_proto_rawDescGZIP(), []int{8}
}
func (x *SCD30Config) GetSetAsc() bool {
if x != nil && x.SetAsc != nil {
return *x.SetAsc
}
return false
}
func (x *SCD30Config) GetSetTargetCo2Conc() uint32 {
if x != nil && x.SetTargetCo2Conc != nil {
return *x.SetTargetCo2Conc
}
return 0
}
func (x *SCD30Config) GetSetTemperature() float32 {
if x != nil && x.SetTemperature != nil {
return *x.SetTemperature
}
return 0
}
func (x *SCD30Config) GetSetAltitude() uint32 {
if x != nil && x.SetAltitude != nil {
return *x.SetAltitude
}
return 0
}
func (x *SCD30Config) GetSetMeasurementInterval() uint32 {
if x != nil && x.SetMeasurementInterval != nil {
return *x.SetMeasurementInterval
}
return 0
}
func (x *SCD30Config) GetSoftReset() bool {
if x != nil && x.SoftReset != nil {
return *x.SoftReset
}
return false
}
// Input event message to be sent to the node.
type AdminMessage_InputEvent struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The input event code
EventCode uint32 `protobuf:"varint,1,opt,name=event_code,json=eventCode,proto3" json:"eventCode,omitempty"`
// Keyboard character code
KbChar uint32 `protobuf:"varint,2,opt,name=kb_char,json=kbChar,proto3" json:"kbChar,omitempty"`
// The touch X coordinate
TouchX uint32 `protobuf:"varint,3,opt,name=touch_x,json=touchX,proto3" json:"touchX,omitempty"`
// The touch Y coordinate
TouchY uint32 `protobuf:"varint,4,opt,name=touch_y,json=touchY,proto3" json:"touchY,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AdminMessage_InputEvent) Reset() {
*x = AdminMessage_InputEvent{}
mi := &file_meshtastic_admin_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AdminMessage_InputEvent) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AdminMessage_InputEvent) ProtoMessage() {}
func (x *AdminMessage_InputEvent) ProtoReflect() protoreflect.Message {
mi := &file_meshtastic_admin_proto_msgTypes[9]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AdminMessage_InputEvent.ProtoReflect.Descriptor instead.
func (*AdminMessage_InputEvent) Descriptor() ([]byte, []int) {
return file_meshtastic_admin_proto_rawDescGZIP(), []int{0, 0}
}
func (x *AdminMessage_InputEvent) GetEventCode() uint32 {
if x != nil {
return x.EventCode
}
return 0
}
func (x *AdminMessage_InputEvent) GetKbChar() uint32 {
if x != nil {
return x.KbChar
}
return 0
}
func (x *AdminMessage_InputEvent) GetTouchX() uint32 {
if x != nil {
return x.TouchX
}
return 0
}
func (x *AdminMessage_InputEvent) GetTouchY() uint32 {
if x != nil {
return x.TouchY
}
return 0
}
// User is requesting an over the air update.
// Node will reboot into the OTA loader
type AdminMessage_OTAEvent struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Tell the node to reboot into OTA mode for firmware update via BLE or WiFi (ESP32 only for now)
RebootOtaMode OTAMode `protobuf:"varint,1,opt,name=reboot_ota_mode,json=rebootOtaMode,proto3,enum=meshtastic.OTAMode" json:"rebootOtaMode,omitempty"`
// A 32 byte hash of the OTA firmware.
// Used to verify the integrity of the firmware before applying an update.
OtaHash []byte `protobuf:"bytes,2,opt,name=ota_hash,json=otaHash,proto3" json:"otaHash,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AdminMessage_OTAEvent) Reset() {
*x = AdminMessage_OTAEvent{}
mi := &file_meshtastic_admin_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AdminMessage_OTAEvent) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AdminMessage_OTAEvent) ProtoMessage() {}
func (x *AdminMessage_OTAEvent) ProtoReflect() protoreflect.Message {
mi := &file_meshtastic_admin_proto_msgTypes[10]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AdminMessage_OTAEvent.ProtoReflect.Descriptor instead.
func (*AdminMessage_OTAEvent) Descriptor() ([]byte, []int) {
return file_meshtastic_admin_proto_rawDescGZIP(), []int{0, 1}
}
func (x *AdminMessage_OTAEvent) GetRebootOtaMode() OTAMode {
if x != nil {
return x.RebootOtaMode
}
return OTAMode_NO_REBOOT_OTA
}
func (x *AdminMessage_OTAEvent) GetOtaHash() []byte {
if x != nil {
return x.OtaHash
}
return nil
}
var File_meshtastic_admin_proto protoreflect.FileDescriptor
const file_meshtastic_admin_proto_rawDesc = "" +
"\n" +
"\x16meshtastic/admin.proto\x12\n" +
"meshtastic\x1a\x18meshtastic/channel.proto\x1a\x17meshtastic/config.proto\x1a\"meshtastic/connection_status.proto\x1a\x1ameshtastic/device_ui.proto\x1a\x15meshtastic/mesh.proto\x1a\x1emeshtastic/module_config.proto\"\xb8$\n" +
"\fAdminMessage\x12'\n" +
"\x0fsession_passkey\x18e \x01(\fR\x0esessionPasskey\x120\n" +
"\x13get_channel_request\x18\x01 \x01(\rH\x00R\x11getChannelRequest\x12G\n" +
"\x14get_channel_response\x18\x02 \x01(\v2\x13.meshtastic.ChannelH\x00R\x12getChannelResponse\x12,\n" +
"\x11get_owner_request\x18\x03 \x01(\bH\x00R\x0fgetOwnerRequest\x12@\n" +
"\x12get_owner_response\x18\x04 \x01(\v2\x10.meshtastic.UserH\x00R\x10getOwnerResponse\x12S\n" +
"\x12get_config_request\x18\x05 \x01(\x0e2#.meshtastic.AdminMessage.ConfigTypeH\x00R\x10getConfigRequest\x12D\n" +
"\x13get_config_response\x18\x06 \x01(\v2\x12.meshtastic.ConfigH\x00R\x11getConfigResponse\x12f\n" +
"\x19get_module_config_request\x18\a \x01(\x0e2).meshtastic.AdminMessage.ModuleConfigTypeH\x00R\x16getModuleConfigRequest\x12W\n" +
"\x1aget_module_config_response\x18\b \x01(\v2\x18.meshtastic.ModuleConfigH\x00R\x17getModuleConfigResponse\x12[\n" +
"*get_canned_message_module_messages_request\x18\n" +
" \x01(\bH\x00R%getCannedMessageModuleMessagesRequest\x12]\n" +
"+get_canned_message_module_messages_response\x18\v \x01(\tH\x00R&getCannedMessageModuleMessagesResponse\x12?\n" +
"\x1bget_device_metadata_request\x18\f \x01(\bH\x00R\x18getDeviceMetadataRequest\x12]\n" +
"\x1cget_device_metadata_response\x18\r \x01(\v2\x1a.meshtastic.DeviceMetadataH\x00R\x19getDeviceMetadataResponse\x122\n" +
"\x14get_ringtone_request\x18\x0e \x01(\bH\x00R\x12getRingtoneRequest\x124\n" +
"\x15get_ringtone_response\x18\x0f \x01(\tH\x00R\x13getRingtoneResponse\x12P\n" +
"$get_device_connection_status_request\x18\x10 \x01(\bH\x00R getDeviceConnectionStatusRequest\x12v\n" +
"%get_device_connection_status_response\x18\x11 \x01(\v2\".meshtastic.DeviceConnectionStatusH\x00R!getDeviceConnectionStatusResponse\x12=\n" +
"\fset_ham_mode\x18\x12 \x01(\v2\x19.meshtastic.HamParametersH\x00R\n" +
"setHamMode\x12Q\n" +
"%get_node_remote_hardware_pins_request\x18\x13 \x01(\bH\x00R getNodeRemoteHardwarePinsRequest\x12\x7f\n" +
"&get_node_remote_hardware_pins_response\x18\x14 \x01(\v2*.meshtastic.NodeRemoteHardwarePinsResponseH\x00R!getNodeRemoteHardwarePinsResponse\x125\n" +
"\x16enter_dfu_mode_request\x18\x15 \x01(\bH\x00R\x13enterDfuModeRequest\x120\n" +
"\x13delete_file_request\x18\x16 \x01(\tH\x00R\x11deleteFileRequest\x12\x1d\n" +
"\tset_scale\x18\x17 \x01(\rH\x00R\bsetScale\x12X\n" +
"\x12backup_preferences\x18\x18 \x01(\x0e2'.meshtastic.AdminMessage.BackupLocationH\x00R\x11backupPreferences\x12Z\n" +
"\x13restore_preferences\x18\x19 \x01(\x0e2'.meshtastic.AdminMessage.BackupLocationH\x00R\x12restorePreferences\x12e\n" +
"\x19remove_backup_preferences\x18\x1a \x01(\x0e2'.meshtastic.AdminMessage.BackupLocationH\x00R\x17removeBackupPreferences\x12O\n" +
"\x10send_input_event\x18\x1b \x01(\v2#.meshtastic.AdminMessage.InputEventH\x00R\x0esendInputEvent\x12/\n" +
"\tset_owner\x18 \x01(\v2\x10.meshtastic.UserH\x00R\bsetOwner\x126\n" +
"\vset_channel\x18! \x01(\v2\x13.meshtastic.ChannelH\x00R\n" +
"setChannel\x123\n" +
"\n" +
"set_config\x18\" \x01(\v2\x12.meshtastic.ConfigH\x00R\tsetConfig\x12F\n" +
"\x11set_module_config\x18# \x01(\v2\x18.meshtastic.ModuleConfigH\x00R\x0fsetModuleConfig\x12L\n" +
"\"set_canned_message_module_messages\x18$ \x01(\tH\x00R\x1esetCannedMessageModuleMessages\x122\n" +
"\x14set_ringtone_message\x18% \x01(\tH\x00R\x12setRingtoneMessage\x12,\n" +
"\x11remove_by_nodenum\x18& \x01(\rH\x00R\x0fremoveByNodenum\x12,\n" +
"\x11set_favorite_node\x18' \x01(\rH\x00R\x0fsetFavoriteNode\x122\n" +
"\x14remove_favorite_node\x18( \x01(\rH\x00R\x12removeFavoriteNode\x12D\n" +
"\x12set_fixed_position\x18) \x01(\v2\x14.meshtastic.PositionH\x00R\x10setFixedPosition\x124\n" +
"\x15remove_fixed_position\x18* \x01(\bH\x00R\x13removeFixedPosition\x12$\n" +
"\rset_time_only\x18+ \x01(\aH\x00R\vsetTimeOnly\x123\n" +
"\x15get_ui_config_request\x18, \x01(\bH\x00R\x12getUiConfigRequest\x12Q\n" +
"\x16get_ui_config_response\x18- \x01(\v2\x1a.meshtastic.DeviceUIConfigH\x00R\x13getUiConfigResponse\x12D\n" +
"\x0fstore_ui_config\x18. \x01(\v2\x1a.meshtastic.DeviceUIConfigH\x00R\rstoreUiConfig\x12*\n" +
"\x10set_ignored_node\x18/ \x01(\rH\x00R\x0esetIgnoredNode\x120\n" +
"\x13remove_ignored_node\x180 \x01(\rH\x00R\x11removeIgnoredNode\x12,\n" +
"\x11toggle_muted_node\x181 \x01(\rH\x00R\x0ftoggleMutedNode\x120\n" +
"\x13begin_edit_settings\x18@ \x01(\bH\x00R\x11beginEditSettings\x122\n" +
"\x14commit_edit_settings\x18A \x01(\bH\x00R\x12commitEditSettings\x12<\n" +
"\vadd_contact\x18B \x01(\v2\x19.meshtastic.SharedContactH\x00R\n" +
"addContact\x12M\n" +
"\x10key_verification\x18C \x01(\v2 .meshtastic.KeyVerificationAdminH\x00R\x0fkeyVerification\x122\n" +
"\x14factory_reset_device\x18^ \x01(\x05H\x00R\x12factoryResetDevice\x122\n" +
"\x12reboot_ota_seconds\x18_ \x01(\x05B\x02\x18\x01H\x00R\x10rebootOtaSeconds\x12'\n" +
"\x0eexit_simulator\x18` \x01(\bH\x00R\rexitSimulator\x12'\n" +
"\x0ereboot_seconds\x18a \x01(\x05H\x00R\rrebootSeconds\x12+\n" +
"\x10shutdown_seconds\x18b \x01(\x05H\x00R\x0fshutdownSeconds\x122\n" +
"\x14factory_reset_config\x18c \x01(\x05H\x00R\x12factoryResetConfig\x12#\n" +
"\fnodedb_reset\x18d \x01(\bH\x00R\vnodedbReset\x12D\n" +
"\vota_request\x18f \x01(\v2!.meshtastic.AdminMessage.OTAEventH\x00R\n" +
"otaRequest\x12?\n" +
"\rsensor_config\x18g \x01(\v2\x18.meshtastic.SensorConfigH\x00R\fsensorConfig\x1av\n" +
"\n" +
"InputEvent\x12\x1d\n" +
"\n" +
"event_code\x18\x01 \x01(\rR\teventCode\x12\x17\n" +
"\akb_char\x18\x02 \x01(\rR\x06kbChar\x12\x17\n" +
"\atouch_x\x18\x03 \x01(\rR\x06touchX\x12\x17\n" +
"\atouch_y\x18\x04 \x01(\rR\x06touchY\x1ab\n" +
"\bOTAEvent\x12;\n" +
"\x0freboot_ota_mode\x18\x01 \x01(\x0e2\x13.meshtastic.OTAModeR\rrebootOtaMode\x12\x19\n" +
"\bota_hash\x18\x02 \x01(\fR\aotaHash\"\xd6\x01\n" +
"\n" +
"ConfigType\x12\x11\n" +
"\rDEVICE_CONFIG\x10\x00\x12\x13\n" +
"\x0fPOSITION_CONFIG\x10\x01\x12\x10\n" +
"\fPOWER_CONFIG\x10\x02\x12\x12\n" +
"\x0eNETWORK_CONFIG\x10\x03\x12\x12\n" +
"\x0eDISPLAY_CONFIG\x10\x04\x12\x0f\n" +
"\vLORA_CONFIG\x10\x05\x12\x14\n" +
"\x10BLUETOOTH_CONFIG\x10\x06\x12\x13\n" +
"\x0fSECURITY_CONFIG\x10\a\x12\x15\n" +
"\x11SESSIONKEY_CONFIG\x10\b\x12\x13\n" +
"\x0fDEVICEUI_CONFIG\x10\t\"\x83\x03\n" +
"\x10ModuleConfigType\x12\x0f\n" +
"\vMQTT_CONFIG\x10\x00\x12\x11\n" +
"\rSERIAL_CONFIG\x10\x01\x12\x13\n" +
"\x0fEXTNOTIF_CONFIG\x10\x02\x12\x17\n" +
"\x13STOREFORWARD_CONFIG\x10\x03\x12\x14\n" +
"\x10RANGETEST_CONFIG\x10\x04\x12\x14\n" +
"\x10TELEMETRY_CONFIG\x10\x05\x12\x14\n" +
"\x10CANNEDMSG_CONFIG\x10\x06\x12\x10\n" +
"\fAUDIO_CONFIG\x10\a\x12\x19\n" +
"\x15REMOTEHARDWARE_CONFIG\x10\b\x12\x17\n" +
"\x13NEIGHBORINFO_CONFIG\x10\t\x12\x1a\n" +
"\x16AMBIENTLIGHTING_CONFIG\x10\n" +
"\x12\x1a\n" +
"\x16DETECTIONSENSOR_CONFIG\x10\v\x12\x15\n" +
"\x11PAXCOUNTER_CONFIG\x10\f\x12\x18\n" +
"\x14STATUSMESSAGE_CONFIG\x10\r\x12\x1c\n" +
"\x18TRAFFICMANAGEMENT_CONFIG\x10\x0e\x12\x0e\n" +
"\n" +
"TAK_CONFIG\x10\x0f\"#\n" +
"\x0eBackupLocation\x12\t\n" +
"\x05FLASH\x10\x00\x12\x06\n" +
"\x02SD\x10\x01B\x11\n" +
"\x0fpayload_variant\"\x84\x01\n" +
"\rHamParameters\x12\x1b\n" +
"\tcall_sign\x18\x01 \x01(\tR\bcallSign\x12\x19\n" +
"\btx_power\x18\x02 \x01(\x05R\atxPower\x12\x1c\n" +
"\tfrequency\x18\x03 \x01(\x02R\tfrequency\x12\x1d\n" +
"\n" +
"short_name\x18\x04 \x01(\tR\tshortName\"~\n" +
"\x1eNodeRemoteHardwarePinsResponse\x12\\\n" +
"\x19node_remote_hardware_pins\x18\x01 \x03(\v2!.meshtastic.NodeRemoteHardwarePinR\x16nodeRemoteHardwarePins\"\xa2\x01\n" +
"\rSharedContact\x12\x19\n" +
"\bnode_num\x18\x01 \x01(\rR\anodeNum\x12$\n" +
"\x04user\x18\x02 \x01(\v2\x10.meshtastic.UserR\x04user\x12#\n" +
"\rshould_ignore\x18\x03 \x01(\bR\fshouldIgnore\x12+\n" +
"\x11manually_verified\x18\x04 \x01(\bR\x10manuallyVerified\"\xcf\x02\n" +
"\x14KeyVerificationAdmin\x12O\n" +
"\fmessage_type\x18\x01 \x01(\x0e2,.meshtastic.KeyVerificationAdmin.MessageTypeR\vmessageType\x12%\n" +
"\x0eremote_nodenum\x18\x02 \x01(\rR\rremoteNodenum\x12\x14\n" +
"\x05nonce\x18\x03 \x01(\x04R\x05nonce\x12,\n" +
"\x0fsecurity_number\x18\x04 \x01(\rH\x00R\x0esecurityNumber\x88\x01\x01\"g\n" +
"\vMessageType\x12\x19\n" +
"\x15INITIATE_VERIFICATION\x10\x00\x12\x1b\n" +
"\x17PROVIDE_SECURITY_NUMBER\x10\x01\x12\r\n" +
"\tDO_VERIFY\x10\x02\x12\x11\n" +
"\rDO_NOT_VERIFY\x10\x03B\x12\n" +
"\x10_security_number\"\xc5\x01\n" +
"\fSensorConfig\x12;\n" +
"\fscd4x_config\x18\x01 \x01(\v2\x18.meshtastic.SCD4X_configR\vscd4xConfig\x12;\n" +
"\fsen5x_config\x18\x02 \x01(\v2\x18.meshtastic.SEN5X_configR\vsen5xConfig\x12;\n" +
"\fscd30_config\x18\x03 \x01(\v2\x18.meshtastic.SCD30_configR\vscd30Config\"\xc9\x03\n" +
"\fSCD4X_config\x12\x1c\n" +
"\aset_asc\x18\x01 \x01(\bH\x00R\x06setAsc\x88\x01\x01\x122\n" +
"\x13set_target_co2_conc\x18\x02 \x01(\rH\x01R\x10setTargetCo2Conc\x88\x01\x01\x12,\n" +
"\x0fset_temperature\x18\x03 \x01(\x02H\x02R\x0esetTemperature\x88\x01\x01\x12&\n" +
"\fset_altitude\x18\x04 \x01(\rH\x03R\vsetAltitude\x88\x01\x01\x125\n" +
"\x14set_ambient_pressure\x18\x05 \x01(\rH\x04R\x12setAmbientPressure\x88\x01\x01\x12(\n" +
"\rfactory_reset\x18\x06 \x01(\bH\x05R\ffactoryReset\x88\x01\x01\x12)\n" +
"\x0eset_power_mode\x18\a \x01(\bH\x06R\fsetPowerMode\x88\x01\x01B\n" +
"\n" +
"\b_set_ascB\x16\n" +
"\x14_set_target_co2_concB\x12\n" +
"\x10_set_temperatureB\x0f\n" +
"\r_set_altitudeB\x17\n" +
"\x15_set_ambient_pressureB\x10\n" +
"\x0e_factory_resetB\x11\n" +
"\x0f_set_power_mode\"\x96\x01\n" +
"\fSEN5X_config\x12,\n" +
"\x0fset_temperature\x18\x01 \x01(\x02H\x00R\x0esetTemperature\x88\x01\x01\x12.\n" +
"\x11set_one_shot_mode\x18\x02 \x01(\bH\x01R\x0esetOneShotMode\x88\x01\x01B\x12\n" +
"\x10_set_temperatureB\x14\n" +
"\x12_set_one_shot_mode\"\x8e\x03\n" +
"\fSCD30_config\x12\x1c\n" +
"\aset_asc\x18\x01 \x01(\bH\x00R\x06setAsc\x88\x01\x01\x122\n" +
"\x13set_target_co2_conc\x18\x02 \x01(\rH\x01R\x10setTargetCo2Conc\x88\x01\x01\x12,\n" +
"\x0fset_temperature\x18\x03 \x01(\x02H\x02R\x0esetTemperature\x88\x01\x01\x12&\n" +
"\fset_altitude\x18\x04 \x01(\rH\x03R\vsetAltitude\x88\x01\x01\x12=\n" +
"\x18set_measurement_interval\x18\x05 \x01(\rH\x04R\x16setMeasurementInterval\x88\x01\x01\x12\"\n" +
"\n" +
"soft_reset\x18\x06 \x01(\bH\x05R\tsoftReset\x88\x01\x01B\n" +
"\n" +
"\b_set_ascB\x16\n" +
"\x14_set_target_co2_concB\x12\n" +
"\x10_set_temperatureB\x0f\n" +
"\r_set_altitudeB\x1b\n" +
"\x19_set_measurement_intervalB\r\n" +
"\v_soft_reset*7\n" +
"\aOTAMode\x12\x11\n" +
"\rNO_REBOOT_OTA\x10\x00\x12\v\n" +
"\aOTA_BLE\x10\x01\x12\f\n" +
"\bOTA_WIFI\x10\x02Ba\n" +
"\x14org.meshtastic.protoB\vAdminProtosZ\"github.com/meshtastic/go/generated\xaa\x02\x14Meshtastic.Protobufs\xba\x02\x00b\x06proto3"
var (
file_meshtastic_admin_proto_rawDescOnce sync.Once
file_meshtastic_admin_proto_rawDescData []byte
)
func file_meshtastic_admin_proto_rawDescGZIP() []byte {
file_meshtastic_admin_proto_rawDescOnce.Do(func() {
file_meshtastic_admin_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_meshtastic_admin_proto_rawDesc), len(file_meshtastic_admin_proto_rawDesc)))
})
return file_meshtastic_admin_proto_rawDescData
}
var file_meshtastic_admin_proto_enumTypes = make([]protoimpl.EnumInfo, 5)
var file_meshtastic_admin_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
var file_meshtastic_admin_proto_goTypes = []any{
(OTAMode)(0), // 0: meshtastic.OTAMode
(AdminMessage_ConfigType)(0), // 1: meshtastic.AdminMessage.ConfigType
(AdminMessage_ModuleConfigType)(0), // 2: meshtastic.AdminMessage.ModuleConfigType
(AdminMessage_BackupLocation)(0), // 3: meshtastic.AdminMessage.BackupLocation
(KeyVerificationAdmin_MessageType)(0), // 4: meshtastic.KeyVerificationAdmin.MessageType
(*AdminMessage)(nil), // 5: meshtastic.AdminMessage
(*HamParameters)(nil), // 6: meshtastic.HamParameters
(*NodeRemoteHardwarePinsResponse)(nil), // 7: meshtastic.NodeRemoteHardwarePinsResponse
(*SharedContact)(nil), // 8: meshtastic.SharedContact
(*KeyVerificationAdmin)(nil), // 9: meshtastic.KeyVerificationAdmin
(*SensorConfig)(nil), // 10: meshtastic.SensorConfig
(*SCD4XConfig)(nil), // 11: meshtastic.SCD4X_config
(*SEN5XConfig)(nil), // 12: meshtastic.SEN5X_config
(*SCD30Config)(nil), // 13: meshtastic.SCD30_config
(*AdminMessage_InputEvent)(nil), // 14: meshtastic.AdminMessage.InputEvent
(*AdminMessage_OTAEvent)(nil), // 15: meshtastic.AdminMessage.OTAEvent
(*Channel)(nil), // 16: meshtastic.Channel
(*User)(nil), // 17: meshtastic.User
(*Config)(nil), // 18: meshtastic.Config
(*ModuleConfig)(nil), // 19: meshtastic.ModuleConfig
(*DeviceMetadata)(nil), // 20: meshtastic.DeviceMetadata
(*DeviceConnectionStatus)(nil), // 21: meshtastic.DeviceConnectionStatus
(*Position)(nil), // 22: meshtastic.Position
(*DeviceUIConfig)(nil), // 23: meshtastic.DeviceUIConfig
(*NodeRemoteHardwarePin)(nil), // 24: meshtastic.NodeRemoteHardwarePin
}
var file_meshtastic_admin_proto_depIdxs = []int32{
16, // 0: meshtastic.AdminMessage.get_channel_response:type_name -> meshtastic.Channel
17, // 1: meshtastic.AdminMessage.get_owner_response:type_name -> meshtastic.User
1, // 2: meshtastic.AdminMessage.get_config_request:type_name -> meshtastic.AdminMessage.ConfigType
18, // 3: meshtastic.AdminMessage.get_config_response:type_name -> meshtastic.Config
2, // 4: meshtastic.AdminMessage.get_module_config_request:type_name -> meshtastic.AdminMessage.ModuleConfigType
19, // 5: meshtastic.AdminMessage.get_module_config_response:type_name -> meshtastic.ModuleConfig
20, // 6: meshtastic.AdminMessage.get_device_metadata_response:type_name -> meshtastic.DeviceMetadata
21, // 7: meshtastic.AdminMessage.get_device_connection_status_response:type_name -> meshtastic.DeviceConnectionStatus
6, // 8: meshtastic.AdminMessage.set_ham_mode:type_name -> meshtastic.HamParameters
7, // 9: meshtastic.AdminMessage.get_node_remote_hardware_pins_response:type_name -> meshtastic.NodeRemoteHardwarePinsResponse
3, // 10: meshtastic.AdminMessage.backup_preferences:type_name -> meshtastic.AdminMessage.BackupLocation
3, // 11: meshtastic.AdminMessage.restore_preferences:type_name -> meshtastic.AdminMessage.BackupLocation
3, // 12: meshtastic.AdminMessage.remove_backup_preferences:type_name -> meshtastic.AdminMessage.BackupLocation
14, // 13: meshtastic.AdminMessage.send_input_event:type_name -> meshtastic.AdminMessage.InputEvent
17, // 14: meshtastic.AdminMessage.set_owner:type_name -> meshtastic.User
16, // 15: meshtastic.AdminMessage.set_channel:type_name -> meshtastic.Channel
18, // 16: meshtastic.AdminMessage.set_config:type_name -> meshtastic.Config
19, // 17: meshtastic.AdminMessage.set_module_config:type_name -> meshtastic.ModuleConfig
22, // 18: meshtastic.AdminMessage.set_fixed_position:type_name -> meshtastic.Position
23, // 19: meshtastic.AdminMessage.get_ui_config_response:type_name -> meshtastic.DeviceUIConfig
23, // 20: meshtastic.AdminMessage.store_ui_config:type_name -> meshtastic.DeviceUIConfig
8, // 21: meshtastic.AdminMessage.add_contact:type_name -> meshtastic.SharedContact
9, // 22: meshtastic.AdminMessage.key_verification:type_name -> meshtastic.KeyVerificationAdmin
15, // 23: meshtastic.AdminMessage.ota_request:type_name -> meshtastic.AdminMessage.OTAEvent
10, // 24: meshtastic.AdminMessage.sensor_config:type_name -> meshtastic.SensorConfig
24, // 25: meshtastic.NodeRemoteHardwarePinsResponse.node_remote_hardware_pins:type_name -> meshtastic.NodeRemoteHardwarePin
17, // 26: meshtastic.SharedContact.user:type_name -> meshtastic.User
4, // 27: meshtastic.KeyVerificationAdmin.message_type:type_name -> meshtastic.KeyVerificationAdmin.MessageType
11, // 28: meshtastic.SensorConfig.scd4x_config:type_name -> meshtastic.SCD4X_config
12, // 29: meshtastic.SensorConfig.sen5x_config:type_name -> meshtastic.SEN5X_config
13, // 30: meshtastic.SensorConfig.scd30_config:type_name -> meshtastic.SCD30_config
0, // 31: meshtastic.AdminMessage.OTAEvent.reboot_ota_mode:type_name -> meshtastic.OTAMode
32, // [32:32] is the sub-list for method output_type
32, // [32:32] is the sub-list for method input_type
32, // [32:32] is the sub-list for extension type_name
32, // [32:32] is the sub-list for extension extendee
0, // [0:32] is the sub-list for field type_name
}
func init() { file_meshtastic_admin_proto_init() }
func file_meshtastic_admin_proto_init() {
if File_meshtastic_admin_proto != nil {
return
}
file_meshtastic_channel_proto_init()
file_meshtastic_config_proto_init()
file_meshtastic_connection_status_proto_init()
file_meshtastic_device_ui_proto_init()
file_meshtastic_mesh_proto_init()
file_meshtastic_module_config_proto_init()
file_meshtastic_admin_proto_msgTypes[0].OneofWrappers = []any{
(*AdminMessage_GetChannelRequest)(nil),
(*AdminMessage_GetChannelResponse)(nil),
(*AdminMessage_GetOwnerRequest)(nil),
(*AdminMessage_GetOwnerResponse)(nil),
(*AdminMessage_GetConfigRequest)(nil),
(*AdminMessage_GetConfigResponse)(nil),
(*AdminMessage_GetModuleConfigRequest)(nil),
(*AdminMessage_GetModuleConfigResponse)(nil),
(*AdminMessage_GetCannedMessageModuleMessagesRequest)(nil),
(*AdminMessage_GetCannedMessageModuleMessagesResponse)(nil),
(*AdminMessage_GetDeviceMetadataRequest)(nil),
(*AdminMessage_GetDeviceMetadataResponse)(nil),
(*AdminMessage_GetRingtoneRequest)(nil),
(*AdminMessage_GetRingtoneResponse)(nil),
(*AdminMessage_GetDeviceConnectionStatusRequest)(nil),
(*AdminMessage_GetDeviceConnectionStatusResponse)(nil),
(*AdminMessage_SetHamMode)(nil),
(*AdminMessage_GetNodeRemoteHardwarePinsRequest)(nil),
(*AdminMessage_GetNodeRemoteHardwarePinsResponse)(nil),
(*AdminMessage_EnterDfuModeRequest)(nil),
(*AdminMessage_DeleteFileRequest)(nil),
(*AdminMessage_SetScale)(nil),
(*AdminMessage_BackupPreferences)(nil),
(*AdminMessage_RestorePreferences)(nil),
(*AdminMessage_RemoveBackupPreferences)(nil),
(*AdminMessage_SendInputEvent)(nil),
(*AdminMessage_SetOwner)(nil),
(*AdminMessage_SetChannel)(nil),
(*AdminMessage_SetConfig)(nil),
(*AdminMessage_SetModuleConfig)(nil),
(*AdminMessage_SetCannedMessageModuleMessages)(nil),
(*AdminMessage_SetRingtoneMessage)(nil),
(*AdminMessage_RemoveByNodenum)(nil),
(*AdminMessage_SetFavoriteNode)(nil),
(*AdminMessage_RemoveFavoriteNode)(nil),
(*AdminMessage_SetFixedPosition)(nil),
(*AdminMessage_RemoveFixedPosition)(nil),
(*AdminMessage_SetTimeOnly)(nil),
(*AdminMessage_GetUiConfigRequest)(nil),
(*AdminMessage_GetUiConfigResponse)(nil),
(*AdminMessage_StoreUiConfig)(nil),
(*AdminMessage_SetIgnoredNode)(nil),
(*AdminMessage_RemoveIgnoredNode)(nil),
(*AdminMessage_ToggleMutedNode)(nil),
(*AdminMessage_BeginEditSettings)(nil),
(*AdminMessage_CommitEditSettings)(nil),
(*AdminMessage_AddContact)(nil),
(*AdminMessage_KeyVerification)(nil),
(*AdminMessage_FactoryResetDevice)(nil),
(*AdminMessage_RebootOtaSeconds)(nil),
(*AdminMessage_ExitSimulator)(nil),
(*AdminMessage_RebootSeconds)(nil),
(*AdminMessage_ShutdownSeconds)(nil),
(*AdminMessage_FactoryResetConfig)(nil),
(*AdminMessage_NodedbReset)(nil),
(*AdminMessage_OtaRequest)(nil),
(*AdminMessage_SensorConfig)(nil),
}
file_meshtastic_admin_proto_msgTypes[4].OneofWrappers = []any{}
file_meshtastic_admin_proto_msgTypes[6].OneofWrappers = []any{}
file_meshtastic_admin_proto_msgTypes[7].OneofWrappers = []any{}
file_meshtastic_admin_proto_msgTypes[8].OneofWrappers = []any{}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_meshtastic_admin_proto_rawDesc), len(file_meshtastic_admin_proto_rawDesc)),
NumEnums: 5,
NumMessages: 11,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_meshtastic_admin_proto_goTypes,
DependencyIndexes: file_meshtastic_admin_proto_depIdxs,
EnumInfos: file_meshtastic_admin_proto_enumTypes,
MessageInfos: file_meshtastic_admin_proto_msgTypes,
}.Build()
File_meshtastic_admin_proto = out.File
file_meshtastic_admin_proto_goTypes = nil
file_meshtastic_admin_proto_depIdxs = nil
}