aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--generate.go2
-rw-r--r--meshtastic/admin.pb.go4
-rw-r--r--meshtastic/admin_vtproto.pb.go3546
-rw-r--r--meshtastic/apponly.pb.go4
-rw-r--r--meshtastic/apponly_vtproto.pb.go237
-rw-r--r--meshtastic/atak.pb.go10
-rw-r--r--meshtastic/atak_vtproto.pb.go1503
-rw-r--r--meshtastic/cannedmessages.pb.go4
-rw-r--r--meshtastic/cannedmessages_vtproto.pb.go165
-rw-r--r--meshtastic/channel.pb.go153
-rw-r--r--meshtastic/channel_vtproto.pb.go480
-rw-r--r--meshtastic/clientonly.pb.go4
-rw-r--r--meshtastic/clientonly_vtproto.pb.go371
-rw-r--r--meshtastic/config.pb.go436
-rw-r--r--meshtastic/config_vtproto.pb.go4256
-rw-r--r--meshtastic/connection_status.pb.go4
-rw-r--r--meshtastic/connection_status_vtproto.pb.go1347
-rw-r--r--meshtastic/deviceonly.pb.go4
-rw-r--r--meshtastic/deviceonly_vtproto.pb.go2066
-rw-r--r--meshtastic/localonly.pb.go4
-rw-r--r--meshtastic/localonly_vtproto.pb.go1289
-rw-r--r--meshtastic/mesh.pb.go797
-rw-r--r--meshtastic/mesh_vtproto.pb.go7560
-rw-r--r--meshtastic/module_config.pb.go4
-rw-r--r--meshtastic/module_config_vtproto.pb.go6047
-rw-r--r--meshtastic/mqtt.pb.go4
-rw-r--r--meshtastic/mqtt_vtproto.pb.go262
-rw-r--r--meshtastic/paxcount.pb.go4
-rw-r--r--meshtastic/paxcount_vtproto.pb.go201
-rw-r--r--meshtastic/portnums.pb.go4
-rw-r--r--meshtastic/remote_hardware.pb.go4
-rw-r--r--meshtastic/remote_hardware_vtproto.pb.go201
-rw-r--r--meshtastic/rtttl.pb.go4
-rw-r--r--meshtastic/rtttl_vtproto.pb.go165
-rw-r--r--meshtastic/storeforward.pb.go4
-rw-r--r--meshtastic/storeforward_vtproto.pb.go1294
-rw-r--r--meshtastic/telemetry.pb.go52
-rw-r--r--meshtastic/telemetry_vtproto.pb.go1699
-rw-r--r--meshtastic/xmodem.pb.go4
-rw-r--r--meshtastic/xmodem_vtproto.pb.go247
m---------protobufs0
41 files changed, 901 insertions, 33545 deletions
diff --git a/generate.go b/generate.go
index 3e4d349..ccc9377 100644
--- a/generate.go
+++ b/generate.go
@@ -1,2 +1,2 @@
-//go:generate protoc -I protobufs\ --go_out=. --go_opt=paths=source_relative --go-vtproto_out=paths=source_relative:. protobufs\meshtastic\*.proto
+//go:generate protoc -I ./protobufs/ --go_out=. --go_opt=paths=source_relative --go-vtproto_out=paths=source_relative:. --go-vtproto_opt=features=marshal+unmarshal+size ./protobufs/meshtastic/*.proto
package meshtastic
diff --git a/meshtastic/admin.pb.go b/meshtastic/admin.pb.go
index 2e4720c..1f25eb8 100644
--- a/meshtastic/admin.pb.go
+++ b/meshtastic/admin.pb.go
@@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.31.0
-// protoc v4.24.3
+// protoc-gen-go v1.32.0
+// protoc v4.25.2
// source: meshtastic/admin.proto
package generated
diff --git a/meshtastic/admin_vtproto.pb.go b/meshtastic/admin_vtproto.pb.go
index 3a4f86a..42b34d2 100644
--- a/meshtastic/admin_vtproto.pb.go
+++ b/meshtastic/admin_vtproto.pb.go
@@ -8,11 +8,9 @@ import (
binary "encoding/binary"
fmt "fmt"
protohelpers "github.com/planetscale/vtprotobuf/protohelpers"
- proto "google.golang.org/protobuf/proto"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
math "math"
- unsafe "unsafe"
)
const (
@@ -22,1191 +20,6 @@ const (
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
-func (m *AdminMessage) CloneVT() *AdminMessage {
- if m == nil {
- return (*AdminMessage)(nil)
- }
- r := new(AdminMessage)
- if m.PayloadVariant != nil {
- r.PayloadVariant = m.PayloadVariant.(interface {
- CloneVT() isAdminMessage_PayloadVariant
- }).CloneVT()
- }
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *AdminMessage) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *AdminMessage_GetChannelRequest) CloneVT() isAdminMessage_PayloadVariant {
- if m == nil {
- return (*AdminMessage_GetChannelRequest)(nil)
- }
- r := new(AdminMessage_GetChannelRequest)
- r.GetChannelRequest = m.GetChannelRequest
- return r
-}
-
-func (m *AdminMessage_GetChannelResponse) CloneVT() isAdminMessage_PayloadVariant {
- if m == nil {
- return (*AdminMessage_GetChannelResponse)(nil)
- }
- r := new(AdminMessage_GetChannelResponse)
- r.GetChannelResponse = m.GetChannelResponse.CloneVT()
- return r
-}
-
-func (m *AdminMessage_GetOwnerRequest) CloneVT() isAdminMessage_PayloadVariant {
- if m == nil {
- return (*AdminMessage_GetOwnerRequest)(nil)
- }
- r := new(AdminMessage_GetOwnerRequest)
- r.GetOwnerRequest = m.GetOwnerRequest
- return r
-}
-
-func (m *AdminMessage_GetOwnerResponse) CloneVT() isAdminMessage_PayloadVariant {
- if m == nil {
- return (*AdminMessage_GetOwnerResponse)(nil)
- }
- r := new(AdminMessage_GetOwnerResponse)
- r.GetOwnerResponse = m.GetOwnerResponse.CloneVT()
- return r
-}
-
-func (m *AdminMessage_GetConfigRequest) CloneVT() isAdminMessage_PayloadVariant {
- if m == nil {
- return (*AdminMessage_GetConfigRequest)(nil)
- }
- r := new(AdminMessage_GetConfigRequest)
- r.GetConfigRequest = m.GetConfigRequest
- return r
-}
-
-func (m *AdminMessage_GetConfigResponse) CloneVT() isAdminMessage_PayloadVariant {
- if m == nil {
- return (*AdminMessage_GetConfigResponse)(nil)
- }
- r := new(AdminMessage_GetConfigResponse)
- r.GetConfigResponse = m.GetConfigResponse.CloneVT()
- return r
-}
-
-func (m *AdminMessage_GetModuleConfigRequest) CloneVT() isAdminMessage_PayloadVariant {
- if m == nil {
- return (*AdminMessage_GetModuleConfigRequest)(nil)
- }
- r := new(AdminMessage_GetModuleConfigRequest)
- r.GetModuleConfigRequest = m.GetModuleConfigRequest
- return r
-}
-
-func (m *AdminMessage_GetModuleConfigResponse) CloneVT() isAdminMessage_PayloadVariant {
- if m == nil {
- return (*AdminMessage_GetModuleConfigResponse)(nil)
- }
- r := new(AdminMessage_GetModuleConfigResponse)
- r.GetModuleConfigResponse = m.GetModuleConfigResponse.CloneVT()
- return r
-}
-
-func (m *AdminMessage_GetCannedMessageModuleMessagesRequest) CloneVT() isAdminMessage_PayloadVariant {
- if m == nil {
- return (*AdminMessage_GetCannedMessageModuleMessagesRequest)(nil)
- }
- r := new(AdminMessage_GetCannedMessageModuleMessagesRequest)
- r.GetCannedMessageModuleMessagesRequest = m.GetCannedMessageModuleMessagesRequest
- return r
-}
-
-func (m *AdminMessage_GetCannedMessageModuleMessagesResponse) CloneVT() isAdminMessage_PayloadVariant {
- if m == nil {
- return (*AdminMessage_GetCannedMessageModuleMessagesResponse)(nil)
- }
- r := new(AdminMessage_GetCannedMessageModuleMessagesResponse)
- r.GetCannedMessageModuleMessagesResponse = m.GetCannedMessageModuleMessagesResponse
- return r
-}
-
-func (m *AdminMessage_GetDeviceMetadataRequest) CloneVT() isAdminMessage_PayloadVariant {
- if m == nil {
- return (*AdminMessage_GetDeviceMetadataRequest)(nil)
- }
- r := new(AdminMessage_GetDeviceMetadataRequest)
- r.GetDeviceMetadataRequest = m.GetDeviceMetadataRequest
- return r
-}
-
-func (m *AdminMessage_GetDeviceMetadataResponse) CloneVT() isAdminMessage_PayloadVariant {
- if m == nil {
- return (*AdminMessage_GetDeviceMetadataResponse)(nil)
- }
- r := new(AdminMessage_GetDeviceMetadataResponse)
- r.GetDeviceMetadataResponse = m.GetDeviceMetadataResponse.CloneVT()
- return r
-}
-
-func (m *AdminMessage_GetRingtoneRequest) CloneVT() isAdminMessage_PayloadVariant {
- if m == nil {
- return (*AdminMessage_GetRingtoneRequest)(nil)
- }
- r := new(AdminMessage_GetRingtoneRequest)
- r.GetRingtoneRequest = m.GetRingtoneRequest
- return r
-}
-
-func (m *AdminMessage_GetRingtoneResponse) CloneVT() isAdminMessage_PayloadVariant {
- if m == nil {
- return (*AdminMessage_GetRingtoneResponse)(nil)
- }
- r := new(AdminMessage_GetRingtoneResponse)
- r.GetRingtoneResponse = m.GetRingtoneResponse
- return r
-}
-
-func (m *AdminMessage_GetDeviceConnectionStatusRequest) CloneVT() isAdminMessage_PayloadVariant {
- if m == nil {
- return (*AdminMessage_GetDeviceConnectionStatusRequest)(nil)
- }
- r := new(AdminMessage_GetDeviceConnectionStatusRequest)
- r.GetDeviceConnectionStatusRequest = m.GetDeviceConnectionStatusRequest
- return r
-}
-
-func (m *AdminMessage_GetDeviceConnectionStatusResponse) CloneVT() isAdminMessage_PayloadVariant {
- if m == nil {
- return (*AdminMessage_GetDeviceConnectionStatusResponse)(nil)
- }
- r := new(AdminMessage_GetDeviceConnectionStatusResponse)
- r.GetDeviceConnectionStatusResponse = m.GetDeviceConnectionStatusResponse.CloneVT()
- return r
-}
-
-func (m *AdminMessage_SetHamMode) CloneVT() isAdminMessage_PayloadVariant {
- if m == nil {
- return (*AdminMessage_SetHamMode)(nil)
- }
- r := new(AdminMessage_SetHamMode)
- r.SetHamMode = m.SetHamMode.CloneVT()
- return r
-}
-
-func (m *AdminMessage_GetNodeRemoteHardwarePinsRequest) CloneVT() isAdminMessage_PayloadVariant {
- if m == nil {
- return (*AdminMessage_GetNodeRemoteHardwarePinsRequest)(nil)
- }
- r := new(AdminMessage_GetNodeRemoteHardwarePinsRequest)
- r.GetNodeRemoteHardwarePinsRequest = m.GetNodeRemoteHardwarePinsRequest
- return r
-}
-
-func (m *AdminMessage_GetNodeRemoteHardwarePinsResponse) CloneVT() isAdminMessage_PayloadVariant {
- if m == nil {
- return (*AdminMessage_GetNodeRemoteHardwarePinsResponse)(nil)
- }
- r := new(AdminMessage_GetNodeRemoteHardwarePinsResponse)
- r.GetNodeRemoteHardwarePinsResponse = m.GetNodeRemoteHardwarePinsResponse.CloneVT()
- return r
-}
-
-func (m *AdminMessage_EnterDfuModeRequest) CloneVT() isAdminMessage_PayloadVariant {
- if m == nil {
- return (*AdminMessage_EnterDfuModeRequest)(nil)
- }
- r := new(AdminMessage_EnterDfuModeRequest)
- r.EnterDfuModeRequest = m.EnterDfuModeRequest
- return r
-}
-
-func (m *AdminMessage_DeleteFileRequest) CloneVT() isAdminMessage_PayloadVariant {
- if m == nil {
- return (*AdminMessage_DeleteFileRequest)(nil)
- }
- r := new(AdminMessage_DeleteFileRequest)
- r.DeleteFileRequest = m.DeleteFileRequest
- return r
-}
-
-func (m *AdminMessage_SetOwner) CloneVT() isAdminMessage_PayloadVariant {
- if m == nil {
- return (*AdminMessage_SetOwner)(nil)
- }
- r := new(AdminMessage_SetOwner)
- r.SetOwner = m.SetOwner.CloneVT()
- return r
-}
-
-func (m *AdminMessage_SetChannel) CloneVT() isAdminMessage_PayloadVariant {
- if m == nil {
- return (*AdminMessage_SetChannel)(nil)
- }
- r := new(AdminMessage_SetChannel)
- r.SetChannel = m.SetChannel.CloneVT()
- return r
-}
-
-func (m *AdminMessage_SetConfig) CloneVT() isAdminMessage_PayloadVariant {
- if m == nil {
- return (*AdminMessage_SetConfig)(nil)
- }
- r := new(AdminMessage_SetConfig)
- r.SetConfig = m.SetConfig.CloneVT()
- return r
-}
-
-func (m *AdminMessage_SetModuleConfig) CloneVT() isAdminMessage_PayloadVariant {
- if m == nil {
- return (*AdminMessage_SetModuleConfig)(nil)
- }
- r := new(AdminMessage_SetModuleConfig)
- r.SetModuleConfig = m.SetModuleConfig.CloneVT()
- return r
-}
-
-func (m *AdminMessage_SetCannedMessageModuleMessages) CloneVT() isAdminMessage_PayloadVariant {
- if m == nil {
- return (*AdminMessage_SetCannedMessageModuleMessages)(nil)
- }
- r := new(AdminMessage_SetCannedMessageModuleMessages)
- r.SetCannedMessageModuleMessages = m.SetCannedMessageModuleMessages
- return r
-}
-
-func (m *AdminMessage_SetRingtoneMessage) CloneVT() isAdminMessage_PayloadVariant {
- if m == nil {
- return (*AdminMessage_SetRingtoneMessage)(nil)
- }
- r := new(AdminMessage_SetRingtoneMessage)
- r.SetRingtoneMessage = m.SetRingtoneMessage
- return r
-}
-
-func (m *AdminMessage_RemoveByNodenum) CloneVT() isAdminMessage_PayloadVariant {
- if m == nil {
- return (*AdminMessage_RemoveByNodenum)(nil)
- }
- r := new(AdminMessage_RemoveByNodenum)
- r.RemoveByNodenum = m.RemoveByNodenum
- return r
-}
-
-func (m *AdminMessage_BeginEditSettings) CloneVT() isAdminMessage_PayloadVariant {
- if m == nil {
- return (*AdminMessage_BeginEditSettings)(nil)
- }
- r := new(AdminMessage_BeginEditSettings)
- r.BeginEditSettings = m.BeginEditSettings
- return r
-}
-
-func (m *AdminMessage_CommitEditSettings) CloneVT() isAdminMessage_PayloadVariant {
- if m == nil {
- return (*AdminMessage_CommitEditSettings)(nil)
- }
- r := new(AdminMessage_CommitEditSettings)
- r.CommitEditSettings = m.CommitEditSettings
- return r
-}
-
-func (m *AdminMessage_RebootOtaSeconds) CloneVT() isAdminMessage_PayloadVariant {
- if m == nil {
- return (*AdminMessage_RebootOtaSeconds)(nil)
- }
- r := new(AdminMessage_RebootOtaSeconds)
- r.RebootOtaSeconds = m.RebootOtaSeconds
- return r
-}
-
-func (m *AdminMessage_ExitSimulator) CloneVT() isAdminMessage_PayloadVariant {
- if m == nil {
- return (*AdminMessage_ExitSimulator)(nil)
- }
- r := new(AdminMessage_ExitSimulator)
- r.ExitSimulator = m.ExitSimulator
- return r
-}
-
-func (m *AdminMessage_RebootSeconds) CloneVT() isAdminMessage_PayloadVariant {
- if m == nil {
- return (*AdminMessage_RebootSeconds)(nil)
- }
- r := new(AdminMessage_RebootSeconds)
- r.RebootSeconds = m.RebootSeconds
- return r
-}
-
-func (m *AdminMessage_ShutdownSeconds) CloneVT() isAdminMessage_PayloadVariant {
- if m == nil {
- return (*AdminMessage_ShutdownSeconds)(nil)
- }
- r := new(AdminMessage_ShutdownSeconds)
- r.ShutdownSeconds = m.ShutdownSeconds
- return r
-}
-
-func (m *AdminMessage_FactoryReset) CloneVT() isAdminMessage_PayloadVariant {
- if m == nil {
- return (*AdminMessage_FactoryReset)(nil)
- }
- r := new(AdminMessage_FactoryReset)
- r.FactoryReset = m.FactoryReset
- return r
-}
-
-func (m *AdminMessage_NodedbReset) CloneVT() isAdminMessage_PayloadVariant {
- if m == nil {
- return (*AdminMessage_NodedbReset)(nil)
- }
- r := new(AdminMessage_NodedbReset)
- r.NodedbReset = m.NodedbReset
- return r
-}
-
-func (m *HamParameters) CloneVT() *HamParameters {
- if m == nil {
- return (*HamParameters)(nil)
- }
- r := new(HamParameters)
- r.CallSign = m.CallSign
- r.TxPower = m.TxPower
- r.Frequency = m.Frequency
- r.ShortName = m.ShortName
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *HamParameters) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *NodeRemoteHardwarePinsResponse) CloneVT() *NodeRemoteHardwarePinsResponse {
- if m == nil {
- return (*NodeRemoteHardwarePinsResponse)(nil)
- }
- r := new(NodeRemoteHardwarePinsResponse)
- if rhs := m.NodeRemoteHardwarePins; rhs != nil {
- tmpContainer := make([]*NodeRemoteHardwarePin, len(rhs))
- for k, v := range rhs {
- tmpContainer[k] = v.CloneVT()
- }
- r.NodeRemoteHardwarePins = tmpContainer
- }
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *NodeRemoteHardwarePinsResponse) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (this *AdminMessage) EqualVT(that *AdminMessage) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.PayloadVariant == nil && that.PayloadVariant != nil {
- return false
- } else if this.PayloadVariant != nil {
- if that.PayloadVariant == nil {
- return false
- }
- if !this.PayloadVariant.(interface {
- EqualVT(isAdminMessage_PayloadVariant) bool
- }).EqualVT(that.PayloadVariant) {
- return false
- }
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *AdminMessage) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*AdminMessage)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *AdminMessage_GetChannelRequest) EqualVT(thatIface isAdminMessage_PayloadVariant) bool {
- that, ok := thatIface.(*AdminMessage_GetChannelRequest)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if this.GetChannelRequest != that.GetChannelRequest {
- return false
- }
- return true
-}
-
-func (this *AdminMessage_GetChannelResponse) EqualVT(thatIface isAdminMessage_PayloadVariant) bool {
- that, ok := thatIface.(*AdminMessage_GetChannelResponse)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.GetChannelResponse, that.GetChannelResponse; p != q {
- if p == nil {
- p = &Channel{}
- }
- if q == nil {
- q = &Channel{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *AdminMessage_GetOwnerRequest) EqualVT(thatIface isAdminMessage_PayloadVariant) bool {
- that, ok := thatIface.(*AdminMessage_GetOwnerRequest)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if this.GetOwnerRequest != that.GetOwnerRequest {
- return false
- }
- return true
-}
-
-func (this *AdminMessage_GetOwnerResponse) EqualVT(thatIface isAdminMessage_PayloadVariant) bool {
- that, ok := thatIface.(*AdminMessage_GetOwnerResponse)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.GetOwnerResponse, that.GetOwnerResponse; p != q {
- if p == nil {
- p = &User{}
- }
- if q == nil {
- q = &User{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *AdminMessage_GetConfigRequest) EqualVT(thatIface isAdminMessage_PayloadVariant) bool {
- that, ok := thatIface.(*AdminMessage_GetConfigRequest)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if this.GetConfigRequest != that.GetConfigRequest {
- return false
- }
- return true
-}
-
-func (this *AdminMessage_GetConfigResponse) EqualVT(thatIface isAdminMessage_PayloadVariant) bool {
- that, ok := thatIface.(*AdminMessage_GetConfigResponse)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.GetConfigResponse, that.GetConfigResponse; p != q {
- if p == nil {
- p = &Config{}
- }
- if q == nil {
- q = &Config{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *AdminMessage_GetModuleConfigRequest) EqualVT(thatIface isAdminMessage_PayloadVariant) bool {
- that, ok := thatIface.(*AdminMessage_GetModuleConfigRequest)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if this.GetModuleConfigRequest != that.GetModuleConfigRequest {
- return false
- }
- return true
-}
-
-func (this *AdminMessage_GetModuleConfigResponse) EqualVT(thatIface isAdminMessage_PayloadVariant) bool {
- that, ok := thatIface.(*AdminMessage_GetModuleConfigResponse)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.GetModuleConfigResponse, that.GetModuleConfigResponse; p != q {
- if p == nil {
- p = &ModuleConfig{}
- }
- if q == nil {
- q = &ModuleConfig{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *AdminMessage_GetCannedMessageModuleMessagesRequest) EqualVT(thatIface isAdminMessage_PayloadVariant) bool {
- that, ok := thatIface.(*AdminMessage_GetCannedMessageModuleMessagesRequest)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if this.GetCannedMessageModuleMessagesRequest != that.GetCannedMessageModuleMessagesRequest {
- return false
- }
- return true
-}
-
-func (this *AdminMessage_GetCannedMessageModuleMessagesResponse) EqualVT(thatIface isAdminMessage_PayloadVariant) bool {
- that, ok := thatIface.(*AdminMessage_GetCannedMessageModuleMessagesResponse)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if this.GetCannedMessageModuleMessagesResponse != that.GetCannedMessageModuleMessagesResponse {
- return false
- }
- return true
-}
-
-func (this *AdminMessage_GetDeviceMetadataRequest) EqualVT(thatIface isAdminMessage_PayloadVariant) bool {
- that, ok := thatIface.(*AdminMessage_GetDeviceMetadataRequest)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if this.GetDeviceMetadataRequest != that.GetDeviceMetadataRequest {
- return false
- }
- return true
-}
-
-func (this *AdminMessage_GetDeviceMetadataResponse) EqualVT(thatIface isAdminMessage_PayloadVariant) bool {
- that, ok := thatIface.(*AdminMessage_GetDeviceMetadataResponse)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.GetDeviceMetadataResponse, that.GetDeviceMetadataResponse; p != q {
- if p == nil {
- p = &DeviceMetadata{}
- }
- if q == nil {
- q = &DeviceMetadata{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *AdminMessage_GetRingtoneRequest) EqualVT(thatIface isAdminMessage_PayloadVariant) bool {
- that, ok := thatIface.(*AdminMessage_GetRingtoneRequest)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if this.GetRingtoneRequest != that.GetRingtoneRequest {
- return false
- }
- return true
-}
-
-func (this *AdminMessage_GetRingtoneResponse) EqualVT(thatIface isAdminMessage_PayloadVariant) bool {
- that, ok := thatIface.(*AdminMessage_GetRingtoneResponse)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if this.GetRingtoneResponse != that.GetRingtoneResponse {
- return false
- }
- return true
-}
-
-func (this *AdminMessage_GetDeviceConnectionStatusRequest) EqualVT(thatIface isAdminMessage_PayloadVariant) bool {
- that, ok := thatIface.(*AdminMessage_GetDeviceConnectionStatusRequest)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if this.GetDeviceConnectionStatusRequest != that.GetDeviceConnectionStatusRequest {
- return false
- }
- return true
-}
-
-func (this *AdminMessage_GetDeviceConnectionStatusResponse) EqualVT(thatIface isAdminMessage_PayloadVariant) bool {
- that, ok := thatIface.(*AdminMessage_GetDeviceConnectionStatusResponse)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.GetDeviceConnectionStatusResponse, that.GetDeviceConnectionStatusResponse; p != q {
- if p == nil {
- p = &DeviceConnectionStatus{}
- }
- if q == nil {
- q = &DeviceConnectionStatus{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *AdminMessage_SetHamMode) EqualVT(thatIface isAdminMessage_PayloadVariant) bool {
- that, ok := thatIface.(*AdminMessage_SetHamMode)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.SetHamMode, that.SetHamMode; p != q {
- if p == nil {
- p = &HamParameters{}
- }
- if q == nil {
- q = &HamParameters{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *AdminMessage_GetNodeRemoteHardwarePinsRequest) EqualVT(thatIface isAdminMessage_PayloadVariant) bool {
- that, ok := thatIface.(*AdminMessage_GetNodeRemoteHardwarePinsRequest)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if this.GetNodeRemoteHardwarePinsRequest != that.GetNodeRemoteHardwarePinsRequest {
- return false
- }
- return true
-}
-
-func (this *AdminMessage_GetNodeRemoteHardwarePinsResponse) EqualVT(thatIface isAdminMessage_PayloadVariant) bool {
- that, ok := thatIface.(*AdminMessage_GetNodeRemoteHardwarePinsResponse)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.GetNodeRemoteHardwarePinsResponse, that.GetNodeRemoteHardwarePinsResponse; p != q {
- if p == nil {
- p = &NodeRemoteHardwarePinsResponse{}
- }
- if q == nil {
- q = &NodeRemoteHardwarePinsResponse{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *AdminMessage_EnterDfuModeRequest) EqualVT(thatIface isAdminMessage_PayloadVariant) bool {
- that, ok := thatIface.(*AdminMessage_EnterDfuModeRequest)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if this.EnterDfuModeRequest != that.EnterDfuModeRequest {
- return false
- }
- return true
-}
-
-func (this *AdminMessage_DeleteFileRequest) EqualVT(thatIface isAdminMessage_PayloadVariant) bool {
- that, ok := thatIface.(*AdminMessage_DeleteFileRequest)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if this.DeleteFileRequest != that.DeleteFileRequest {
- return false
- }
- return true
-}
-
-func (this *AdminMessage_SetOwner) EqualVT(thatIface isAdminMessage_PayloadVariant) bool {
- that, ok := thatIface.(*AdminMessage_SetOwner)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.SetOwner, that.SetOwner; p != q {
- if p == nil {
- p = &User{}
- }
- if q == nil {
- q = &User{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *AdminMessage_SetChannel) EqualVT(thatIface isAdminMessage_PayloadVariant) bool {
- that, ok := thatIface.(*AdminMessage_SetChannel)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.SetChannel, that.SetChannel; p != q {
- if p == nil {
- p = &Channel{}
- }
- if q == nil {
- q = &Channel{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *AdminMessage_SetConfig) EqualVT(thatIface isAdminMessage_PayloadVariant) bool {
- that, ok := thatIface.(*AdminMessage_SetConfig)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.SetConfig, that.SetConfig; p != q {
- if p == nil {
- p = &Config{}
- }
- if q == nil {
- q = &Config{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *AdminMessage_SetModuleConfig) EqualVT(thatIface isAdminMessage_PayloadVariant) bool {
- that, ok := thatIface.(*AdminMessage_SetModuleConfig)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.SetModuleConfig, that.SetModuleConfig; p != q {
- if p == nil {
- p = &ModuleConfig{}
- }
- if q == nil {
- q = &ModuleConfig{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *AdminMessage_SetCannedMessageModuleMessages) EqualVT(thatIface isAdminMessage_PayloadVariant) bool {
- that, ok := thatIface.(*AdminMessage_SetCannedMessageModuleMessages)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if this.SetCannedMessageModuleMessages != that.SetCannedMessageModuleMessages {
- return false
- }
- return true
-}
-
-func (this *AdminMessage_SetRingtoneMessage) EqualVT(thatIface isAdminMessage_PayloadVariant) bool {
- that, ok := thatIface.(*AdminMessage_SetRingtoneMessage)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if this.SetRingtoneMessage != that.SetRingtoneMessage {
- return false
- }
- return true
-}
-
-func (this *AdminMessage_RemoveByNodenum) EqualVT(thatIface isAdminMessage_PayloadVariant) bool {
- that, ok := thatIface.(*AdminMessage_RemoveByNodenum)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if this.RemoveByNodenum != that.RemoveByNodenum {
- return false
- }
- return true
-}
-
-func (this *AdminMessage_BeginEditSettings) EqualVT(thatIface isAdminMessage_PayloadVariant) bool {
- that, ok := thatIface.(*AdminMessage_BeginEditSettings)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if this.BeginEditSettings != that.BeginEditSettings {
- return false
- }
- return true
-}
-
-func (this *AdminMessage_CommitEditSettings) EqualVT(thatIface isAdminMessage_PayloadVariant) bool {
- that, ok := thatIface.(*AdminMessage_CommitEditSettings)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if this.CommitEditSettings != that.CommitEditSettings {
- return false
- }
- return true
-}
-
-func (this *AdminMessage_RebootOtaSeconds) EqualVT(thatIface isAdminMessage_PayloadVariant) bool {
- that, ok := thatIface.(*AdminMessage_RebootOtaSeconds)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if this.RebootOtaSeconds != that.RebootOtaSeconds {
- return false
- }
- return true
-}
-
-func (this *AdminMessage_ExitSimulator) EqualVT(thatIface isAdminMessage_PayloadVariant) bool {
- that, ok := thatIface.(*AdminMessage_ExitSimulator)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if this.ExitSimulator != that.ExitSimulator {
- return false
- }
- return true
-}
-
-func (this *AdminMessage_RebootSeconds) EqualVT(thatIface isAdminMessage_PayloadVariant) bool {
- that, ok := thatIface.(*AdminMessage_RebootSeconds)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if this.RebootSeconds != that.RebootSeconds {
- return false
- }
- return true
-}
-
-func (this *AdminMessage_ShutdownSeconds) EqualVT(thatIface isAdminMessage_PayloadVariant) bool {
- that, ok := thatIface.(*AdminMessage_ShutdownSeconds)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if this.ShutdownSeconds != that.ShutdownSeconds {
- return false
- }
- return true
-}
-
-func (this *AdminMessage_FactoryReset) EqualVT(thatIface isAdminMessage_PayloadVariant) bool {
- that, ok := thatIface.(*AdminMessage_FactoryReset)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if this.FactoryReset != that.FactoryReset {
- return false
- }
- return true
-}
-
-func (this *AdminMessage_NodedbReset) EqualVT(thatIface isAdminMessage_PayloadVariant) bool {
- that, ok := thatIface.(*AdminMessage_NodedbReset)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if this.NodedbReset != that.NodedbReset {
- return false
- }
- return true
-}
-
-func (this *HamParameters) EqualVT(that *HamParameters) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.CallSign != that.CallSign {
- return false
- }
- if this.TxPower != that.TxPower {
- return false
- }
- if this.Frequency != that.Frequency {
- return false
- }
- if this.ShortName != that.ShortName {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *HamParameters) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*HamParameters)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *NodeRemoteHardwarePinsResponse) EqualVT(that *NodeRemoteHardwarePinsResponse) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if len(this.NodeRemoteHardwarePins) != len(that.NodeRemoteHardwarePins) {
- return false
- }
- for i, vx := range this.NodeRemoteHardwarePins {
- vy := that.NodeRemoteHardwarePins[i]
- if p, q := vx, vy; p != q {
- if p == nil {
- p = &NodeRemoteHardwarePin{}
- }
- if q == nil {
- q = &NodeRemoteHardwarePin{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *NodeRemoteHardwarePinsResponse) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*NodeRemoteHardwarePinsResponse)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
func (m *AdminMessage) MarshalVT() (dAtA []byte, err error) {
if m == nil {
return nil, nil
@@ -1972,1014 +785,6 @@ func (m *NodeRemoteHardwarePinsResponse) MarshalToSizedBufferVT(dAtA []byte) (in
return len(dAtA) - i, nil
}
-func (m *AdminMessage) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *AdminMessage) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *AdminMessage) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if msg, ok := m.PayloadVariant.(*AdminMessage_NodedbReset); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*AdminMessage_FactoryReset); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*AdminMessage_ShutdownSeconds); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*AdminMessage_RebootSeconds); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*AdminMessage_ExitSimulator); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*AdminMessage_RebootOtaSeconds); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*AdminMessage_CommitEditSettings); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*AdminMessage_BeginEditSettings); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*AdminMessage_RemoveByNodenum); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*AdminMessage_SetRingtoneMessage); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*AdminMessage_SetCannedMessageModuleMessages); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*AdminMessage_SetModuleConfig); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*AdminMessage_SetConfig); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*AdminMessage_SetChannel); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*AdminMessage_SetOwner); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*AdminMessage_DeleteFileRequest); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*AdminMessage_EnterDfuModeRequest); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*AdminMessage_GetNodeRemoteHardwarePinsResponse); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*AdminMessage_GetNodeRemoteHardwarePinsRequest); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*AdminMessage_SetHamMode); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*AdminMessage_GetDeviceConnectionStatusResponse); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*AdminMessage_GetDeviceConnectionStatusRequest); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*AdminMessage_GetRingtoneResponse); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*AdminMessage_GetRingtoneRequest); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*AdminMessage_GetDeviceMetadataResponse); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*AdminMessage_GetDeviceMetadataRequest); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*AdminMessage_GetCannedMessageModuleMessagesResponse); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*AdminMessage_GetCannedMessageModuleMessagesRequest); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*AdminMessage_GetModuleConfigResponse); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*AdminMessage_GetModuleConfigRequest); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*AdminMessage_GetConfigResponse); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*AdminMessage_GetConfigRequest); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*AdminMessage_GetOwnerResponse); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*AdminMessage_GetOwnerRequest); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*AdminMessage_GetChannelResponse); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*AdminMessage_GetChannelRequest); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- return len(dAtA) - i, nil
-}
-
-func (m *AdminMessage_GetChannelRequest) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *AdminMessage_GetChannelRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.GetChannelRequest))
- i--
- dAtA[i] = 0x8
- return len(dAtA) - i, nil
-}
-func (m *AdminMessage_GetChannelResponse) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *AdminMessage_GetChannelResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GetChannelResponse != nil {
- size, err := m.GetChannelResponse.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x12
- }
- return len(dAtA) - i, nil
-}
-func (m *AdminMessage_GetOwnerRequest) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *AdminMessage_GetOwnerRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- i--
- if m.GetOwnerRequest {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x18
- return len(dAtA) - i, nil
-}
-func (m *AdminMessage_GetOwnerResponse) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *AdminMessage_GetOwnerResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GetOwnerResponse != nil {
- size, err := m.GetOwnerResponse.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x22
- }
- return len(dAtA) - i, nil
-}
-func (m *AdminMessage_GetConfigRequest) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *AdminMessage_GetConfigRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.GetConfigRequest))
- i--
- dAtA[i] = 0x28
- return len(dAtA) - i, nil
-}
-func (m *AdminMessage_GetConfigResponse) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *AdminMessage_GetConfigResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GetConfigResponse != nil {
- size, err := m.GetConfigResponse.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x32
- }
- return len(dAtA) - i, nil
-}
-func (m *AdminMessage_GetModuleConfigRequest) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *AdminMessage_GetModuleConfigRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.GetModuleConfigRequest))
- i--
- dAtA[i] = 0x38
- return len(dAtA) - i, nil
-}
-func (m *AdminMessage_GetModuleConfigResponse) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *AdminMessage_GetModuleConfigResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GetModuleConfigResponse != nil {
- size, err := m.GetModuleConfigResponse.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x42
- }
- return len(dAtA) - i, nil
-}
-func (m *AdminMessage_GetCannedMessageModuleMessagesRequest) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *AdminMessage_GetCannedMessageModuleMessagesRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- i--
- if m.GetCannedMessageModuleMessagesRequest {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x50
- return len(dAtA) - i, nil
-}
-func (m *AdminMessage_GetCannedMessageModuleMessagesResponse) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *AdminMessage_GetCannedMessageModuleMessagesResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- i -= len(m.GetCannedMessageModuleMessagesResponse)
- copy(dAtA[i:], m.GetCannedMessageModuleMessagesResponse)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.GetCannedMessageModuleMessagesResponse)))
- i--
- dAtA[i] = 0x5a
- return len(dAtA) - i, nil
-}
-func (m *AdminMessage_GetDeviceMetadataRequest) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *AdminMessage_GetDeviceMetadataRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- i--
- if m.GetDeviceMetadataRequest {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x60
- return len(dAtA) - i, nil
-}
-func (m *AdminMessage_GetDeviceMetadataResponse) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *AdminMessage_GetDeviceMetadataResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GetDeviceMetadataResponse != nil {
- size, err := m.GetDeviceMetadataResponse.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x6a
- }
- return len(dAtA) - i, nil
-}
-func (m *AdminMessage_GetRingtoneRequest) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *AdminMessage_GetRingtoneRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- i--
- if m.GetRingtoneRequest {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x70
- return len(dAtA) - i, nil
-}
-func (m *AdminMessage_GetRingtoneResponse) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *AdminMessage_GetRingtoneResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- i -= len(m.GetRingtoneResponse)
- copy(dAtA[i:], m.GetRingtoneResponse)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.GetRingtoneResponse)))
- i--
- dAtA[i] = 0x7a
- return len(dAtA) - i, nil
-}
-func (m *AdminMessage_GetDeviceConnectionStatusRequest) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *AdminMessage_GetDeviceConnectionStatusRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- i--
- if m.GetDeviceConnectionStatusRequest {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x1
- i--
- dAtA[i] = 0x80
- return len(dAtA) - i, nil
-}
-func (m *AdminMessage_GetDeviceConnectionStatusResponse) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *AdminMessage_GetDeviceConnectionStatusResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GetDeviceConnectionStatusResponse != nil {
- size, err := m.GetDeviceConnectionStatusResponse.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x1
- i--
- dAtA[i] = 0x8a
- }
- return len(dAtA) - i, nil
-}
-func (m *AdminMessage_SetHamMode) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *AdminMessage_SetHamMode) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SetHamMode != nil {
- size, err := m.SetHamMode.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x1
- i--
- dAtA[i] = 0x92
- }
- return len(dAtA) - i, nil
-}
-func (m *AdminMessage_GetNodeRemoteHardwarePinsRequest) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *AdminMessage_GetNodeRemoteHardwarePinsRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- i--
- if m.GetNodeRemoteHardwarePinsRequest {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x1
- i--
- dAtA[i] = 0x98
- return len(dAtA) - i, nil
-}
-func (m *AdminMessage_GetNodeRemoteHardwarePinsResponse) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *AdminMessage_GetNodeRemoteHardwarePinsResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GetNodeRemoteHardwarePinsResponse != nil {
- size, err := m.GetNodeRemoteHardwarePinsResponse.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x1
- i--
- dAtA[i] = 0xa2
- }
- return len(dAtA) - i, nil
-}
-func (m *AdminMessage_EnterDfuModeRequest) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *AdminMessage_EnterDfuModeRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- i--
- if m.EnterDfuModeRequest {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x1
- i--
- dAtA[i] = 0xa8
- return len(dAtA) - i, nil
-}
-func (m *AdminMessage_DeleteFileRequest) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *AdminMessage_DeleteFileRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- i -= len(m.DeleteFileRequest)
- copy(dAtA[i:], m.DeleteFileRequest)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.DeleteFileRequest)))
- i--
- dAtA[i] = 0x1
- i--
- dAtA[i] = 0xb2
- return len(dAtA) - i, nil
-}
-func (m *AdminMessage_SetOwner) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *AdminMessage_SetOwner) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SetOwner != nil {
- size, err := m.SetOwner.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x2
- i--
- dAtA[i] = 0x82
- }
- return len(dAtA) - i, nil
-}
-func (m *AdminMessage_SetChannel) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *AdminMessage_SetChannel) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SetChannel != nil {
- size, err := m.SetChannel.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x2
- i--
- dAtA[i] = 0x8a
- }
- return len(dAtA) - i, nil
-}
-func (m *AdminMessage_SetConfig) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *AdminMessage_SetConfig) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SetConfig != nil {
- size, err := m.SetConfig.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x2
- i--
- dAtA[i] = 0x92
- }
- return len(dAtA) - i, nil
-}
-func (m *AdminMessage_SetModuleConfig) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *AdminMessage_SetModuleConfig) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SetModuleConfig != nil {
- size, err := m.SetModuleConfig.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x2
- i--
- dAtA[i] = 0x9a
- }
- return len(dAtA) - i, nil
-}
-func (m *AdminMessage_SetCannedMessageModuleMessages) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *AdminMessage_SetCannedMessageModuleMessages) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- i -= len(m.SetCannedMessageModuleMessages)
- copy(dAtA[i:], m.SetCannedMessageModuleMessages)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.SetCannedMessageModuleMessages)))
- i--
- dAtA[i] = 0x2
- i--
- dAtA[i] = 0xa2
- return len(dAtA) - i, nil
-}
-func (m *AdminMessage_SetRingtoneMessage) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *AdminMessage_SetRingtoneMessage) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- i -= len(m.SetRingtoneMessage)
- copy(dAtA[i:], m.SetRingtoneMessage)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.SetRingtoneMessage)))
- i--
- dAtA[i] = 0x2
- i--
- dAtA[i] = 0xaa
- return len(dAtA) - i, nil
-}
-func (m *AdminMessage_RemoveByNodenum) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *AdminMessage_RemoveByNodenum) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.RemoveByNodenum))
- i--
- dAtA[i] = 0x2
- i--
- dAtA[i] = 0xb0
- return len(dAtA) - i, nil
-}
-func (m *AdminMessage_BeginEditSettings) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *AdminMessage_BeginEditSettings) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- i--
- if m.BeginEditSettings {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x4
- i--
- dAtA[i] = 0x80
- return len(dAtA) - i, nil
-}
-func (m *AdminMessage_CommitEditSettings) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *AdminMessage_CommitEditSettings) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- i--
- if m.CommitEditSettings {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x4
- i--
- dAtA[i] = 0x88
- return len(dAtA) - i, nil
-}
-func (m *AdminMessage_RebootOtaSeconds) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *AdminMessage_RebootOtaSeconds) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.RebootOtaSeconds))
- i--
- dAtA[i] = 0x5
- i--
- dAtA[i] = 0xf8
- return len(dAtA) - i, nil
-}
-func (m *AdminMessage_ExitSimulator) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *AdminMessage_ExitSimulator) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- i--
- if m.ExitSimulator {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x6
- i--
- dAtA[i] = 0x80
- return len(dAtA) - i, nil
-}
-func (m *AdminMessage_RebootSeconds) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *AdminMessage_RebootSeconds) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.RebootSeconds))
- i--
- dAtA[i] = 0x6
- i--
- dAtA[i] = 0x88
- return len(dAtA) - i, nil
-}
-func (m *AdminMessage_ShutdownSeconds) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *AdminMessage_ShutdownSeconds) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.ShutdownSeconds))
- i--
- dAtA[i] = 0x6
- i--
- dAtA[i] = 0x90
- return len(dAtA) - i, nil
-}
-func (m *AdminMessage_FactoryReset) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *AdminMessage_FactoryReset) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.FactoryReset))
- i--
- dAtA[i] = 0x6
- i--
- dAtA[i] = 0x98
- return len(dAtA) - i, nil
-}
-func (m *AdminMessage_NodedbReset) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *AdminMessage_NodedbReset) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.NodedbReset))
- i--
- dAtA[i] = 0x6
- i--
- dAtA[i] = 0xa0
- return len(dAtA) - i, nil
-}
-func (m *HamParameters) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *HamParameters) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *HamParameters) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if len(m.ShortName) > 0 {
- i -= len(m.ShortName)
- copy(dAtA[i:], m.ShortName)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ShortName)))
- i--
- dAtA[i] = 0x22
- }
- if m.Frequency != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Frequency))))
- i--
- dAtA[i] = 0x1d
- }
- if m.TxPower != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.TxPower))
- i--
- dAtA[i] = 0x10
- }
- if len(m.CallSign) > 0 {
- i -= len(m.CallSign)
- copy(dAtA[i:], m.CallSign)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.CallSign)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
-}
-
-func (m *NodeRemoteHardwarePinsResponse) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *NodeRemoteHardwarePinsResponse) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *NodeRemoteHardwarePinsResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if len(m.NodeRemoteHardwarePins) > 0 {
- for iNdEx := len(m.NodeRemoteHardwarePins) - 1; iNdEx >= 0; iNdEx-- {
- size, err := m.NodeRemoteHardwarePins[iNdEx].MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0xa
- }
- }
- return len(dAtA) - i, nil
-}
-
func (m *AdminMessage) SizeVT() (n int) {
if m == nil {
return 0
@@ -4721,1354 +2526,3 @@ func (m *NodeRemoteHardwarePinsResponse) UnmarshalVT(dAtA []byte) error {
}
return nil
}
-func (m *AdminMessage) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: AdminMessage: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: AdminMessage: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetChannelRequest", wireType)
- }
- var v uint32
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.PayloadVariant = &AdminMessage_GetChannelRequest{GetChannelRequest: v}
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetChannelResponse", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*AdminMessage_GetChannelResponse); ok {
- if err := oneof.GetChannelResponse.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &Channel{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &AdminMessage_GetChannelResponse{GetChannelResponse: v}
- }
- iNdEx = postIndex
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetOwnerRequest", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- b := bool(v != 0)
- m.PayloadVariant = &AdminMessage_GetOwnerRequest{GetOwnerRequest: b}
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetOwnerResponse", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*AdminMessage_GetOwnerResponse); ok {
- if err := oneof.GetOwnerResponse.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &User{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &AdminMessage_GetOwnerResponse{GetOwnerResponse: v}
- }
- iNdEx = postIndex
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetConfigRequest", wireType)
- }
- var v AdminMessage_ConfigType
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= AdminMessage_ConfigType(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.PayloadVariant = &AdminMessage_GetConfigRequest{GetConfigRequest: v}
- case 6:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetConfigResponse", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*AdminMessage_GetConfigResponse); ok {
- if err := oneof.GetConfigResponse.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &Config{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &AdminMessage_GetConfigResponse{GetConfigResponse: v}
- }
- iNdEx = postIndex
- case 7:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetModuleConfigRequest", wireType)
- }
- var v AdminMessage_ModuleConfigType
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= AdminMessage_ModuleConfigType(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.PayloadVariant = &AdminMessage_GetModuleConfigRequest{GetModuleConfigRequest: v}
- case 8:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetModuleConfigResponse", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*AdminMessage_GetModuleConfigResponse); ok {
- if err := oneof.GetModuleConfigResponse.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &ModuleConfig{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &AdminMessage_GetModuleConfigResponse{GetModuleConfigResponse: v}
- }
- iNdEx = postIndex
- case 10:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetCannedMessageModuleMessagesRequest", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- b := bool(v != 0)
- m.PayloadVariant = &AdminMessage_GetCannedMessageModuleMessagesRequest{GetCannedMessageModuleMessagesRequest: b}
- case 11:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetCannedMessageModuleMessagesResponse", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var stringValue string
- if intStringLen > 0 {
- stringValue = unsafe.String(&dAtA[iNdEx], intStringLen)
- }
- m.PayloadVariant = &AdminMessage_GetCannedMessageModuleMessagesResponse{GetCannedMessageModuleMessagesResponse: stringValue}
- iNdEx = postIndex
- case 12:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetDeviceMetadataRequest", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- b := bool(v != 0)
- m.PayloadVariant = &AdminMessage_GetDeviceMetadataRequest{GetDeviceMetadataRequest: b}
- case 13:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetDeviceMetadataResponse", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*AdminMessage_GetDeviceMetadataResponse); ok {
- if err := oneof.GetDeviceMetadataResponse.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &DeviceMetadata{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &AdminMessage_GetDeviceMetadataResponse{GetDeviceMetadataResponse: v}
- }
- iNdEx = postIndex
- case 14:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetRingtoneRequest", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- b := bool(v != 0)
- m.PayloadVariant = &AdminMessage_GetRingtoneRequest{GetRingtoneRequest: b}
- case 15:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetRingtoneResponse", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var stringValue string
- if intStringLen > 0 {
- stringValue = unsafe.String(&dAtA[iNdEx], intStringLen)
- }
- m.PayloadVariant = &AdminMessage_GetRingtoneResponse{GetRingtoneResponse: stringValue}
- iNdEx = postIndex
- case 16:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetDeviceConnectionStatusRequest", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- b := bool(v != 0)
- m.PayloadVariant = &AdminMessage_GetDeviceConnectionStatusRequest{GetDeviceConnectionStatusRequest: b}
- case 17:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetDeviceConnectionStatusResponse", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*AdminMessage_GetDeviceConnectionStatusResponse); ok {
- if err := oneof.GetDeviceConnectionStatusResponse.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &DeviceConnectionStatus{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &AdminMessage_GetDeviceConnectionStatusResponse{GetDeviceConnectionStatusResponse: v}
- }
- iNdEx = postIndex
- case 18:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SetHamMode", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*AdminMessage_SetHamMode); ok {
- if err := oneof.SetHamMode.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &HamParameters{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &AdminMessage_SetHamMode{SetHamMode: v}
- }
- iNdEx = postIndex
- case 19:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetNodeRemoteHardwarePinsRequest", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- b := bool(v != 0)
- m.PayloadVariant = &AdminMessage_GetNodeRemoteHardwarePinsRequest{GetNodeRemoteHardwarePinsRequest: b}
- case 20:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetNodeRemoteHardwarePinsResponse", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*AdminMessage_GetNodeRemoteHardwarePinsResponse); ok {
- if err := oneof.GetNodeRemoteHardwarePinsResponse.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &NodeRemoteHardwarePinsResponse{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &AdminMessage_GetNodeRemoteHardwarePinsResponse{GetNodeRemoteHardwarePinsResponse: v}
- }
- iNdEx = postIndex
- case 21:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field EnterDfuModeRequest", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- b := bool(v != 0)
- m.PayloadVariant = &AdminMessage_EnterDfuModeRequest{EnterDfuModeRequest: b}
- case 22:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field DeleteFileRequest", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var stringValue string
- if intStringLen > 0 {
- stringValue = unsafe.String(&dAtA[iNdEx], intStringLen)
- }
- m.PayloadVariant = &AdminMessage_DeleteFileRequest{DeleteFileRequest: stringValue}
- iNdEx = postIndex
- case 32:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SetOwner", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*AdminMessage_SetOwner); ok {
- if err := oneof.SetOwner.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &User{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &AdminMessage_SetOwner{SetOwner: v}
- }
- iNdEx = postIndex
- case 33:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SetChannel", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*AdminMessage_SetChannel); ok {
- if err := oneof.SetChannel.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &Channel{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &AdminMessage_SetChannel{SetChannel: v}
- }
- iNdEx = postIndex
- case 34:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SetConfig", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*AdminMessage_SetConfig); ok {
- if err := oneof.SetConfig.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &Config{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &AdminMessage_SetConfig{SetConfig: v}
- }
- iNdEx = postIndex
- case 35:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SetModuleConfig", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*AdminMessage_SetModuleConfig); ok {
- if err := oneof.SetModuleConfig.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &ModuleConfig{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &AdminMessage_SetModuleConfig{SetModuleConfig: v}
- }
- iNdEx = postIndex
- case 36:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SetCannedMessageModuleMessages", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var stringValue string
- if intStringLen > 0 {
- stringValue = unsafe.String(&dAtA[iNdEx], intStringLen)
- }
- m.PayloadVariant = &AdminMessage_SetCannedMessageModuleMessages{SetCannedMessageModuleMessages: stringValue}
- iNdEx = postIndex
- case 37:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SetRingtoneMessage", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var stringValue string
- if intStringLen > 0 {
- stringValue = unsafe.String(&dAtA[iNdEx], intStringLen)
- }
- m.PayloadVariant = &AdminMessage_SetRingtoneMessage{SetRingtoneMessage: stringValue}
- iNdEx = postIndex
- case 38:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field RemoveByNodenum", wireType)
- }
- var v uint32
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.PayloadVariant = &AdminMessage_RemoveByNodenum{RemoveByNodenum: v}
- case 64:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BeginEditSettings", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- b := bool(v != 0)
- m.PayloadVariant = &AdminMessage_BeginEditSettings{BeginEditSettings: b}
- case 65:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field CommitEditSettings", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- b := bool(v != 0)
- m.PayloadVariant = &AdminMessage_CommitEditSettings{CommitEditSettings: b}
- case 95:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field RebootOtaSeconds", wireType)
- }
- var v int32
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.PayloadVariant = &AdminMessage_RebootOtaSeconds{RebootOtaSeconds: v}
- case 96:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ExitSimulator", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- b := bool(v != 0)
- m.PayloadVariant = &AdminMessage_ExitSimulator{ExitSimulator: b}
- case 97:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field RebootSeconds", wireType)
- }
- var v int32
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.PayloadVariant = &AdminMessage_RebootSeconds{RebootSeconds: v}
- case 98:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ShutdownSeconds", wireType)
- }
- var v int32
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.PayloadVariant = &AdminMessage_ShutdownSeconds{ShutdownSeconds: v}
- case 99:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field FactoryReset", wireType)
- }
- var v int32
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.PayloadVariant = &AdminMessage_FactoryReset{FactoryReset: v}
- case 100:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field NodedbReset", wireType)
- }
- var v int32
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.PayloadVariant = &AdminMessage_NodedbReset{NodedbReset: v}
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *HamParameters) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: HamParameters: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: HamParameters: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field CallSign", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var stringValue string
- if intStringLen > 0 {
- stringValue = unsafe.String(&dAtA[iNdEx], intStringLen)
- }
- m.CallSign = stringValue
- iNdEx = postIndex
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field TxPower", wireType)
- }
- m.TxPower = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.TxPower |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field Frequency", wireType)
- }
- var v uint32
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- m.Frequency = float32(math.Float32frombits(v))
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ShortName", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var stringValue string
- if intStringLen > 0 {
- stringValue = unsafe.String(&dAtA[iNdEx], intStringLen)
- }
- m.ShortName = stringValue
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *NodeRemoteHardwarePinsResponse) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: NodeRemoteHardwarePinsResponse: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: NodeRemoteHardwarePinsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field NodeRemoteHardwarePins", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.NodeRemoteHardwarePins = append(m.NodeRemoteHardwarePins, &NodeRemoteHardwarePin{})
- if err := m.NodeRemoteHardwarePins[len(m.NodeRemoteHardwarePins)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
diff --git a/meshtastic/apponly.pb.go b/meshtastic/apponly.pb.go
index 247ca9c..42d7ee2 100644
--- a/meshtastic/apponly.pb.go
+++ b/meshtastic/apponly.pb.go
@@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.31.0
-// protoc v4.24.3
+// protoc-gen-go v1.32.0
+// protoc v4.25.2
// source: meshtastic/apponly.proto
package generated
diff --git a/meshtastic/apponly_vtproto.pb.go b/meshtastic/apponly_vtproto.pb.go
index fa47558..96ef26a 100644
--- a/meshtastic/apponly_vtproto.pb.go
+++ b/meshtastic/apponly_vtproto.pb.go
@@ -7,7 +7,6 @@ package generated
import (
fmt "fmt"
protohelpers "github.com/planetscale/vtprotobuf/protohelpers"
- proto "google.golang.org/protobuf/proto"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
)
@@ -19,66 +18,6 @@ const (
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
-func (m *ChannelSet) CloneVT() *ChannelSet {
- if m == nil {
- return (*ChannelSet)(nil)
- }
- r := new(ChannelSet)
- r.LoraConfig = m.LoraConfig.CloneVT()
- if rhs := m.Settings; rhs != nil {
- tmpContainer := make([]*ChannelSettings, len(rhs))
- for k, v := range rhs {
- tmpContainer[k] = v.CloneVT()
- }
- r.Settings = tmpContainer
- }
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *ChannelSet) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (this *ChannelSet) EqualVT(that *ChannelSet) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if len(this.Settings) != len(that.Settings) {
- return false
- }
- for i, vx := range this.Settings {
- vy := that.Settings[i]
- if p, q := vx, vy; p != q {
- if p == nil {
- p = &ChannelSettings{}
- }
- if q == nil {
- q = &ChannelSettings{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- }
- if !this.LoraConfig.EqualVT(that.LoraConfig) {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *ChannelSet) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*ChannelSet)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
func (m *ChannelSet) MarshalVT() (dAtA []byte, err error) {
if m == nil {
return nil, nil
@@ -134,61 +73,6 @@ func (m *ChannelSet) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
return len(dAtA) - i, nil
}
-func (m *ChannelSet) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *ChannelSet) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *ChannelSet) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.LoraConfig != nil {
- size, err := m.LoraConfig.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x12
- }
- if len(m.Settings) > 0 {
- for iNdEx := len(m.Settings) - 1; iNdEx >= 0; iNdEx-- {
- size, err := m.Settings[iNdEx].MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0xa
- }
- }
- return len(dAtA) - i, nil
-}
-
func (m *ChannelSet) SizeVT() (n int) {
if m == nil {
return 0
@@ -330,124 +214,3 @@ func (m *ChannelSet) UnmarshalVT(dAtA []byte) error {
}
return nil
}
-func (m *ChannelSet) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: ChannelSet: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: ChannelSet: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Settings", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Settings = append(m.Settings, &ChannelSettings{})
- if err := m.Settings[len(m.Settings)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field LoraConfig", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.LoraConfig == nil {
- m.LoraConfig = &Config_LoRaConfig{}
- }
- if err := m.LoraConfig.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
diff --git a/meshtastic/atak.pb.go b/meshtastic/atak.pb.go
index 9f89ba7..b748df9 100644
--- a/meshtastic/atak.pb.go
+++ b/meshtastic/atak.pb.go
@@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.31.0
-// protoc v4.24.3
+// protoc-gen-go v1.32.0
+// protoc v4.25.2
// source: meshtastic/atak.proto
package generated
@@ -559,7 +559,7 @@ type PLI struct {
// in floating point
LongitudeI int32 `protobuf:"fixed32,2,opt,name=longitude_i,json=longitudeI,proto3" json:"longitude_i,omitempty"`
// Altitude (ATAK prefers HAE)
- Altitude uint32 `protobuf:"varint,3,opt,name=altitude,proto3" json:"altitude,omitempty"`
+ Altitude int32 `protobuf:"varint,3,opt,name=altitude,proto3" json:"altitude,omitempty"`
// Speed
Speed uint32 `protobuf:"varint,4,opt,name=speed,proto3" json:"speed,omitempty"`
// Course in degrees
@@ -612,7 +612,7 @@ func (x *PLI) GetLongitudeI() int32 {
return 0
}
-func (x *PLI) GetAltitude() uint32 {
+func (x *PLI) GetAltitude() int32 {
if x != nil {
return x.Altitude
}
@@ -678,7 +678,7 @@ var file_meshtastic_atak_proto_rawDesc = []byte{
0x75, 0x64, 0x65, 0x49, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x74, 0x75, 0x64,
0x65, 0x5f, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0f, 0x52, 0x0a, 0x6c, 0x6f, 0x6e, 0x67, 0x69,
0x74, 0x75, 0x64, 0x65, 0x49, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x6c, 0x74, 0x69, 0x74, 0x75, 0x64,
- 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x61, 0x6c, 0x74, 0x69, 0x74, 0x75, 0x64,
+ 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x61, 0x6c, 0x74, 0x69, 0x74, 0x75, 0x64,
0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x70, 0x65, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d,
0x52, 0x05, 0x73, 0x70, 0x65, 0x65, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x75, 0x72, 0x73,
0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x63, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x2a,
diff --git a/meshtastic/atak_vtproto.pb.go b/meshtastic/atak_vtproto.pb.go
index 24bfb18..ceb763c 100644
--- a/meshtastic/atak_vtproto.pb.go
+++ b/meshtastic/atak_vtproto.pb.go
@@ -8,10 +8,8 @@ import (
binary "encoding/binary"
fmt "fmt"
protohelpers "github.com/planetscale/vtprotobuf/protohelpers"
- proto "google.golang.org/protobuf/proto"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
- unsafe "unsafe"
)
const (
@@ -21,350 +19,6 @@ const (
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
-func (m *TAKPacket) CloneVT() *TAKPacket {
- if m == nil {
- return (*TAKPacket)(nil)
- }
- r := new(TAKPacket)
- r.IsCompressed = m.IsCompressed
- r.Contact = m.Contact.CloneVT()
- r.Group = m.Group.CloneVT()
- r.Status = m.Status.CloneVT()
- if m.PayloadVariant != nil {
- r.PayloadVariant = m.PayloadVariant.(interface {
- CloneVT() isTAKPacket_PayloadVariant
- }).CloneVT()
- }
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *TAKPacket) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *TAKPacket_Pli) CloneVT() isTAKPacket_PayloadVariant {
- if m == nil {
- return (*TAKPacket_Pli)(nil)
- }
- r := new(TAKPacket_Pli)
- r.Pli = m.Pli.CloneVT()
- return r
-}
-
-func (m *TAKPacket_Chat) CloneVT() isTAKPacket_PayloadVariant {
- if m == nil {
- return (*TAKPacket_Chat)(nil)
- }
- r := new(TAKPacket_Chat)
- r.Chat = m.Chat.CloneVT()
- return r
-}
-
-func (m *GeoChat) CloneVT() *GeoChat {
- if m == nil {
- return (*GeoChat)(nil)
- }
- r := new(GeoChat)
- r.Message = m.Message
- if rhs := m.To; rhs != nil {
- tmpVal := *rhs
- r.To = &tmpVal
- }
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *GeoChat) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *Group) CloneVT() *Group {
- if m == nil {
- return (*Group)(nil)
- }
- r := new(Group)
- r.Role = m.Role
- r.Team = m.Team
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *Group) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *Status) CloneVT() *Status {
- if m == nil {
- return (*Status)(nil)
- }
- r := new(Status)
- r.Battery = m.Battery
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *Status) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *Contact) CloneVT() *Contact {
- if m == nil {
- return (*Contact)(nil)
- }
- r := new(Contact)
- r.Callsign = m.Callsign
- r.DeviceCallsign = m.DeviceCallsign
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *Contact) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *PLI) CloneVT() *PLI {
- if m == nil {
- return (*PLI)(nil)
- }
- r := new(PLI)
- r.LatitudeI = m.LatitudeI
- r.LongitudeI = m.LongitudeI
- r.Altitude = m.Altitude
- r.Speed = m.Speed
- r.Course = m.Course
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *PLI) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (this *TAKPacket) EqualVT(that *TAKPacket) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.PayloadVariant == nil && that.PayloadVariant != nil {
- return false
- } else if this.PayloadVariant != nil {
- if that.PayloadVariant == nil {
- return false
- }
- if !this.PayloadVariant.(interface {
- EqualVT(isTAKPacket_PayloadVariant) bool
- }).EqualVT(that.PayloadVariant) {
- return false
- }
- }
- if this.IsCompressed != that.IsCompressed {
- return false
- }
- if !this.Contact.EqualVT(that.Contact) {
- return false
- }
- if !this.Group.EqualVT(that.Group) {
- return false
- }
- if !this.Status.EqualVT(that.Status) {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *TAKPacket) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*TAKPacket)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *TAKPacket_Pli) EqualVT(thatIface isTAKPacket_PayloadVariant) bool {
- that, ok := thatIface.(*TAKPacket_Pli)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.Pli, that.Pli; p != q {
- if p == nil {
- p = &PLI{}
- }
- if q == nil {
- q = &PLI{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *TAKPacket_Chat) EqualVT(thatIface isTAKPacket_PayloadVariant) bool {
- that, ok := thatIface.(*TAKPacket_Chat)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.Chat, that.Chat; p != q {
- if p == nil {
- p = &GeoChat{}
- }
- if q == nil {
- q = &GeoChat{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *GeoChat) EqualVT(that *GeoChat) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.Message != that.Message {
- return false
- }
- if p, q := this.To, that.To; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *GeoChat) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*GeoChat)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *Group) EqualVT(that *Group) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.Role != that.Role {
- return false
- }
- if this.Team != that.Team {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *Group) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*Group)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *Status) EqualVT(that *Status) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.Battery != that.Battery {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *Status) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*Status)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *Contact) EqualVT(that *Contact) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.Callsign != that.Callsign {
- return false
- }
- if this.DeviceCallsign != that.DeviceCallsign {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *Contact) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*Contact)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *PLI) EqualVT(that *PLI) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.LatitudeI != that.LatitudeI {
- return false
- }
- if this.LongitudeI != that.LongitudeI {
- return false
- }
- if this.Altitude != that.Altitude {
- return false
- }
- if this.Speed != that.Speed {
- return false
- }
- if this.Course != that.Course {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *PLI) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*PLI)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
func (m *TAKPacket) MarshalVT() (dAtA []byte, err error) {
if m == nil {
return nil, nil
@@ -720,366 +374,6 @@ func (m *PLI) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
return len(dAtA) - i, nil
}
-func (m *TAKPacket) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *TAKPacket) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *TAKPacket) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if msg, ok := m.PayloadVariant.(*TAKPacket_Chat); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*TAKPacket_Pli); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if m.Status != nil {
- size, err := m.Status.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x22
- }
- if m.Group != nil {
- size, err := m.Group.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x1a
- }
- if m.Contact != nil {
- size, err := m.Contact.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x12
- }
- if m.IsCompressed {
- i--
- if m.IsCompressed {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *TAKPacket_Pli) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *TAKPacket_Pli) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.Pli != nil {
- size, err := m.Pli.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x2a
- }
- return len(dAtA) - i, nil
-}
-func (m *TAKPacket_Chat) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *TAKPacket_Chat) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.Chat != nil {
- size, err := m.Chat.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x32
- }
- return len(dAtA) - i, nil
-}
-func (m *GeoChat) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GeoChat) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *GeoChat) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.To != nil {
- i -= len(*m.To)
- copy(dAtA[i:], *m.To)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(*m.To)))
- i--
- dAtA[i] = 0x12
- }
- if len(m.Message) > 0 {
- i -= len(m.Message)
- copy(dAtA[i:], m.Message)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Message)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
-}
-
-func (m *Group) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *Group) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *Group) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.Team != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Team))
- i--
- dAtA[i] = 0x10
- }
- if m.Role != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Role))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *Status) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *Status) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *Status) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.Battery != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Battery))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *Contact) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *Contact) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *Contact) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if len(m.DeviceCallsign) > 0 {
- i -= len(m.DeviceCallsign)
- copy(dAtA[i:], m.DeviceCallsign)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.DeviceCallsign)))
- i--
- dAtA[i] = 0x12
- }
- if len(m.Callsign) > 0 {
- i -= len(m.Callsign)
- copy(dAtA[i:], m.Callsign)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Callsign)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
-}
-
-func (m *PLI) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *PLI) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *PLI) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.Course != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Course))
- i--
- dAtA[i] = 0x28
- }
- if m.Speed != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Speed))
- i--
- dAtA[i] = 0x20
- }
- if m.Altitude != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Altitude))
- i--
- dAtA[i] = 0x18
- }
- if m.LongitudeI != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(m.LongitudeI))
- i--
- dAtA[i] = 0x15
- }
- if m.LatitudeI != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(m.LatitudeI))
- i--
- dAtA[i] = 0xd
- }
- return len(dAtA) - i, nil
-}
-
func (m *TAKPacket) SizeVT() (n int) {
if m == nil {
return 0
@@ -1936,802 +1230,7 @@ func (m *PLI) UnmarshalVT(dAtA []byte) error {
}
b := dAtA[iNdEx]
iNdEx++
- m.Altitude |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Speed", wireType)
- }
- m.Speed = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Speed |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Course", wireType)
- }
- m.Course = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Course |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *TAKPacket) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: TAKPacket: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: TAKPacket: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field IsCompressed", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.IsCompressed = bool(v != 0)
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Contact", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Contact == nil {
- m.Contact = &Contact{}
- }
- if err := m.Contact.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Group == nil {
- m.Group = &Group{}
- }
- if err := m.Group.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Status == nil {
- m.Status = &Status{}
- }
- if err := m.Status.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Pli", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*TAKPacket_Pli); ok {
- if err := oneof.Pli.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &PLI{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &TAKPacket_Pli{Pli: v}
- }
- iNdEx = postIndex
- case 6:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Chat", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*TAKPacket_Chat); ok {
- if err := oneof.Chat.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &GeoChat{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &TAKPacket_Chat{Chat: v}
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GeoChat) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GeoChat: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GeoChat: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var stringValue string
- if intStringLen > 0 {
- stringValue = unsafe.String(&dAtA[iNdEx], intStringLen)
- }
- m.Message = stringValue
- iNdEx = postIndex
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field To", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var stringValue string
- if intStringLen > 0 {
- stringValue = unsafe.String(&dAtA[iNdEx], intStringLen)
- }
- s := stringValue
- m.To = &s
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *Group) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: Group: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Group: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType)
- }
- m.Role = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Role |= MemberRole(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Team", wireType)
- }
- m.Team = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Team |= Team(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *Status) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: Status: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Status: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Battery", wireType)
- }
- m.Battery = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Battery |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *Contact) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: Contact: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Contact: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Callsign", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var stringValue string
- if intStringLen > 0 {
- stringValue = unsafe.String(&dAtA[iNdEx], intStringLen)
- }
- m.Callsign = stringValue
- iNdEx = postIndex
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field DeviceCallsign", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var stringValue string
- if intStringLen > 0 {
- stringValue = unsafe.String(&dAtA[iNdEx], intStringLen)
- }
- m.DeviceCallsign = stringValue
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *PLI) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: PLI: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: PLI: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field LatitudeI", wireType)
- }
- m.LatitudeI = 0
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- m.LatitudeI = int32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- case 2:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field LongitudeI", wireType)
- }
- m.LongitudeI = 0
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- m.LongitudeI = int32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Altitude", wireType)
- }
- m.Altitude = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Altitude |= uint32(b&0x7F) << shift
+ m.Altitude |= int32(b&0x7F) << shift
if b < 0x80 {
break
}
diff --git a/meshtastic/cannedmessages.pb.go b/meshtastic/cannedmessages.pb.go
index b577cf9..212a323 100644
--- a/meshtastic/cannedmessages.pb.go
+++ b/meshtastic/cannedmessages.pb.go
@@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.31.0
-// protoc v4.24.3
+// protoc-gen-go v1.32.0
+// protoc v4.25.2
// source: meshtastic/cannedmessages.proto
package generated
diff --git a/meshtastic/cannedmessages_vtproto.pb.go b/meshtastic/cannedmessages_vtproto.pb.go
index 00879f4..aa423db 100644
--- a/meshtastic/cannedmessages_vtproto.pb.go
+++ b/meshtastic/cannedmessages_vtproto.pb.go
@@ -7,10 +7,8 @@ package generated
import (
fmt "fmt"
protohelpers "github.com/planetscale/vtprotobuf/protohelpers"
- proto "google.golang.org/protobuf/proto"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
- unsafe "unsafe"
)
const (
@@ -20,42 +18,6 @@ const (
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
-func (m *CannedMessageModuleConfig) CloneVT() *CannedMessageModuleConfig {
- if m == nil {
- return (*CannedMessageModuleConfig)(nil)
- }
- r := new(CannedMessageModuleConfig)
- r.Messages = m.Messages
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *CannedMessageModuleConfig) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (this *CannedMessageModuleConfig) EqualVT(that *CannedMessageModuleConfig) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.Messages != that.Messages {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *CannedMessageModuleConfig) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*CannedMessageModuleConfig)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
func (m *CannedMessageModuleConfig) MarshalVT() (dAtA []byte, err error) {
if m == nil {
return nil, nil
@@ -96,46 +58,6 @@ func (m *CannedMessageModuleConfig) MarshalToSizedBufferVT(dAtA []byte) (int, er
return len(dAtA) - i, nil
}
-func (m *CannedMessageModuleConfig) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *CannedMessageModuleConfig) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *CannedMessageModuleConfig) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if len(m.Messages) > 0 {
- i -= len(m.Messages)
- copy(dAtA[i:], m.Messages)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Messages)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
-}
-
func (m *CannedMessageModuleConfig) SizeVT() (n int) {
if m == nil {
return 0
@@ -233,90 +155,3 @@ func (m *CannedMessageModuleConfig) UnmarshalVT(dAtA []byte) error {
}
return nil
}
-func (m *CannedMessageModuleConfig) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: CannedMessageModuleConfig: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: CannedMessageModuleConfig: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Messages", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var stringValue string
- if intStringLen > 0 {
- stringValue = unsafe.String(&dAtA[iNdEx], intStringLen)
- }
- m.Messages = stringValue
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
diff --git a/meshtastic/channel.pb.go b/meshtastic/channel.pb.go
index 6437ea0..cc6e1ca 100644
--- a/meshtastic/channel.pb.go
+++ b/meshtastic/channel.pb.go
@@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.31.0
-// protoc v4.24.3
+// protoc-gen-go v1.32.0
+// protoc v4.25.2
// source: meshtastic/channel.proto
package generated
@@ -79,7 +79,7 @@ func (x Channel_Role) Number() protoreflect.EnumNumber {
// Deprecated: Use Channel_Role.Descriptor instead.
func (Channel_Role) EnumDescriptor() ([]byte, []int) {
- return file_meshtastic_channel_proto_rawDescGZIP(), []int{1, 0}
+ return file_meshtastic_channel_proto_rawDescGZIP(), []int{2, 0}
}
// This information can be encoded as a QRcode/url so that other users can configure
@@ -142,6 +142,8 @@ type ChannelSettings struct {
UplinkEnabled bool `protobuf:"varint,5,opt,name=uplink_enabled,json=uplinkEnabled,proto3" json:"uplink_enabled,omitempty"`
// If true, messages seen on the internet will be forwarded to the local mesh.
DownlinkEnabled bool `protobuf:"varint,6,opt,name=downlink_enabled,json=downlinkEnabled,proto3" json:"downlink_enabled,omitempty"`
+ // Per-channel module settings.
+ ModuleSettings *ModuleSettings `protobuf:"bytes,7,opt,name=module_settings,json=moduleSettings,proto3" json:"module_settings,omitempty"`
}
func (x *ChannelSettings) Reset() {
@@ -219,6 +221,62 @@ func (x *ChannelSettings) GetDownlinkEnabled() bool {
return false
}
+func (x *ChannelSettings) GetModuleSettings() *ModuleSettings {
+ if x != nil {
+ return x.ModuleSettings
+ }
+ return nil
+}
+
+// This message is specifically for modules to store per-channel configuration data.
+type ModuleSettings struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // Bits of precision for the location sent in position packets.
+ PositionPrecision uint32 `protobuf:"varint,1,opt,name=position_precision,json=positionPrecision,proto3" json:"position_precision,omitempty"`
+}
+
+func (x *ModuleSettings) Reset() {
+ *x = ModuleSettings{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_meshtastic_channel_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *ModuleSettings) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ModuleSettings) ProtoMessage() {}
+
+func (x *ModuleSettings) ProtoReflect() protoreflect.Message {
+ mi := &file_meshtastic_channel_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use ModuleSettings.ProtoReflect.Descriptor instead.
+func (*ModuleSettings) Descriptor() ([]byte, []int) {
+ return file_meshtastic_channel_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *ModuleSettings) GetPositionPrecision() uint32 {
+ if x != nil {
+ return x.PositionPrecision
+ }
+ return 0
+}
+
// A pair of a channel number, mode and the (sharable) settings for that channel
type Channel struct {
state protoimpl.MessageState
@@ -238,7 +296,7 @@ type Channel struct {
func (x *Channel) Reset() {
*x = Channel{}
if protoimpl.UnsafeEnabled {
- mi := &file_meshtastic_channel_proto_msgTypes[1]
+ mi := &file_meshtastic_channel_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -251,7 +309,7 @@ func (x *Channel) String() string {
func (*Channel) ProtoMessage() {}
func (x *Channel) ProtoReflect() protoreflect.Message {
- mi := &file_meshtastic_channel_proto_msgTypes[1]
+ mi := &file_meshtastic_channel_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -264,7 +322,7 @@ func (x *Channel) ProtoReflect() protoreflect.Message {
// Deprecated: Use Channel.ProtoReflect.Descriptor instead.
func (*Channel) Descriptor() ([]byte, []int) {
- return file_meshtastic_channel_proto_rawDescGZIP(), []int{1}
+ return file_meshtastic_channel_proto_rawDescGZIP(), []int{2}
}
func (x *Channel) GetIndex() int32 {
@@ -293,7 +351,7 @@ var File_meshtastic_channel_proto protoreflect.FileDescriptor
var file_meshtastic_channel_proto_rawDesc = []byte{
0x0a, 0x18, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2f, 0x63, 0x68, 0x61,
0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x6d, 0x65, 0x73, 0x68,
- 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x22, 0xbe, 0x01, 0x0a, 0x0f, 0x43, 0x68, 0x61, 0x6e, 0x6e,
+ 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x22, 0x83, 0x02, 0x0a, 0x0f, 0x43, 0x68, 0x61, 0x6e, 0x6e,
0x65, 0x6c, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x23, 0x0a, 0x0b, 0x63, 0x68,
0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x42,
0x02, 0x18, 0x01, 0x52, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x4e, 0x75, 0x6d, 0x12,
@@ -305,25 +363,34 @@ var file_meshtastic_channel_proto_rawDesc = []byte{
0x70, 0x6c, 0x69, 0x6e, 0x6b, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x29, 0x0a, 0x10,
0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64,
0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x69, 0x6e, 0x6b,
- 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x22, 0xb8, 0x01, 0x0a, 0x07, 0x43, 0x68, 0x61, 0x6e,
- 0x6e, 0x65, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01,
- 0x28, 0x05, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x37, 0x0a, 0x08, 0x73, 0x65, 0x74,
- 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6d, 0x65,
- 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c,
- 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e,
- 0x67, 0x73, 0x12, 0x2c, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e,
- 0x32, 0x18, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x43, 0x68,
- 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65,
- 0x22, 0x30, 0x0a, 0x04, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41,
- 0x42, 0x4c, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x52, 0x49, 0x4d, 0x41, 0x52,
- 0x59, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x41, 0x52, 0x59,
- 0x10, 0x02, 0x42, 0x62, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x65, 0x65, 0x6b, 0x73, 0x76,
- 0x69, 0x6c, 0x6c, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x42, 0x0d, 0x43, 0x68, 0x61, 0x6e, 0x6e,
- 0x65, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x5a, 0x22, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
- 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2f,
- 0x67, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0xaa, 0x02, 0x14, 0x4d,
- 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62,
- 0x75, 0x66, 0x73, 0xba, 0x02, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+ 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x43, 0x0a, 0x0f, 0x6d, 0x6f, 0x64, 0x75, 0x6c,
+ 0x65, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b,
+ 0x32, 0x1a, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x4d, 0x6f,
+ 0x64, 0x75, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x0e, 0x6d, 0x6f,
+ 0x64, 0x75, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, 0x3f, 0x0a, 0x0e,
+ 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x2d,
+ 0x0a, 0x12, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x72, 0x65, 0x63, 0x69,
+ 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x11, 0x70, 0x6f, 0x73, 0x69,
+ 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xb8, 0x01,
+ 0x0a, 0x07, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64,
+ 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12,
+ 0x37, 0x0a, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28,
+ 0x0b, 0x32, 0x1b, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x43,
+ 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x08,
+ 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x2c, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65,
+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73,
+ 0x74, 0x69, 0x63, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x52, 0x6f, 0x6c, 0x65,
+ 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x22, 0x30, 0x0a, 0x04, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x0c,
+ 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07,
+ 0x50, 0x52, 0x49, 0x4d, 0x41, 0x52, 0x59, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x45, 0x43,
+ 0x4f, 0x4e, 0x44, 0x41, 0x52, 0x59, 0x10, 0x02, 0x42, 0x62, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e,
+ 0x67, 0x65, 0x65, 0x6b, 0x73, 0x76, 0x69, 0x6c, 0x6c, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x42,
+ 0x0d, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x5a, 0x22,
+ 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x65, 0x73, 0x68, 0x74,
+ 0x61, 0x73, 0x74, 0x69, 0x63, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74,
+ 0x65, 0x64, 0xaa, 0x02, 0x14, 0x4d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e,
+ 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x73, 0xba, 0x02, 0x00, 0x62, 0x06, 0x70, 0x72,
+ 0x6f, 0x74, 0x6f, 0x33,
}
var (
@@ -339,20 +406,22 @@ func file_meshtastic_channel_proto_rawDescGZIP() []byte {
}
var file_meshtastic_channel_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
-var file_meshtastic_channel_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
+var file_meshtastic_channel_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_meshtastic_channel_proto_goTypes = []interface{}{
(Channel_Role)(0), // 0: meshtastic.Channel.Role
(*ChannelSettings)(nil), // 1: meshtastic.ChannelSettings
- (*Channel)(nil), // 2: meshtastic.Channel
+ (*ModuleSettings)(nil), // 2: meshtastic.ModuleSettings
+ (*Channel)(nil), // 3: meshtastic.Channel
}
var file_meshtastic_channel_proto_depIdxs = []int32{
- 1, // 0: meshtastic.Channel.settings:type_name -> meshtastic.ChannelSettings
- 0, // 1: meshtastic.Channel.role:type_name -> meshtastic.Channel.Role
- 2, // [2:2] is the sub-list for method output_type
- 2, // [2:2] is the sub-list for method input_type
- 2, // [2:2] is the sub-list for extension type_name
- 2, // [2:2] is the sub-list for extension extendee
- 0, // [0:2] is the sub-list for field type_name
+ 2, // 0: meshtastic.ChannelSettings.module_settings:type_name -> meshtastic.ModuleSettings
+ 1, // 1: meshtastic.Channel.settings:type_name -> meshtastic.ChannelSettings
+ 0, // 2: meshtastic.Channel.role:type_name -> meshtastic.Channel.Role
+ 3, // [3:3] is the sub-list for method output_type
+ 3, // [3:3] is the sub-list for method input_type
+ 3, // [3:3] is the sub-list for extension type_name
+ 3, // [3:3] is the sub-list for extension extendee
+ 0, // [0:3] is the sub-list for field type_name
}
func init() { file_meshtastic_channel_proto_init() }
@@ -374,6 +443,18 @@ func file_meshtastic_channel_proto_init() {
}
}
file_meshtastic_channel_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*ModuleSettings); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_meshtastic_channel_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Channel); i {
case 0:
return &v.state
@@ -392,7 +473,7 @@ func file_meshtastic_channel_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_meshtastic_channel_proto_rawDesc,
NumEnums: 1,
- NumMessages: 2,
+ NumMessages: 3,
NumExtensions: 0,
NumServices: 0,
},
diff --git a/meshtastic/channel_vtproto.pb.go b/meshtastic/channel_vtproto.pb.go
index b01d469..a0b4fde 100644
--- a/meshtastic/channel_vtproto.pb.go
+++ b/meshtastic/channel_vtproto.pb.go
@@ -8,10 +8,8 @@ import (
binary "encoding/binary"
fmt "fmt"
protohelpers "github.com/planetscale/vtprotobuf/protohelpers"
- proto "google.golang.org/protobuf/proto"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
- unsafe "unsafe"
)
const (
@@ -21,110 +19,6 @@ const (
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
-func (m *ChannelSettings) CloneVT() *ChannelSettings {
- if m == nil {
- return (*ChannelSettings)(nil)
- }
- r := new(ChannelSettings)
- r.ChannelNum = m.ChannelNum
- r.Name = m.Name
- r.Id = m.Id
- r.UplinkEnabled = m.UplinkEnabled
- r.DownlinkEnabled = m.DownlinkEnabled
- if rhs := m.Psk; rhs != nil {
- tmpBytes := make([]byte, len(rhs))
- copy(tmpBytes, rhs)
- r.Psk = tmpBytes
- }
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *ChannelSettings) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *Channel) CloneVT() *Channel {
- if m == nil {
- return (*Channel)(nil)
- }
- r := new(Channel)
- r.Index = m.Index
- r.Settings = m.Settings.CloneVT()
- r.Role = m.Role
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *Channel) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (this *ChannelSettings) EqualVT(that *ChannelSettings) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.ChannelNum != that.ChannelNum {
- return false
- }
- if string(this.Psk) != string(that.Psk) {
- return false
- }
- if this.Name != that.Name {
- return false
- }
- if this.Id != that.Id {
- return false
- }
- if this.UplinkEnabled != that.UplinkEnabled {
- return false
- }
- if this.DownlinkEnabled != that.DownlinkEnabled {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *ChannelSettings) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*ChannelSettings)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *Channel) EqualVT(that *Channel) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.Index != that.Index {
- return false
- }
- if !this.Settings.EqualVT(that.Settings) {
- return false
- }
- if this.Role != that.Role {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *Channel) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*Channel)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
func (m *ChannelSettings) MarshalVT() (dAtA []byte, err error) {
if m == nil {
return nil, nil
@@ -155,6 +49,16 @@ func (m *ChannelSettings) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
i -= len(m.unknownFields)
copy(dAtA[i:], m.unknownFields)
}
+ if m.ModuleSettings != nil {
+ size, err := m.ModuleSettings.MarshalToSizedBufferVT(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
+ i--
+ dAtA[i] = 0x3a
+ }
if m.DownlinkEnabled {
i--
if m.DownlinkEnabled {
@@ -203,7 +107,7 @@ func (m *ChannelSettings) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
return len(dAtA) - i, nil
}
-func (m *Channel) MarshalVT() (dAtA []byte, err error) {
+func (m *ModuleSettings) MarshalVT() (dAtA []byte, err error) {
if m == nil {
return nil, nil
}
@@ -216,12 +120,12 @@ func (m *Channel) MarshalVT() (dAtA []byte, err error) {
return dAtA[:n], nil
}
-func (m *Channel) MarshalToVT(dAtA []byte) (int, error) {
+func (m *ModuleSettings) MarshalToVT(dAtA []byte) (int, error) {
size := m.SizeVT()
return m.MarshalToSizedBufferVT(dAtA[:size])
}
-func (m *Channel) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
+func (m *ModuleSettings) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
if m == nil {
return 0, nil
}
@@ -233,126 +137,33 @@ func (m *Channel) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
i -= len(m.unknownFields)
copy(dAtA[i:], m.unknownFields)
}
- if m.Role != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Role))
- i--
- dAtA[i] = 0x18
- }
- if m.Settings != nil {
- size, err := m.Settings.MarshalToSizedBufferVT(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x12
- }
- if m.Index != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Index))
+ if m.PositionPrecision != 0 {
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(m.PositionPrecision))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
-func (m *ChannelSettings) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *ChannelSettings) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *ChannelSettings) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.DownlinkEnabled {
- i--
- if m.DownlinkEnabled {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x30
- }
- if m.UplinkEnabled {
- i--
- if m.UplinkEnabled {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x28
- }
- if m.Id != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(m.Id))
- i--
- dAtA[i] = 0x25
- }
- if len(m.Name) > 0 {
- i -= len(m.Name)
- copy(dAtA[i:], m.Name)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name)))
- i--
- dAtA[i] = 0x1a
- }
- if len(m.Psk) > 0 {
- i -= len(m.Psk)
- copy(dAtA[i:], m.Psk)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Psk)))
- i--
- dAtA[i] = 0x12
- }
- if m.ChannelNum != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.ChannelNum))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *Channel) MarshalVTStrict() (dAtA []byte, err error) {
+func (m *Channel) MarshalVT() (dAtA []byte, err error) {
if m == nil {
return nil, nil
}
size := m.SizeVT()
dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
+ n, err := m.MarshalToSizedBufferVT(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
-func (m *Channel) MarshalToVTStrict(dAtA []byte) (int, error) {
+func (m *Channel) MarshalToVT(dAtA []byte) (int, error) {
size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
+ return m.MarshalToSizedBufferVT(dAtA[:size])
}
-func (m *Channel) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
+func (m *Channel) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
if m == nil {
return 0, nil
}
@@ -370,7 +181,7 @@ func (m *Channel) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
dAtA[i] = 0x18
}
if m.Settings != nil {
- size, err := m.Settings.MarshalToSizedBufferVTStrict(dAtA[:i])
+ size, err := m.Settings.MarshalToSizedBufferVT(dAtA[:i])
if err != nil {
return 0, err
}
@@ -413,6 +224,23 @@ func (m *ChannelSettings) SizeVT() (n int) {
if m.DownlinkEnabled {
n += 2
}
+ if m.ModuleSettings != nil {
+ l = m.ModuleSettings.SizeVT()
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ n += len(m.unknownFields)
+ return n
+}
+
+func (m *ModuleSettings) SizeVT() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.PositionPrecision != 0 {
+ n += 1 + protohelpers.SizeOfVarint(uint64(m.PositionPrecision))
+ }
n += len(m.unknownFields)
return n
}
@@ -601,79 +429,9 @@ func (m *ChannelSettings) UnmarshalVT(dAtA []byte) error {
}
}
m.DownlinkEnabled = bool(v != 0)
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *Channel) UnmarshalVT(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: Channel: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Channel: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType)
- }
- m.Index = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Index |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
+ case 7:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Settings", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field ModuleSettings", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
@@ -700,32 +458,13 @@ func (m *Channel) UnmarshalVT(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- if m.Settings == nil {
- m.Settings = &ChannelSettings{}
+ if m.ModuleSettings == nil {
+ m.ModuleSettings = &ModuleSettings{}
}
- if err := m.Settings.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
+ if err := m.ModuleSettings.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType)
- }
- m.Role = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Role |= Channel_Role(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
default:
iNdEx = preIndex
skippy, err := protohelpers.Skip(dAtA[iNdEx:])
@@ -748,7 +487,7 @@ func (m *Channel) UnmarshalVT(dAtA []byte) error {
}
return nil
}
-func (m *ChannelSettings) UnmarshalVTUnsafe(dAtA []byte) error {
+func (m *ModuleSettings) UnmarshalVT(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -771,113 +510,17 @@ func (m *ChannelSettings) UnmarshalVTUnsafe(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: ChannelSettings: wiretype end group for non-group")
+ return fmt.Errorf("proto: ModuleSettings: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: ChannelSettings: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: ModuleSettings: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ChannelNum", wireType)
- }
- m.ChannelNum = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ChannelNum |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Psk", wireType)
- }
- var byteLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- byteLen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if byteLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + byteLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Psk = dAtA[iNdEx:postIndex]
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var stringValue string
- if intStringLen > 0 {
- stringValue = unsafe.String(&dAtA[iNdEx], intStringLen)
- }
- m.Name = stringValue
- iNdEx = postIndex
- case 4:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
- }
- m.Id = 0
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- m.Id = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UplinkEnabled", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field PositionPrecision", wireType)
}
- var v int
+ m.PositionPrecision = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protohelpers.ErrIntOverflow
@@ -887,32 +530,11 @@ func (m *ChannelSettings) UnmarshalVTUnsafe(dAtA []byte) error {
}
b := dAtA[iNdEx]
iNdEx++
- v |= int(b&0x7F) << shift
+ m.PositionPrecision |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
- m.UplinkEnabled = bool(v != 0)
- case 6:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field DownlinkEnabled", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.DownlinkEnabled = bool(v != 0)
default:
iNdEx = preIndex
skippy, err := protohelpers.Skip(dAtA[iNdEx:])
@@ -935,7 +557,7 @@ func (m *ChannelSettings) UnmarshalVTUnsafe(dAtA []byte) error {
}
return nil
}
-func (m *Channel) UnmarshalVTUnsafe(dAtA []byte) error {
+func (m *Channel) UnmarshalVT(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -1015,7 +637,7 @@ func (m *Channel) UnmarshalVTUnsafe(dAtA []byte) error {
if m.Settings == nil {
m.Settings = &ChannelSettings{}
}
- if err := m.Settings.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
+ if err := m.Settings.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
diff --git a/meshtastic/clientonly.pb.go b/meshtastic/clientonly.pb.go
index a0f9a5f..9730098 100644
--- a/meshtastic/clientonly.pb.go
+++ b/meshtastic/clientonly.pb.go
@@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.31.0
-// protoc v4.24.3
+// protoc-gen-go v1.32.0
+// protoc v4.25.2
// source: meshtastic/clientonly.proto
package generated
diff --git a/meshtastic/clientonly_vtproto.pb.go b/meshtastic/clientonly_vtproto.pb.go
index 3cde9a4..8ad1193 100644
--- a/meshtastic/clientonly_vtproto.pb.go
+++ b/meshtastic/clientonly_vtproto.pb.go
@@ -7,10 +7,8 @@ package generated
import (
fmt "fmt"
protohelpers "github.com/planetscale/vtprotobuf/protohelpers"
- proto "google.golang.org/protobuf/proto"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
- unsafe "unsafe"
)
const (
@@ -20,67 +18,6 @@ const (
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
-func (m *DeviceProfile) CloneVT() *DeviceProfile {
- if m == nil {
- return (*DeviceProfile)(nil)
- }
- r := new(DeviceProfile)
- r.Config = m.Config.CloneVT()
- r.ModuleConfig = m.ModuleConfig.CloneVT()
- if rhs := m.LongName; rhs != nil {
- tmpVal := *rhs
- r.LongName = &tmpVal
- }
- if rhs := m.ShortName; rhs != nil {
- tmpVal := *rhs
- r.ShortName = &tmpVal
- }
- if rhs := m.ChannelUrl; rhs != nil {
- tmpVal := *rhs
- r.ChannelUrl = &tmpVal
- }
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *DeviceProfile) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (this *DeviceProfile) EqualVT(that *DeviceProfile) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if p, q := this.LongName, that.LongName; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
- return false
- }
- if p, q := this.ShortName, that.ShortName; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
- return false
- }
- if p, q := this.ChannelUrl, that.ChannelUrl; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
- return false
- }
- if !this.Config.EqualVT(that.Config) {
- return false
- }
- if !this.ModuleConfig.EqualVT(that.ModuleConfig) {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *DeviceProfile) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*DeviceProfile)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
func (m *DeviceProfile) MarshalVT() (dAtA []byte, err error) {
if m == nil {
return nil, nil
@@ -155,80 +92,6 @@ func (m *DeviceProfile) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
return len(dAtA) - i, nil
}
-func (m *DeviceProfile) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *DeviceProfile) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *DeviceProfile) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.ModuleConfig != nil {
- size, err := m.ModuleConfig.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x2a
- }
- if m.Config != nil {
- size, err := m.Config.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x22
- }
- if m.ChannelUrl != nil {
- i -= len(*m.ChannelUrl)
- copy(dAtA[i:], *m.ChannelUrl)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(*m.ChannelUrl)))
- i--
- dAtA[i] = 0x1a
- }
- if m.ShortName != nil {
- i -= len(*m.ShortName)
- copy(dAtA[i:], *m.ShortName)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(*m.ShortName)))
- i--
- dAtA[i] = 0x12
- }
- if m.LongName != nil {
- i -= len(*m.LongName)
- copy(dAtA[i:], *m.LongName)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(*m.LongName)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
-}
-
func (m *DeviceProfile) SizeVT() (n int) {
if m == nil {
return 0
@@ -481,237 +344,3 @@ func (m *DeviceProfile) UnmarshalVT(dAtA []byte) error {
}
return nil
}
-func (m *DeviceProfile) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: DeviceProfile: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: DeviceProfile: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field LongName", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var stringValue string
- if intStringLen > 0 {
- stringValue = unsafe.String(&dAtA[iNdEx], intStringLen)
- }
- s := stringValue
- m.LongName = &s
- iNdEx = postIndex
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ShortName", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var stringValue string
- if intStringLen > 0 {
- stringValue = unsafe.String(&dAtA[iNdEx], intStringLen)
- }
- s := stringValue
- m.ShortName = &s
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ChannelUrl", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var stringValue string
- if intStringLen > 0 {
- stringValue = unsafe.String(&dAtA[iNdEx], intStringLen)
- }
- s := stringValue
- m.ChannelUrl = &s
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Config", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Config == nil {
- m.Config = &LocalConfig{}
- }
- if err := m.Config.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ModuleConfig", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.ModuleConfig == nil {
- m.ModuleConfig = &LocalModuleConfig{}
- }
- if err := m.ModuleConfig.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
diff --git a/meshtastic/config.pb.go b/meshtastic/config.pb.go
index b004d48..fd64176 100644
--- a/meshtastic/config.pb.go
+++ b/meshtastic/config.pb.go
@@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.31.0
-// protoc v4.24.3
+// protoc-gen-go v1.32.0
+// protoc v4.25.2
// source: meshtastic/config.proto
package generated
@@ -1200,8 +1200,6 @@ type Config_PositionConfig struct {
GpsEnGpio uint32 `protobuf:"varint,12,opt,name=gps_en_gpio,json=gpsEnGpio,proto3" json:"gps_en_gpio,omitempty"`
// Set where GPS is enabled, disabled, or not present
GpsMode Config_PositionConfig_GpsMode `protobuf:"varint,13,opt,name=gps_mode,json=gpsMode,proto3,enum=meshtastic.Config_PositionConfig_GpsMode" json:"gps_mode,omitempty"`
- // Set GPS precision in bits per channel, or 0 for disabled
- ChannelPrecision []uint32 `protobuf:"varint,14,rep,packed,name=channel_precision,json=channelPrecision,proto3" json:"channel_precision,omitempty"`
}
func (x *Config_PositionConfig) Reset() {
@@ -1329,13 +1327,6 @@ func (x *Config_PositionConfig) GetGpsMode() Config_PositionConfig_GpsMode {
return Config_PositionConfig_DISABLED
}
-func (x *Config_PositionConfig) GetChannelPrecision() []uint32 {
- if x != nil {
- return x.ChannelPrecision
- }
- return nil
-}
-
// Power Config\
// See [Power Config](/docs/settings/config/power) for additional power config details.
type Config_PowerConfig struct {
@@ -2072,7 +2063,7 @@ var File_meshtastic_config_proto protoreflect.FileDescriptor
var file_meshtastic_config_proto_rawDesc = []byte{
0x0a, 0x17, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2f, 0x63, 0x6f, 0x6e,
0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x6d, 0x65, 0x73, 0x68, 0x74,
- 0x61, 0x73, 0x74, 0x69, 0x63, 0x22, 0xff, 0x27, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
+ 0x61, 0x73, 0x74, 0x69, 0x63, 0x22, 0xd2, 0x27, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
0x12, 0x39, 0x0a, 0x06, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x1f, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x43, 0x6f,
0x6e, 0x66, 0x69, 0x67, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69,
@@ -2147,7 +2138,7 @@ var file_meshtastic_config_proto_rawDesc = []byte{
0x4c, 0x4c, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x41, 0x4c, 0x4c, 0x5f, 0x53, 0x4b, 0x49, 0x50,
0x5f, 0x44, 0x45, 0x43, 0x4f, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x4c,
0x4f, 0x43, 0x41, 0x4c, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x4b,
- 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x03, 0x1a, 0xa7, 0x07, 0x0a, 0x0e,
+ 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x03, 0x1a, 0xfa, 0x06, 0x0a, 0x0e,
0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x36,
0x0a, 0x17, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x62, 0x72, 0x6f, 0x61, 0x64,
0x63, 0x61, 0x73, 0x74, 0x5f, 0x73, 0x65, 0x63, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52,
@@ -2189,217 +2180,214 @@ var file_meshtastic_config_proto_rawDesc = []byte{
0x29, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x43, 0x6f, 0x6e,
0x66, 0x69, 0x67, 0x2e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66,
0x69, 0x67, 0x2e, 0x47, 0x70, 0x73, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x07, 0x67, 0x70, 0x73, 0x4d,
- 0x6f, 0x64, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x70,
- 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0e, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x10,
- 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x50, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e,
- 0x22, 0xab, 0x01, 0x0a, 0x0d, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x6c, 0x61,
- 0x67, 0x73, 0x12, 0x09, 0x0a, 0x05, 0x55, 0x4e, 0x53, 0x45, 0x54, 0x10, 0x00, 0x12, 0x0c, 0x0a,
- 0x08, 0x41, 0x4c, 0x54, 0x49, 0x54, 0x55, 0x44, 0x45, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x41,
- 0x4c, 0x54, 0x49, 0x54, 0x55, 0x44, 0x45, 0x5f, 0x4d, 0x53, 0x4c, 0x10, 0x02, 0x12, 0x16, 0x0a,
- 0x12, 0x47, 0x45, 0x4f, 0x49, 0x44, 0x41, 0x4c, 0x5f, 0x53, 0x45, 0x50, 0x41, 0x52, 0x41, 0x54,
- 0x49, 0x4f, 0x4e, 0x10, 0x04, 0x12, 0x07, 0x0a, 0x03, 0x44, 0x4f, 0x50, 0x10, 0x08, 0x12, 0x09,
- 0x0a, 0x05, 0x48, 0x56, 0x44, 0x4f, 0x50, 0x10, 0x10, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x41, 0x54,
- 0x49, 0x4e, 0x56, 0x49, 0x45, 0x57, 0x10, 0x20, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x45, 0x51, 0x5f,
- 0x4e, 0x4f, 0x10, 0x40, 0x12, 0x0e, 0x0a, 0x09, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d,
- 0x50, 0x10, 0x80, 0x01, 0x12, 0x0c, 0x0a, 0x07, 0x48, 0x45, 0x41, 0x44, 0x49, 0x4e, 0x47, 0x10,
- 0x80, 0x02, 0x12, 0x0a, 0x0a, 0x05, 0x53, 0x50, 0x45, 0x45, 0x44, 0x10, 0x80, 0x04, 0x22, 0x35,
- 0x0a, 0x07, 0x47, 0x70, 0x73, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53,
- 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x4e, 0x41, 0x42, 0x4c,
- 0x45, 0x44, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x4e, 0x4f, 0x54, 0x5f, 0x50, 0x52, 0x45, 0x53,
- 0x45, 0x4e, 0x54, 0x10, 0x02, 0x1a, 0xf6, 0x02, 0x0a, 0x0b, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x43,
- 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x26, 0x0a, 0x0f, 0x69, 0x73, 0x5f, 0x70, 0x6f, 0x77, 0x65,
- 0x72, 0x5f, 0x73, 0x61, 0x76, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d,
- 0x69, 0x73, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x53, 0x61, 0x76, 0x69, 0x6e, 0x67, 0x12, 0x42, 0x0a,
- 0x1e, 0x6f, 0x6e, 0x5f, 0x62, 0x61, 0x74, 0x74, 0x65, 0x72, 0x79, 0x5f, 0x73, 0x68, 0x75, 0x74,
- 0x64, 0x6f, 0x77, 0x6e, 0x5f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x63, 0x73, 0x18,
- 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x1a, 0x6f, 0x6e, 0x42, 0x61, 0x74, 0x74, 0x65, 0x72, 0x79,
- 0x53, 0x68, 0x75, 0x74, 0x64, 0x6f, 0x77, 0x6e, 0x41, 0x66, 0x74, 0x65, 0x72, 0x53, 0x65, 0x63,
- 0x73, 0x12, 0x36, 0x0a, 0x17, 0x61, 0x64, 0x63, 0x5f, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c,
- 0x69, 0x65, 0x72, 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01,
- 0x28, 0x02, 0x52, 0x15, 0x61, 0x64, 0x63, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x69, 0x65,
- 0x72, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x12, 0x2e, 0x0a, 0x13, 0x77, 0x61, 0x69,
- 0x74, 0x5f, 0x62, 0x6c, 0x75, 0x65, 0x74, 0x6f, 0x6f, 0x74, 0x68, 0x5f, 0x73, 0x65, 0x63, 0x73,
- 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x11, 0x77, 0x61, 0x69, 0x74, 0x42, 0x6c, 0x75, 0x65,
- 0x74, 0x6f, 0x6f, 0x74, 0x68, 0x53, 0x65, 0x63, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x64, 0x73,
- 0x5f, 0x73, 0x65, 0x63, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x73, 0x64, 0x73,
- 0x53, 0x65, 0x63, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x6c, 0x73, 0x5f, 0x73, 0x65, 0x63, 0x73, 0x18,
- 0x07, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x6c, 0x73, 0x53, 0x65, 0x63, 0x73, 0x12, 0x22, 0x0a,
- 0x0d, 0x6d, 0x69, 0x6e, 0x5f, 0x77, 0x61, 0x6b, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x73, 0x18, 0x08,
- 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x6d, 0x69, 0x6e, 0x57, 0x61, 0x6b, 0x65, 0x53, 0x65, 0x63,
- 0x73, 0x12, 0x3b, 0x0a, 0x1a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x62, 0x61, 0x74, 0x74,
- 0x65, 0x72, 0x79, 0x5f, 0x69, 0x6e, 0x61, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18,
- 0x09, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x17, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x42, 0x61, 0x74,
- 0x74, 0x65, 0x72, 0x79, 0x49, 0x6e, 0x61, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x1a, 0xf7,
- 0x03, 0x0a, 0x0d, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
- 0x12, 0x21, 0x0a, 0x0c, 0x77, 0x69, 0x66, 0x69, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64,
- 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x77, 0x69, 0x66, 0x69, 0x45, 0x6e, 0x61, 0x62,
- 0x6c, 0x65, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x77, 0x69, 0x66, 0x69, 0x5f, 0x73, 0x73, 0x69, 0x64,
- 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x77, 0x69, 0x66, 0x69, 0x53, 0x73, 0x69, 0x64,
- 0x12, 0x19, 0x0a, 0x08, 0x77, 0x69, 0x66, 0x69, 0x5f, 0x70, 0x73, 0x6b, 0x18, 0x04, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x07, 0x77, 0x69, 0x66, 0x69, 0x50, 0x73, 0x6b, 0x12, 0x1d, 0x0a, 0x0a, 0x6e,
- 0x74, 0x70, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x09, 0x6e, 0x74, 0x70, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x74,
- 0x68, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52,
- 0x0a, 0x65, 0x74, 0x68, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x4f, 0x0a, 0x0c, 0x61,
- 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28,
- 0x0e, 0x32, 0x2c, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x43,
- 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x43, 0x6f, 0x6e,
- 0x66, 0x69, 0x67, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x4d, 0x6f, 0x64, 0x65, 0x52,
- 0x0b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x4c, 0x0a, 0x0b,
- 0x69, 0x70, 0x76, 0x34, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x08, 0x20, 0x01, 0x28,
- 0x0b, 0x32, 0x2b, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x43,
- 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x43, 0x6f, 0x6e,
- 0x66, 0x69, 0x67, 0x2e, 0x49, 0x70, 0x56, 0x34, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0a,
- 0x69, 0x70, 0x76, 0x34, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x73,
- 0x79, 0x73, 0x6c, 0x6f, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x09, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x0d, 0x72, 0x73, 0x79, 0x73, 0x6c, 0x6f, 0x67, 0x53, 0x65, 0x72, 0x76, 0x65,
- 0x72, 0x1a, 0x60, 0x0a, 0x0a, 0x49, 0x70, 0x56, 0x34, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,
- 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x07, 0x52, 0x02, 0x69, 0x70, 0x12,
- 0x18, 0x0a, 0x07, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x07,
- 0x52, 0x07, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x75, 0x62,
- 0x6e, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x07, 0x52, 0x06, 0x73, 0x75, 0x62, 0x6e, 0x65,
- 0x74, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x07, 0x52, 0x03,
- 0x64, 0x6e, 0x73, 0x22, 0x23, 0x0a, 0x0b, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x4d, 0x6f,
- 0x64, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x48, 0x43, 0x50, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06,
- 0x53, 0x54, 0x41, 0x54, 0x49, 0x43, 0x10, 0x01, 0x1a, 0xc6, 0x06, 0x0a, 0x0d, 0x44, 0x69, 0x73,
- 0x70, 0x6c, 0x61, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x24, 0x0a, 0x0e, 0x73, 0x63,
- 0x72, 0x65, 0x65, 0x6e, 0x5f, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x63, 0x73, 0x18, 0x01, 0x20, 0x01,
- 0x28, 0x0d, 0x52, 0x0c, 0x73, 0x63, 0x72, 0x65, 0x65, 0x6e, 0x4f, 0x6e, 0x53, 0x65, 0x63, 0x73,
- 0x12, 0x53, 0x0a, 0x0a, 0x67, 0x70, 0x73, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x02,
- 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69,
- 0x63, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79,
- 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x47, 0x70, 0x73, 0x43, 0x6f, 0x6f, 0x72, 0x64, 0x69,
- 0x6e, 0x61, 0x74, 0x65, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x52, 0x09, 0x67, 0x70, 0x73, 0x46,
- 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x39, 0x0a, 0x19, 0x61, 0x75, 0x74, 0x6f, 0x5f, 0x73, 0x63,
- 0x72, 0x65, 0x65, 0x6e, 0x5f, 0x63, 0x61, 0x72, 0x6f, 0x75, 0x73, 0x65, 0x6c, 0x5f, 0x73, 0x65,
- 0x63, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x16, 0x61, 0x75, 0x74, 0x6f, 0x53, 0x63,
- 0x72, 0x65, 0x65, 0x6e, 0x43, 0x61, 0x72, 0x6f, 0x75, 0x73, 0x65, 0x6c, 0x53, 0x65, 0x63, 0x73,
- 0x12, 0x2a, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x5f, 0x6e, 0x6f, 0x72, 0x74,
- 0x68, 0x5f, 0x74, 0x6f, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x63, 0x6f, 0x6d,
- 0x70, 0x61, 0x73, 0x73, 0x4e, 0x6f, 0x72, 0x74, 0x68, 0x54, 0x6f, 0x70, 0x12, 0x1f, 0x0a, 0x0b,
- 0x66, 0x6c, 0x69, 0x70, 0x5f, 0x73, 0x63, 0x72, 0x65, 0x65, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28,
- 0x08, 0x52, 0x0a, 0x66, 0x6c, 0x69, 0x70, 0x53, 0x63, 0x72, 0x65, 0x65, 0x6e, 0x12, 0x43, 0x0a,
- 0x05, 0x75, 0x6e, 0x69, 0x74, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x6d,
- 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
- 0x2e, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x44,
- 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x55, 0x6e, 0x69, 0x74, 0x73, 0x52, 0x05, 0x75, 0x6e, 0x69,
- 0x74, 0x73, 0x12, 0x3d, 0x0a, 0x04, 0x6f, 0x6c, 0x65, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e,
- 0x32, 0x29, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x43, 0x6f,
- 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x43, 0x6f, 0x6e, 0x66,
- 0x69, 0x67, 0x2e, 0x4f, 0x6c, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x6f, 0x6c, 0x65,
- 0x64, 0x12, 0x4e, 0x0a, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x6d, 0x6f, 0x64, 0x65,
- 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73,
- 0x74, 0x69, 0x63, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x44, 0x69, 0x73, 0x70, 0x6c,
- 0x61, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79,
- 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x6d, 0x6f, 0x64,
- 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x68, 0x65, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x62, 0x6f, 0x6c,
- 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x68, 0x65, 0x61, 0x64, 0x69, 0x6e, 0x67,
- 0x42, 0x6f, 0x6c, 0x64, 0x12, 0x30, 0x0a, 0x15, 0x77, 0x61, 0x6b, 0x65, 0x5f, 0x6f, 0x6e, 0x5f,
- 0x74, 0x61, 0x70, 0x5f, 0x6f, 0x72, 0x5f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20,
- 0x01, 0x28, 0x08, 0x52, 0x11, 0x77, 0x61, 0x6b, 0x65, 0x4f, 0x6e, 0x54, 0x61, 0x70, 0x4f, 0x72,
- 0x4d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x4d, 0x0a, 0x13, 0x47, 0x70, 0x73, 0x43, 0x6f, 0x6f,
- 0x72, 0x64, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x07, 0x0a,
- 0x03, 0x44, 0x45, 0x43, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x44, 0x4d, 0x53, 0x10, 0x01, 0x12,
- 0x07, 0x0a, 0x03, 0x55, 0x54, 0x4d, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x4d, 0x47, 0x52, 0x53,
- 0x10, 0x03, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4c, 0x43, 0x10, 0x04, 0x12, 0x08, 0x0a, 0x04, 0x4f,
- 0x53, 0x47, 0x52, 0x10, 0x05, 0x22, 0x28, 0x0a, 0x0c, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79,
- 0x55, 0x6e, 0x69, 0x74, 0x73, 0x12, 0x0a, 0x0a, 0x06, 0x4d, 0x45, 0x54, 0x52, 0x49, 0x43, 0x10,
- 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x49, 0x4d, 0x50, 0x45, 0x52, 0x49, 0x41, 0x4c, 0x10, 0x01, 0x22,
- 0x4d, 0x0a, 0x08, 0x4f, 0x6c, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0d, 0x0a, 0x09, 0x4f,
- 0x4c, 0x45, 0x44, 0x5f, 0x41, 0x55, 0x54, 0x4f, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x4f, 0x4c,
- 0x45, 0x44, 0x5f, 0x53, 0x53, 0x44, 0x31, 0x33, 0x30, 0x36, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b,
- 0x4f, 0x4c, 0x45, 0x44, 0x5f, 0x53, 0x48, 0x31, 0x31, 0x30, 0x36, 0x10, 0x02, 0x12, 0x0f, 0x0a,
- 0x0b, 0x4f, 0x4c, 0x45, 0x44, 0x5f, 0x53, 0x48, 0x31, 0x31, 0x30, 0x37, 0x10, 0x03, 0x22, 0x41,
- 0x0a, 0x0b, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x0b, 0x0a,
- 0x07, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x54, 0x57,
- 0x4f, 0x43, 0x4f, 0x4c, 0x4f, 0x52, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x49, 0x4e, 0x56, 0x45,
- 0x52, 0x54, 0x45, 0x44, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x43, 0x4f, 0x4c, 0x4f, 0x52, 0x10,
- 0x03, 0x1a, 0x87, 0x08, 0x0a, 0x0a, 0x4c, 0x6f, 0x52, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
- 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x5f, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x18, 0x01,
- 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x75, 0x73, 0x65, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x12,
- 0x4c, 0x0a, 0x0c, 0x6d, 0x6f, 0x64, 0x65, 0x6d, 0x5f, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x18,
- 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74,
- 0x69, 0x63, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4c, 0x6f, 0x52, 0x61, 0x43, 0x6f,
- 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6d, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74,
- 0x52, 0x0b, 0x6d, 0x6f, 0x64, 0x65, 0x6d, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x12, 0x1c, 0x0a,
- 0x09, 0x62, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d,
- 0x52, 0x09, 0x62, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x73,
- 0x70, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01,
- 0x28, 0x0d, 0x52, 0x0c, 0x73, 0x70, 0x72, 0x65, 0x61, 0x64, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72,
- 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18,
- 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x61, 0x74,
- 0x65, 0x12, 0x29, 0x0a, 0x10, 0x66, 0x72, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x6f,
- 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0f, 0x66, 0x72, 0x65,
- 0x71, 0x75, 0x65, 0x6e, 0x63, 0x79, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x40, 0x0a, 0x06,
- 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x6d,
- 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
- 0x2e, 0x4c, 0x6f, 0x52, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x67, 0x69,
- 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x1b,
- 0x0a, 0x09, 0x68, 0x6f, 0x70, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28,
- 0x0d, 0x52, 0x08, 0x68, 0x6f, 0x70, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x74,
- 0x78, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52,
- 0x09, 0x74, 0x78, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x78,
- 0x5f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x74, 0x78,
- 0x50, 0x6f, 0x77, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c,
- 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x63, 0x68, 0x61, 0x6e,
- 0x6e, 0x65, 0x6c, 0x4e, 0x75, 0x6d, 0x12, 0x2e, 0x0a, 0x13, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69,
- 0x64, 0x65, 0x5f, 0x64, 0x75, 0x74, 0x79, 0x5f, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x18, 0x0c, 0x20,
- 0x01, 0x28, 0x08, 0x52, 0x11, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x44, 0x75, 0x74,
- 0x79, 0x43, 0x79, 0x63, 0x6c, 0x65, 0x12, 0x33, 0x0a, 0x16, 0x73, 0x78, 0x31, 0x32, 0x36, 0x78,
- 0x5f, 0x72, 0x78, 0x5f, 0x62, 0x6f, 0x6f, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x67, 0x61, 0x69, 0x6e,
- 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x73, 0x78, 0x31, 0x32, 0x36, 0x78, 0x52, 0x78,
- 0x42, 0x6f, 0x6f, 0x73, 0x74, 0x65, 0x64, 0x47, 0x61, 0x69, 0x6e, 0x12, 0x2d, 0x0a, 0x12, 0x6f,
- 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x5f, 0x66, 0x72, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63,
- 0x79, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x02, 0x52, 0x11, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64,
- 0x65, 0x46, 0x72, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x27, 0x0a, 0x0f, 0x69, 0x67,
- 0x6e, 0x6f, 0x72, 0x65, 0x5f, 0x69, 0x6e, 0x63, 0x6f, 0x6d, 0x69, 0x6e, 0x67, 0x18, 0x67, 0x20,
- 0x03, 0x28, 0x0d, 0x52, 0x0e, 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x49, 0x6e, 0x63, 0x6f, 0x6d,
- 0x69, 0x6e, 0x67, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x5f, 0x6d, 0x71,
- 0x74, 0x74, 0x18, 0x68, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65,
- 0x4d, 0x71, 0x74, 0x74, 0x22, 0xcd, 0x01, 0x0a, 0x0a, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43,
- 0x6f, 0x64, 0x65, 0x12, 0x09, 0x0a, 0x05, 0x55, 0x4e, 0x53, 0x45, 0x54, 0x10, 0x00, 0x12, 0x06,
- 0x0a, 0x02, 0x55, 0x53, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x45, 0x55, 0x5f, 0x34, 0x33, 0x33,
- 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x45, 0x55, 0x5f, 0x38, 0x36, 0x38, 0x10, 0x03, 0x12, 0x06,
- 0x0a, 0x02, 0x43, 0x4e, 0x10, 0x04, 0x12, 0x06, 0x0a, 0x02, 0x4a, 0x50, 0x10, 0x05, 0x12, 0x07,
- 0x0a, 0x03, 0x41, 0x4e, 0x5a, 0x10, 0x06, 0x12, 0x06, 0x0a, 0x02, 0x4b, 0x52, 0x10, 0x07, 0x12,
- 0x06, 0x0a, 0x02, 0x54, 0x57, 0x10, 0x08, 0x12, 0x06, 0x0a, 0x02, 0x52, 0x55, 0x10, 0x09, 0x12,
- 0x06, 0x0a, 0x02, 0x49, 0x4e, 0x10, 0x0a, 0x12, 0x0a, 0x0a, 0x06, 0x4e, 0x5a, 0x5f, 0x38, 0x36,
- 0x35, 0x10, 0x0b, 0x12, 0x06, 0x0a, 0x02, 0x54, 0x48, 0x10, 0x0c, 0x12, 0x0b, 0x0a, 0x07, 0x4c,
- 0x4f, 0x52, 0x41, 0x5f, 0x32, 0x34, 0x10, 0x0d, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x41, 0x5f, 0x34,
- 0x33, 0x33, 0x10, 0x0e, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x41, 0x5f, 0x38, 0x36, 0x38, 0x10, 0x0f,
- 0x12, 0x0a, 0x0a, 0x06, 0x4d, 0x59, 0x5f, 0x34, 0x33, 0x33, 0x10, 0x10, 0x12, 0x0a, 0x0a, 0x06,
- 0x4d, 0x59, 0x5f, 0x39, 0x31, 0x39, 0x10, 0x11, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x47, 0x5f, 0x39,
- 0x32, 0x33, 0x10, 0x12, 0x22, 0x94, 0x01, 0x0a, 0x0b, 0x4d, 0x6f, 0x64, 0x65, 0x6d, 0x50, 0x72,
- 0x65, 0x73, 0x65, 0x74, 0x12, 0x0d, 0x0a, 0x09, 0x4c, 0x4f, 0x4e, 0x47, 0x5f, 0x46, 0x41, 0x53,
- 0x54, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x4c, 0x4f, 0x4e, 0x47, 0x5f, 0x53, 0x4c, 0x4f, 0x57,
- 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x56, 0x45, 0x52, 0x59, 0x5f, 0x4c, 0x4f, 0x4e, 0x47, 0x5f,
- 0x53, 0x4c, 0x4f, 0x57, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x4d, 0x45, 0x44, 0x49, 0x55, 0x4d,
- 0x5f, 0x53, 0x4c, 0x4f, 0x57, 0x10, 0x03, 0x12, 0x0f, 0x0a, 0x0b, 0x4d, 0x45, 0x44, 0x49, 0x55,
- 0x4d, 0x5f, 0x46, 0x41, 0x53, 0x54, 0x10, 0x04, 0x12, 0x0e, 0x0a, 0x0a, 0x53, 0x48, 0x4f, 0x52,
- 0x54, 0x5f, 0x53, 0x4c, 0x4f, 0x57, 0x10, 0x05, 0x12, 0x0e, 0x0a, 0x0a, 0x53, 0x48, 0x4f, 0x52,
- 0x54, 0x5f, 0x46, 0x41, 0x53, 0x54, 0x10, 0x06, 0x12, 0x11, 0x0a, 0x0d, 0x4c, 0x4f, 0x4e, 0x47,
- 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x52, 0x41, 0x54, 0x45, 0x10, 0x07, 0x1a, 0xc6, 0x01, 0x0a, 0x0f,
- 0x42, 0x6c, 0x75, 0x65, 0x74, 0x6f, 0x6f, 0x74, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,
- 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08,
- 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x42, 0x0a, 0x04, 0x6d, 0x6f, 0x64,
- 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61,
- 0x73, 0x74, 0x69, 0x63, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x42, 0x6c, 0x75, 0x65,
- 0x74, 0x6f, 0x6f, 0x74, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x50, 0x61, 0x69, 0x72,
- 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a,
- 0x09, 0x66, 0x69, 0x78, 0x65, 0x64, 0x5f, 0x70, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d,
- 0x52, 0x08, 0x66, 0x69, 0x78, 0x65, 0x64, 0x50, 0x69, 0x6e, 0x22, 0x38, 0x0a, 0x0b, 0x50, 0x61,
- 0x69, 0x72, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x0e, 0x0a, 0x0a, 0x52, 0x41, 0x4e,
- 0x44, 0x4f, 0x4d, 0x5f, 0x50, 0x49, 0x4e, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x46, 0x49, 0x58,
- 0x45, 0x44, 0x5f, 0x50, 0x49, 0x4e, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x4e, 0x4f, 0x5f, 0x50,
- 0x49, 0x4e, 0x10, 0x02, 0x42, 0x11, 0x0a, 0x0f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x5f,
- 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x42, 0x61, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x67,
- 0x65, 0x65, 0x6b, 0x73, 0x76, 0x69, 0x6c, 0x6c, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x42, 0x0c,
- 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x5a, 0x22, 0x67, 0x69,
- 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73,
- 0x74, 0x69, 0x63, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64,
- 0xaa, 0x02, 0x14, 0x4d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x50, 0x72,
- 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x73, 0xba, 0x02, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
- 0x6f, 0x33,
+ 0x6f, 0x64, 0x65, 0x22, 0xab, 0x01, 0x0a, 0x0d, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e,
+ 0x46, 0x6c, 0x61, 0x67, 0x73, 0x12, 0x09, 0x0a, 0x05, 0x55, 0x4e, 0x53, 0x45, 0x54, 0x10, 0x00,
+ 0x12, 0x0c, 0x0a, 0x08, 0x41, 0x4c, 0x54, 0x49, 0x54, 0x55, 0x44, 0x45, 0x10, 0x01, 0x12, 0x10,
+ 0x0a, 0x0c, 0x41, 0x4c, 0x54, 0x49, 0x54, 0x55, 0x44, 0x45, 0x5f, 0x4d, 0x53, 0x4c, 0x10, 0x02,
+ 0x12, 0x16, 0x0a, 0x12, 0x47, 0x45, 0x4f, 0x49, 0x44, 0x41, 0x4c, 0x5f, 0x53, 0x45, 0x50, 0x41,
+ 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x04, 0x12, 0x07, 0x0a, 0x03, 0x44, 0x4f, 0x50, 0x10,
+ 0x08, 0x12, 0x09, 0x0a, 0x05, 0x48, 0x56, 0x44, 0x4f, 0x50, 0x10, 0x10, 0x12, 0x0d, 0x0a, 0x09,
+ 0x53, 0x41, 0x54, 0x49, 0x4e, 0x56, 0x49, 0x45, 0x57, 0x10, 0x20, 0x12, 0x0a, 0x0a, 0x06, 0x53,
+ 0x45, 0x51, 0x5f, 0x4e, 0x4f, 0x10, 0x40, 0x12, 0x0e, 0x0a, 0x09, 0x54, 0x49, 0x4d, 0x45, 0x53,
+ 0x54, 0x41, 0x4d, 0x50, 0x10, 0x80, 0x01, 0x12, 0x0c, 0x0a, 0x07, 0x48, 0x45, 0x41, 0x44, 0x49,
+ 0x4e, 0x47, 0x10, 0x80, 0x02, 0x12, 0x0a, 0x0a, 0x05, 0x53, 0x50, 0x45, 0x45, 0x44, 0x10, 0x80,
+ 0x04, 0x22, 0x35, 0x0a, 0x07, 0x47, 0x70, 0x73, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x0c, 0x0a, 0x08,
+ 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x4e,
+ 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x4e, 0x4f, 0x54, 0x5f, 0x50,
+ 0x52, 0x45, 0x53, 0x45, 0x4e, 0x54, 0x10, 0x02, 0x1a, 0xf6, 0x02, 0x0a, 0x0b, 0x50, 0x6f, 0x77,
+ 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x26, 0x0a, 0x0f, 0x69, 0x73, 0x5f, 0x70,
+ 0x6f, 0x77, 0x65, 0x72, 0x5f, 0x73, 0x61, 0x76, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x08, 0x52, 0x0d, 0x69, 0x73, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x53, 0x61, 0x76, 0x69, 0x6e, 0x67,
+ 0x12, 0x42, 0x0a, 0x1e, 0x6f, 0x6e, 0x5f, 0x62, 0x61, 0x74, 0x74, 0x65, 0x72, 0x79, 0x5f, 0x73,
+ 0x68, 0x75, 0x74, 0x64, 0x6f, 0x77, 0x6e, 0x5f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x73, 0x65,
+ 0x63, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x1a, 0x6f, 0x6e, 0x42, 0x61, 0x74, 0x74,
+ 0x65, 0x72, 0x79, 0x53, 0x68, 0x75, 0x74, 0x64, 0x6f, 0x77, 0x6e, 0x41, 0x66, 0x74, 0x65, 0x72,
+ 0x53, 0x65, 0x63, 0x73, 0x12, 0x36, 0x0a, 0x17, 0x61, 0x64, 0x63, 0x5f, 0x6d, 0x75, 0x6c, 0x74,
+ 0x69, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x18,
+ 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x15, 0x61, 0x64, 0x63, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70,
+ 0x6c, 0x69, 0x65, 0x72, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x12, 0x2e, 0x0a, 0x13,
+ 0x77, 0x61, 0x69, 0x74, 0x5f, 0x62, 0x6c, 0x75, 0x65, 0x74, 0x6f, 0x6f, 0x74, 0x68, 0x5f, 0x73,
+ 0x65, 0x63, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x11, 0x77, 0x61, 0x69, 0x74, 0x42,
+ 0x6c, 0x75, 0x65, 0x74, 0x6f, 0x6f, 0x74, 0x68, 0x53, 0x65, 0x63, 0x73, 0x12, 0x19, 0x0a, 0x08,
+ 0x73, 0x64, 0x73, 0x5f, 0x73, 0x65, 0x63, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07,
+ 0x73, 0x64, 0x73, 0x53, 0x65, 0x63, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x6c, 0x73, 0x5f, 0x73, 0x65,
+ 0x63, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x6c, 0x73, 0x53, 0x65, 0x63, 0x73,
+ 0x12, 0x22, 0x0a, 0x0d, 0x6d, 0x69, 0x6e, 0x5f, 0x77, 0x61, 0x6b, 0x65, 0x5f, 0x73, 0x65, 0x63,
+ 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x6d, 0x69, 0x6e, 0x57, 0x61, 0x6b, 0x65,
+ 0x53, 0x65, 0x63, 0x73, 0x12, 0x3b, 0x0a, 0x1a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x62,
+ 0x61, 0x74, 0x74, 0x65, 0x72, 0x79, 0x5f, 0x69, 0x6e, 0x61, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65,
+ 0x73, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x17, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65,
+ 0x42, 0x61, 0x74, 0x74, 0x65, 0x72, 0x79, 0x49, 0x6e, 0x61, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73,
+ 0x73, 0x1a, 0xf7, 0x03, 0x0a, 0x0d, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x43, 0x6f, 0x6e,
+ 0x66, 0x69, 0x67, 0x12, 0x21, 0x0a, 0x0c, 0x77, 0x69, 0x66, 0x69, 0x5f, 0x65, 0x6e, 0x61, 0x62,
+ 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x77, 0x69, 0x66, 0x69, 0x45,
+ 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x77, 0x69, 0x66, 0x69, 0x5f, 0x73,
+ 0x73, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x77, 0x69, 0x66, 0x69, 0x53,
+ 0x73, 0x69, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x77, 0x69, 0x66, 0x69, 0x5f, 0x70, 0x73, 0x6b, 0x18,
+ 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x77, 0x69, 0x66, 0x69, 0x50, 0x73, 0x6b, 0x12, 0x1d,
+ 0x0a, 0x0a, 0x6e, 0x74, 0x70, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x09, 0x6e, 0x74, 0x70, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x1f, 0x0a,
+ 0x0b, 0x65, 0x74, 0x68, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01,
+ 0x28, 0x08, 0x52, 0x0a, 0x65, 0x74, 0x68, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x4f,
+ 0x0a, 0x0c, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x07,
+ 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69,
+ 0x63, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b,
+ 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x4d, 0x6f,
+ 0x64, 0x65, 0x52, 0x0b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x4d, 0x6f, 0x64, 0x65, 0x12,
+ 0x4c, 0x0a, 0x0b, 0x69, 0x70, 0x76, 0x34, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x08,
+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69,
+ 0x63, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b,
+ 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x49, 0x70, 0x56, 0x34, 0x43, 0x6f, 0x6e, 0x66, 0x69,
+ 0x67, 0x52, 0x0a, 0x69, 0x70, 0x76, 0x34, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x25, 0x0a,
+ 0x0e, 0x72, 0x73, 0x79, 0x73, 0x6c, 0x6f, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18,
+ 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x73, 0x79, 0x73, 0x6c, 0x6f, 0x67, 0x53, 0x65,
+ 0x72, 0x76, 0x65, 0x72, 0x1a, 0x60, 0x0a, 0x0a, 0x49, 0x70, 0x56, 0x34, 0x43, 0x6f, 0x6e, 0x66,
+ 0x69, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x07, 0x52, 0x02,
+ 0x69, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x18, 0x02, 0x20,
+ 0x01, 0x28, 0x07, 0x52, 0x07, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x12, 0x16, 0x0a, 0x06,
+ 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x07, 0x52, 0x06, 0x73, 0x75,
+ 0x62, 0x6e, 0x65, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28,
+ 0x07, 0x52, 0x03, 0x64, 0x6e, 0x73, 0x22, 0x23, 0x0a, 0x0b, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73,
+ 0x73, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x48, 0x43, 0x50, 0x10, 0x00, 0x12,
+ 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x41, 0x54, 0x49, 0x43, 0x10, 0x01, 0x1a, 0xc6, 0x06, 0x0a, 0x0d,
+ 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x24, 0x0a,
+ 0x0e, 0x73, 0x63, 0x72, 0x65, 0x65, 0x6e, 0x5f, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x63, 0x73, 0x18,
+ 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x73, 0x63, 0x72, 0x65, 0x65, 0x6e, 0x4f, 0x6e, 0x53,
+ 0x65, 0x63, 0x73, 0x12, 0x53, 0x0a, 0x0a, 0x67, 0x70, 0x73, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61,
+ 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61,
+ 0x73, 0x74, 0x69, 0x63, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x44, 0x69, 0x73, 0x70,
+ 0x6c, 0x61, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x47, 0x70, 0x73, 0x43, 0x6f, 0x6f,
+ 0x72, 0x64, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x52, 0x09, 0x67,
+ 0x70, 0x73, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x39, 0x0a, 0x19, 0x61, 0x75, 0x74, 0x6f,
+ 0x5f, 0x73, 0x63, 0x72, 0x65, 0x65, 0x6e, 0x5f, 0x63, 0x61, 0x72, 0x6f, 0x75, 0x73, 0x65, 0x6c,
+ 0x5f, 0x73, 0x65, 0x63, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x16, 0x61, 0x75, 0x74,
+ 0x6f, 0x53, 0x63, 0x72, 0x65, 0x65, 0x6e, 0x43, 0x61, 0x72, 0x6f, 0x75, 0x73, 0x65, 0x6c, 0x53,
+ 0x65, 0x63, 0x73, 0x12, 0x2a, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x5f, 0x6e,
+ 0x6f, 0x72, 0x74, 0x68, 0x5f, 0x74, 0x6f, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f,
+ 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x4e, 0x6f, 0x72, 0x74, 0x68, 0x54, 0x6f, 0x70, 0x12,
+ 0x1f, 0x0a, 0x0b, 0x66, 0x6c, 0x69, 0x70, 0x5f, 0x73, 0x63, 0x72, 0x65, 0x65, 0x6e, 0x18, 0x05,
+ 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x66, 0x6c, 0x69, 0x70, 0x53, 0x63, 0x72, 0x65, 0x65, 0x6e,
+ 0x12, 0x43, 0x0a, 0x05, 0x75, 0x6e, 0x69, 0x74, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32,
+ 0x2d, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x43, 0x6f, 0x6e,
+ 0x66, 0x69, 0x67, 0x2e, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69,
+ 0x67, 0x2e, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x55, 0x6e, 0x69, 0x74, 0x73, 0x52, 0x05,
+ 0x75, 0x6e, 0x69, 0x74, 0x73, 0x12, 0x3d, 0x0a, 0x04, 0x6f, 0x6c, 0x65, 0x64, 0x18, 0x07, 0x20,
+ 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63,
+ 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x43,
+ 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4f, 0x6c, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04,
+ 0x6f, 0x6c, 0x65, 0x64, 0x12, 0x4e, 0x0a, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x6d,
+ 0x6f, 0x64, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x6d, 0x65, 0x73, 0x68,
+ 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x44, 0x69,
+ 0x73, 0x70, 0x6c, 0x61, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x44, 0x69, 0x73, 0x70,
+ 0x6c, 0x61, 0x79, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79,
+ 0x6d, 0x6f, 0x64, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x68, 0x65, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x5f,
+ 0x62, 0x6f, 0x6c, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x68, 0x65, 0x61, 0x64,
+ 0x69, 0x6e, 0x67, 0x42, 0x6f, 0x6c, 0x64, 0x12, 0x30, 0x0a, 0x15, 0x77, 0x61, 0x6b, 0x65, 0x5f,
+ 0x6f, 0x6e, 0x5f, 0x74, 0x61, 0x70, 0x5f, 0x6f, 0x72, 0x5f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e,
+ 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x77, 0x61, 0x6b, 0x65, 0x4f, 0x6e, 0x54, 0x61,
+ 0x70, 0x4f, 0x72, 0x4d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x4d, 0x0a, 0x13, 0x47, 0x70, 0x73,
+ 0x43, 0x6f, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74,
+ 0x12, 0x07, 0x0a, 0x03, 0x44, 0x45, 0x43, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x44, 0x4d, 0x53,
+ 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x54, 0x4d, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x4d,
+ 0x47, 0x52, 0x53, 0x10, 0x03, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4c, 0x43, 0x10, 0x04, 0x12, 0x08,
+ 0x0a, 0x04, 0x4f, 0x53, 0x47, 0x52, 0x10, 0x05, 0x22, 0x28, 0x0a, 0x0c, 0x44, 0x69, 0x73, 0x70,
+ 0x6c, 0x61, 0x79, 0x55, 0x6e, 0x69, 0x74, 0x73, 0x12, 0x0a, 0x0a, 0x06, 0x4d, 0x45, 0x54, 0x52,
+ 0x49, 0x43, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x49, 0x4d, 0x50, 0x45, 0x52, 0x49, 0x41, 0x4c,
+ 0x10, 0x01, 0x22, 0x4d, 0x0a, 0x08, 0x4f, 0x6c, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0d,
+ 0x0a, 0x09, 0x4f, 0x4c, 0x45, 0x44, 0x5f, 0x41, 0x55, 0x54, 0x4f, 0x10, 0x00, 0x12, 0x10, 0x0a,
+ 0x0c, 0x4f, 0x4c, 0x45, 0x44, 0x5f, 0x53, 0x53, 0x44, 0x31, 0x33, 0x30, 0x36, 0x10, 0x01, 0x12,
+ 0x0f, 0x0a, 0x0b, 0x4f, 0x4c, 0x45, 0x44, 0x5f, 0x53, 0x48, 0x31, 0x31, 0x30, 0x36, 0x10, 0x02,
+ 0x12, 0x0f, 0x0a, 0x0b, 0x4f, 0x4c, 0x45, 0x44, 0x5f, 0x53, 0x48, 0x31, 0x31, 0x30, 0x37, 0x10,
+ 0x03, 0x22, 0x41, 0x0a, 0x0b, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4d, 0x6f, 0x64, 0x65,
+ 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x00, 0x12, 0x0c, 0x0a,
+ 0x08, 0x54, 0x57, 0x4f, 0x43, 0x4f, 0x4c, 0x4f, 0x52, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x49,
+ 0x4e, 0x56, 0x45, 0x52, 0x54, 0x45, 0x44, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x43, 0x4f, 0x4c,
+ 0x4f, 0x52, 0x10, 0x03, 0x1a, 0x87, 0x08, 0x0a, 0x0a, 0x4c, 0x6f, 0x52, 0x61, 0x43, 0x6f, 0x6e,
+ 0x66, 0x69, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x5f, 0x70, 0x72, 0x65, 0x73, 0x65,
+ 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x75, 0x73, 0x65, 0x50, 0x72, 0x65, 0x73,
+ 0x65, 0x74, 0x12, 0x4c, 0x0a, 0x0c, 0x6d, 0x6f, 0x64, 0x65, 0x6d, 0x5f, 0x70, 0x72, 0x65, 0x73,
+ 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74,
+ 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4c, 0x6f, 0x52,
+ 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6d, 0x50, 0x72, 0x65,
+ 0x73, 0x65, 0x74, 0x52, 0x0b, 0x6d, 0x6f, 0x64, 0x65, 0x6d, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74,
+ 0x12, 0x1c, 0x0a, 0x09, 0x62, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x18, 0x03, 0x20,
+ 0x01, 0x28, 0x0d, 0x52, 0x09, 0x62, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x12, 0x23,
+ 0x0a, 0x0d, 0x73, 0x70, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18,
+ 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x73, 0x70, 0x72, 0x65, 0x61, 0x64, 0x46, 0x61, 0x63,
+ 0x74, 0x6f, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x61,
+ 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67,
+ 0x52, 0x61, 0x74, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x66, 0x72, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63,
+ 0x79, 0x5f, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0f,
+ 0x66, 0x72, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x79, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12,
+ 0x40, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32,
+ 0x28, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x43, 0x6f, 0x6e,
+ 0x66, 0x69, 0x67, 0x2e, 0x4c, 0x6f, 0x52, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52,
+ 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f,
+ 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x68, 0x6f, 0x70, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x08,
+ 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x68, 0x6f, 0x70, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x1d,
+ 0x0a, 0x0a, 0x74, 0x78, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01,
+ 0x28, 0x08, 0x52, 0x09, 0x74, 0x78, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x19, 0x0a,
+ 0x08, 0x74, 0x78, 0x5f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52,
+ 0x07, 0x74, 0x78, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e,
+ 0x6e, 0x65, 0x6c, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x63,
+ 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x4e, 0x75, 0x6d, 0x12, 0x2e, 0x0a, 0x13, 0x6f, 0x76, 0x65,
+ 0x72, 0x72, 0x69, 0x64, 0x65, 0x5f, 0x64, 0x75, 0x74, 0x79, 0x5f, 0x63, 0x79, 0x63, 0x6c, 0x65,
+ 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65,
+ 0x44, 0x75, 0x74, 0x79, 0x43, 0x79, 0x63, 0x6c, 0x65, 0x12, 0x33, 0x0a, 0x16, 0x73, 0x78, 0x31,
+ 0x32, 0x36, 0x78, 0x5f, 0x72, 0x78, 0x5f, 0x62, 0x6f, 0x6f, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x67,
+ 0x61, 0x69, 0x6e, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x73, 0x78, 0x31, 0x32, 0x36,
+ 0x78, 0x52, 0x78, 0x42, 0x6f, 0x6f, 0x73, 0x74, 0x65, 0x64, 0x47, 0x61, 0x69, 0x6e, 0x12, 0x2d,
+ 0x0a, 0x12, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x5f, 0x66, 0x72, 0x65, 0x71, 0x75,
+ 0x65, 0x6e, 0x63, 0x79, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x02, 0x52, 0x11, 0x6f, 0x76, 0x65, 0x72,
+ 0x72, 0x69, 0x64, 0x65, 0x46, 0x72, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x27, 0x0a,
+ 0x0f, 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x5f, 0x69, 0x6e, 0x63, 0x6f, 0x6d, 0x69, 0x6e, 0x67,
+ 0x18, 0x67, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x0e, 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x49, 0x6e,
+ 0x63, 0x6f, 0x6d, 0x69, 0x6e, 0x67, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65,
+ 0x5f, 0x6d, 0x71, 0x74, 0x74, 0x18, 0x68, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x67, 0x6e,
+ 0x6f, 0x72, 0x65, 0x4d, 0x71, 0x74, 0x74, 0x22, 0xcd, 0x01, 0x0a, 0x0a, 0x52, 0x65, 0x67, 0x69,
+ 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x09, 0x0a, 0x05, 0x55, 0x4e, 0x53, 0x45, 0x54, 0x10,
+ 0x00, 0x12, 0x06, 0x0a, 0x02, 0x55, 0x53, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x45, 0x55, 0x5f,
+ 0x34, 0x33, 0x33, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x45, 0x55, 0x5f, 0x38, 0x36, 0x38, 0x10,
+ 0x03, 0x12, 0x06, 0x0a, 0x02, 0x43, 0x4e, 0x10, 0x04, 0x12, 0x06, 0x0a, 0x02, 0x4a, 0x50, 0x10,
+ 0x05, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x4e, 0x5a, 0x10, 0x06, 0x12, 0x06, 0x0a, 0x02, 0x4b, 0x52,
+ 0x10, 0x07, 0x12, 0x06, 0x0a, 0x02, 0x54, 0x57, 0x10, 0x08, 0x12, 0x06, 0x0a, 0x02, 0x52, 0x55,
+ 0x10, 0x09, 0x12, 0x06, 0x0a, 0x02, 0x49, 0x4e, 0x10, 0x0a, 0x12, 0x0a, 0x0a, 0x06, 0x4e, 0x5a,
+ 0x5f, 0x38, 0x36, 0x35, 0x10, 0x0b, 0x12, 0x06, 0x0a, 0x02, 0x54, 0x48, 0x10, 0x0c, 0x12, 0x0b,
+ 0x0a, 0x07, 0x4c, 0x4f, 0x52, 0x41, 0x5f, 0x32, 0x34, 0x10, 0x0d, 0x12, 0x0a, 0x0a, 0x06, 0x55,
+ 0x41, 0x5f, 0x34, 0x33, 0x33, 0x10, 0x0e, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x41, 0x5f, 0x38, 0x36,
+ 0x38, 0x10, 0x0f, 0x12, 0x0a, 0x0a, 0x06, 0x4d, 0x59, 0x5f, 0x34, 0x33, 0x33, 0x10, 0x10, 0x12,
+ 0x0a, 0x0a, 0x06, 0x4d, 0x59, 0x5f, 0x39, 0x31, 0x39, 0x10, 0x11, 0x12, 0x0a, 0x0a, 0x06, 0x53,
+ 0x47, 0x5f, 0x39, 0x32, 0x33, 0x10, 0x12, 0x22, 0x94, 0x01, 0x0a, 0x0b, 0x4d, 0x6f, 0x64, 0x65,
+ 0x6d, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x12, 0x0d, 0x0a, 0x09, 0x4c, 0x4f, 0x4e, 0x47, 0x5f,
+ 0x46, 0x41, 0x53, 0x54, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x4c, 0x4f, 0x4e, 0x47, 0x5f, 0x53,
+ 0x4c, 0x4f, 0x57, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x56, 0x45, 0x52, 0x59, 0x5f, 0x4c, 0x4f,
+ 0x4e, 0x47, 0x5f, 0x53, 0x4c, 0x4f, 0x57, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x4d, 0x45, 0x44,
+ 0x49, 0x55, 0x4d, 0x5f, 0x53, 0x4c, 0x4f, 0x57, 0x10, 0x03, 0x12, 0x0f, 0x0a, 0x0b, 0x4d, 0x45,
+ 0x44, 0x49, 0x55, 0x4d, 0x5f, 0x46, 0x41, 0x53, 0x54, 0x10, 0x04, 0x12, 0x0e, 0x0a, 0x0a, 0x53,
+ 0x48, 0x4f, 0x52, 0x54, 0x5f, 0x53, 0x4c, 0x4f, 0x57, 0x10, 0x05, 0x12, 0x0e, 0x0a, 0x0a, 0x53,
+ 0x48, 0x4f, 0x52, 0x54, 0x5f, 0x46, 0x41, 0x53, 0x54, 0x10, 0x06, 0x12, 0x11, 0x0a, 0x0d, 0x4c,
+ 0x4f, 0x4e, 0x47, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x52, 0x41, 0x54, 0x45, 0x10, 0x07, 0x1a, 0xc6,
+ 0x01, 0x0a, 0x0f, 0x42, 0x6c, 0x75, 0x65, 0x74, 0x6f, 0x6f, 0x74, 0x68, 0x43, 0x6f, 0x6e, 0x66,
+ 0x69, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x42, 0x0a, 0x04,
+ 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x6d, 0x65, 0x73,
+ 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x42,
+ 0x6c, 0x75, 0x65, 0x74, 0x6f, 0x6f, 0x74, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x50,
+ 0x61, 0x69, 0x72, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65,
+ 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x69, 0x78, 0x65, 0x64, 0x5f, 0x70, 0x69, 0x6e, 0x18, 0x03, 0x20,
+ 0x01, 0x28, 0x0d, 0x52, 0x08, 0x66, 0x69, 0x78, 0x65, 0x64, 0x50, 0x69, 0x6e, 0x22, 0x38, 0x0a,
+ 0x0b, 0x50, 0x61, 0x69, 0x72, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x0e, 0x0a, 0x0a,
+ 0x52, 0x41, 0x4e, 0x44, 0x4f, 0x4d, 0x5f, 0x50, 0x49, 0x4e, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09,
+ 0x46, 0x49, 0x58, 0x45, 0x44, 0x5f, 0x50, 0x49, 0x4e, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x4e,
+ 0x4f, 0x5f, 0x50, 0x49, 0x4e, 0x10, 0x02, 0x42, 0x11, 0x0a, 0x0f, 0x70, 0x61, 0x79, 0x6c, 0x6f,
+ 0x61, 0x64, 0x5f, 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x42, 0x61, 0x0a, 0x13, 0x63, 0x6f,
+ 0x6d, 0x2e, 0x67, 0x65, 0x65, 0x6b, 0x73, 0x76, 0x69, 0x6c, 0x6c, 0x65, 0x2e, 0x6d, 0x65, 0x73,
+ 0x68, 0x42, 0x0c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x5a,
+ 0x22, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x65, 0x73, 0x68,
+ 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61,
+ 0x74, 0x65, 0x64, 0xaa, 0x02, 0x14, 0x4d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63,
+ 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x73, 0xba, 0x02, 0x00, 0x62, 0x06, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
diff --git a/meshtastic/config_vtproto.pb.go b/meshtastic/config_vtproto.pb.go
index 1827ad9..2069eec 100644
--- a/meshtastic/config_vtproto.pb.go
+++ b/meshtastic/config_vtproto.pb.go
@@ -8,11 +8,9 @@ import (
binary "encoding/binary"
fmt "fmt"
protohelpers "github.com/planetscale/vtprotobuf/protohelpers"
- proto "google.golang.org/protobuf/proto"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
math "math"
- unsafe "unsafe"
)
const (
@@ -22,861 +20,6 @@ const (
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
-func (m *Config_DeviceConfig) CloneVT() *Config_DeviceConfig {
- if m == nil {
- return (*Config_DeviceConfig)(nil)
- }
- r := new(Config_DeviceConfig)
- r.Role = m.Role
- r.SerialEnabled = m.SerialEnabled
- r.DebugLogEnabled = m.DebugLogEnabled
- r.ButtonGpio = m.ButtonGpio
- r.BuzzerGpio = m.BuzzerGpio
- r.RebroadcastMode = m.RebroadcastMode
- r.NodeInfoBroadcastSecs = m.NodeInfoBroadcastSecs
- r.DoubleTapAsButtonPress = m.DoubleTapAsButtonPress
- r.IsManaged = m.IsManaged
- r.DisableTripleClick = m.DisableTripleClick
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *Config_DeviceConfig) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *Config_PositionConfig) CloneVT() *Config_PositionConfig {
- if m == nil {
- return (*Config_PositionConfig)(nil)
- }
- r := new(Config_PositionConfig)
- r.PositionBroadcastSecs = m.PositionBroadcastSecs
- r.PositionBroadcastSmartEnabled = m.PositionBroadcastSmartEnabled
- r.FixedPosition = m.FixedPosition
- r.GpsEnabled = m.GpsEnabled
- r.GpsUpdateInterval = m.GpsUpdateInterval
- r.GpsAttemptTime = m.GpsAttemptTime
- r.PositionFlags = m.PositionFlags
- r.RxGpio = m.RxGpio
- r.TxGpio = m.TxGpio
- r.BroadcastSmartMinimumDistance = m.BroadcastSmartMinimumDistance
- r.BroadcastSmartMinimumIntervalSecs = m.BroadcastSmartMinimumIntervalSecs
- r.GpsEnGpio = m.GpsEnGpio
- r.GpsMode = m.GpsMode
- if rhs := m.ChannelPrecision; rhs != nil {
- tmpContainer := make([]uint32, len(rhs))
- copy(tmpContainer, rhs)
- r.ChannelPrecision = tmpContainer
- }
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *Config_PositionConfig) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *Config_PowerConfig) CloneVT() *Config_PowerConfig {
- if m == nil {
- return (*Config_PowerConfig)(nil)
- }
- r := new(Config_PowerConfig)
- r.IsPowerSaving = m.IsPowerSaving
- r.OnBatteryShutdownAfterSecs = m.OnBatteryShutdownAfterSecs
- r.AdcMultiplierOverride = m.AdcMultiplierOverride
- r.WaitBluetoothSecs = m.WaitBluetoothSecs
- r.SdsSecs = m.SdsSecs
- r.LsSecs = m.LsSecs
- r.MinWakeSecs = m.MinWakeSecs
- r.DeviceBatteryInaAddress = m.DeviceBatteryInaAddress
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *Config_PowerConfig) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *Config_NetworkConfig_IpV4Config) CloneVT() *Config_NetworkConfig_IpV4Config {
- if m == nil {
- return (*Config_NetworkConfig_IpV4Config)(nil)
- }
- r := new(Config_NetworkConfig_IpV4Config)
- r.Ip = m.Ip
- r.Gateway = m.Gateway
- r.Subnet = m.Subnet
- r.Dns = m.Dns
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *Config_NetworkConfig_IpV4Config) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *Config_NetworkConfig) CloneVT() *Config_NetworkConfig {
- if m == nil {
- return (*Config_NetworkConfig)(nil)
- }
- r := new(Config_NetworkConfig)
- r.WifiEnabled = m.WifiEnabled
- r.WifiSsid = m.WifiSsid
- r.WifiPsk = m.WifiPsk
- r.NtpServer = m.NtpServer
- r.EthEnabled = m.EthEnabled
- r.AddressMode = m.AddressMode
- r.Ipv4Config = m.Ipv4Config.CloneVT()
- r.RsyslogServer = m.RsyslogServer
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *Config_NetworkConfig) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *Config_DisplayConfig) CloneVT() *Config_DisplayConfig {
- if m == nil {
- return (*Config_DisplayConfig)(nil)
- }
- r := new(Config_DisplayConfig)
- r.ScreenOnSecs = m.ScreenOnSecs
- r.GpsFormat = m.GpsFormat
- r.AutoScreenCarouselSecs = m.AutoScreenCarouselSecs
- r.CompassNorthTop = m.CompassNorthTop
- r.FlipScreen = m.FlipScreen
- r.Units = m.Units
- r.Oled = m.Oled
- r.Displaymode = m.Displaymode
- r.HeadingBold = m.HeadingBold
- r.WakeOnTapOrMotion = m.WakeOnTapOrMotion
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *Config_DisplayConfig) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *Config_LoRaConfig) CloneVT() *Config_LoRaConfig {
- if m == nil {
- return (*Config_LoRaConfig)(nil)
- }
- r := new(Config_LoRaConfig)
- r.UsePreset = m.UsePreset
- r.ModemPreset = m.ModemPreset
- r.Bandwidth = m.Bandwidth
- r.SpreadFactor = m.SpreadFactor
- r.CodingRate = m.CodingRate
- r.FrequencyOffset = m.FrequencyOffset
- r.Region = m.Region
- r.HopLimit = m.HopLimit
- r.TxEnabled = m.TxEnabled
- r.TxPower = m.TxPower
- r.ChannelNum = m.ChannelNum
- r.OverrideDutyCycle = m.OverrideDutyCycle
- r.Sx126XRxBoostedGain = m.Sx126XRxBoostedGain
- r.OverrideFrequency = m.OverrideFrequency
- r.IgnoreMqtt = m.IgnoreMqtt
- if rhs := m.IgnoreIncoming; rhs != nil {
- tmpContainer := make([]uint32, len(rhs))
- copy(tmpContainer, rhs)
- r.IgnoreIncoming = tmpContainer
- }
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *Config_LoRaConfig) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *Config_BluetoothConfig) CloneVT() *Config_BluetoothConfig {
- if m == nil {
- return (*Config_BluetoothConfig)(nil)
- }
- r := new(Config_BluetoothConfig)
- r.Enabled = m.Enabled
- r.Mode = m.Mode
- r.FixedPin = m.FixedPin
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *Config_BluetoothConfig) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *Config) CloneVT() *Config {
- if m == nil {
- return (*Config)(nil)
- }
- r := new(Config)
- if m.PayloadVariant != nil {
- r.PayloadVariant = m.PayloadVariant.(interface {
- CloneVT() isConfig_PayloadVariant
- }).CloneVT()
- }
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *Config) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *Config_Device) CloneVT() isConfig_PayloadVariant {
- if m == nil {
- return (*Config_Device)(nil)
- }
- r := new(Config_Device)
- r.Device = m.Device.CloneVT()
- return r
-}
-
-func (m *Config_Position) CloneVT() isConfig_PayloadVariant {
- if m == nil {
- return (*Config_Position)(nil)
- }
- r := new(Config_Position)
- r.Position = m.Position.CloneVT()
- return r
-}
-
-func (m *Config_Power) CloneVT() isConfig_PayloadVariant {
- if m == nil {
- return (*Config_Power)(nil)
- }
- r := new(Config_Power)
- r.Power = m.Power.CloneVT()
- return r
-}
-
-func (m *Config_Network) CloneVT() isConfig_PayloadVariant {
- if m == nil {
- return (*Config_Network)(nil)
- }
- r := new(Config_Network)
- r.Network = m.Network.CloneVT()
- return r
-}
-
-func (m *Config_Display) CloneVT() isConfig_PayloadVariant {
- if m == nil {
- return (*Config_Display)(nil)
- }
- r := new(Config_Display)
- r.Display = m.Display.CloneVT()
- return r
-}
-
-func (m *Config_Lora) CloneVT() isConfig_PayloadVariant {
- if m == nil {
- return (*Config_Lora)(nil)
- }
- r := new(Config_Lora)
- r.Lora = m.Lora.CloneVT()
- return r
-}
-
-func (m *Config_Bluetooth) CloneVT() isConfig_PayloadVariant {
- if m == nil {
- return (*Config_Bluetooth)(nil)
- }
- r := new(Config_Bluetooth)
- r.Bluetooth = m.Bluetooth.CloneVT()
- return r
-}
-
-func (this *Config_DeviceConfig) EqualVT(that *Config_DeviceConfig) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.Role != that.Role {
- return false
- }
- if this.SerialEnabled != that.SerialEnabled {
- return false
- }
- if this.DebugLogEnabled != that.DebugLogEnabled {
- return false
- }
- if this.ButtonGpio != that.ButtonGpio {
- return false
- }
- if this.BuzzerGpio != that.BuzzerGpio {
- return false
- }
- if this.RebroadcastMode != that.RebroadcastMode {
- return false
- }
- if this.NodeInfoBroadcastSecs != that.NodeInfoBroadcastSecs {
- return false
- }
- if this.DoubleTapAsButtonPress != that.DoubleTapAsButtonPress {
- return false
- }
- if this.IsManaged != that.IsManaged {
- return false
- }
- if this.DisableTripleClick != that.DisableTripleClick {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *Config_DeviceConfig) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*Config_DeviceConfig)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *Config_PositionConfig) EqualVT(that *Config_PositionConfig) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.PositionBroadcastSecs != that.PositionBroadcastSecs {
- return false
- }
- if this.PositionBroadcastSmartEnabled != that.PositionBroadcastSmartEnabled {
- return false
- }
- if this.FixedPosition != that.FixedPosition {
- return false
- }
- if this.GpsEnabled != that.GpsEnabled {
- return false
- }
- if this.GpsUpdateInterval != that.GpsUpdateInterval {
- return false
- }
- if this.GpsAttemptTime != that.GpsAttemptTime {
- return false
- }
- if this.PositionFlags != that.PositionFlags {
- return false
- }
- if this.RxGpio != that.RxGpio {
- return false
- }
- if this.TxGpio != that.TxGpio {
- return false
- }
- if this.BroadcastSmartMinimumDistance != that.BroadcastSmartMinimumDistance {
- return false
- }
- if this.BroadcastSmartMinimumIntervalSecs != that.BroadcastSmartMinimumIntervalSecs {
- return false
- }
- if this.GpsEnGpio != that.GpsEnGpio {
- return false
- }
- if this.GpsMode != that.GpsMode {
- return false
- }
- if len(this.ChannelPrecision) != len(that.ChannelPrecision) {
- return false
- }
- for i, vx := range this.ChannelPrecision {
- vy := that.ChannelPrecision[i]
- if vx != vy {
- return false
- }
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *Config_PositionConfig) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*Config_PositionConfig)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *Config_PowerConfig) EqualVT(that *Config_PowerConfig) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.IsPowerSaving != that.IsPowerSaving {
- return false
- }
- if this.OnBatteryShutdownAfterSecs != that.OnBatteryShutdownAfterSecs {
- return false
- }
- if this.AdcMultiplierOverride != that.AdcMultiplierOverride {
- return false
- }
- if this.WaitBluetoothSecs != that.WaitBluetoothSecs {
- return false
- }
- if this.SdsSecs != that.SdsSecs {
- return false
- }
- if this.LsSecs != that.LsSecs {
- return false
- }
- if this.MinWakeSecs != that.MinWakeSecs {
- return false
- }
- if this.DeviceBatteryInaAddress != that.DeviceBatteryInaAddress {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *Config_PowerConfig) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*Config_PowerConfig)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *Config_NetworkConfig_IpV4Config) EqualVT(that *Config_NetworkConfig_IpV4Config) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.Ip != that.Ip {
- return false
- }
- if this.Gateway != that.Gateway {
- return false
- }
- if this.Subnet != that.Subnet {
- return false
- }
- if this.Dns != that.Dns {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *Config_NetworkConfig_IpV4Config) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*Config_NetworkConfig_IpV4Config)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *Config_NetworkConfig) EqualVT(that *Config_NetworkConfig) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.WifiEnabled != that.WifiEnabled {
- return false
- }
- if this.WifiSsid != that.WifiSsid {
- return false
- }
- if this.WifiPsk != that.WifiPsk {
- return false
- }
- if this.NtpServer != that.NtpServer {
- return false
- }
- if this.EthEnabled != that.EthEnabled {
- return false
- }
- if this.AddressMode != that.AddressMode {
- return false
- }
- if !this.Ipv4Config.EqualVT(that.Ipv4Config) {
- return false
- }
- if this.RsyslogServer != that.RsyslogServer {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *Config_NetworkConfig) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*Config_NetworkConfig)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *Config_DisplayConfig) EqualVT(that *Config_DisplayConfig) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.ScreenOnSecs != that.ScreenOnSecs {
- return false
- }
- if this.GpsFormat != that.GpsFormat {
- return false
- }
- if this.AutoScreenCarouselSecs != that.AutoScreenCarouselSecs {
- return false
- }
- if this.CompassNorthTop != that.CompassNorthTop {
- return false
- }
- if this.FlipScreen != that.FlipScreen {
- return false
- }
- if this.Units != that.Units {
- return false
- }
- if this.Oled != that.Oled {
- return false
- }
- if this.Displaymode != that.Displaymode {
- return false
- }
- if this.HeadingBold != that.HeadingBold {
- return false
- }
- if this.WakeOnTapOrMotion != that.WakeOnTapOrMotion {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *Config_DisplayConfig) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*Config_DisplayConfig)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *Config_LoRaConfig) EqualVT(that *Config_LoRaConfig) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.UsePreset != that.UsePreset {
- return false
- }
- if this.ModemPreset != that.ModemPreset {
- return false
- }
- if this.Bandwidth != that.Bandwidth {
- return false
- }
- if this.SpreadFactor != that.SpreadFactor {
- return false
- }
- if this.CodingRate != that.CodingRate {
- return false
- }
- if this.FrequencyOffset != that.FrequencyOffset {
- return false
- }
- if this.Region != that.Region {
- return false
- }
- if this.HopLimit != that.HopLimit {
- return false
- }
- if this.TxEnabled != that.TxEnabled {
- return false
- }
- if this.TxPower != that.TxPower {
- return false
- }
- if this.ChannelNum != that.ChannelNum {
- return false
- }
- if this.OverrideDutyCycle != that.OverrideDutyCycle {
- return false
- }
- if this.Sx126XRxBoostedGain != that.Sx126XRxBoostedGain {
- return false
- }
- if this.OverrideFrequency != that.OverrideFrequency {
- return false
- }
- if len(this.IgnoreIncoming) != len(that.IgnoreIncoming) {
- return false
- }
- for i, vx := range this.IgnoreIncoming {
- vy := that.IgnoreIncoming[i]
- if vx != vy {
- return false
- }
- }
- if this.IgnoreMqtt != that.IgnoreMqtt {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *Config_LoRaConfig) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*Config_LoRaConfig)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *Config_BluetoothConfig) EqualVT(that *Config_BluetoothConfig) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.Enabled != that.Enabled {
- return false
- }
- if this.Mode != that.Mode {
- return false
- }
- if this.FixedPin != that.FixedPin {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *Config_BluetoothConfig) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*Config_BluetoothConfig)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *Config) EqualVT(that *Config) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.PayloadVariant == nil && that.PayloadVariant != nil {
- return false
- } else if this.PayloadVariant != nil {
- if that.PayloadVariant == nil {
- return false
- }
- if !this.PayloadVariant.(interface {
- EqualVT(isConfig_PayloadVariant) bool
- }).EqualVT(that.PayloadVariant) {
- return false
- }
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *Config) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*Config)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *Config_Device) EqualVT(thatIface isConfig_PayloadVariant) bool {
- that, ok := thatIface.(*Config_Device)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.Device, that.Device; p != q {
- if p == nil {
- p = &Config_DeviceConfig{}
- }
- if q == nil {
- q = &Config_DeviceConfig{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *Config_Position) EqualVT(thatIface isConfig_PayloadVariant) bool {
- that, ok := thatIface.(*Config_Position)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.Position, that.Position; p != q {
- if p == nil {
- p = &Config_PositionConfig{}
- }
- if q == nil {
- q = &Config_PositionConfig{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *Config_Power) EqualVT(thatIface isConfig_PayloadVariant) bool {
- that, ok := thatIface.(*Config_Power)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.Power, that.Power; p != q {
- if p == nil {
- p = &Config_PowerConfig{}
- }
- if q == nil {
- q = &Config_PowerConfig{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *Config_Network) EqualVT(thatIface isConfig_PayloadVariant) bool {
- that, ok := thatIface.(*Config_Network)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.Network, that.Network; p != q {
- if p == nil {
- p = &Config_NetworkConfig{}
- }
- if q == nil {
- q = &Config_NetworkConfig{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *Config_Display) EqualVT(thatIface isConfig_PayloadVariant) bool {
- that, ok := thatIface.(*Config_Display)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.Display, that.Display; p != q {
- if p == nil {
- p = &Config_DisplayConfig{}
- }
- if q == nil {
- q = &Config_DisplayConfig{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *Config_Lora) EqualVT(thatIface isConfig_PayloadVariant) bool {
- that, ok := thatIface.(*Config_Lora)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.Lora, that.Lora; p != q {
- if p == nil {
- p = &Config_LoRaConfig{}
- }
- if q == nil {
- q = &Config_LoRaConfig{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *Config_Bluetooth) EqualVT(thatIface isConfig_PayloadVariant) bool {
- that, ok := thatIface.(*Config_Bluetooth)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.Bluetooth, that.Bluetooth; p != q {
- if p == nil {
- p = &Config_BluetoothConfig{}
- }
- if q == nil {
- q = &Config_BluetoothConfig{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
func (m *Config_DeviceConfig) MarshalVT() (dAtA []byte, err error) {
if m == nil {
return nil, nil
@@ -1015,26 +158,6 @@ func (m *Config_PositionConfig) MarshalToSizedBufferVT(dAtA []byte) (int, error)
i -= len(m.unknownFields)
copy(dAtA[i:], m.unknownFields)
}
- if len(m.ChannelPrecision) > 0 {
- var pksize2 int
- for _, num := range m.ChannelPrecision {
- pksize2 += protohelpers.SizeOfVarint(uint64(num))
- }
- i -= pksize2
- j1 := i
- for _, num := range m.ChannelPrecision {
- for num >= 1<<7 {
- dAtA[j1] = uint8(uint64(num)&0x7f | 0x80)
- num >>= 7
- j1++
- }
- dAtA[j1] = uint8(num)
- j1++
- }
- i = protohelpers.EncodeVarint(dAtA, i, uint64(pksize2))
- i--
- dAtA[i] = 0x72
- }
if m.GpsMode != 0 {
i = protohelpers.EncodeVarint(dAtA, i, uint64(m.GpsMode))
i--
@@ -1840,1009 +963,6 @@ func (m *Config_Bluetooth) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
}
return len(dAtA) - i, nil
}
-func (m *Config_DeviceConfig) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *Config_DeviceConfig) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *Config_DeviceConfig) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.DisableTripleClick {
- i--
- if m.DisableTripleClick {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x50
- }
- if m.IsManaged {
- i--
- if m.IsManaged {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x48
- }
- if m.DoubleTapAsButtonPress {
- i--
- if m.DoubleTapAsButtonPress {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x40
- }
- if m.NodeInfoBroadcastSecs != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.NodeInfoBroadcastSecs))
- i--
- dAtA[i] = 0x38
- }
- if m.RebroadcastMode != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.RebroadcastMode))
- i--
- dAtA[i] = 0x30
- }
- if m.BuzzerGpio != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.BuzzerGpio))
- i--
- dAtA[i] = 0x28
- }
- if m.ButtonGpio != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.ButtonGpio))
- i--
- dAtA[i] = 0x20
- }
- if m.DebugLogEnabled {
- i--
- if m.DebugLogEnabled {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x18
- }
- if m.SerialEnabled {
- i--
- if m.SerialEnabled {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x10
- }
- if m.Role != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Role))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *Config_PositionConfig) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *Config_PositionConfig) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *Config_PositionConfig) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if len(m.ChannelPrecision) > 0 {
- var pksize2 int
- for _, num := range m.ChannelPrecision {
- pksize2 += protohelpers.SizeOfVarint(uint64(num))
- }
- i -= pksize2
- j1 := i
- for _, num := range m.ChannelPrecision {
- for num >= 1<<7 {
- dAtA[j1] = uint8(uint64(num)&0x7f | 0x80)
- num >>= 7
- j1++
- }
- dAtA[j1] = uint8(num)
- j1++
- }
- i = protohelpers.EncodeVarint(dAtA, i, uint64(pksize2))
- i--
- dAtA[i] = 0x72
- }
- if m.GpsMode != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.GpsMode))
- i--
- dAtA[i] = 0x68
- }
- if m.GpsEnGpio != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.GpsEnGpio))
- i--
- dAtA[i] = 0x60
- }
- if m.BroadcastSmartMinimumIntervalSecs != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.BroadcastSmartMinimumIntervalSecs))
- i--
- dAtA[i] = 0x58
- }
- if m.BroadcastSmartMinimumDistance != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.BroadcastSmartMinimumDistance))
- i--
- dAtA[i] = 0x50
- }
- if m.TxGpio != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.TxGpio))
- i--
- dAtA[i] = 0x48
- }
- if m.RxGpio != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.RxGpio))
- i--
- dAtA[i] = 0x40
- }
- if m.PositionFlags != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.PositionFlags))
- i--
- dAtA[i] = 0x38
- }
- if m.GpsAttemptTime != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.GpsAttemptTime))
- i--
- dAtA[i] = 0x30
- }
- if m.GpsUpdateInterval != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.GpsUpdateInterval))
- i--
- dAtA[i] = 0x28
- }
- if m.GpsEnabled {
- i--
- if m.GpsEnabled {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x20
- }
- if m.FixedPosition {
- i--
- if m.FixedPosition {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x18
- }
- if m.PositionBroadcastSmartEnabled {
- i--
- if m.PositionBroadcastSmartEnabled {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x10
- }
- if m.PositionBroadcastSecs != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.PositionBroadcastSecs))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *Config_PowerConfig) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *Config_PowerConfig) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *Config_PowerConfig) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.DeviceBatteryInaAddress != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.DeviceBatteryInaAddress))
- i--
- dAtA[i] = 0x48
- }
- if m.MinWakeSecs != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.MinWakeSecs))
- i--
- dAtA[i] = 0x40
- }
- if m.LsSecs != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.LsSecs))
- i--
- dAtA[i] = 0x38
- }
- if m.SdsSecs != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.SdsSecs))
- i--
- dAtA[i] = 0x30
- }
- if m.WaitBluetoothSecs != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.WaitBluetoothSecs))
- i--
- dAtA[i] = 0x20
- }
- if m.AdcMultiplierOverride != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.AdcMultiplierOverride))))
- i--
- dAtA[i] = 0x1d
- }
- if m.OnBatteryShutdownAfterSecs != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.OnBatteryShutdownAfterSecs))
- i--
- dAtA[i] = 0x10
- }
- if m.IsPowerSaving {
- i--
- if m.IsPowerSaving {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *Config_NetworkConfig_IpV4Config) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *Config_NetworkConfig_IpV4Config) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *Config_NetworkConfig_IpV4Config) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.Dns != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(m.Dns))
- i--
- dAtA[i] = 0x25
- }
- if m.Subnet != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(m.Subnet))
- i--
- dAtA[i] = 0x1d
- }
- if m.Gateway != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(m.Gateway))
- i--
- dAtA[i] = 0x15
- }
- if m.Ip != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(m.Ip))
- i--
- dAtA[i] = 0xd
- }
- return len(dAtA) - i, nil
-}
-
-func (m *Config_NetworkConfig) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *Config_NetworkConfig) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *Config_NetworkConfig) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if len(m.RsyslogServer) > 0 {
- i -= len(m.RsyslogServer)
- copy(dAtA[i:], m.RsyslogServer)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RsyslogServer)))
- i--
- dAtA[i] = 0x4a
- }
- if m.Ipv4Config != nil {
- size, err := m.Ipv4Config.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x42
- }
- if m.AddressMode != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.AddressMode))
- i--
- dAtA[i] = 0x38
- }
- if m.EthEnabled {
- i--
- if m.EthEnabled {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x30
- }
- if len(m.NtpServer) > 0 {
- i -= len(m.NtpServer)
- copy(dAtA[i:], m.NtpServer)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.NtpServer)))
- i--
- dAtA[i] = 0x2a
- }
- if len(m.WifiPsk) > 0 {
- i -= len(m.WifiPsk)
- copy(dAtA[i:], m.WifiPsk)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.WifiPsk)))
- i--
- dAtA[i] = 0x22
- }
- if len(m.WifiSsid) > 0 {
- i -= len(m.WifiSsid)
- copy(dAtA[i:], m.WifiSsid)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.WifiSsid)))
- i--
- dAtA[i] = 0x1a
- }
- if m.WifiEnabled {
- i--
- if m.WifiEnabled {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *Config_DisplayConfig) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *Config_DisplayConfig) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *Config_DisplayConfig) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.WakeOnTapOrMotion {
- i--
- if m.WakeOnTapOrMotion {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x50
- }
- if m.HeadingBold {
- i--
- if m.HeadingBold {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x48
- }
- if m.Displaymode != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Displaymode))
- i--
- dAtA[i] = 0x40
- }
- if m.Oled != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Oled))
- i--
- dAtA[i] = 0x38
- }
- if m.Units != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Units))
- i--
- dAtA[i] = 0x30
- }
- if m.FlipScreen {
- i--
- if m.FlipScreen {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x28
- }
- if m.CompassNorthTop {
- i--
- if m.CompassNorthTop {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x20
- }
- if m.AutoScreenCarouselSecs != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.AutoScreenCarouselSecs))
- i--
- dAtA[i] = 0x18
- }
- if m.GpsFormat != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.GpsFormat))
- i--
- dAtA[i] = 0x10
- }
- if m.ScreenOnSecs != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.ScreenOnSecs))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *Config_LoRaConfig) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *Config_LoRaConfig) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *Config_LoRaConfig) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.IgnoreMqtt {
- i--
- if m.IgnoreMqtt {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x6
- i--
- dAtA[i] = 0xc0
- }
- if len(m.IgnoreIncoming) > 0 {
- var pksize2 int
- for _, num := range m.IgnoreIncoming {
- pksize2 += protohelpers.SizeOfVarint(uint64(num))
- }
- i -= pksize2
- j1 := i
- for _, num := range m.IgnoreIncoming {
- for num >= 1<<7 {
- dAtA[j1] = uint8(uint64(num)&0x7f | 0x80)
- num >>= 7
- j1++
- }
- dAtA[j1] = uint8(num)
- j1++
- }
- i = protohelpers.EncodeVarint(dAtA, i, uint64(pksize2))
- i--
- dAtA[i] = 0x6
- i--
- dAtA[i] = 0xba
- }
- if m.OverrideFrequency != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.OverrideFrequency))))
- i--
- dAtA[i] = 0x75
- }
- if m.Sx126XRxBoostedGain {
- i--
- if m.Sx126XRxBoostedGain {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x68
- }
- if m.OverrideDutyCycle {
- i--
- if m.OverrideDutyCycle {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x60
- }
- if m.ChannelNum != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.ChannelNum))
- i--
- dAtA[i] = 0x58
- }
- if m.TxPower != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.TxPower))
- i--
- dAtA[i] = 0x50
- }
- if m.TxEnabled {
- i--
- if m.TxEnabled {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x48
- }
- if m.HopLimit != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.HopLimit))
- i--
- dAtA[i] = 0x40
- }
- if m.Region != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Region))
- i--
- dAtA[i] = 0x38
- }
- if m.FrequencyOffset != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.FrequencyOffset))))
- i--
- dAtA[i] = 0x35
- }
- if m.CodingRate != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.CodingRate))
- i--
- dAtA[i] = 0x28
- }
- if m.SpreadFactor != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.SpreadFactor))
- i--
- dAtA[i] = 0x20
- }
- if m.Bandwidth != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Bandwidth))
- i--
- dAtA[i] = 0x18
- }
- if m.ModemPreset != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.ModemPreset))
- i--
- dAtA[i] = 0x10
- }
- if m.UsePreset {
- i--
- if m.UsePreset {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *Config_BluetoothConfig) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *Config_BluetoothConfig) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *Config_BluetoothConfig) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.FixedPin != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.FixedPin))
- i--
- dAtA[i] = 0x18
- }
- if m.Mode != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Mode))
- i--
- dAtA[i] = 0x10
- }
- if m.Enabled {
- i--
- if m.Enabled {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *Config) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *Config) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *Config) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if msg, ok := m.PayloadVariant.(*Config_Bluetooth); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*Config_Lora); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*Config_Display); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*Config_Network); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*Config_Power); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*Config_Position); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*Config_Device); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- return len(dAtA) - i, nil
-}
-
-func (m *Config_Device) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *Config_Device) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.Device != nil {
- size, err := m.Device.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
-}
-func (m *Config_Position) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *Config_Position) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.Position != nil {
- size, err := m.Position.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x12
- }
- return len(dAtA) - i, nil
-}
-func (m *Config_Power) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *Config_Power) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.Power != nil {
- size, err := m.Power.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x1a
- }
- return len(dAtA) - i, nil
-}
-func (m *Config_Network) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *Config_Network) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.Network != nil {
- size, err := m.Network.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x22
- }
- return len(dAtA) - i, nil
-}
-func (m *Config_Display) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *Config_Display) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.Display != nil {
- size, err := m.Display.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x2a
- }
- return len(dAtA) - i, nil
-}
-func (m *Config_Lora) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *Config_Lora) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.Lora != nil {
- size, err := m.Lora.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x32
- }
- return len(dAtA) - i, nil
-}
-func (m *Config_Bluetooth) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *Config_Bluetooth) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.Bluetooth != nil {
- size, err := m.Bluetooth.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x3a
- }
- return len(dAtA) - i, nil
-}
func (m *Config_DeviceConfig) SizeVT() (n int) {
if m == nil {
return 0
@@ -2928,13 +1048,6 @@ func (m *Config_PositionConfig) SizeVT() (n int) {
if m.GpsMode != 0 {
n += 1 + protohelpers.SizeOfVarint(uint64(m.GpsMode))
}
- if len(m.ChannelPrecision) > 0 {
- l = 0
- for _, e := range m.ChannelPrecision {
- l += protohelpers.SizeOfVarint(uint64(e))
- }
- n += 1 + protohelpers.SizeOfVarint(uint64(l)) + l
- }
n += len(m.unknownFields)
return n
}
@@ -3777,82 +1890,6 @@ func (m *Config_PositionConfig) UnmarshalVT(dAtA []byte) error {
break
}
}
- case 14:
- if wireType == 0 {
- var v uint32
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.ChannelPrecision = append(m.ChannelPrecision, v)
- } else if wireType == 2 {
- var packedLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- packedLen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if packedLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + packedLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var elementCount int
- var count int
- for _, integer := range dAtA[iNdEx:postIndex] {
- if integer < 128 {
- count++
- }
- }
- elementCount = count
- if elementCount != 0 && len(m.ChannelPrecision) == 0 {
- m.ChannelPrecision = make([]uint32, 0, elementCount)
- }
- for iNdEx < postIndex {
- var v uint32
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.ChannelPrecision = append(m.ChannelPrecision, v)
- }
- } else {
- return fmt.Errorf("proto: wrong wireType = %d for field ChannelPrecision", wireType)
- }
default:
iNdEx = preIndex
skippy, err := protohelpers.Skip(dAtA[iNdEx:])
@@ -5529,2296 +3566,3 @@ func (m *Config) UnmarshalVT(dAtA []byte) error {
}
return nil
}
-func (m *Config_DeviceConfig) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: Config_DeviceConfig: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Config_DeviceConfig: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType)
- }
- m.Role = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Role |= Config_DeviceConfig_Role(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field SerialEnabled", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.SerialEnabled = bool(v != 0)
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field DebugLogEnabled", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.DebugLogEnabled = bool(v != 0)
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ButtonGpio", wireType)
- }
- m.ButtonGpio = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ButtonGpio |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BuzzerGpio", wireType)
- }
- m.BuzzerGpio = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BuzzerGpio |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 6:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field RebroadcastMode", wireType)
- }
- m.RebroadcastMode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.RebroadcastMode |= Config_DeviceConfig_RebroadcastMode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 7:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field NodeInfoBroadcastSecs", wireType)
- }
- m.NodeInfoBroadcastSecs = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.NodeInfoBroadcastSecs |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 8:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field DoubleTapAsButtonPress", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.DoubleTapAsButtonPress = bool(v != 0)
- case 9:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field IsManaged", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.IsManaged = bool(v != 0)
- case 10:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field DisableTripleClick", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.DisableTripleClick = bool(v != 0)
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *Config_PositionConfig) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: Config_PositionConfig: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Config_PositionConfig: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field PositionBroadcastSecs", wireType)
- }
- m.PositionBroadcastSecs = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.PositionBroadcastSecs |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field PositionBroadcastSmartEnabled", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.PositionBroadcastSmartEnabled = bool(v != 0)
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field FixedPosition", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.FixedPosition = bool(v != 0)
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GpsEnabled", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.GpsEnabled = bool(v != 0)
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GpsUpdateInterval", wireType)
- }
- m.GpsUpdateInterval = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GpsUpdateInterval |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 6:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GpsAttemptTime", wireType)
- }
- m.GpsAttemptTime = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GpsAttemptTime |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 7:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field PositionFlags", wireType)
- }
- m.PositionFlags = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.PositionFlags |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 8:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field RxGpio", wireType)
- }
- m.RxGpio = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.RxGpio |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 9:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field TxGpio", wireType)
- }
- m.TxGpio = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.TxGpio |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 10:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BroadcastSmartMinimumDistance", wireType)
- }
- m.BroadcastSmartMinimumDistance = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BroadcastSmartMinimumDistance |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 11:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BroadcastSmartMinimumIntervalSecs", wireType)
- }
- m.BroadcastSmartMinimumIntervalSecs = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BroadcastSmartMinimumIntervalSecs |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 12:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GpsEnGpio", wireType)
- }
- m.GpsEnGpio = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GpsEnGpio |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 13:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GpsMode", wireType)
- }
- m.GpsMode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GpsMode |= Config_PositionConfig_GpsMode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 14:
- if wireType == 0 {
- var v uint32
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.ChannelPrecision = append(m.ChannelPrecision, v)
- } else if wireType == 2 {
- var packedLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- packedLen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if packedLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + packedLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var elementCount int
- var count int
- for _, integer := range dAtA[iNdEx:postIndex] {
- if integer < 128 {
- count++
- }
- }
- elementCount = count
- if elementCount != 0 && len(m.ChannelPrecision) == 0 {
- m.ChannelPrecision = make([]uint32, 0, elementCount)
- }
- for iNdEx < postIndex {
- var v uint32
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.ChannelPrecision = append(m.ChannelPrecision, v)
- }
- } else {
- return fmt.Errorf("proto: wrong wireType = %d for field ChannelPrecision", wireType)
- }
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *Config_PowerConfig) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: Config_PowerConfig: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Config_PowerConfig: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field IsPowerSaving", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.IsPowerSaving = bool(v != 0)
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field OnBatteryShutdownAfterSecs", wireType)
- }
- m.OnBatteryShutdownAfterSecs = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.OnBatteryShutdownAfterSecs |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field AdcMultiplierOverride", wireType)
- }
- var v uint32
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- m.AdcMultiplierOverride = float32(math.Float32frombits(v))
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field WaitBluetoothSecs", wireType)
- }
- m.WaitBluetoothSecs = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.WaitBluetoothSecs |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 6:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field SdsSecs", wireType)
- }
- m.SdsSecs = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.SdsSecs |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 7:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field LsSecs", wireType)
- }
- m.LsSecs = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.LsSecs |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 8:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field MinWakeSecs", wireType)
- }
- m.MinWakeSecs = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.MinWakeSecs |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 9:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field DeviceBatteryInaAddress", wireType)
- }
- m.DeviceBatteryInaAddress = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.DeviceBatteryInaAddress |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *Config_NetworkConfig_IpV4Config) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: Config_NetworkConfig_IpV4Config: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Config_NetworkConfig_IpV4Config: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType)
- }
- m.Ip = 0
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- m.Ip = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- case 2:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field Gateway", wireType)
- }
- m.Gateway = 0
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- m.Gateway = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- case 3:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field Subnet", wireType)
- }
- m.Subnet = 0
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- m.Subnet = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- case 4:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field Dns", wireType)
- }
- m.Dns = 0
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- m.Dns = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *Config_NetworkConfig) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: Config_NetworkConfig: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Config_NetworkConfig: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field WifiEnabled", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.WifiEnabled = bool(v != 0)
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field WifiSsid", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var stringValue string
- if intStringLen > 0 {
- stringValue = unsafe.String(&dAtA[iNdEx], intStringLen)
- }
- m.WifiSsid = stringValue
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field WifiPsk", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var stringValue string
- if intStringLen > 0 {
- stringValue = unsafe.String(&dAtA[iNdEx], intStringLen)
- }
- m.WifiPsk = stringValue
- iNdEx = postIndex
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field NtpServer", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var stringValue string
- if intStringLen > 0 {
- stringValue = unsafe.String(&dAtA[iNdEx], intStringLen)
- }
- m.NtpServer = stringValue
- iNdEx = postIndex
- case 6:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field EthEnabled", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.EthEnabled = bool(v != 0)
- case 7:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field AddressMode", wireType)
- }
- m.AddressMode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.AddressMode |= Config_NetworkConfig_AddressMode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 8:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Ipv4Config", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Ipv4Config == nil {
- m.Ipv4Config = &Config_NetworkConfig_IpV4Config{}
- }
- if err := m.Ipv4Config.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 9:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field RsyslogServer", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var stringValue string
- if intStringLen > 0 {
- stringValue = unsafe.String(&dAtA[iNdEx], intStringLen)
- }
- m.RsyslogServer = stringValue
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *Config_DisplayConfig) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: Config_DisplayConfig: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Config_DisplayConfig: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ScreenOnSecs", wireType)
- }
- m.ScreenOnSecs = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ScreenOnSecs |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GpsFormat", wireType)
- }
- m.GpsFormat = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GpsFormat |= Config_DisplayConfig_GpsCoordinateFormat(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field AutoScreenCarouselSecs", wireType)
- }
- m.AutoScreenCarouselSecs = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.AutoScreenCarouselSecs |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field CompassNorthTop", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.CompassNorthTop = bool(v != 0)
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field FlipScreen", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.FlipScreen = bool(v != 0)
- case 6:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Units", wireType)
- }
- m.Units = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Units |= Config_DisplayConfig_DisplayUnits(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 7:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Oled", wireType)
- }
- m.Oled = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Oled |= Config_DisplayConfig_OledType(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 8:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Displaymode", wireType)
- }
- m.Displaymode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Displaymode |= Config_DisplayConfig_DisplayMode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 9:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field HeadingBold", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.HeadingBold = bool(v != 0)
- case 10:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field WakeOnTapOrMotion", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.WakeOnTapOrMotion = bool(v != 0)
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *Config_LoRaConfig) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: Config_LoRaConfig: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Config_LoRaConfig: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UsePreset", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.UsePreset = bool(v != 0)
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ModemPreset", wireType)
- }
- m.ModemPreset = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ModemPreset |= Config_LoRaConfig_ModemPreset(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Bandwidth", wireType)
- }
- m.Bandwidth = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Bandwidth |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field SpreadFactor", wireType)
- }
- m.SpreadFactor = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.SpreadFactor |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field CodingRate", wireType)
- }
- m.CodingRate = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.CodingRate |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 6:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field FrequencyOffset", wireType)
- }
- var v uint32
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- m.FrequencyOffset = float32(math.Float32frombits(v))
- case 7:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Region", wireType)
- }
- m.Region = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Region |= Config_LoRaConfig_RegionCode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 8:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field HopLimit", wireType)
- }
- m.HopLimit = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.HopLimit |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 9:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field TxEnabled", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.TxEnabled = bool(v != 0)
- case 10:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field TxPower", wireType)
- }
- m.TxPower = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.TxPower |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 11:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ChannelNum", wireType)
- }
- m.ChannelNum = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ChannelNum |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 12:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field OverrideDutyCycle", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.OverrideDutyCycle = bool(v != 0)
- case 13:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Sx126XRxBoostedGain", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Sx126XRxBoostedGain = bool(v != 0)
- case 14:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field OverrideFrequency", wireType)
- }
- var v uint32
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- m.OverrideFrequency = float32(math.Float32frombits(v))
- case 103:
- if wireType == 0 {
- var v uint32
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.IgnoreIncoming = append(m.IgnoreIncoming, v)
- } else if wireType == 2 {
- var packedLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- packedLen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if packedLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + packedLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var elementCount int
- var count int
- for _, integer := range dAtA[iNdEx:postIndex] {
- if integer < 128 {
- count++
- }
- }
- elementCount = count
- if elementCount != 0 && len(m.IgnoreIncoming) == 0 {
- m.IgnoreIncoming = make([]uint32, 0, elementCount)
- }
- for iNdEx < postIndex {
- var v uint32
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.IgnoreIncoming = append(m.IgnoreIncoming, v)
- }
- } else {
- return fmt.Errorf("proto: wrong wireType = %d for field IgnoreIncoming", wireType)
- }
- case 104:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field IgnoreMqtt", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.IgnoreMqtt = bool(v != 0)
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *Config_BluetoothConfig) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: Config_BluetoothConfig: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Config_BluetoothConfig: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Enabled = bool(v != 0)
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType)
- }
- m.Mode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Mode |= Config_BluetoothConfig_PairingMode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field FixedPin", wireType)
- }
- m.FixedPin = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.FixedPin |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *Config) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: Config: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Config: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Device", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*Config_Device); ok {
- if err := oneof.Device.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &Config_DeviceConfig{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &Config_Device{Device: v}
- }
- iNdEx = postIndex
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*Config_Position); ok {
- if err := oneof.Position.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &Config_PositionConfig{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &Config_Position{Position: v}
- }
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Power", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*Config_Power); ok {
- if err := oneof.Power.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &Config_PowerConfig{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &Config_Power{Power: v}
- }
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Network", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*Config_Network); ok {
- if err := oneof.Network.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &Config_NetworkConfig{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &Config_Network{Network: v}
- }
- iNdEx = postIndex
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Display", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*Config_Display); ok {
- if err := oneof.Display.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &Config_DisplayConfig{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &Config_Display{Display: v}
- }
- iNdEx = postIndex
- case 6:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Lora", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*Config_Lora); ok {
- if err := oneof.Lora.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &Config_LoRaConfig{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &Config_Lora{Lora: v}
- }
- iNdEx = postIndex
- case 7:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Bluetooth", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*Config_Bluetooth); ok {
- if err := oneof.Bluetooth.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &Config_BluetoothConfig{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &Config_Bluetooth{Bluetooth: v}
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
diff --git a/meshtastic/connection_status.pb.go b/meshtastic/connection_status.pb.go
index abe4d5b..a5b49bd 100644
--- a/meshtastic/connection_status.pb.go
+++ b/meshtastic/connection_status.pb.go
@@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.31.0
-// protoc v4.24.3
+// protoc-gen-go v1.32.0
+// protoc v4.25.2
// source: meshtastic/connection_status.proto
package generated
diff --git a/meshtastic/connection_status_vtproto.pb.go b/meshtastic/connection_status_vtproto.pb.go
index a3918ea..26cc3fc 100644
--- a/meshtastic/connection_status_vtproto.pb.go
+++ b/meshtastic/connection_status_vtproto.pb.go
@@ -8,10 +8,8 @@ import (
binary "encoding/binary"
fmt "fmt"
protohelpers "github.com/planetscale/vtprotobuf/protohelpers"
- proto "google.golang.org/protobuf/proto"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
- unsafe "unsafe"
)
const (
@@ -21,266 +19,6 @@ const (
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
-func (m *DeviceConnectionStatus) CloneVT() *DeviceConnectionStatus {
- if m == nil {
- return (*DeviceConnectionStatus)(nil)
- }
- r := new(DeviceConnectionStatus)
- r.Wifi = m.Wifi.CloneVT()
- r.Ethernet = m.Ethernet.CloneVT()
- r.Bluetooth = m.Bluetooth.CloneVT()
- r.Serial = m.Serial.CloneVT()
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *DeviceConnectionStatus) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *WifiConnectionStatus) CloneVT() *WifiConnectionStatus {
- if m == nil {
- return (*WifiConnectionStatus)(nil)
- }
- r := new(WifiConnectionStatus)
- r.Status = m.Status.CloneVT()
- r.Ssid = m.Ssid
- r.Rssi = m.Rssi
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *WifiConnectionStatus) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *EthernetConnectionStatus) CloneVT() *EthernetConnectionStatus {
- if m == nil {
- return (*EthernetConnectionStatus)(nil)
- }
- r := new(EthernetConnectionStatus)
- r.Status = m.Status.CloneVT()
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *EthernetConnectionStatus) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *NetworkConnectionStatus) CloneVT() *NetworkConnectionStatus {
- if m == nil {
- return (*NetworkConnectionStatus)(nil)
- }
- r := new(NetworkConnectionStatus)
- r.IpAddress = m.IpAddress
- r.IsConnected = m.IsConnected
- r.IsMqttConnected = m.IsMqttConnected
- r.IsSyslogConnected = m.IsSyslogConnected
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *NetworkConnectionStatus) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *BluetoothConnectionStatus) CloneVT() *BluetoothConnectionStatus {
- if m == nil {
- return (*BluetoothConnectionStatus)(nil)
- }
- r := new(BluetoothConnectionStatus)
- r.Pin = m.Pin
- r.Rssi = m.Rssi
- r.IsConnected = m.IsConnected
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *BluetoothConnectionStatus) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *SerialConnectionStatus) CloneVT() *SerialConnectionStatus {
- if m == nil {
- return (*SerialConnectionStatus)(nil)
- }
- r := new(SerialConnectionStatus)
- r.Baud = m.Baud
- r.IsConnected = m.IsConnected
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *SerialConnectionStatus) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (this *DeviceConnectionStatus) EqualVT(that *DeviceConnectionStatus) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if !this.Wifi.EqualVT(that.Wifi) {
- return false
- }
- if !this.Ethernet.EqualVT(that.Ethernet) {
- return false
- }
- if !this.Bluetooth.EqualVT(that.Bluetooth) {
- return false
- }
- if !this.Serial.EqualVT(that.Serial) {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *DeviceConnectionStatus) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*DeviceConnectionStatus)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *WifiConnectionStatus) EqualVT(that *WifiConnectionStatus) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if !this.Status.EqualVT(that.Status) {
- return false
- }
- if this.Ssid != that.Ssid {
- return false
- }
- if this.Rssi != that.Rssi {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *WifiConnectionStatus) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*WifiConnectionStatus)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *EthernetConnectionStatus) EqualVT(that *EthernetConnectionStatus) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if !this.Status.EqualVT(that.Status) {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *EthernetConnectionStatus) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*EthernetConnectionStatus)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *NetworkConnectionStatus) EqualVT(that *NetworkConnectionStatus) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.IpAddress != that.IpAddress {
- return false
- }
- if this.IsConnected != that.IsConnected {
- return false
- }
- if this.IsMqttConnected != that.IsMqttConnected {
- return false
- }
- if this.IsSyslogConnected != that.IsSyslogConnected {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *NetworkConnectionStatus) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*NetworkConnectionStatus)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *BluetoothConnectionStatus) EqualVT(that *BluetoothConnectionStatus) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.Pin != that.Pin {
- return false
- }
- if this.Rssi != that.Rssi {
- return false
- }
- if this.IsConnected != that.IsConnected {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *BluetoothConnectionStatus) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*BluetoothConnectionStatus)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *SerialConnectionStatus) EqualVT(that *SerialConnectionStatus) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.Baud != that.Baud {
- return false
- }
- if this.IsConnected != that.IsConnected {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *SerialConnectionStatus) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*SerialConnectionStatus)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
func (m *DeviceConnectionStatus) MarshalVT() (dAtA []byte, err error) {
if m == nil {
return nil, nil
@@ -622,347 +360,6 @@ func (m *SerialConnectionStatus) MarshalToSizedBufferVT(dAtA []byte) (int, error
return len(dAtA) - i, nil
}
-func (m *DeviceConnectionStatus) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *DeviceConnectionStatus) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *DeviceConnectionStatus) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.Serial != nil {
- size, err := m.Serial.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x22
- }
- if m.Bluetooth != nil {
- size, err := m.Bluetooth.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x1a
- }
- if m.Ethernet != nil {
- size, err := m.Ethernet.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x12
- }
- if m.Wifi != nil {
- size, err := m.Wifi.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
-}
-
-func (m *WifiConnectionStatus) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *WifiConnectionStatus) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *WifiConnectionStatus) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.Rssi != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Rssi))
- i--
- dAtA[i] = 0x18
- }
- if len(m.Ssid) > 0 {
- i -= len(m.Ssid)
- copy(dAtA[i:], m.Ssid)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Ssid)))
- i--
- dAtA[i] = 0x12
- }
- if m.Status != nil {
- size, err := m.Status.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
-}
-
-func (m *EthernetConnectionStatus) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *EthernetConnectionStatus) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *EthernetConnectionStatus) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.Status != nil {
- size, err := m.Status.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
-}
-
-func (m *NetworkConnectionStatus) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *NetworkConnectionStatus) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *NetworkConnectionStatus) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.IsSyslogConnected {
- i--
- if m.IsSyslogConnected {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x20
- }
- if m.IsMqttConnected {
- i--
- if m.IsMqttConnected {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x18
- }
- if m.IsConnected {
- i--
- if m.IsConnected {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x10
- }
- if m.IpAddress != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(m.IpAddress))
- i--
- dAtA[i] = 0xd
- }
- return len(dAtA) - i, nil
-}
-
-func (m *BluetoothConnectionStatus) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *BluetoothConnectionStatus) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *BluetoothConnectionStatus) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.IsConnected {
- i--
- if m.IsConnected {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x18
- }
- if m.Rssi != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Rssi))
- i--
- dAtA[i] = 0x10
- }
- if m.Pin != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Pin))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *SerialConnectionStatus) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *SerialConnectionStatus) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *SerialConnectionStatus) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.IsConnected {
- i--
- if m.IsConnected {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x10
- }
- if m.Baud != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Baud))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
func (m *DeviceConnectionStatus) SizeVT() (n int) {
if m == nil {
return 0
@@ -1821,747 +1218,3 @@ func (m *SerialConnectionStatus) UnmarshalVT(dAtA []byte) error {
}
return nil
}
-func (m *DeviceConnectionStatus) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: DeviceConnectionStatus: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: DeviceConnectionStatus: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Wifi", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Wifi == nil {
- m.Wifi = &WifiConnectionStatus{}
- }
- if err := m.Wifi.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Ethernet", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Ethernet == nil {
- m.Ethernet = &EthernetConnectionStatus{}
- }
- if err := m.Ethernet.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Bluetooth", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Bluetooth == nil {
- m.Bluetooth = &BluetoothConnectionStatus{}
- }
- if err := m.Bluetooth.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Serial", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Serial == nil {
- m.Serial = &SerialConnectionStatus{}
- }
- if err := m.Serial.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *WifiConnectionStatus) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: WifiConnectionStatus: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: WifiConnectionStatus: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Status == nil {
- m.Status = &NetworkConnectionStatus{}
- }
- if err := m.Status.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Ssid", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var stringValue string
- if intStringLen > 0 {
- stringValue = unsafe.String(&dAtA[iNdEx], intStringLen)
- }
- m.Ssid = stringValue
- iNdEx = postIndex
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Rssi", wireType)
- }
- m.Rssi = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Rssi |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *EthernetConnectionStatus) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: EthernetConnectionStatus: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: EthernetConnectionStatus: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Status == nil {
- m.Status = &NetworkConnectionStatus{}
- }
- if err := m.Status.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *NetworkConnectionStatus) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: NetworkConnectionStatus: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: NetworkConnectionStatus: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field IpAddress", wireType)
- }
- m.IpAddress = 0
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- m.IpAddress = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field IsConnected", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.IsConnected = bool(v != 0)
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field IsMqttConnected", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.IsMqttConnected = bool(v != 0)
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field IsSyslogConnected", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.IsSyslogConnected = bool(v != 0)
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *BluetoothConnectionStatus) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: BluetoothConnectionStatus: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: BluetoothConnectionStatus: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Pin", wireType)
- }
- m.Pin = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Pin |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Rssi", wireType)
- }
- m.Rssi = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Rssi |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field IsConnected", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.IsConnected = bool(v != 0)
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SerialConnectionStatus) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SerialConnectionStatus: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SerialConnectionStatus: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Baud", wireType)
- }
- m.Baud = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Baud |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field IsConnected", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.IsConnected = bool(v != 0)
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
diff --git a/meshtastic/deviceonly.pb.go b/meshtastic/deviceonly.pb.go
index fe7bdc6..dfe32c8 100644
--- a/meshtastic/deviceonly.pb.go
+++ b/meshtastic/deviceonly.pb.go
@@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.31.0
-// protoc v4.24.3
+// protoc-gen-go v1.32.0
+// protoc v4.25.2
// source: meshtastic/deviceonly.proto
package generated
diff --git a/meshtastic/deviceonly_vtproto.pb.go b/meshtastic/deviceonly_vtproto.pb.go
index b54d608..95918ce 100644
--- a/meshtastic/deviceonly_vtproto.pb.go
+++ b/meshtastic/deviceonly_vtproto.pb.go
@@ -8,11 +8,9 @@ import (
binary "encoding/binary"
fmt "fmt"
protohelpers "github.com/planetscale/vtprotobuf/protohelpers"
- proto "google.golang.org/protobuf/proto"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
math "math"
- unsafe "unsafe"
)
const (
@@ -22,422 +20,6 @@ const (
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
-func (m *DeviceState) CloneVT() *DeviceState {
- if m == nil {
- return (*DeviceState)(nil)
- }
- r := new(DeviceState)
- r.MyNode = m.MyNode.CloneVT()
- r.Owner = m.Owner.CloneVT()
- r.Version = m.Version
- r.RxTextMessage = m.RxTextMessage.CloneVT()
- r.NoSave = m.NoSave
- r.DidGpsReset = m.DidGpsReset
- r.RxWaypoint = m.RxWaypoint.CloneVT()
- if rhs := m.ReceiveQueue; rhs != nil {
- tmpContainer := make([]*MeshPacket, len(rhs))
- for k, v := range rhs {
- tmpContainer[k] = v.CloneVT()
- }
- r.ReceiveQueue = tmpContainer
- }
- if rhs := m.NodeRemoteHardwarePins; rhs != nil {
- tmpContainer := make([]*NodeRemoteHardwarePin, len(rhs))
- for k, v := range rhs {
- tmpContainer[k] = v.CloneVT()
- }
- r.NodeRemoteHardwarePins = tmpContainer
- }
- if rhs := m.NodeDbLite; rhs != nil {
- tmpContainer := make([]*NodeInfoLite, len(rhs))
- for k, v := range rhs {
- tmpContainer[k] = v.CloneVT()
- }
- r.NodeDbLite = tmpContainer
- }
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *DeviceState) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *NodeInfoLite) CloneVT() *NodeInfoLite {
- if m == nil {
- return (*NodeInfoLite)(nil)
- }
- r := new(NodeInfoLite)
- r.Num = m.Num
- r.User = m.User.CloneVT()
- r.Position = m.Position.CloneVT()
- r.Snr = m.Snr
- r.LastHeard = m.LastHeard
- r.DeviceMetrics = m.DeviceMetrics.CloneVT()
- r.Channel = m.Channel
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *NodeInfoLite) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *PositionLite) CloneVT() *PositionLite {
- if m == nil {
- return (*PositionLite)(nil)
- }
- r := new(PositionLite)
- r.LatitudeI = m.LatitudeI
- r.LongitudeI = m.LongitudeI
- r.Altitude = m.Altitude
- r.Time = m.Time
- r.LocationSource = m.LocationSource
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *PositionLite) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *ChannelFile) CloneVT() *ChannelFile {
- if m == nil {
- return (*ChannelFile)(nil)
- }
- r := new(ChannelFile)
- r.Version = m.Version
- if rhs := m.Channels; rhs != nil {
- tmpContainer := make([]*Channel, len(rhs))
- for k, v := range rhs {
- tmpContainer[k] = v.CloneVT()
- }
- r.Channels = tmpContainer
- }
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *ChannelFile) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *OEMStore) CloneVT() *OEMStore {
- if m == nil {
- return (*OEMStore)(nil)
- }
- r := new(OEMStore)
- r.OemIconWidth = m.OemIconWidth
- r.OemIconHeight = m.OemIconHeight
- r.OemFont = m.OemFont
- r.OemText = m.OemText
- r.OemLocalConfig = m.OemLocalConfig.CloneVT()
- r.OemLocalModuleConfig = m.OemLocalModuleConfig.CloneVT()
- if rhs := m.OemIconBits; rhs != nil {
- tmpBytes := make([]byte, len(rhs))
- copy(tmpBytes, rhs)
- r.OemIconBits = tmpBytes
- }
- if rhs := m.OemAesKey; rhs != nil {
- tmpBytes := make([]byte, len(rhs))
- copy(tmpBytes, rhs)
- r.OemAesKey = tmpBytes
- }
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *OEMStore) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *NodeRemoteHardwarePin) CloneVT() *NodeRemoteHardwarePin {
- if m == nil {
- return (*NodeRemoteHardwarePin)(nil)
- }
- r := new(NodeRemoteHardwarePin)
- r.NodeNum = m.NodeNum
- r.Pin = m.Pin.CloneVT()
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *NodeRemoteHardwarePin) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (this *DeviceState) EqualVT(that *DeviceState) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if !this.MyNode.EqualVT(that.MyNode) {
- return false
- }
- if !this.Owner.EqualVT(that.Owner) {
- return false
- }
- if len(this.ReceiveQueue) != len(that.ReceiveQueue) {
- return false
- }
- for i, vx := range this.ReceiveQueue {
- vy := that.ReceiveQueue[i]
- if p, q := vx, vy; p != q {
- if p == nil {
- p = &MeshPacket{}
- }
- if q == nil {
- q = &MeshPacket{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- }
- if !this.RxTextMessage.EqualVT(that.RxTextMessage) {
- return false
- }
- if this.Version != that.Version {
- return false
- }
- if this.NoSave != that.NoSave {
- return false
- }
- if this.DidGpsReset != that.DidGpsReset {
- return false
- }
- if !this.RxWaypoint.EqualVT(that.RxWaypoint) {
- return false
- }
- if len(this.NodeRemoteHardwarePins) != len(that.NodeRemoteHardwarePins) {
- return false
- }
- for i, vx := range this.NodeRemoteHardwarePins {
- vy := that.NodeRemoteHardwarePins[i]
- if p, q := vx, vy; p != q {
- if p == nil {
- p = &NodeRemoteHardwarePin{}
- }
- if q == nil {
- q = &NodeRemoteHardwarePin{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- }
- if len(this.NodeDbLite) != len(that.NodeDbLite) {
- return false
- }
- for i, vx := range this.NodeDbLite {
- vy := that.NodeDbLite[i]
- if p, q := vx, vy; p != q {
- if p == nil {
- p = &NodeInfoLite{}
- }
- if q == nil {
- q = &NodeInfoLite{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *DeviceState) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*DeviceState)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *NodeInfoLite) EqualVT(that *NodeInfoLite) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.Num != that.Num {
- return false
- }
- if !this.User.EqualVT(that.User) {
- return false
- }
- if !this.Position.EqualVT(that.Position) {
- return false
- }
- if this.Snr != that.Snr {
- return false
- }
- if this.LastHeard != that.LastHeard {
- return false
- }
- if !this.DeviceMetrics.EqualVT(that.DeviceMetrics) {
- return false
- }
- if this.Channel != that.Channel {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *NodeInfoLite) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*NodeInfoLite)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *PositionLite) EqualVT(that *PositionLite) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.LatitudeI != that.LatitudeI {
- return false
- }
- if this.LongitudeI != that.LongitudeI {
- return false
- }
- if this.Altitude != that.Altitude {
- return false
- }
- if this.Time != that.Time {
- return false
- }
- if this.LocationSource != that.LocationSource {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *PositionLite) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*PositionLite)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *ChannelFile) EqualVT(that *ChannelFile) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if len(this.Channels) != len(that.Channels) {
- return false
- }
- for i, vx := range this.Channels {
- vy := that.Channels[i]
- if p, q := vx, vy; p != q {
- if p == nil {
- p = &Channel{}
- }
- if q == nil {
- q = &Channel{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- }
- if this.Version != that.Version {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *ChannelFile) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*ChannelFile)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *OEMStore) EqualVT(that *OEMStore) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.OemIconWidth != that.OemIconWidth {
- return false
- }
- if this.OemIconHeight != that.OemIconHeight {
- return false
- }
- if string(this.OemIconBits) != string(that.OemIconBits) {
- return false
- }
- if this.OemFont != that.OemFont {
- return false
- }
- if this.OemText != that.OemText {
- return false
- }
- if string(this.OemAesKey) != string(that.OemAesKey) {
- return false
- }
- if !this.OemLocalConfig.EqualVT(that.OemLocalConfig) {
- return false
- }
- if !this.OemLocalModuleConfig.EqualVT(that.OemLocalModuleConfig) {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *OEMStore) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*OEMStore)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *NodeRemoteHardwarePin) EqualVT(that *NodeRemoteHardwarePin) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.NodeNum != that.NodeNum {
- return false
- }
- if !this.Pin.EqualVT(that.Pin) {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *NodeRemoteHardwarePin) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*NodeRemoteHardwarePin)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
func (m *DeviceState) MarshalVT() (dAtA []byte, err error) {
if m == nil {
return nil, nil
@@ -905,473 +487,6 @@ func (m *NodeRemoteHardwarePin) MarshalToSizedBufferVT(dAtA []byte) (int, error)
return len(dAtA) - i, nil
}
-func (m *DeviceState) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *DeviceState) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *DeviceState) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if len(m.NodeDbLite) > 0 {
- for iNdEx := len(m.NodeDbLite) - 1; iNdEx >= 0; iNdEx-- {
- size, err := m.NodeDbLite[iNdEx].MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x72
- }
- }
- if len(m.NodeRemoteHardwarePins) > 0 {
- for iNdEx := len(m.NodeRemoteHardwarePins) - 1; iNdEx >= 0; iNdEx-- {
- size, err := m.NodeRemoteHardwarePins[iNdEx].MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x6a
- }
- }
- if m.RxWaypoint != nil {
- size, err := m.RxWaypoint.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x62
- }
- if m.DidGpsReset {
- i--
- if m.DidGpsReset {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x58
- }
- if m.NoSave {
- i--
- if m.NoSave {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x48
- }
- if m.Version != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Version))
- i--
- dAtA[i] = 0x40
- }
- if m.RxTextMessage != nil {
- size, err := m.RxTextMessage.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x3a
- }
- if len(m.ReceiveQueue) > 0 {
- for iNdEx := len(m.ReceiveQueue) - 1; iNdEx >= 0; iNdEx-- {
- size, err := m.ReceiveQueue[iNdEx].MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x2a
- }
- }
- if m.Owner != nil {
- size, err := m.Owner.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x1a
- }
- if m.MyNode != nil {
- size, err := m.MyNode.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x12
- }
- return len(dAtA) - i, nil
-}
-
-func (m *NodeInfoLite) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *NodeInfoLite) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *NodeInfoLite) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.Channel != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Channel))
- i--
- dAtA[i] = 0x38
- }
- if m.DeviceMetrics != nil {
- size, err := m.DeviceMetrics.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x32
- }
- if m.LastHeard != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(m.LastHeard))
- i--
- dAtA[i] = 0x2d
- }
- if m.Snr != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Snr))))
- i--
- dAtA[i] = 0x25
- }
- if m.Position != nil {
- size, err := m.Position.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x1a
- }
- if m.User != nil {
- size, err := m.User.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x12
- }
- if m.Num != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Num))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *PositionLite) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *PositionLite) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *PositionLite) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.LocationSource != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.LocationSource))
- i--
- dAtA[i] = 0x28
- }
- if m.Time != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(m.Time))
- i--
- dAtA[i] = 0x25
- }
- if m.Altitude != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Altitude))
- i--
- dAtA[i] = 0x18
- }
- if m.LongitudeI != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(m.LongitudeI))
- i--
- dAtA[i] = 0x15
- }
- if m.LatitudeI != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(m.LatitudeI))
- i--
- dAtA[i] = 0xd
- }
- return len(dAtA) - i, nil
-}
-
-func (m *ChannelFile) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *ChannelFile) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *ChannelFile) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.Version != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Version))
- i--
- dAtA[i] = 0x10
- }
- if len(m.Channels) > 0 {
- for iNdEx := len(m.Channels) - 1; iNdEx >= 0; iNdEx-- {
- size, err := m.Channels[iNdEx].MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0xa
- }
- }
- return len(dAtA) - i, nil
-}
-
-func (m *OEMStore) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *OEMStore) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *OEMStore) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.OemLocalModuleConfig != nil {
- size, err := m.OemLocalModuleConfig.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x42
- }
- if m.OemLocalConfig != nil {
- size, err := m.OemLocalConfig.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x3a
- }
- if len(m.OemAesKey) > 0 {
- i -= len(m.OemAesKey)
- copy(dAtA[i:], m.OemAesKey)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OemAesKey)))
- i--
- dAtA[i] = 0x32
- }
- if len(m.OemText) > 0 {
- i -= len(m.OemText)
- copy(dAtA[i:], m.OemText)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OemText)))
- i--
- dAtA[i] = 0x2a
- }
- if m.OemFont != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.OemFont))
- i--
- dAtA[i] = 0x20
- }
- if len(m.OemIconBits) > 0 {
- i -= len(m.OemIconBits)
- copy(dAtA[i:], m.OemIconBits)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OemIconBits)))
- i--
- dAtA[i] = 0x1a
- }
- if m.OemIconHeight != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.OemIconHeight))
- i--
- dAtA[i] = 0x10
- }
- if m.OemIconWidth != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.OemIconWidth))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *NodeRemoteHardwarePin) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *NodeRemoteHardwarePin) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *NodeRemoteHardwarePin) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.Pin != nil {
- size, err := m.Pin.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x12
- }
- if m.NodeNum != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.NodeNum))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
func (m *DeviceState) SizeVT() (n int) {
if m == nil {
return 0
@@ -2742,1184 +1857,3 @@ func (m *NodeRemoteHardwarePin) UnmarshalVT(dAtA []byte) error {
}
return nil
}
-func (m *DeviceState) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: DeviceState: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: DeviceState: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field MyNode", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.MyNode == nil {
- m.MyNode = &MyNodeInfo{}
- }
- if err := m.MyNode.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Owner == nil {
- m.Owner = &User{}
- }
- if err := m.Owner.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ReceiveQueue", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ReceiveQueue = append(m.ReceiveQueue, &MeshPacket{})
- if err := m.ReceiveQueue[len(m.ReceiveQueue)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 7:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field RxTextMessage", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.RxTextMessage == nil {
- m.RxTextMessage = &MeshPacket{}
- }
- if err := m.RxTextMessage.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 8:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
- }
- m.Version = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Version |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 9:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field NoSave", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.NoSave = bool(v != 0)
- case 11:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field DidGpsReset", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.DidGpsReset = bool(v != 0)
- case 12:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field RxWaypoint", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.RxWaypoint == nil {
- m.RxWaypoint = &MeshPacket{}
- }
- if err := m.RxWaypoint.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 13:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field NodeRemoteHardwarePins", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.NodeRemoteHardwarePins = append(m.NodeRemoteHardwarePins, &NodeRemoteHardwarePin{})
- if err := m.NodeRemoteHardwarePins[len(m.NodeRemoteHardwarePins)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 14:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field NodeDbLite", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.NodeDbLite = append(m.NodeDbLite, &NodeInfoLite{})
- if err := m.NodeDbLite[len(m.NodeDbLite)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *NodeInfoLite) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: NodeInfoLite: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: NodeInfoLite: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Num", wireType)
- }
- m.Num = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Num |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field User", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.User == nil {
- m.User = &User{}
- }
- if err := m.User.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Position == nil {
- m.Position = &PositionLite{}
- }
- if err := m.Position.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 4:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field Snr", wireType)
- }
- var v uint32
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- m.Snr = float32(math.Float32frombits(v))
- case 5:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field LastHeard", wireType)
- }
- m.LastHeard = 0
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- m.LastHeard = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- case 6:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field DeviceMetrics", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.DeviceMetrics == nil {
- m.DeviceMetrics = &DeviceMetrics{}
- }
- if err := m.DeviceMetrics.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 7:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Channel", wireType)
- }
- m.Channel = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Channel |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *PositionLite) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: PositionLite: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: PositionLite: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field LatitudeI", wireType)
- }
- m.LatitudeI = 0
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- m.LatitudeI = int32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- case 2:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field LongitudeI", wireType)
- }
- m.LongitudeI = 0
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- m.LongitudeI = int32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Altitude", wireType)
- }
- m.Altitude = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Altitude |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 4:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
- }
- m.Time = 0
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- m.Time = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field LocationSource", wireType)
- }
- m.LocationSource = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.LocationSource |= Position_LocSource(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *ChannelFile) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: ChannelFile: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: ChannelFile: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Channels", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Channels = append(m.Channels, &Channel{})
- if err := m.Channels[len(m.Channels)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
- }
- m.Version = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Version |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *OEMStore) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: OEMStore: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: OEMStore: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field OemIconWidth", wireType)
- }
- m.OemIconWidth = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.OemIconWidth |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field OemIconHeight", wireType)
- }
- m.OemIconHeight = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.OemIconHeight |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field OemIconBits", wireType)
- }
- var byteLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- byteLen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if byteLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + byteLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.OemIconBits = dAtA[iNdEx:postIndex]
- iNdEx = postIndex
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field OemFont", wireType)
- }
- m.OemFont = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.OemFont |= ScreenFonts(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field OemText", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var stringValue string
- if intStringLen > 0 {
- stringValue = unsafe.String(&dAtA[iNdEx], intStringLen)
- }
- m.OemText = stringValue
- iNdEx = postIndex
- case 6:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field OemAesKey", wireType)
- }
- var byteLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- byteLen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if byteLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + byteLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.OemAesKey = dAtA[iNdEx:postIndex]
- iNdEx = postIndex
- case 7:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field OemLocalConfig", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.OemLocalConfig == nil {
- m.OemLocalConfig = &LocalConfig{}
- }
- if err := m.OemLocalConfig.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 8:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field OemLocalModuleConfig", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.OemLocalModuleConfig == nil {
- m.OemLocalModuleConfig = &LocalModuleConfig{}
- }
- if err := m.OemLocalModuleConfig.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *NodeRemoteHardwarePin) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: NodeRemoteHardwarePin: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: NodeRemoteHardwarePin: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field NodeNum", wireType)
- }
- m.NodeNum = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.NodeNum |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Pin", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Pin == nil {
- m.Pin = &RemoteHardwarePin{}
- }
- if err := m.Pin.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
diff --git a/meshtastic/localonly.pb.go b/meshtastic/localonly.pb.go
index 9cf211c..2918abd 100644
--- a/meshtastic/localonly.pb.go
+++ b/meshtastic/localonly.pb.go
@@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.31.0
-// protoc v4.24.3
+// protoc-gen-go v1.32.0
+// protoc v4.25.2
// source: meshtastic/localonly.proto
package generated
diff --git a/meshtastic/localonly_vtproto.pb.go b/meshtastic/localonly_vtproto.pb.go
index a682c0b..1d7d8c0 100644
--- a/meshtastic/localonly_vtproto.pb.go
+++ b/meshtastic/localonly_vtproto.pb.go
@@ -7,7 +7,6 @@ package generated
import (
fmt "fmt"
protohelpers "github.com/planetscale/vtprotobuf/protohelpers"
- proto "google.golang.org/protobuf/proto"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
)
@@ -19,158 +18,6 @@ const (
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
-func (m *LocalConfig) CloneVT() *LocalConfig {
- if m == nil {
- return (*LocalConfig)(nil)
- }
- r := new(LocalConfig)
- r.Device = m.Device.CloneVT()
- r.Position = m.Position.CloneVT()
- r.Power = m.Power.CloneVT()
- r.Network = m.Network.CloneVT()
- r.Display = m.Display.CloneVT()
- r.Lora = m.Lora.CloneVT()
- r.Bluetooth = m.Bluetooth.CloneVT()
- r.Version = m.Version
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *LocalConfig) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *LocalModuleConfig) CloneVT() *LocalModuleConfig {
- if m == nil {
- return (*LocalModuleConfig)(nil)
- }
- r := new(LocalModuleConfig)
- r.Mqtt = m.Mqtt.CloneVT()
- r.Serial = m.Serial.CloneVT()
- r.ExternalNotification = m.ExternalNotification.CloneVT()
- r.StoreForward = m.StoreForward.CloneVT()
- r.RangeTest = m.RangeTest.CloneVT()
- r.Telemetry = m.Telemetry.CloneVT()
- r.CannedMessage = m.CannedMessage.CloneVT()
- r.Audio = m.Audio.CloneVT()
- r.RemoteHardware = m.RemoteHardware.CloneVT()
- r.NeighborInfo = m.NeighborInfo.CloneVT()
- r.AmbientLighting = m.AmbientLighting.CloneVT()
- r.DetectionSensor = m.DetectionSensor.CloneVT()
- r.Paxcounter = m.Paxcounter.CloneVT()
- r.Version = m.Version
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *LocalModuleConfig) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (this *LocalConfig) EqualVT(that *LocalConfig) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if !this.Device.EqualVT(that.Device) {
- return false
- }
- if !this.Position.EqualVT(that.Position) {
- return false
- }
- if !this.Power.EqualVT(that.Power) {
- return false
- }
- if !this.Network.EqualVT(that.Network) {
- return false
- }
- if !this.Display.EqualVT(that.Display) {
- return false
- }
- if !this.Lora.EqualVT(that.Lora) {
- return false
- }
- if !this.Bluetooth.EqualVT(that.Bluetooth) {
- return false
- }
- if this.Version != that.Version {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *LocalConfig) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*LocalConfig)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *LocalModuleConfig) EqualVT(that *LocalModuleConfig) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if !this.Mqtt.EqualVT(that.Mqtt) {
- return false
- }
- if !this.Serial.EqualVT(that.Serial) {
- return false
- }
- if !this.ExternalNotification.EqualVT(that.ExternalNotification) {
- return false
- }
- if !this.StoreForward.EqualVT(that.StoreForward) {
- return false
- }
- if !this.RangeTest.EqualVT(that.RangeTest) {
- return false
- }
- if !this.Telemetry.EqualVT(that.Telemetry) {
- return false
- }
- if !this.CannedMessage.EqualVT(that.CannedMessage) {
- return false
- }
- if this.Version != that.Version {
- return false
- }
- if !this.Audio.EqualVT(that.Audio) {
- return false
- }
- if !this.RemoteHardware.EqualVT(that.RemoteHardware) {
- return false
- }
- if !this.NeighborInfo.EqualVT(that.NeighborInfo) {
- return false
- }
- if !this.AmbientLighting.EqualVT(that.AmbientLighting) {
- return false
- }
- if !this.DetectionSensor.EqualVT(that.DetectionSensor) {
- return false
- }
- if !this.Paxcounter.EqualVT(that.Paxcounter) {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *LocalModuleConfig) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*LocalModuleConfig)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
func (m *LocalConfig) MarshalVT() (dAtA []byte, err error) {
if m == nil {
return nil, nil
@@ -447,282 +294,6 @@ func (m *LocalModuleConfig) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
return len(dAtA) - i, nil
}
-func (m *LocalConfig) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *LocalConfig) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *LocalConfig) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.Version != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Version))
- i--
- dAtA[i] = 0x40
- }
- if m.Bluetooth != nil {
- size, err := m.Bluetooth.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x3a
- }
- if m.Lora != nil {
- size, err := m.Lora.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x32
- }
- if m.Display != nil {
- size, err := m.Display.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x2a
- }
- if m.Network != nil {
- size, err := m.Network.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x22
- }
- if m.Power != nil {
- size, err := m.Power.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x1a
- }
- if m.Position != nil {
- size, err := m.Position.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x12
- }
- if m.Device != nil {
- size, err := m.Device.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
-}
-
-func (m *LocalModuleConfig) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *LocalModuleConfig) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *LocalModuleConfig) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.Paxcounter != nil {
- size, err := m.Paxcounter.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x72
- }
- if m.DetectionSensor != nil {
- size, err := m.DetectionSensor.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x6a
- }
- if m.AmbientLighting != nil {
- size, err := m.AmbientLighting.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x62
- }
- if m.NeighborInfo != nil {
- size, err := m.NeighborInfo.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x5a
- }
- if m.RemoteHardware != nil {
- size, err := m.RemoteHardware.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x52
- }
- if m.Audio != nil {
- size, err := m.Audio.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x4a
- }
- if m.Version != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Version))
- i--
- dAtA[i] = 0x40
- }
- if m.CannedMessage != nil {
- size, err := m.CannedMessage.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x3a
- }
- if m.Telemetry != nil {
- size, err := m.Telemetry.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x32
- }
- if m.RangeTest != nil {
- size, err := m.RangeTest.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x2a
- }
- if m.StoreForward != nil {
- size, err := m.StoreForward.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x22
- }
- if m.ExternalNotification != nil {
- size, err := m.ExternalNotification.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x1a
- }
- if m.Serial != nil {
- size, err := m.Serial.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x12
- }
- if m.Mqtt != nil {
- size, err := m.Mqtt.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
-}
-
func (m *LocalConfig) SizeVT() (n int) {
if m == nil {
return 0
@@ -1689,863 +1260,3 @@ func (m *LocalModuleConfig) UnmarshalVT(dAtA []byte) error {
}
return nil
}
-func (m *LocalConfig) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: LocalConfig: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: LocalConfig: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Device", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Device == nil {
- m.Device = &Config_DeviceConfig{}
- }
- if err := m.Device.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Position == nil {
- m.Position = &Config_PositionConfig{}
- }
- if err := m.Position.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Power", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Power == nil {
- m.Power = &Config_PowerConfig{}
- }
- if err := m.Power.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Network", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Network == nil {
- m.Network = &Config_NetworkConfig{}
- }
- if err := m.Network.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Display", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Display == nil {
- m.Display = &Config_DisplayConfig{}
- }
- if err := m.Display.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 6:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Lora", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Lora == nil {
- m.Lora = &Config_LoRaConfig{}
- }
- if err := m.Lora.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 7:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Bluetooth", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Bluetooth == nil {
- m.Bluetooth = &Config_BluetoothConfig{}
- }
- if err := m.Bluetooth.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 8:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
- }
- m.Version = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Version |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *LocalModuleConfig) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: LocalModuleConfig: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: LocalModuleConfig: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Mqtt", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Mqtt == nil {
- m.Mqtt = &ModuleConfig_MQTTConfig{}
- }
- if err := m.Mqtt.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Serial", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Serial == nil {
- m.Serial = &ModuleConfig_SerialConfig{}
- }
- if err := m.Serial.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ExternalNotification", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.ExternalNotification == nil {
- m.ExternalNotification = &ModuleConfig_ExternalNotificationConfig{}
- }
- if err := m.ExternalNotification.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field StoreForward", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.StoreForward == nil {
- m.StoreForward = &ModuleConfig_StoreForwardConfig{}
- }
- if err := m.StoreForward.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field RangeTest", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.RangeTest == nil {
- m.RangeTest = &ModuleConfig_RangeTestConfig{}
- }
- if err := m.RangeTest.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 6:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Telemetry", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Telemetry == nil {
- m.Telemetry = &ModuleConfig_TelemetryConfig{}
- }
- if err := m.Telemetry.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 7:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field CannedMessage", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.CannedMessage == nil {
- m.CannedMessage = &ModuleConfig_CannedMessageConfig{}
- }
- if err := m.CannedMessage.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 8:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
- }
- m.Version = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Version |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 9:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Audio", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Audio == nil {
- m.Audio = &ModuleConfig_AudioConfig{}
- }
- if err := m.Audio.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 10:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field RemoteHardware", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.RemoteHardware == nil {
- m.RemoteHardware = &ModuleConfig_RemoteHardwareConfig{}
- }
- if err := m.RemoteHardware.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 11:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field NeighborInfo", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.NeighborInfo == nil {
- m.NeighborInfo = &ModuleConfig_NeighborInfoConfig{}
- }
- if err := m.NeighborInfo.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 12:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field AmbientLighting", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.AmbientLighting == nil {
- m.AmbientLighting = &ModuleConfig_AmbientLightingConfig{}
- }
- if err := m.AmbientLighting.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 13:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field DetectionSensor", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.DetectionSensor == nil {
- m.DetectionSensor = &ModuleConfig_DetectionSensorConfig{}
- }
- if err := m.DetectionSensor.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 14:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Paxcounter", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Paxcounter == nil {
- m.Paxcounter = &ModuleConfig_PaxcounterConfig{}
- }
- if err := m.Paxcounter.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
diff --git a/meshtastic/mesh.pb.go b/meshtastic/mesh.pb.go
index d0284bb..b283416 100644
--- a/meshtastic/mesh.pb.go
+++ b/meshtastic/mesh.pb.go
@@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.31.0
-// protoc v4.24.3
+// protoc-gen-go v1.32.0
+// protoc v4.25.2
// source: meshtastic/mesh.proto
package generated
@@ -81,6 +81,8 @@ const (
HardwareModel_CANARYONE HardwareModel = 29
// Waveshare RP2040 LoRa - https://www.waveshare.com/rp2040-lora.htm
HardwareModel_RP2040_LORA HardwareModel = 30
+ // B&Q Consulting Station G2: https://wiki.uniteng.com/en/meshtastic/station-g2
+ HardwareModel_STATION_G2 HardwareModel = 31
// ---------------------------------------------------------------------------
// Less common/prototype boards listed here (needs one more byte over the air)
// ---------------------------------------------------------------------------
@@ -180,6 +182,7 @@ var (
28: "SENSELORA_S3",
29: "CANARYONE",
30: "RP2040_LORA",
+ 31: "STATION_G2",
32: "LORA_RELAY_V1",
33: "NRF52840DK",
34: "PPR",
@@ -236,6 +239,7 @@ var (
"SENSELORA_S3": 28,
"CANARYONE": 29,
"RP2040_LORA": 30,
+ "STATION_G2": 31,
"LORA_RELAY_V1": 32,
"NRF52840DK": 33,
"PPR": 34,
@@ -936,6 +940,8 @@ type Position struct {
//
// detect lost updates if needed
SeqNumber uint32 `protobuf:"varint,22,opt,name=seq_number,json=seqNumber,proto3" json:"seq_number,omitempty"`
+ // Indicates the bits of precision set by the sending node
+ PrecisionBits uint32 `protobuf:"varint,23,opt,name=precision_bits,json=precisionBits,proto3" json:"precision_bits,omitempty"`
}
func (x *Position) Reset() {
@@ -1124,6 +1130,13 @@ func (x *Position) GetSeqNumber() uint32 {
return 0
}
+func (x *Position) GetPrecisionBits() uint32 {
+ if x != nil {
+ return x.PrecisionBits
+ }
+ return 0
+}
+
// Broadcast when a newly powered mesh node wants to find a node num it can use
// Sent from the phone over bluetooth to set the user id for the owner of this node.
// Also sent from nodes to each other when a new node signs on (so all clients can have this info)
@@ -1761,10 +1774,8 @@ type MeshPacket struct {
// The sending node number.
// Note: Our crypto implementation uses this field as well.
// See [crypto](/docs/overview/encryption) for details.
- // FIXME - really should be fixed32 instead, this encoding only hurts the ble link though.
From uint32 `protobuf:"fixed32,1,opt,name=from,proto3" json:"from,omitempty"`
- // The (immediatSee Priority description for more details.y should be fixed32 instead, this encoding only
- // hurts the ble link though.
+ // The (immediate) destination for this packet
To uint32 `protobuf:"fixed32,2,opt,name=to,proto3" json:"to,omitempty"`
// (Usually) If set, this indicates the index in the secondary_channels table that this packet was sent/received on.
// If unset, packet was on the primary channel.
@@ -1787,8 +1798,6 @@ type MeshPacket struct {
// any ACK or the completion of a mesh broadcast flood).
// Note: Our crypto implementation uses this id as well.
// See [crypto](/docs/overview/encryption) for details.
- // FIXME - really should be fixed32 instead, this encoding only
- // hurts the ble link though.
Id uint32 `protobuf:"fixed32,6,opt,name=id,proto3" json:"id,omitempty"`
// The time this message was received by the esp32 (secs since 1970).
// Note: this field is _never_ sent on the radio link itself (to save space) Times
@@ -3099,7 +3108,7 @@ var file_meshtastic_mesh_proto_rawDesc = []byte{
0x6f, 0x1a, 0x1a, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2f, 0x74, 0x65,
0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x6d,
0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2f, 0x78, 0x6d, 0x6f, 0x64, 0x65, 0x6d,
- 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd9, 0x07, 0x0a, 0x08, 0x50, 0x6f, 0x73, 0x69, 0x74,
+ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x80, 0x08, 0x0a, 0x08, 0x50, 0x6f, 0x73, 0x69, 0x74,
0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x6c, 0x61, 0x74, 0x69, 0x74, 0x75, 0x64, 0x65, 0x5f,
0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0f, 0x52, 0x09, 0x6c, 0x61, 0x74, 0x69, 0x74, 0x75, 0x64,
0x65, 0x49, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x74, 0x75, 0x64, 0x65, 0x5f,
@@ -3149,392 +3158,396 @@ var file_meshtastic_mesh_proto_rawDesc = []byte{
0x0a, 0x0b, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x15, 0x20,
0x01, 0x28, 0x0d, 0x52, 0x0a, 0x6e, 0x65, 0x78, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12,
0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x71, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x16, 0x20,
- 0x01, 0x28, 0x0d, 0x52, 0x09, 0x73, 0x65, 0x71, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x4e,
- 0x0a, 0x09, 0x4c, 0x6f, 0x63, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x0d, 0x0a, 0x09, 0x4c,
- 0x4f, 0x43, 0x5f, 0x55, 0x4e, 0x53, 0x45, 0x54, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x4c, 0x4f,
- 0x43, 0x5f, 0x4d, 0x41, 0x4e, 0x55, 0x41, 0x4c, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x4c, 0x4f,
- 0x43, 0x5f, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c,
- 0x4c, 0x4f, 0x43, 0x5f, 0x45, 0x58, 0x54, 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x10, 0x03, 0x22, 0x62,
- 0x0a, 0x09, 0x41, 0x6c, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x0d, 0x0a, 0x09, 0x41,
- 0x4c, 0x54, 0x5f, 0x55, 0x4e, 0x53, 0x45, 0x54, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x41, 0x4c,
- 0x54, 0x5f, 0x4d, 0x41, 0x4e, 0x55, 0x41, 0x4c, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x41, 0x4c,
- 0x54, 0x5f, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c,
- 0x41, 0x4c, 0x54, 0x5f, 0x45, 0x58, 0x54, 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x10, 0x03, 0x12, 0x12,
- 0x0a, 0x0e, 0x41, 0x4c, 0x54, 0x5f, 0x42, 0x41, 0x52, 0x4f, 0x4d, 0x45, 0x54, 0x52, 0x49, 0x43,
- 0x10, 0x04, 0x22, 0x81, 0x02, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69,
- 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6c,
- 0x6f, 0x6e, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
- 0x6c, 0x6f, 0x6e, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x68, 0x6f, 0x72,
- 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x68,
- 0x6f, 0x72, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x07, 0x6d, 0x61, 0x63, 0x61, 0x64,
- 0x64, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x02, 0x18, 0x01, 0x52, 0x07, 0x6d, 0x61,
- 0x63, 0x61, 0x64, 0x64, 0x72, 0x12, 0x34, 0x0a, 0x08, 0x68, 0x77, 0x5f, 0x6d, 0x6f, 0x64, 0x65,
- 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61,
- 0x73, 0x74, 0x69, 0x63, 0x2e, 0x48, 0x61, 0x72, 0x64, 0x77, 0x61, 0x72, 0x65, 0x4d, 0x6f, 0x64,
- 0x65, 0x6c, 0x52, 0x07, 0x68, 0x77, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x1f, 0x0a, 0x0b, 0x69,
- 0x73, 0x5f, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08,
- 0x52, 0x0a, 0x69, 0x73, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x64, 0x12, 0x38, 0x0a, 0x04,
- 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x6d, 0x65, 0x73,
- 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x44,
- 0x65, 0x76, 0x69, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x6f, 0x6c, 0x65,
- 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x22, 0x26, 0x0a, 0x0e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x44,
- 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x75, 0x74,
- 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x07, 0x52, 0x05, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x22, 0xa3,
- 0x03, 0x0a, 0x07, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x41, 0x0a, 0x0d, 0x72, 0x6f,
- 0x75, 0x74, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
- 0x0b, 0x32, 0x1a, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x52,
- 0x6f, 0x75, 0x74, 0x65, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x48, 0x00, 0x52,
- 0x0c, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3d, 0x0a,
- 0x0b, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x18, 0x02, 0x20, 0x01,
- 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e,
- 0x52, 0x6f, 0x75, 0x74, 0x65, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x48, 0x00,
- 0x52, 0x0a, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x3e, 0x0a, 0x0c,
- 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01,
- 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e,
- 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x48, 0x00, 0x52,
- 0x0b, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0xca, 0x01, 0x0a,
- 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00,
- 0x12, 0x0c, 0x0a, 0x08, 0x4e, 0x4f, 0x5f, 0x52, 0x4f, 0x55, 0x54, 0x45, 0x10, 0x01, 0x12, 0x0b,
- 0x0a, 0x07, 0x47, 0x4f, 0x54, 0x5f, 0x4e, 0x41, 0x4b, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x54,
- 0x49, 0x4d, 0x45, 0x4f, 0x55, 0x54, 0x10, 0x03, 0x12, 0x10, 0x0a, 0x0c, 0x4e, 0x4f, 0x5f, 0x49,
- 0x4e, 0x54, 0x45, 0x52, 0x46, 0x41, 0x43, 0x45, 0x10, 0x04, 0x12, 0x12, 0x0a, 0x0e, 0x4d, 0x41,
- 0x58, 0x5f, 0x52, 0x45, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x4d, 0x49, 0x54, 0x10, 0x05, 0x12, 0x0e,
- 0x0a, 0x0a, 0x4e, 0x4f, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x4e, 0x45, 0x4c, 0x10, 0x06, 0x12, 0x0d,
- 0x0a, 0x09, 0x54, 0x4f, 0x4f, 0x5f, 0x4c, 0x41, 0x52, 0x47, 0x45, 0x10, 0x07, 0x12, 0x0f, 0x0a,
- 0x0b, 0x4e, 0x4f, 0x5f, 0x52, 0x45, 0x53, 0x50, 0x4f, 0x4e, 0x53, 0x45, 0x10, 0x08, 0x12, 0x14,
- 0x0a, 0x10, 0x44, 0x55, 0x54, 0x59, 0x5f, 0x43, 0x59, 0x43, 0x4c, 0x45, 0x5f, 0x4c, 0x49, 0x4d,
- 0x49, 0x54, 0x10, 0x09, 0x12, 0x0f, 0x0a, 0x0b, 0x42, 0x41, 0x44, 0x5f, 0x52, 0x45, 0x51, 0x55,
- 0x45, 0x53, 0x54, 0x10, 0x20, 0x12, 0x12, 0x0a, 0x0e, 0x4e, 0x4f, 0x54, 0x5f, 0x41, 0x55, 0x54,
- 0x48, 0x4f, 0x52, 0x49, 0x5a, 0x45, 0x44, 0x10, 0x21, 0x42, 0x09, 0x0a, 0x07, 0x76, 0x61, 0x72,
- 0x69, 0x61, 0x6e, 0x74, 0x22, 0xf0, 0x01, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x61, 0x12, 0x2d, 0x0a,
- 0x07, 0x70, 0x6f, 0x72, 0x74, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13,
- 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x50, 0x6f, 0x72, 0x74,
- 0x4e, 0x75, 0x6d, 0x52, 0x07, 0x70, 0x6f, 0x72, 0x74, 0x6e, 0x75, 0x6d, 0x12, 0x18, 0x0a, 0x07,
- 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70,
- 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x77, 0x61, 0x6e, 0x74, 0x5f, 0x72,
- 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x77,
- 0x61, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64,
- 0x65, 0x73, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x07, 0x52, 0x04, 0x64, 0x65, 0x73, 0x74, 0x12,
- 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x07, 0x52,
- 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65,
- 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x07, 0x52, 0x09, 0x72, 0x65, 0x71,
- 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x5f,
- 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x07, 0x52, 0x07, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x49,
- 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x6f, 0x6a, 0x69, 0x18, 0x08, 0x20, 0x01, 0x28, 0x07,
- 0x52, 0x05, 0x65, 0x6d, 0x6f, 0x6a, 0x69, 0x22, 0xd9, 0x01, 0x0a, 0x08, 0x57, 0x61, 0x79, 0x70,
- 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d,
- 0x52, 0x02, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x6c, 0x61, 0x74, 0x69, 0x74, 0x75, 0x64, 0x65,
- 0x5f, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0f, 0x52, 0x09, 0x6c, 0x61, 0x74, 0x69, 0x74, 0x75,
- 0x64, 0x65, 0x49, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x74, 0x75, 0x64, 0x65,
- 0x5f, 0x69, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0f, 0x52, 0x0a, 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x74,
- 0x75, 0x64, 0x65, 0x49, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x18, 0x04,
- 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x12, 0x1b, 0x0a, 0x09,
- 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x5f, 0x74, 0x6f, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52,
- 0x08, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x54, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
- 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a,
- 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12,
- 0x12, 0x0a, 0x04, 0x69, 0x63, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x07, 0x52, 0x04, 0x69,
- 0x63, 0x6f, 0x6e, 0x22, 0x89, 0x01, 0x0a, 0x16, 0x4d, 0x71, 0x74, 0x74, 0x43, 0x6c, 0x69, 0x65,
- 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x14,
- 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74,
- 0x6f, 0x70, 0x69, 0x63, 0x12, 0x14, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01,
- 0x28, 0x0c, 0x48, 0x00, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x04, 0x74, 0x65,
- 0x78, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74,
- 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01,
- 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x64, 0x42, 0x11, 0x0a, 0x0f,
- 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x22,
- 0xf3, 0x04, 0x0a, 0x0a, 0x4d, 0x65, 0x73, 0x68, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x12,
- 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x07, 0x52, 0x04, 0x66, 0x72,
- 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x07, 0x52, 0x02,
- 0x74, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x18, 0x03, 0x20,
- 0x01, 0x28, 0x0d, 0x52, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x2c, 0x0a, 0x07,
- 0x64, 0x65, 0x63, 0x6f, 0x64, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e,
- 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x48,
- 0x00, 0x52, 0x07, 0x64, 0x65, 0x63, 0x6f, 0x64, 0x65, 0x64, 0x12, 0x1e, 0x0a, 0x09, 0x65, 0x6e,
- 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52,
- 0x09, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
- 0x18, 0x06, 0x20, 0x01, 0x28, 0x07, 0x52, 0x02, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x78,
- 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x07, 0x52, 0x06, 0x72, 0x78, 0x54,
- 0x69, 0x6d, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x78, 0x5f, 0x73, 0x6e, 0x72, 0x18, 0x08, 0x20,
- 0x01, 0x28, 0x02, 0x52, 0x05, 0x72, 0x78, 0x53, 0x6e, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x68, 0x6f,
- 0x70, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x68,
- 0x6f, 0x70, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x77, 0x61, 0x6e, 0x74, 0x5f,
- 0x61, 0x63, 0x6b, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x77, 0x61, 0x6e, 0x74, 0x41,
- 0x63, 0x6b, 0x12, 0x3b, 0x0a, 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x0b,
- 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69,
- 0x63, 0x2e, 0x4d, 0x65, 0x73, 0x68, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x50, 0x72, 0x69,
- 0x6f, 0x72, 0x69, 0x74, 0x79, 0x52, 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12,
- 0x17, 0x0a, 0x07, 0x72, 0x78, 0x5f, 0x72, 0x73, 0x73, 0x69, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x05,
- 0x52, 0x06, 0x72, 0x78, 0x52, 0x73, 0x73, 0x69, 0x12, 0x3c, 0x0a, 0x07, 0x64, 0x65, 0x6c, 0x61,
- 0x79, 0x65, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x6d, 0x65, 0x73, 0x68,
- 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x4d, 0x65, 0x73, 0x68, 0x50, 0x61, 0x63, 0x6b, 0x65,
- 0x74, 0x2e, 0x44, 0x65, 0x6c, 0x61, 0x79, 0x65, 0x64, 0x42, 0x02, 0x18, 0x01, 0x52, 0x07, 0x64,
- 0x65, 0x6c, 0x61, 0x79, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x76, 0x69, 0x61, 0x5f, 0x6d, 0x71,
- 0x74, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x76, 0x69, 0x61, 0x4d, 0x71, 0x74,
- 0x74, 0x22, 0x5b, 0x0a, 0x08, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x09, 0x0a,
- 0x05, 0x55, 0x4e, 0x53, 0x45, 0x54, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x4d, 0x49, 0x4e, 0x10,
- 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x42, 0x41, 0x43, 0x4b, 0x47, 0x52, 0x4f, 0x55, 0x4e, 0x44, 0x10,
- 0x0a, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x40, 0x12, 0x0c,
- 0x0a, 0x08, 0x52, 0x45, 0x4c, 0x49, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x46, 0x12, 0x07, 0x0a, 0x03,
- 0x41, 0x43, 0x4b, 0x10, 0x78, 0x12, 0x07, 0x0a, 0x03, 0x4d, 0x41, 0x58, 0x10, 0x7f, 0x22, 0x42,
- 0x0a, 0x07, 0x44, 0x65, 0x6c, 0x61, 0x79, 0x65, 0x64, 0x12, 0x0c, 0x0a, 0x08, 0x4e, 0x4f, 0x5f,
- 0x44, 0x45, 0x4c, 0x41, 0x59, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x44, 0x45, 0x4c, 0x41, 0x59,
- 0x45, 0x44, 0x5f, 0x42, 0x52, 0x4f, 0x41, 0x44, 0x43, 0x41, 0x53, 0x54, 0x10, 0x01, 0x12, 0x12,
- 0x0a, 0x0e, 0x44, 0x45, 0x4c, 0x41, 0x59, 0x45, 0x44, 0x5f, 0x44, 0x49, 0x52, 0x45, 0x43, 0x54,
- 0x10, 0x02, 0x42, 0x11, 0x0a, 0x0f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x76, 0x61,
- 0x72, 0x69, 0x61, 0x6e, 0x74, 0x22, 0x81, 0x02, 0x0a, 0x08, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e,
- 0x66, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52,
- 0x03, 0x6e, 0x75, 0x6d, 0x12, 0x24, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01,
- 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e,
- 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x30, 0x0a, 0x08, 0x70, 0x6f,
- 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6d,
- 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69,
- 0x6f, 0x6e, 0x52, 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03,
- 0x73, 0x6e, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x03, 0x73, 0x6e, 0x72, 0x12, 0x1d,
- 0x0a, 0x0a, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x68, 0x65, 0x61, 0x72, 0x64, 0x18, 0x05, 0x20, 0x01,
- 0x28, 0x07, 0x52, 0x09, 0x6c, 0x61, 0x73, 0x74, 0x48, 0x65, 0x61, 0x72, 0x64, 0x12, 0x40, 0x0a,
- 0x0e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18,
- 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74,
- 0x69, 0x63, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73,
- 0x52, 0x0d, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12,
- 0x18, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d,
- 0x52, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x22, 0x77, 0x0a, 0x0a, 0x4d, 0x79, 0x4e,
- 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1e, 0x0a, 0x0b, 0x6d, 0x79, 0x5f, 0x6e, 0x6f,
- 0x64, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x6d, 0x79,
- 0x4e, 0x6f, 0x64, 0x65, 0x4e, 0x75, 0x6d, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x62, 0x6f, 0x6f,
- 0x74, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x72,
- 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x26, 0x0a, 0x0f, 0x6d, 0x69,
- 0x6e, 0x5f, 0x61, 0x70, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20,
- 0x01, 0x28, 0x0d, 0x52, 0x0d, 0x6d, 0x69, 0x6e, 0x41, 0x70, 0x70, 0x56, 0x65, 0x72, 0x73, 0x69,
- 0x6f, 0x6e, 0x22, 0xde, 0x01, 0x0a, 0x09, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64,
- 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69,
- 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x07, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x16,
- 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
- 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x31, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18,
- 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74,
- 0x69, 0x63, 0x2e, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x2e, 0x4c, 0x65, 0x76,
- 0x65, 0x6c, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0x58, 0x0a, 0x05, 0x4c, 0x65, 0x76,
- 0x65, 0x6c, 0x12, 0x09, 0x0a, 0x05, 0x55, 0x4e, 0x53, 0x45, 0x54, 0x10, 0x00, 0x12, 0x0c, 0x0a,
- 0x08, 0x43, 0x52, 0x49, 0x54, 0x49, 0x43, 0x41, 0x4c, 0x10, 0x32, 0x12, 0x09, 0x0a, 0x05, 0x45,
- 0x52, 0x52, 0x4f, 0x52, 0x10, 0x28, 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x41, 0x52, 0x4e, 0x49, 0x4e,
- 0x47, 0x10, 0x1e, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x4e, 0x46, 0x4f, 0x10, 0x14, 0x12, 0x09, 0x0a,
- 0x05, 0x44, 0x45, 0x42, 0x55, 0x47, 0x10, 0x0a, 0x12, 0x09, 0x0a, 0x05, 0x54, 0x52, 0x41, 0x43,
- 0x45, 0x10, 0x05, 0x22, 0x71, 0x0a, 0x0b, 0x51, 0x75, 0x65, 0x75, 0x65, 0x53, 0x74, 0x61, 0x74,
- 0x75, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x72, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52,
- 0x03, 0x72, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x65, 0x65, 0x18, 0x02, 0x20, 0x01,
- 0x28, 0x0d, 0x52, 0x04, 0x66, 0x72, 0x65, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x61, 0x78, 0x6c,
- 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x6d, 0x61, 0x78, 0x6c, 0x65, 0x6e,
- 0x12, 0x24, 0x0a, 0x0e, 0x6d, 0x65, 0x73, 0x68, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f,
- 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x6d, 0x65, 0x73, 0x68, 0x50, 0x61,
- 0x63, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x22, 0xfc, 0x05, 0x0a, 0x09, 0x46, 0x72, 0x6f, 0x6d, 0x52,
- 0x61, 0x64, 0x69, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d,
- 0x52, 0x02, 0x69, 0x64, 0x12, 0x30, 0x0a, 0x06, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x02,
- 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69,
- 0x63, 0x2e, 0x4d, 0x65, 0x73, 0x68, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x48, 0x00, 0x52, 0x06,
- 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x31, 0x0a, 0x07, 0x6d, 0x79, 0x5f, 0x69, 0x6e, 0x66,
- 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61,
- 0x73, 0x74, 0x69, 0x63, 0x2e, 0x4d, 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x48,
- 0x00, 0x52, 0x06, 0x6d, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x33, 0x0a, 0x09, 0x6e, 0x6f, 0x64,
- 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6d,
- 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e,
- 0x66, 0x6f, 0x48, 0x00, 0x52, 0x08, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x2c,
- 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12,
- 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x43, 0x6f, 0x6e, 0x66,
- 0x69, 0x67, 0x48, 0x00, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x36, 0x0a, 0x0a,
- 0x6c, 0x6f, 0x67, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b,
- 0x32, 0x15, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x4c, 0x6f,
- 0x67, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x48, 0x00, 0x52, 0x09, 0x6c, 0x6f, 0x67, 0x52, 0x65,
- 0x63, 0x6f, 0x72, 0x64, 0x12, 0x2e, 0x0a, 0x12, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x63,
- 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d,
- 0x48, 0x00, 0x52, 0x10, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65,
- 0x74, 0x65, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x08, 0x72, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x65, 0x64,
- 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x08, 0x72, 0x65, 0x62, 0x6f, 0x6f, 0x74,
- 0x65, 0x64, 0x12, 0x3e, 0x0a, 0x0c, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x66,
- 0x69, 0x67, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74,
- 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x66,
- 0x69, 0x67, 0x48, 0x00, 0x52, 0x0c, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x66,
- 0x69, 0x67, 0x12, 0x2f, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x18, 0x0a, 0x20,
- 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63,
- 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x48, 0x00, 0x52, 0x07, 0x63, 0x68, 0x61, 0x6e,
- 0x6e, 0x65, 0x6c, 0x12, 0x3b, 0x0a, 0x0b, 0x71, 0x75, 0x65, 0x75, 0x65, 0x53, 0x74, 0x61, 0x74,
- 0x75, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74,
- 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75,
- 0x73, 0x48, 0x00, 0x52, 0x0b, 0x71, 0x75, 0x65, 0x75, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
- 0x12, 0x38, 0x0a, 0x0c, 0x78, 0x6d, 0x6f, 0x64, 0x65, 0x6d, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74,
- 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73,
- 0x74, 0x69, 0x63, 0x2e, 0x58, 0x4d, 0x6f, 0x64, 0x65, 0x6d, 0x48, 0x00, 0x52, 0x0c, 0x78, 0x6d,
- 0x6f, 0x64, 0x65, 0x6d, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x38, 0x0a, 0x08, 0x6d, 0x65,
- 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6d,
+ 0x01, 0x28, 0x0d, 0x52, 0x09, 0x73, 0x65, 0x71, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x25,
+ 0x0a, 0x0e, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x62, 0x69, 0x74, 0x73,
+ 0x18, 0x17, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0d, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f,
+ 0x6e, 0x42, 0x69, 0x74, 0x73, 0x22, 0x4e, 0x0a, 0x09, 0x4c, 0x6f, 0x63, 0x53, 0x6f, 0x75, 0x72,
+ 0x63, 0x65, 0x12, 0x0d, 0x0a, 0x09, 0x4c, 0x4f, 0x43, 0x5f, 0x55, 0x4e, 0x53, 0x45, 0x54, 0x10,
+ 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x4c, 0x4f, 0x43, 0x5f, 0x4d, 0x41, 0x4e, 0x55, 0x41, 0x4c, 0x10,
+ 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x4c, 0x4f, 0x43, 0x5f, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x4e, 0x41,
+ 0x4c, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x4c, 0x4f, 0x43, 0x5f, 0x45, 0x58, 0x54, 0x45, 0x52,
+ 0x4e, 0x41, 0x4c, 0x10, 0x03, 0x22, 0x62, 0x0a, 0x09, 0x41, 0x6c, 0x74, 0x53, 0x6f, 0x75, 0x72,
+ 0x63, 0x65, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x4c, 0x54, 0x5f, 0x55, 0x4e, 0x53, 0x45, 0x54, 0x10,
+ 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x41, 0x4c, 0x54, 0x5f, 0x4d, 0x41, 0x4e, 0x55, 0x41, 0x4c, 0x10,
+ 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x41, 0x4c, 0x54, 0x5f, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x4e, 0x41,
+ 0x4c, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x41, 0x4c, 0x54, 0x5f, 0x45, 0x58, 0x54, 0x45, 0x52,
+ 0x4e, 0x41, 0x4c, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x41, 0x4c, 0x54, 0x5f, 0x42, 0x41, 0x52,
+ 0x4f, 0x4d, 0x45, 0x54, 0x52, 0x49, 0x43, 0x10, 0x04, 0x22, 0x81, 0x02, 0x0a, 0x04, 0x55, 0x73,
+ 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,
+ 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6c, 0x6f, 0x6e, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18,
+ 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x6f, 0x6e, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12,
+ 0x1d, 0x0a, 0x0a, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c,
+ 0x0a, 0x07, 0x6d, 0x61, 0x63, 0x61, 0x64, 0x64, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x42,
+ 0x02, 0x18, 0x01, 0x52, 0x07, 0x6d, 0x61, 0x63, 0x61, 0x64, 0x64, 0x72, 0x12, 0x34, 0x0a, 0x08,
+ 0x68, 0x77, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19,
+ 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x48, 0x61, 0x72, 0x64,
+ 0x77, 0x61, 0x72, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x07, 0x68, 0x77, 0x4d, 0x6f, 0x64,
+ 0x65, 0x6c, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65,
+ 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x4c, 0x69, 0x63, 0x65, 0x6e,
+ 0x73, 0x65, 0x64, 0x12, 0x38, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28,
+ 0x0e, 0x32, 0x24, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x43,
+ 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66,
+ 0x69, 0x67, 0x2e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x22, 0x26, 0x0a,
+ 0x0e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x12,
+ 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x07, 0x52, 0x05,
+ 0x72, 0x6f, 0x75, 0x74, 0x65, 0x22, 0xa3, 0x03, 0x0a, 0x07, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e,
+ 0x67, 0x12, 0x41, 0x0a, 0x0d, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65,
+ 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74,
+ 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x44, 0x69, 0x73, 0x63, 0x6f,
+ 0x76, 0x65, 0x72, 0x79, 0x48, 0x00, 0x52, 0x0c, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71,
+ 0x75, 0x65, 0x73, 0x74, 0x12, 0x3d, 0x0a, 0x0b, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x72, 0x65,
+ 0x70, 0x6c, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6d, 0x65, 0x73, 0x68,
+ 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x44, 0x69, 0x73, 0x63,
+ 0x6f, 0x76, 0x65, 0x72, 0x79, 0x48, 0x00, 0x52, 0x0a, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65,
+ 0x70, 0x6c, 0x79, 0x12, 0x3e, 0x0a, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x72, 0x65, 0x61,
+ 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x6d, 0x65, 0x73, 0x68,
+ 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x45,
+ 0x72, 0x72, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x0b, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x65, 0x61,
+ 0x73, 0x6f, 0x6e, 0x22, 0xca, 0x01, 0x0a, 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x08, 0x0a,
+ 0x04, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x4e, 0x4f, 0x5f, 0x52, 0x4f,
+ 0x55, 0x54, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x47, 0x4f, 0x54, 0x5f, 0x4e, 0x41, 0x4b,
+ 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x54, 0x49, 0x4d, 0x45, 0x4f, 0x55, 0x54, 0x10, 0x03, 0x12,
+ 0x10, 0x0a, 0x0c, 0x4e, 0x4f, 0x5f, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x46, 0x41, 0x43, 0x45, 0x10,
+ 0x04, 0x12, 0x12, 0x0a, 0x0e, 0x4d, 0x41, 0x58, 0x5f, 0x52, 0x45, 0x54, 0x52, 0x41, 0x4e, 0x53,
+ 0x4d, 0x49, 0x54, 0x10, 0x05, 0x12, 0x0e, 0x0a, 0x0a, 0x4e, 0x4f, 0x5f, 0x43, 0x48, 0x41, 0x4e,
+ 0x4e, 0x45, 0x4c, 0x10, 0x06, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x4f, 0x4f, 0x5f, 0x4c, 0x41, 0x52,
+ 0x47, 0x45, 0x10, 0x07, 0x12, 0x0f, 0x0a, 0x0b, 0x4e, 0x4f, 0x5f, 0x52, 0x45, 0x53, 0x50, 0x4f,
+ 0x4e, 0x53, 0x45, 0x10, 0x08, 0x12, 0x14, 0x0a, 0x10, 0x44, 0x55, 0x54, 0x59, 0x5f, 0x43, 0x59,
+ 0x43, 0x4c, 0x45, 0x5f, 0x4c, 0x49, 0x4d, 0x49, 0x54, 0x10, 0x09, 0x12, 0x0f, 0x0a, 0x0b, 0x42,
+ 0x41, 0x44, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x10, 0x20, 0x12, 0x12, 0x0a, 0x0e,
+ 0x4e, 0x4f, 0x54, 0x5f, 0x41, 0x55, 0x54, 0x48, 0x4f, 0x52, 0x49, 0x5a, 0x45, 0x44, 0x10, 0x21,
+ 0x42, 0x09, 0x0a, 0x07, 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x22, 0xf0, 0x01, 0x0a, 0x04,
+ 0x44, 0x61, 0x74, 0x61, 0x12, 0x2d, 0x0a, 0x07, 0x70, 0x6f, 0x72, 0x74, 0x6e, 0x75, 0x6d, 0x18,
+ 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74,
+ 0x69, 0x63, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x4e, 0x75, 0x6d, 0x52, 0x07, 0x70, 0x6f, 0x72, 0x74,
+ 0x6e, 0x75, 0x6d, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x02,
+ 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x23, 0x0a,
+ 0x0d, 0x77, 0x61, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x03,
+ 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x77, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
+ 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x65, 0x73, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x07,
+ 0x52, 0x04, 0x64, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
+ 0x18, 0x05, 0x20, 0x01, 0x28, 0x07, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1d,
+ 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01,
+ 0x28, 0x07, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a,
+ 0x08, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x07, 0x52,
+ 0x07, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x6f, 0x6a,
+ 0x69, 0x18, 0x08, 0x20, 0x01, 0x28, 0x07, 0x52, 0x05, 0x65, 0x6d, 0x6f, 0x6a, 0x69, 0x22, 0xd9,
+ 0x01, 0x0a, 0x08, 0x57, 0x61, 0x79, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69,
+ 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x6c,
+ 0x61, 0x74, 0x69, 0x74, 0x75, 0x64, 0x65, 0x5f, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0f, 0x52,
+ 0x09, 0x6c, 0x61, 0x74, 0x69, 0x74, 0x75, 0x64, 0x65, 0x49, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, 0x6f,
+ 0x6e, 0x67, 0x69, 0x74, 0x75, 0x64, 0x65, 0x5f, 0x69, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0f, 0x52,
+ 0x0a, 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x74, 0x75, 0x64, 0x65, 0x49, 0x12, 0x16, 0x0a, 0x06, 0x65,
+ 0x78, 0x70, 0x69, 0x72, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x65, 0x78, 0x70,
+ 0x69, 0x72, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x5f, 0x74, 0x6f,
+ 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x54, 0x6f,
+ 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
+ 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
+ 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72,
+ 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x63, 0x6f, 0x6e, 0x18, 0x08,
+ 0x20, 0x01, 0x28, 0x07, 0x52, 0x04, 0x69, 0x63, 0x6f, 0x6e, 0x22, 0x89, 0x01, 0x0a, 0x16, 0x4d,
+ 0x71, 0x74, 0x74, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x4d, 0x65,
+ 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x01,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x14, 0x0a, 0x04, 0x64,
+ 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x04, 0x64, 0x61, 0x74,
+ 0x61, 0x12, 0x14, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48,
+ 0x00, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x74, 0x61, 0x69,
+ 0x6e, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, 0x74, 0x61, 0x69,
+ 0x6e, 0x65, 0x64, 0x42, 0x11, 0x0a, 0x0f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x76,
+ 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x22, 0xf3, 0x04, 0x0a, 0x0a, 0x4d, 0x65, 0x73, 0x68, 0x50,
+ 0x61, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x07, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18,
+ 0x02, 0x20, 0x01, 0x28, 0x07, 0x52, 0x02, 0x74, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x68, 0x61,
+ 0x6e, 0x6e, 0x65, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x63, 0x68, 0x61, 0x6e,
+ 0x6e, 0x65, 0x6c, 0x12, 0x2c, 0x0a, 0x07, 0x64, 0x65, 0x63, 0x6f, 0x64, 0x65, 0x64, 0x18, 0x04,
+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69,
+ 0x63, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x07, 0x64, 0x65, 0x63, 0x6f, 0x64, 0x65,
+ 0x64, 0x12, 0x1e, 0x0a, 0x09, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x18, 0x05,
+ 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x09, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65,
+ 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x07, 0x52, 0x02, 0x69,
+ 0x64, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x78, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01,
+ 0x28, 0x07, 0x52, 0x06, 0x72, 0x78, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x78,
+ 0x5f, 0x73, 0x6e, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x72, 0x78, 0x53, 0x6e,
+ 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x68, 0x6f, 0x70, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x09,
+ 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x68, 0x6f, 0x70, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x19,
+ 0x0a, 0x08, 0x77, 0x61, 0x6e, 0x74, 0x5f, 0x61, 0x63, 0x6b, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08,
+ 0x52, 0x07, 0x77, 0x61, 0x6e, 0x74, 0x41, 0x63, 0x6b, 0x12, 0x3b, 0x0a, 0x08, 0x70, 0x72, 0x69,
+ 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x6d, 0x65,
+ 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x4d, 0x65, 0x73, 0x68, 0x50, 0x61, 0x63,
+ 0x6b, 0x65, 0x74, 0x2e, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x52, 0x08, 0x70, 0x72,
+ 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x78, 0x5f, 0x72, 0x73, 0x73,
+ 0x69, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x72, 0x78, 0x52, 0x73, 0x73, 0x69, 0x12,
+ 0x3c, 0x0a, 0x07, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x65, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0e,
+ 0x32, 0x1e, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x4d, 0x65,
+ 0x73, 0x68, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x44, 0x65, 0x6c, 0x61, 0x79, 0x65, 0x64,
+ 0x42, 0x02, 0x18, 0x01, 0x52, 0x07, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x65, 0x64, 0x12, 0x19, 0x0a,
+ 0x08, 0x76, 0x69, 0x61, 0x5f, 0x6d, 0x71, 0x74, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x08, 0x52,
+ 0x07, 0x76, 0x69, 0x61, 0x4d, 0x71, 0x74, 0x74, 0x22, 0x5b, 0x0a, 0x08, 0x50, 0x72, 0x69, 0x6f,
+ 0x72, 0x69, 0x74, 0x79, 0x12, 0x09, 0x0a, 0x05, 0x55, 0x4e, 0x53, 0x45, 0x54, 0x10, 0x00, 0x12,
+ 0x07, 0x0a, 0x03, 0x4d, 0x49, 0x4e, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x42, 0x41, 0x43, 0x4b,
+ 0x47, 0x52, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x0a, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x45, 0x46, 0x41,
+ 0x55, 0x4c, 0x54, 0x10, 0x40, 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x45, 0x4c, 0x49, 0x41, 0x42, 0x4c,
+ 0x45, 0x10, 0x46, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x43, 0x4b, 0x10, 0x78, 0x12, 0x07, 0x0a, 0x03,
+ 0x4d, 0x41, 0x58, 0x10, 0x7f, 0x22, 0x42, 0x0a, 0x07, 0x44, 0x65, 0x6c, 0x61, 0x79, 0x65, 0x64,
+ 0x12, 0x0c, 0x0a, 0x08, 0x4e, 0x4f, 0x5f, 0x44, 0x45, 0x4c, 0x41, 0x59, 0x10, 0x00, 0x12, 0x15,
+ 0x0a, 0x11, 0x44, 0x45, 0x4c, 0x41, 0x59, 0x45, 0x44, 0x5f, 0x42, 0x52, 0x4f, 0x41, 0x44, 0x43,
+ 0x41, 0x53, 0x54, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x44, 0x45, 0x4c, 0x41, 0x59, 0x45, 0x44,
+ 0x5f, 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, 0x10, 0x02, 0x42, 0x11, 0x0a, 0x0f, 0x70, 0x61, 0x79,
+ 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x22, 0x81, 0x02, 0x0a,
+ 0x08, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x6e, 0x75, 0x6d,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x6e, 0x75, 0x6d, 0x12, 0x24, 0x0a, 0x04, 0x75,
+ 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x6d, 0x65, 0x73, 0x68,
+ 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65,
+ 0x72, 0x12, 0x30, 0x0a, 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20,
+ 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63,
+ 0x2e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74,
+ 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x6e, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02,
+ 0x52, 0x03, 0x73, 0x6e, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x68, 0x65,
+ 0x61, 0x72, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x07, 0x52, 0x09, 0x6c, 0x61, 0x73, 0x74, 0x48,
+ 0x65, 0x61, 0x72, 0x64, 0x12, 0x40, 0x0a, 0x0e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6d,
+ 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6d,
0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65,
- 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61,
- 0x64, 0x61, 0x74, 0x61, 0x12, 0x5c, 0x0a, 0x16, 0x6d, 0x71, 0x74, 0x74, 0x43, 0x6c, 0x69, 0x65,
- 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x0e,
- 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69,
- 0x63, 0x2e, 0x4d, 0x71, 0x74, 0x74, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x78,
- 0x79, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52, 0x16, 0x6d, 0x71, 0x74, 0x74,
- 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x4d, 0x65, 0x73, 0x73, 0x61,
- 0x67, 0x65, 0x42, 0x11, 0x0a, 0x0f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x76, 0x61,
- 0x72, 0x69, 0x61, 0x6e, 0x74, 0x22, 0xb0, 0x02, 0x0a, 0x07, 0x54, 0x6f, 0x52, 0x61, 0x64, 0x69,
- 0x6f, 0x12, 0x30, 0x0a, 0x06, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
- 0x0b, 0x32, 0x16, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x4d,
- 0x65, 0x73, 0x68, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x48, 0x00, 0x52, 0x06, 0x70, 0x61, 0x63,
- 0x6b, 0x65, 0x74, 0x12, 0x26, 0x0a, 0x0e, 0x77, 0x61, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66,
- 0x69, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x48, 0x00, 0x52, 0x0c, 0x77,
- 0x61, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0a, 0x64,
- 0x69, 0x73, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x48,
- 0x00, 0x52, 0x0a, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x12, 0x38, 0x0a,
- 0x0c, 0x78, 0x6d, 0x6f, 0x64, 0x65, 0x6d, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x05, 0x20,
- 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63,
- 0x2e, 0x58, 0x4d, 0x6f, 0x64, 0x65, 0x6d, 0x48, 0x00, 0x52, 0x0c, 0x78, 0x6d, 0x6f, 0x64, 0x65,
- 0x6d, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x5c, 0x0a, 0x16, 0x6d, 0x71, 0x74, 0x74, 0x43,
- 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
- 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61,
- 0x73, 0x74, 0x69, 0x63, 0x2e, 0x4d, 0x71, 0x74, 0x74, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x50,
- 0x72, 0x6f, 0x78, 0x79, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52, 0x16, 0x6d,
+ 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x0d, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x4d,
+ 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65,
+ 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c,
+ 0x22, 0x77, 0x0a, 0x0a, 0x4d, 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1e,
+ 0x0a, 0x0b, 0x6d, 0x79, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x0d, 0x52, 0x09, 0x6d, 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x4e, 0x75, 0x6d, 0x12, 0x21,
+ 0x0a, 0x0c, 0x72, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x08,
+ 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x72, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x43, 0x6f, 0x75, 0x6e,
+ 0x74, 0x12, 0x26, 0x0a, 0x0f, 0x6d, 0x69, 0x6e, 0x5f, 0x61, 0x70, 0x70, 0x5f, 0x76, 0x65, 0x72,
+ 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0d, 0x6d, 0x69, 0x6e, 0x41,
+ 0x70, 0x70, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xde, 0x01, 0x0a, 0x09, 0x4c, 0x6f,
+ 0x67, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61,
+ 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
+ 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x07, 0x52,
+ 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18,
+ 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x31, 0x0a,
+ 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x6d,
+ 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x63,
+ 0x6f, 0x72, 0x64, 0x2e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c,
+ 0x22, 0x58, 0x0a, 0x05, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x09, 0x0a, 0x05, 0x55, 0x4e, 0x53,
+ 0x45, 0x54, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x52, 0x49, 0x54, 0x49, 0x43, 0x41, 0x4c,
+ 0x10, 0x32, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x28, 0x12, 0x0b, 0x0a,
+ 0x07, 0x57, 0x41, 0x52, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x1e, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x4e,
+ 0x46, 0x4f, 0x10, 0x14, 0x12, 0x09, 0x0a, 0x05, 0x44, 0x45, 0x42, 0x55, 0x47, 0x10, 0x0a, 0x12,
+ 0x09, 0x0a, 0x05, 0x54, 0x52, 0x41, 0x43, 0x45, 0x10, 0x05, 0x22, 0x71, 0x0a, 0x0b, 0x51, 0x75,
+ 0x65, 0x75, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x72, 0x65, 0x73,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x72, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x66,
+ 0x72, 0x65, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x66, 0x72, 0x65, 0x65, 0x12,
+ 0x16, 0x0a, 0x06, 0x6d, 0x61, 0x78, 0x6c, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52,
+ 0x06, 0x6d, 0x61, 0x78, 0x6c, 0x65, 0x6e, 0x12, 0x24, 0x0a, 0x0e, 0x6d, 0x65, 0x73, 0x68, 0x5f,
+ 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52,
+ 0x0c, 0x6d, 0x65, 0x73, 0x68, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x22, 0xfc, 0x05,
+ 0x0a, 0x09, 0x46, 0x72, 0x6f, 0x6d, 0x52, 0x61, 0x64, 0x69, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69,
+ 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x30, 0x0a, 0x06, 0x70,
+ 0x61, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6d, 0x65,
+ 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x4d, 0x65, 0x73, 0x68, 0x50, 0x61, 0x63,
+ 0x6b, 0x65, 0x74, 0x48, 0x00, 0x52, 0x06, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x31, 0x0a,
+ 0x07, 0x6d, 0x79, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16,
+ 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x4d, 0x79, 0x4e, 0x6f,
+ 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x48, 0x00, 0x52, 0x06, 0x6d, 0x79, 0x49, 0x6e, 0x66, 0x6f,
+ 0x12, 0x33, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x04, 0x20,
+ 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63,
+ 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x48, 0x00, 0x52, 0x08, 0x6e, 0x6f, 0x64,
+ 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x2c, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18,
+ 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74,
+ 0x69, 0x63, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x06, 0x63, 0x6f, 0x6e,
+ 0x66, 0x69, 0x67, 0x12, 0x36, 0x0a, 0x0a, 0x6c, 0x6f, 0x67, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72,
+ 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61,
+ 0x73, 0x74, 0x69, 0x63, 0x2e, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x48, 0x00,
+ 0x52, 0x09, 0x6c, 0x6f, 0x67, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x2e, 0x0a, 0x12, 0x63,
+ 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x5f, 0x69,
+ 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, 0x48, 0x00, 0x52, 0x10, 0x63, 0x6f, 0x6e, 0x66, 0x69,
+ 0x67, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x08, 0x72,
+ 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x65, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52,
+ 0x08, 0x72, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x65, 0x64, 0x12, 0x3e, 0x0a, 0x0c, 0x6d, 0x6f, 0x64,
+ 0x75, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32,
+ 0x18, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x4d, 0x6f, 0x64,
+ 0x75, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x0c, 0x6d, 0x6f, 0x64,
+ 0x75, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2f, 0x0a, 0x07, 0x63, 0x68, 0x61,
+ 0x6e, 0x6e, 0x65, 0x6c, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x6d, 0x65, 0x73,
+ 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x48,
+ 0x00, 0x52, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x3b, 0x0a, 0x0b, 0x71, 0x75,
+ 0x65, 0x75, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32,
+ 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x51, 0x75, 0x65,
+ 0x75, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x48, 0x00, 0x52, 0x0b, 0x71, 0x75, 0x65, 0x75,
+ 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x38, 0x0a, 0x0c, 0x78, 0x6d, 0x6f, 0x64, 0x65,
+ 0x6d, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e,
+ 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x58, 0x4d, 0x6f, 0x64, 0x65,
+ 0x6d, 0x48, 0x00, 0x52, 0x0c, 0x78, 0x6d, 0x6f, 0x64, 0x65, 0x6d, 0x50, 0x61, 0x63, 0x6b, 0x65,
+ 0x74, 0x12, 0x38, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x0d, 0x20,
+ 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63,
+ 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x48,
+ 0x00, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x5c, 0x0a, 0x16, 0x6d,
0x71, 0x74, 0x74, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x4d, 0x65,
- 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x11, 0x0a, 0x0f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64,
- 0x5f, 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x22, 0x4f, 0x0a, 0x0a, 0x43, 0x6f, 0x6d, 0x70,
- 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x12, 0x2d, 0x0a, 0x07, 0x70, 0x6f, 0x72, 0x74, 0x6e, 0x75,
- 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61,
- 0x73, 0x74, 0x69, 0x63, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x4e, 0x75, 0x6d, 0x52, 0x07, 0x70, 0x6f,
- 0x72, 0x74, 0x6e, 0x75, 0x6d, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20,
- 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xc3, 0x01, 0x0a, 0x0c, 0x4e, 0x65,
- 0x69, 0x67, 0x68, 0x62, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f,
- 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x6e, 0x6f, 0x64,
- 0x65, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x0f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x73, 0x65, 0x6e, 0x74,
- 0x5f, 0x62, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x6c, 0x61,
- 0x73, 0x74, 0x53, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x49, 0x64, 0x12, 0x3f, 0x0a, 0x1c, 0x6e, 0x6f,
- 0x64, 0x65, 0x5f, 0x62, 0x72, 0x6f, 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x74,
- 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x73, 0x65, 0x63, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d,
- 0x52, 0x19, 0x6e, 0x6f, 0x64, 0x65, 0x42, 0x72, 0x6f, 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 0x49,
- 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x53, 0x65, 0x63, 0x73, 0x12, 0x32, 0x0a, 0x09, 0x6e,
- 0x65, 0x69, 0x67, 0x68, 0x62, 0x6f, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14,
- 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x4e, 0x65, 0x69, 0x67,
- 0x68, 0x62, 0x6f, 0x72, 0x52, 0x09, 0x6e, 0x65, 0x69, 0x67, 0x68, 0x62, 0x6f, 0x72, 0x73, 0x22,
- 0x98, 0x01, 0x0a, 0x08, 0x4e, 0x65, 0x69, 0x67, 0x68, 0x62, 0x6f, 0x72, 0x12, 0x17, 0x0a, 0x07,
- 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x6e,
- 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x6e, 0x72, 0x18, 0x02, 0x20, 0x01,
- 0x28, 0x02, 0x52, 0x03, 0x73, 0x6e, 0x72, 0x12, 0x20, 0x0a, 0x0c, 0x6c, 0x61, 0x73, 0x74, 0x5f,
- 0x72, 0x78, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x07, 0x52, 0x0a, 0x6c,
- 0x61, 0x73, 0x74, 0x52, 0x78, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3f, 0x0a, 0x1c, 0x6e, 0x6f, 0x64,
- 0x65, 0x5f, 0x62, 0x72, 0x6f, 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x65,
- 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x73, 0x65, 0x63, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52,
- 0x19, 0x6e, 0x6f, 0x64, 0x65, 0x42, 0x72, 0x6f, 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 0x49, 0x6e,
- 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x53, 0x65, 0x63, 0x73, 0x22, 0xb4, 0x03, 0x0a, 0x0e, 0x44,
- 0x65, 0x76, 0x69, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x29, 0x0a,
- 0x10, 0x66, 0x69, 0x72, 0x6d, 0x77, 0x61, 0x72, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f,
- 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x66, 0x69, 0x72, 0x6d, 0x77, 0x61, 0x72,
- 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x30, 0x0a, 0x14, 0x64, 0x65, 0x76, 0x69,
- 0x63, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
- 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x12, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x53, 0x74,
- 0x61, 0x74, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x61,
- 0x6e, 0x53, 0x68, 0x75, 0x74, 0x64, 0x6f, 0x77, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52,
- 0x0b, 0x63, 0x61, 0x6e, 0x53, 0x68, 0x75, 0x74, 0x64, 0x6f, 0x77, 0x6e, 0x12, 0x18, 0x0a, 0x07,
- 0x68, 0x61, 0x73, 0x57, 0x69, 0x66, 0x69, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x68,
- 0x61, 0x73, 0x57, 0x69, 0x66, 0x69, 0x12, 0x22, 0x0a, 0x0c, 0x68, 0x61, 0x73, 0x42, 0x6c, 0x75,
- 0x65, 0x74, 0x6f, 0x6f, 0x74, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x68, 0x61,
- 0x73, 0x42, 0x6c, 0x75, 0x65, 0x74, 0x6f, 0x6f, 0x74, 0x68, 0x12, 0x20, 0x0a, 0x0b, 0x68, 0x61,
- 0x73, 0x45, 0x74, 0x68, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52,
- 0x0b, 0x68, 0x61, 0x73, 0x45, 0x74, 0x68, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x12, 0x38, 0x0a, 0x04,
- 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x6d, 0x65, 0x73,
- 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x44,
- 0x65, 0x76, 0x69, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x6f, 0x6c, 0x65,
- 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69,
- 0x6f, 0x6e, 0x5f, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0d,
- 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x6c, 0x61, 0x67, 0x73, 0x12, 0x34, 0x0a,
- 0x08, 0x68, 0x77, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32,
- 0x19, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x48, 0x61, 0x72,
- 0x64, 0x77, 0x61, 0x72, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x07, 0x68, 0x77, 0x4d, 0x6f,
- 0x64, 0x65, 0x6c, 0x12, 0x2c, 0x0a, 0x11, 0x68, 0x61, 0x73, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65,
- 0x48, 0x61, 0x72, 0x64, 0x77, 0x61, 0x72, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11,
- 0x68, 0x61, 0x73, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x48, 0x61, 0x72, 0x64, 0x77, 0x61, 0x72,
- 0x65, 0x2a, 0xc4, 0x07, 0x0a, 0x0d, 0x48, 0x61, 0x72, 0x64, 0x77, 0x61, 0x72, 0x65, 0x4d, 0x6f,
- 0x64, 0x65, 0x6c, 0x12, 0x09, 0x0a, 0x05, 0x55, 0x4e, 0x53, 0x45, 0x54, 0x10, 0x00, 0x12, 0x0c,
- 0x0a, 0x08, 0x54, 0x4c, 0x4f, 0x52, 0x41, 0x5f, 0x56, 0x32, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08,
- 0x54, 0x4c, 0x4f, 0x52, 0x41, 0x5f, 0x56, 0x31, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x54, 0x4c,
- 0x4f, 0x52, 0x41, 0x5f, 0x56, 0x32, 0x5f, 0x31, 0x5f, 0x31, 0x50, 0x36, 0x10, 0x03, 0x12, 0x09,
- 0x0a, 0x05, 0x54, 0x42, 0x45, 0x41, 0x4d, 0x10, 0x04, 0x12, 0x0f, 0x0a, 0x0b, 0x48, 0x45, 0x4c,
- 0x54, 0x45, 0x43, 0x5f, 0x56, 0x32, 0x5f, 0x30, 0x10, 0x05, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x42,
- 0x45, 0x41, 0x4d, 0x5f, 0x56, 0x30, 0x50, 0x37, 0x10, 0x06, 0x12, 0x0a, 0x0a, 0x06, 0x54, 0x5f,
- 0x45, 0x43, 0x48, 0x4f, 0x10, 0x07, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x4c, 0x4f, 0x52, 0x41, 0x5f,
- 0x56, 0x31, 0x5f, 0x31, 0x50, 0x33, 0x10, 0x08, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x41, 0x4b, 0x34,
- 0x36, 0x33, 0x31, 0x10, 0x09, 0x12, 0x0f, 0x0a, 0x0b, 0x48, 0x45, 0x4c, 0x54, 0x45, 0x43, 0x5f,
- 0x56, 0x32, 0x5f, 0x31, 0x10, 0x0a, 0x12, 0x0d, 0x0a, 0x09, 0x48, 0x45, 0x4c, 0x54, 0x45, 0x43,
- 0x5f, 0x56, 0x31, 0x10, 0x0b, 0x12, 0x18, 0x0a, 0x14, 0x4c, 0x49, 0x4c, 0x59, 0x47, 0x4f, 0x5f,
- 0x54, 0x42, 0x45, 0x41, 0x4d, 0x5f, 0x53, 0x33, 0x5f, 0x43, 0x4f, 0x52, 0x45, 0x10, 0x0c, 0x12,
- 0x0c, 0x0a, 0x08, 0x52, 0x41, 0x4b, 0x31, 0x31, 0x32, 0x30, 0x30, 0x10, 0x0d, 0x12, 0x0b, 0x0a,
- 0x07, 0x4e, 0x41, 0x4e, 0x4f, 0x5f, 0x47, 0x31, 0x10, 0x0e, 0x12, 0x12, 0x0a, 0x0e, 0x54, 0x4c,
- 0x4f, 0x52, 0x41, 0x5f, 0x56, 0x32, 0x5f, 0x31, 0x5f, 0x31, 0x50, 0x38, 0x10, 0x0f, 0x12, 0x0f,
- 0x0a, 0x0b, 0x54, 0x4c, 0x4f, 0x52, 0x41, 0x5f, 0x54, 0x33, 0x5f, 0x53, 0x33, 0x10, 0x10, 0x12,
- 0x14, 0x0a, 0x10, 0x4e, 0x41, 0x4e, 0x4f, 0x5f, 0x47, 0x31, 0x5f, 0x45, 0x58, 0x50, 0x4c, 0x4f,
- 0x52, 0x45, 0x52, 0x10, 0x11, 0x12, 0x11, 0x0a, 0x0d, 0x4e, 0x41, 0x4e, 0x4f, 0x5f, 0x47, 0x32,
- 0x5f, 0x55, 0x4c, 0x54, 0x52, 0x41, 0x10, 0x12, 0x12, 0x0d, 0x0a, 0x09, 0x4c, 0x4f, 0x52, 0x41,
- 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10, 0x13, 0x12, 0x0e, 0x0a, 0x0a, 0x53, 0x54, 0x41, 0x54, 0x49,
- 0x4f, 0x4e, 0x5f, 0x47, 0x31, 0x10, 0x19, 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x41, 0x4b, 0x31, 0x31,
- 0x33, 0x31, 0x30, 0x10, 0x1a, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x45, 0x4e, 0x53, 0x45, 0x4c, 0x4f,
- 0x52, 0x41, 0x5f, 0x52, 0x50, 0x32, 0x30, 0x34, 0x30, 0x10, 0x1b, 0x12, 0x10, 0x0a, 0x0c, 0x53,
- 0x45, 0x4e, 0x53, 0x45, 0x4c, 0x4f, 0x52, 0x41, 0x5f, 0x53, 0x33, 0x10, 0x1c, 0x12, 0x0d, 0x0a,
- 0x09, 0x43, 0x41, 0x4e, 0x41, 0x52, 0x59, 0x4f, 0x4e, 0x45, 0x10, 0x1d, 0x12, 0x0f, 0x0a, 0x0b,
- 0x52, 0x50, 0x32, 0x30, 0x34, 0x30, 0x5f, 0x4c, 0x4f, 0x52, 0x41, 0x10, 0x1e, 0x12, 0x11, 0x0a,
- 0x0d, 0x4c, 0x4f, 0x52, 0x41, 0x5f, 0x52, 0x45, 0x4c, 0x41, 0x59, 0x5f, 0x56, 0x31, 0x10, 0x20,
- 0x12, 0x0e, 0x0a, 0x0a, 0x4e, 0x52, 0x46, 0x35, 0x32, 0x38, 0x34, 0x30, 0x44, 0x4b, 0x10, 0x21,
- 0x12, 0x07, 0x0a, 0x03, 0x50, 0x50, 0x52, 0x10, 0x22, 0x12, 0x0f, 0x0a, 0x0b, 0x47, 0x45, 0x4e,
- 0x49, 0x45, 0x42, 0x4c, 0x4f, 0x43, 0x4b, 0x53, 0x10, 0x23, 0x12, 0x11, 0x0a, 0x0d, 0x4e, 0x52,
- 0x46, 0x35, 0x32, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x24, 0x12, 0x0d, 0x0a,
- 0x09, 0x50, 0x4f, 0x52, 0x54, 0x44, 0x55, 0x49, 0x4e, 0x4f, 0x10, 0x25, 0x12, 0x0f, 0x0a, 0x0b,
- 0x41, 0x4e, 0x44, 0x52, 0x4f, 0x49, 0x44, 0x5f, 0x53, 0x49, 0x4d, 0x10, 0x26, 0x12, 0x0a, 0x0a,
- 0x06, 0x44, 0x49, 0x59, 0x5f, 0x56, 0x31, 0x10, 0x27, 0x12, 0x15, 0x0a, 0x11, 0x4e, 0x52, 0x46,
- 0x35, 0x32, 0x38, 0x34, 0x30, 0x5f, 0x50, 0x43, 0x41, 0x31, 0x30, 0x30, 0x35, 0x39, 0x10, 0x28,
- 0x12, 0x0a, 0x0a, 0x06, 0x44, 0x52, 0x5f, 0x44, 0x45, 0x56, 0x10, 0x29, 0x12, 0x0b, 0x0a, 0x07,
- 0x4d, 0x35, 0x53, 0x54, 0x41, 0x43, 0x4b, 0x10, 0x2a, 0x12, 0x0d, 0x0a, 0x09, 0x48, 0x45, 0x4c,
- 0x54, 0x45, 0x43, 0x5f, 0x56, 0x33, 0x10, 0x2b, 0x12, 0x11, 0x0a, 0x0d, 0x48, 0x45, 0x4c, 0x54,
- 0x45, 0x43, 0x5f, 0x57, 0x53, 0x4c, 0x5f, 0x56, 0x33, 0x10, 0x2c, 0x12, 0x13, 0x0a, 0x0f, 0x42,
- 0x45, 0x54, 0x41, 0x46, 0x50, 0x56, 0x5f, 0x32, 0x34, 0x30, 0x30, 0x5f, 0x54, 0x58, 0x10, 0x2d,
- 0x12, 0x17, 0x0a, 0x13, 0x42, 0x45, 0x54, 0x41, 0x46, 0x50, 0x56, 0x5f, 0x39, 0x30, 0x30, 0x5f,
- 0x4e, 0x41, 0x4e, 0x4f, 0x5f, 0x54, 0x58, 0x10, 0x2e, 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x50, 0x49,
- 0x5f, 0x50, 0x49, 0x43, 0x4f, 0x10, 0x2f, 0x12, 0x1b, 0x0a, 0x17, 0x48, 0x45, 0x4c, 0x54, 0x45,
- 0x43, 0x5f, 0x57, 0x49, 0x52, 0x45, 0x4c, 0x45, 0x53, 0x53, 0x5f, 0x54, 0x52, 0x41, 0x43, 0x4b,
- 0x45, 0x52, 0x10, 0x30, 0x12, 0x19, 0x0a, 0x15, 0x48, 0x45, 0x4c, 0x54, 0x45, 0x43, 0x5f, 0x57,
- 0x49, 0x52, 0x45, 0x4c, 0x45, 0x53, 0x53, 0x5f, 0x50, 0x41, 0x50, 0x45, 0x52, 0x10, 0x31, 0x12,
- 0x0a, 0x0a, 0x06, 0x54, 0x5f, 0x44, 0x45, 0x43, 0x4b, 0x10, 0x32, 0x12, 0x0e, 0x0a, 0x0a, 0x54,
- 0x5f, 0x57, 0x41, 0x54, 0x43, 0x48, 0x5f, 0x53, 0x33, 0x10, 0x33, 0x12, 0x11, 0x0a, 0x0d, 0x50,
- 0x49, 0x43, 0x4f, 0x4d, 0x50, 0x55, 0x54, 0x45, 0x52, 0x5f, 0x53, 0x33, 0x10, 0x34, 0x12, 0x0f,
- 0x0a, 0x0b, 0x48, 0x45, 0x4c, 0x54, 0x45, 0x43, 0x5f, 0x48, 0x54, 0x36, 0x32, 0x10, 0x35, 0x12,
- 0x12, 0x0a, 0x0e, 0x45, 0x42, 0x59, 0x54, 0x45, 0x5f, 0x45, 0x53, 0x50, 0x33, 0x32, 0x5f, 0x53,
- 0x33, 0x10, 0x36, 0x12, 0x11, 0x0a, 0x0d, 0x45, 0x53, 0x50, 0x33, 0x32, 0x5f, 0x53, 0x33, 0x5f,
- 0x50, 0x49, 0x43, 0x4f, 0x10, 0x37, 0x12, 0x0d, 0x0a, 0x09, 0x43, 0x48, 0x41, 0x54, 0x54, 0x45,
- 0x52, 0x5f, 0x32, 0x10, 0x38, 0x12, 0x1e, 0x0a, 0x1a, 0x48, 0x45, 0x4c, 0x54, 0x45, 0x43, 0x5f,
- 0x57, 0x49, 0x52, 0x45, 0x4c, 0x45, 0x53, 0x53, 0x5f, 0x50, 0x41, 0x50, 0x45, 0x52, 0x5f, 0x56,
- 0x31, 0x5f, 0x30, 0x10, 0x39, 0x12, 0x20, 0x0a, 0x1c, 0x48, 0x45, 0x4c, 0x54, 0x45, 0x43, 0x5f,
- 0x57, 0x49, 0x52, 0x45, 0x4c, 0x45, 0x53, 0x53, 0x5f, 0x54, 0x52, 0x41, 0x43, 0x4b, 0x45, 0x52,
- 0x5f, 0x56, 0x31, 0x5f, 0x30, 0x10, 0x3a, 0x12, 0x0f, 0x0a, 0x0a, 0x50, 0x52, 0x49, 0x56, 0x41,
- 0x54, 0x45, 0x5f, 0x48, 0x57, 0x10, 0xff, 0x01, 0x2a, 0x2c, 0x0a, 0x09, 0x43, 0x6f, 0x6e, 0x73,
- 0x74, 0x61, 0x6e, 0x74, 0x73, 0x12, 0x08, 0x0a, 0x04, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x00, 0x12,
- 0x15, 0x0a, 0x10, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x50, 0x41, 0x59, 0x4c, 0x4f, 0x41, 0x44, 0x5f,
- 0x4c, 0x45, 0x4e, 0x10, 0xed, 0x01, 0x2a, 0xee, 0x01, 0x0a, 0x11, 0x43, 0x72, 0x69, 0x74, 0x69,
- 0x63, 0x61, 0x6c, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x08, 0x0a, 0x04,
- 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x58, 0x5f, 0x57, 0x41, 0x54,
- 0x43, 0x48, 0x44, 0x4f, 0x47, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x4c, 0x45, 0x45, 0x50,
- 0x5f, 0x45, 0x4e, 0x54, 0x45, 0x52, 0x5f, 0x57, 0x41, 0x49, 0x54, 0x10, 0x02, 0x12, 0x0c, 0x0a,
- 0x08, 0x4e, 0x4f, 0x5f, 0x52, 0x41, 0x44, 0x49, 0x4f, 0x10, 0x03, 0x12, 0x0f, 0x0a, 0x0b, 0x55,
- 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x04, 0x12, 0x15, 0x0a, 0x11,
- 0x55, 0x42, 0x4c, 0x4f, 0x58, 0x5f, 0x55, 0x4e, 0x49, 0x54, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45,
- 0x44, 0x10, 0x05, 0x12, 0x0d, 0x0a, 0x09, 0x4e, 0x4f, 0x5f, 0x41, 0x58, 0x50, 0x31, 0x39, 0x32,
- 0x10, 0x06, 0x12, 0x19, 0x0a, 0x15, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x52, 0x41,
- 0x44, 0x49, 0x4f, 0x5f, 0x53, 0x45, 0x54, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x07, 0x12, 0x13, 0x0a,
- 0x0f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x4d, 0x49, 0x54, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44,
- 0x10, 0x08, 0x12, 0x0c, 0x0a, 0x08, 0x42, 0x52, 0x4f, 0x57, 0x4e, 0x4f, 0x55, 0x54, 0x10, 0x09,
- 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x58, 0x31, 0x32, 0x36, 0x32, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55,
- 0x52, 0x45, 0x10, 0x0a, 0x12, 0x11, 0x0a, 0x0d, 0x52, 0x41, 0x44, 0x49, 0x4f, 0x5f, 0x53, 0x50,
- 0x49, 0x5f, 0x42, 0x55, 0x47, 0x10, 0x0b, 0x42, 0x5f, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x67,
- 0x65, 0x65, 0x6b, 0x73, 0x76, 0x69, 0x6c, 0x6c, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x42, 0x0a,
- 0x4d, 0x65, 0x73, 0x68, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x5a, 0x22, 0x67, 0x69, 0x74, 0x68,
- 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69,
- 0x63, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0xaa, 0x02,
- 0x14, 0x4d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x50, 0x72, 0x6f, 0x74,
- 0x6f, 0x62, 0x75, 0x66, 0x73, 0xba, 0x02, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+ 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6d, 0x65,
+ 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x4d, 0x71, 0x74, 0x74, 0x43, 0x6c, 0x69,
+ 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48,
+ 0x00, 0x52, 0x16, 0x6d, 0x71, 0x74, 0x74, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f,
+ 0x78, 0x79, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x11, 0x0a, 0x0f, 0x70, 0x61, 0x79,
+ 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x22, 0xb0, 0x02, 0x0a,
+ 0x07, 0x54, 0x6f, 0x52, 0x61, 0x64, 0x69, 0x6f, 0x12, 0x30, 0x0a, 0x06, 0x70, 0x61, 0x63, 0x6b,
+ 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74,
+ 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x4d, 0x65, 0x73, 0x68, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74,
+ 0x48, 0x00, 0x52, 0x06, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x26, 0x0a, 0x0e, 0x77, 0x61,
+ 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01,
+ 0x28, 0x0d, 0x48, 0x00, 0x52, 0x0c, 0x77, 0x61, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
+ 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0a, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74,
+ 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x0a, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x6e,
+ 0x6e, 0x65, 0x63, 0x74, 0x12, 0x38, 0x0a, 0x0c, 0x78, 0x6d, 0x6f, 0x64, 0x65, 0x6d, 0x50, 0x61,
+ 0x63, 0x6b, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6d, 0x65, 0x73,
+ 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x58, 0x4d, 0x6f, 0x64, 0x65, 0x6d, 0x48, 0x00,
+ 0x52, 0x0c, 0x78, 0x6d, 0x6f, 0x64, 0x65, 0x6d, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x5c,
+ 0x0a, 0x16, 0x6d, 0x71, 0x74, 0x74, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x78,
+ 0x79, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22,
+ 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x4d, 0x71, 0x74, 0x74,
+ 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x4d, 0x65, 0x73, 0x73, 0x61,
+ 0x67, 0x65, 0x48, 0x00, 0x52, 0x16, 0x6d, 0x71, 0x74, 0x74, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74,
+ 0x50, 0x72, 0x6f, 0x78, 0x79, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x11, 0x0a, 0x0f,
+ 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x22,
+ 0x4f, 0x0a, 0x0a, 0x43, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x12, 0x2d, 0x0a,
+ 0x07, 0x70, 0x6f, 0x72, 0x74, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13,
+ 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x50, 0x6f, 0x72, 0x74,
+ 0x4e, 0x75, 0x6d, 0x52, 0x07, 0x70, 0x6f, 0x72, 0x74, 0x6e, 0x75, 0x6d, 0x12, 0x12, 0x0a, 0x04,
+ 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61,
+ 0x22, 0xc3, 0x01, 0x0a, 0x0c, 0x4e, 0x65, 0x69, 0x67, 0x68, 0x62, 0x6f, 0x72, 0x49, 0x6e, 0x66,
+ 0x6f, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
+ 0x28, 0x0d, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x0f, 0x6c, 0x61,
+ 0x73, 0x74, 0x5f, 0x73, 0x65, 0x6e, 0x74, 0x5f, 0x62, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20,
+ 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x6c, 0x61, 0x73, 0x74, 0x53, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x49,
+ 0x64, 0x12, 0x3f, 0x0a, 0x1c, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x62, 0x72, 0x6f, 0x61, 0x64, 0x63,
+ 0x61, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x73, 0x65, 0x63,
+ 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x19, 0x6e, 0x6f, 0x64, 0x65, 0x42, 0x72, 0x6f,
+ 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x53, 0x65,
+ 0x63, 0x73, 0x12, 0x32, 0x0a, 0x09, 0x6e, 0x65, 0x69, 0x67, 0x68, 0x62, 0x6f, 0x72, 0x73, 0x18,
+ 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74,
+ 0x69, 0x63, 0x2e, 0x4e, 0x65, 0x69, 0x67, 0x68, 0x62, 0x6f, 0x72, 0x52, 0x09, 0x6e, 0x65, 0x69,
+ 0x67, 0x68, 0x62, 0x6f, 0x72, 0x73, 0x22, 0x98, 0x01, 0x0a, 0x08, 0x4e, 0x65, 0x69, 0x67, 0x68,
+ 0x62, 0x6f, 0x72, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01,
+ 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03,
+ 0x73, 0x6e, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x03, 0x73, 0x6e, 0x72, 0x12, 0x20,
+ 0x0a, 0x0c, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x72, 0x78, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03,
+ 0x20, 0x01, 0x28, 0x07, 0x52, 0x0a, 0x6c, 0x61, 0x73, 0x74, 0x52, 0x78, 0x54, 0x69, 0x6d, 0x65,
+ 0x12, 0x3f, 0x0a, 0x1c, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x62, 0x72, 0x6f, 0x61, 0x64, 0x63, 0x61,
+ 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x73, 0x65, 0x63, 0x73,
+ 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x19, 0x6e, 0x6f, 0x64, 0x65, 0x42, 0x72, 0x6f, 0x61,
+ 0x64, 0x63, 0x61, 0x73, 0x74, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x53, 0x65, 0x63,
+ 0x73, 0x22, 0xb4, 0x03, 0x0a, 0x0e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61,
+ 0x64, 0x61, 0x74, 0x61, 0x12, 0x29, 0x0a, 0x10, 0x66, 0x69, 0x72, 0x6d, 0x77, 0x61, 0x72, 0x65,
+ 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f,
+ 0x66, 0x69, 0x72, 0x6d, 0x77, 0x61, 0x72, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12,
+ 0x30, 0x0a, 0x14, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f,
+ 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x12, 0x64,
+ 0x65, 0x76, 0x69, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f,
+ 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x61, 0x6e, 0x53, 0x68, 0x75, 0x74, 0x64, 0x6f, 0x77, 0x6e,
+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x63, 0x61, 0x6e, 0x53, 0x68, 0x75, 0x74, 0x64,
+ 0x6f, 0x77, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x68, 0x61, 0x73, 0x57, 0x69, 0x66, 0x69, 0x18, 0x04,
+ 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x68, 0x61, 0x73, 0x57, 0x69, 0x66, 0x69, 0x12, 0x22, 0x0a,
+ 0x0c, 0x68, 0x61, 0x73, 0x42, 0x6c, 0x75, 0x65, 0x74, 0x6f, 0x6f, 0x74, 0x68, 0x18, 0x05, 0x20,
+ 0x01, 0x28, 0x08, 0x52, 0x0c, 0x68, 0x61, 0x73, 0x42, 0x6c, 0x75, 0x65, 0x74, 0x6f, 0x6f, 0x74,
+ 0x68, 0x12, 0x20, 0x0a, 0x0b, 0x68, 0x61, 0x73, 0x45, 0x74, 0x68, 0x65, 0x72, 0x6e, 0x65, 0x74,
+ 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x68, 0x61, 0x73, 0x45, 0x74, 0x68, 0x65, 0x72,
+ 0x6e, 0x65, 0x74, 0x12, 0x38, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28,
+ 0x0e, 0x32, 0x24, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x43,
+ 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66,
+ 0x69, 0x67, 0x2e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x25, 0x0a,
+ 0x0e, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x18,
+ 0x08, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0d, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x46,
+ 0x6c, 0x61, 0x67, 0x73, 0x12, 0x34, 0x0a, 0x08, 0x68, 0x77, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x6c,
+ 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73,
+ 0x74, 0x69, 0x63, 0x2e, 0x48, 0x61, 0x72, 0x64, 0x77, 0x61, 0x72, 0x65, 0x4d, 0x6f, 0x64, 0x65,
+ 0x6c, 0x52, 0x07, 0x68, 0x77, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x2c, 0x0a, 0x11, 0x68, 0x61,
+ 0x73, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x48, 0x61, 0x72, 0x64, 0x77, 0x61, 0x72, 0x65, 0x18,
+ 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x68, 0x61, 0x73, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65,
+ 0x48, 0x61, 0x72, 0x64, 0x77, 0x61, 0x72, 0x65, 0x2a, 0xd4, 0x07, 0x0a, 0x0d, 0x48, 0x61, 0x72,
+ 0x64, 0x77, 0x61, 0x72, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x09, 0x0a, 0x05, 0x55, 0x4e,
+ 0x53, 0x45, 0x54, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x54, 0x4c, 0x4f, 0x52, 0x41, 0x5f, 0x56,
+ 0x32, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x54, 0x4c, 0x4f, 0x52, 0x41, 0x5f, 0x56, 0x31, 0x10,
+ 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x54, 0x4c, 0x4f, 0x52, 0x41, 0x5f, 0x56, 0x32, 0x5f, 0x31, 0x5f,
+ 0x31, 0x50, 0x36, 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 0x54, 0x42, 0x45, 0x41, 0x4d, 0x10, 0x04,
+ 0x12, 0x0f, 0x0a, 0x0b, 0x48, 0x45, 0x4c, 0x54, 0x45, 0x43, 0x5f, 0x56, 0x32, 0x5f, 0x30, 0x10,
+ 0x05, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x42, 0x45, 0x41, 0x4d, 0x5f, 0x56, 0x30, 0x50, 0x37, 0x10,
+ 0x06, 0x12, 0x0a, 0x0a, 0x06, 0x54, 0x5f, 0x45, 0x43, 0x48, 0x4f, 0x10, 0x07, 0x12, 0x10, 0x0a,
+ 0x0c, 0x54, 0x4c, 0x4f, 0x52, 0x41, 0x5f, 0x56, 0x31, 0x5f, 0x31, 0x50, 0x33, 0x10, 0x08, 0x12,
+ 0x0b, 0x0a, 0x07, 0x52, 0x41, 0x4b, 0x34, 0x36, 0x33, 0x31, 0x10, 0x09, 0x12, 0x0f, 0x0a, 0x0b,
+ 0x48, 0x45, 0x4c, 0x54, 0x45, 0x43, 0x5f, 0x56, 0x32, 0x5f, 0x31, 0x10, 0x0a, 0x12, 0x0d, 0x0a,
+ 0x09, 0x48, 0x45, 0x4c, 0x54, 0x45, 0x43, 0x5f, 0x56, 0x31, 0x10, 0x0b, 0x12, 0x18, 0x0a, 0x14,
+ 0x4c, 0x49, 0x4c, 0x59, 0x47, 0x4f, 0x5f, 0x54, 0x42, 0x45, 0x41, 0x4d, 0x5f, 0x53, 0x33, 0x5f,
+ 0x43, 0x4f, 0x52, 0x45, 0x10, 0x0c, 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x41, 0x4b, 0x31, 0x31, 0x32,
+ 0x30, 0x30, 0x10, 0x0d, 0x12, 0x0b, 0x0a, 0x07, 0x4e, 0x41, 0x4e, 0x4f, 0x5f, 0x47, 0x31, 0x10,
+ 0x0e, 0x12, 0x12, 0x0a, 0x0e, 0x54, 0x4c, 0x4f, 0x52, 0x41, 0x5f, 0x56, 0x32, 0x5f, 0x31, 0x5f,
+ 0x31, 0x50, 0x38, 0x10, 0x0f, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x4c, 0x4f, 0x52, 0x41, 0x5f, 0x54,
+ 0x33, 0x5f, 0x53, 0x33, 0x10, 0x10, 0x12, 0x14, 0x0a, 0x10, 0x4e, 0x41, 0x4e, 0x4f, 0x5f, 0x47,
+ 0x31, 0x5f, 0x45, 0x58, 0x50, 0x4c, 0x4f, 0x52, 0x45, 0x52, 0x10, 0x11, 0x12, 0x11, 0x0a, 0x0d,
+ 0x4e, 0x41, 0x4e, 0x4f, 0x5f, 0x47, 0x32, 0x5f, 0x55, 0x4c, 0x54, 0x52, 0x41, 0x10, 0x12, 0x12,
+ 0x0d, 0x0a, 0x09, 0x4c, 0x4f, 0x52, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10, 0x13, 0x12, 0x0e,
+ 0x0a, 0x0a, 0x53, 0x54, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x47, 0x31, 0x10, 0x19, 0x12, 0x0c,
+ 0x0a, 0x08, 0x52, 0x41, 0x4b, 0x31, 0x31, 0x33, 0x31, 0x30, 0x10, 0x1a, 0x12, 0x14, 0x0a, 0x10,
+ 0x53, 0x45, 0x4e, 0x53, 0x45, 0x4c, 0x4f, 0x52, 0x41, 0x5f, 0x52, 0x50, 0x32, 0x30, 0x34, 0x30,
+ 0x10, 0x1b, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x45, 0x4e, 0x53, 0x45, 0x4c, 0x4f, 0x52, 0x41, 0x5f,
+ 0x53, 0x33, 0x10, 0x1c, 0x12, 0x0d, 0x0a, 0x09, 0x43, 0x41, 0x4e, 0x41, 0x52, 0x59, 0x4f, 0x4e,
+ 0x45, 0x10, 0x1d, 0x12, 0x0f, 0x0a, 0x0b, 0x52, 0x50, 0x32, 0x30, 0x34, 0x30, 0x5f, 0x4c, 0x4f,
+ 0x52, 0x41, 0x10, 0x1e, 0x12, 0x0e, 0x0a, 0x0a, 0x53, 0x54, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f,
+ 0x47, 0x32, 0x10, 0x1f, 0x12, 0x11, 0x0a, 0x0d, 0x4c, 0x4f, 0x52, 0x41, 0x5f, 0x52, 0x45, 0x4c,
+ 0x41, 0x59, 0x5f, 0x56, 0x31, 0x10, 0x20, 0x12, 0x0e, 0x0a, 0x0a, 0x4e, 0x52, 0x46, 0x35, 0x32,
+ 0x38, 0x34, 0x30, 0x44, 0x4b, 0x10, 0x21, 0x12, 0x07, 0x0a, 0x03, 0x50, 0x50, 0x52, 0x10, 0x22,
+ 0x12, 0x0f, 0x0a, 0x0b, 0x47, 0x45, 0x4e, 0x49, 0x45, 0x42, 0x4c, 0x4f, 0x43, 0x4b, 0x53, 0x10,
+ 0x23, 0x12, 0x11, 0x0a, 0x0d, 0x4e, 0x52, 0x46, 0x35, 0x32, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f,
+ 0x57, 0x4e, 0x10, 0x24, 0x12, 0x0d, 0x0a, 0x09, 0x50, 0x4f, 0x52, 0x54, 0x44, 0x55, 0x49, 0x4e,
+ 0x4f, 0x10, 0x25, 0x12, 0x0f, 0x0a, 0x0b, 0x41, 0x4e, 0x44, 0x52, 0x4f, 0x49, 0x44, 0x5f, 0x53,
+ 0x49, 0x4d, 0x10, 0x26, 0x12, 0x0a, 0x0a, 0x06, 0x44, 0x49, 0x59, 0x5f, 0x56, 0x31, 0x10, 0x27,
+ 0x12, 0x15, 0x0a, 0x11, 0x4e, 0x52, 0x46, 0x35, 0x32, 0x38, 0x34, 0x30, 0x5f, 0x50, 0x43, 0x41,
+ 0x31, 0x30, 0x30, 0x35, 0x39, 0x10, 0x28, 0x12, 0x0a, 0x0a, 0x06, 0x44, 0x52, 0x5f, 0x44, 0x45,
+ 0x56, 0x10, 0x29, 0x12, 0x0b, 0x0a, 0x07, 0x4d, 0x35, 0x53, 0x54, 0x41, 0x43, 0x4b, 0x10, 0x2a,
+ 0x12, 0x0d, 0x0a, 0x09, 0x48, 0x45, 0x4c, 0x54, 0x45, 0x43, 0x5f, 0x56, 0x33, 0x10, 0x2b, 0x12,
+ 0x11, 0x0a, 0x0d, 0x48, 0x45, 0x4c, 0x54, 0x45, 0x43, 0x5f, 0x57, 0x53, 0x4c, 0x5f, 0x56, 0x33,
+ 0x10, 0x2c, 0x12, 0x13, 0x0a, 0x0f, 0x42, 0x45, 0x54, 0x41, 0x46, 0x50, 0x56, 0x5f, 0x32, 0x34,
+ 0x30, 0x30, 0x5f, 0x54, 0x58, 0x10, 0x2d, 0x12, 0x17, 0x0a, 0x13, 0x42, 0x45, 0x54, 0x41, 0x46,
+ 0x50, 0x56, 0x5f, 0x39, 0x30, 0x30, 0x5f, 0x4e, 0x41, 0x4e, 0x4f, 0x5f, 0x54, 0x58, 0x10, 0x2e,
+ 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x50, 0x49, 0x5f, 0x50, 0x49, 0x43, 0x4f, 0x10, 0x2f, 0x12, 0x1b,
+ 0x0a, 0x17, 0x48, 0x45, 0x4c, 0x54, 0x45, 0x43, 0x5f, 0x57, 0x49, 0x52, 0x45, 0x4c, 0x45, 0x53,
+ 0x53, 0x5f, 0x54, 0x52, 0x41, 0x43, 0x4b, 0x45, 0x52, 0x10, 0x30, 0x12, 0x19, 0x0a, 0x15, 0x48,
+ 0x45, 0x4c, 0x54, 0x45, 0x43, 0x5f, 0x57, 0x49, 0x52, 0x45, 0x4c, 0x45, 0x53, 0x53, 0x5f, 0x50,
+ 0x41, 0x50, 0x45, 0x52, 0x10, 0x31, 0x12, 0x0a, 0x0a, 0x06, 0x54, 0x5f, 0x44, 0x45, 0x43, 0x4b,
+ 0x10, 0x32, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x5f, 0x57, 0x41, 0x54, 0x43, 0x48, 0x5f, 0x53, 0x33,
+ 0x10, 0x33, 0x12, 0x11, 0x0a, 0x0d, 0x50, 0x49, 0x43, 0x4f, 0x4d, 0x50, 0x55, 0x54, 0x45, 0x52,
+ 0x5f, 0x53, 0x33, 0x10, 0x34, 0x12, 0x0f, 0x0a, 0x0b, 0x48, 0x45, 0x4c, 0x54, 0x45, 0x43, 0x5f,
+ 0x48, 0x54, 0x36, 0x32, 0x10, 0x35, 0x12, 0x12, 0x0a, 0x0e, 0x45, 0x42, 0x59, 0x54, 0x45, 0x5f,
+ 0x45, 0x53, 0x50, 0x33, 0x32, 0x5f, 0x53, 0x33, 0x10, 0x36, 0x12, 0x11, 0x0a, 0x0d, 0x45, 0x53,
+ 0x50, 0x33, 0x32, 0x5f, 0x53, 0x33, 0x5f, 0x50, 0x49, 0x43, 0x4f, 0x10, 0x37, 0x12, 0x0d, 0x0a,
+ 0x09, 0x43, 0x48, 0x41, 0x54, 0x54, 0x45, 0x52, 0x5f, 0x32, 0x10, 0x38, 0x12, 0x1e, 0x0a, 0x1a,
+ 0x48, 0x45, 0x4c, 0x54, 0x45, 0x43, 0x5f, 0x57, 0x49, 0x52, 0x45, 0x4c, 0x45, 0x53, 0x53, 0x5f,
+ 0x50, 0x41, 0x50, 0x45, 0x52, 0x5f, 0x56, 0x31, 0x5f, 0x30, 0x10, 0x39, 0x12, 0x20, 0x0a, 0x1c,
+ 0x48, 0x45, 0x4c, 0x54, 0x45, 0x43, 0x5f, 0x57, 0x49, 0x52, 0x45, 0x4c, 0x45, 0x53, 0x53, 0x5f,
+ 0x54, 0x52, 0x41, 0x43, 0x4b, 0x45, 0x52, 0x5f, 0x56, 0x31, 0x5f, 0x30, 0x10, 0x3a, 0x12, 0x0f,
+ 0x0a, 0x0a, 0x50, 0x52, 0x49, 0x56, 0x41, 0x54, 0x45, 0x5f, 0x48, 0x57, 0x10, 0xff, 0x01, 0x2a,
+ 0x2c, 0x0a, 0x09, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x73, 0x12, 0x08, 0x0a, 0x04,
+ 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x10, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x50,
+ 0x41, 0x59, 0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x4c, 0x45, 0x4e, 0x10, 0xed, 0x01, 0x2a, 0xee, 0x01,
+ 0x0a, 0x11, 0x43, 0x72, 0x69, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x43,
+ 0x6f, 0x64, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x0f, 0x0a,
+ 0x0b, 0x54, 0x58, 0x5f, 0x57, 0x41, 0x54, 0x43, 0x48, 0x44, 0x4f, 0x47, 0x10, 0x01, 0x12, 0x14,
+ 0x0a, 0x10, 0x53, 0x4c, 0x45, 0x45, 0x50, 0x5f, 0x45, 0x4e, 0x54, 0x45, 0x52, 0x5f, 0x57, 0x41,
+ 0x49, 0x54, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x4e, 0x4f, 0x5f, 0x52, 0x41, 0x44, 0x49, 0x4f,
+ 0x10, 0x03, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,
+ 0x44, 0x10, 0x04, 0x12, 0x15, 0x0a, 0x11, 0x55, 0x42, 0x4c, 0x4f, 0x58, 0x5f, 0x55, 0x4e, 0x49,
+ 0x54, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x05, 0x12, 0x0d, 0x0a, 0x09, 0x4e, 0x4f,
+ 0x5f, 0x41, 0x58, 0x50, 0x31, 0x39, 0x32, 0x10, 0x06, 0x12, 0x19, 0x0a, 0x15, 0x49, 0x4e, 0x56,
+ 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x52, 0x41, 0x44, 0x49, 0x4f, 0x5f, 0x53, 0x45, 0x54, 0x54, 0x49,
+ 0x4e, 0x47, 0x10, 0x07, 0x12, 0x13, 0x0a, 0x0f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x4d, 0x49, 0x54,
+ 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x08, 0x12, 0x0c, 0x0a, 0x08, 0x42, 0x52, 0x4f,
+ 0x57, 0x4e, 0x4f, 0x55, 0x54, 0x10, 0x09, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x58, 0x31, 0x32, 0x36,
+ 0x32, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x0a, 0x12, 0x11, 0x0a, 0x0d, 0x52,
+ 0x41, 0x44, 0x49, 0x4f, 0x5f, 0x53, 0x50, 0x49, 0x5f, 0x42, 0x55, 0x47, 0x10, 0x0b, 0x42, 0x5f,
+ 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x65, 0x65, 0x6b, 0x73, 0x76, 0x69, 0x6c, 0x6c, 0x65,
+ 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x42, 0x0a, 0x4d, 0x65, 0x73, 0x68, 0x50, 0x72, 0x6f, 0x74, 0x6f,
+ 0x73, 0x5a, 0x22, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x65,
+ 0x73, 0x68, 0x74, 0x61, 0x73, 0x74, 0x69, 0x63, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x65,
+ 0x72, 0x61, 0x74, 0x65, 0x64, 0xaa, 0x02, 0x14, 0x4d, 0x65, 0x73, 0x68, 0x74, 0x61, 0x73, 0x74,
+ 0x69, 0x63, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x73, 0xba, 0x02, 0x00, 0x62,
+ 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
diff --git a/meshtastic/mesh_vtproto.pb.go b/meshtastic/mesh_vtproto.pb.go
index 82c920f..50c1e43 100644
--- a/meshtastic/mesh_vtproto.pb.go
+++ b/meshtastic/mesh_vtproto.pb.go
@@ -8,11 +8,9 @@ import (
binary "encoding/binary"
fmt "fmt"
protohelpers "github.com/planetscale/vtprotobuf/protohelpers"
- proto "google.golang.org/protobuf/proto"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
math "math"
- unsafe "unsafe"
)
const (
@@ -22,1895 +20,6 @@ const (
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
-func (m *Position) CloneVT() *Position {
- if m == nil {
- return (*Position)(nil)
- }
- r := new(Position)
- r.LatitudeI = m.LatitudeI
- r.LongitudeI = m.LongitudeI
- r.Altitude = m.Altitude
- r.Time = m.Time
- r.LocationSource = m.LocationSource
- r.AltitudeSource = m.AltitudeSource
- r.Timestamp = m.Timestamp
- r.TimestampMillisAdjust = m.TimestampMillisAdjust
- r.AltitudeHae = m.AltitudeHae
- r.AltitudeGeoidalSeparation = m.AltitudeGeoidalSeparation
- r.PDOP = m.PDOP
- r.HDOP = m.HDOP
- r.VDOP = m.VDOP
- r.GpsAccuracy = m.GpsAccuracy
- r.GroundSpeed = m.GroundSpeed
- r.GroundTrack = m.GroundTrack
- r.FixQuality = m.FixQuality
- r.FixType = m.FixType
- r.SatsInView = m.SatsInView
- r.SensorId = m.SensorId
- r.NextUpdate = m.NextUpdate
- r.SeqNumber = m.SeqNumber
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *Position) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *User) CloneVT() *User {
- if m == nil {
- return (*User)(nil)
- }
- r := new(User)
- r.Id = m.Id
- r.LongName = m.LongName
- r.ShortName = m.ShortName
- r.HwModel = m.HwModel
- r.IsLicensed = m.IsLicensed
- r.Role = m.Role
- if rhs := m.Macaddr; rhs != nil {
- tmpBytes := make([]byte, len(rhs))
- copy(tmpBytes, rhs)
- r.Macaddr = tmpBytes
- }
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *User) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *RouteDiscovery) CloneVT() *RouteDiscovery {
- if m == nil {
- return (*RouteDiscovery)(nil)
- }
- r := new(RouteDiscovery)
- if rhs := m.Route; rhs != nil {
- tmpContainer := make([]uint32, len(rhs))
- copy(tmpContainer, rhs)
- r.Route = tmpContainer
- }
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *RouteDiscovery) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *Routing) CloneVT() *Routing {
- if m == nil {
- return (*Routing)(nil)
- }
- r := new(Routing)
- if m.Variant != nil {
- r.Variant = m.Variant.(interface{ CloneVT() isRouting_Variant }).CloneVT()
- }
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *Routing) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *Routing_RouteRequest) CloneVT() isRouting_Variant {
- if m == nil {
- return (*Routing_RouteRequest)(nil)
- }
- r := new(Routing_RouteRequest)
- r.RouteRequest = m.RouteRequest.CloneVT()
- return r
-}
-
-func (m *Routing_RouteReply) CloneVT() isRouting_Variant {
- if m == nil {
- return (*Routing_RouteReply)(nil)
- }
- r := new(Routing_RouteReply)
- r.RouteReply = m.RouteReply.CloneVT()
- return r
-}
-
-func (m *Routing_ErrorReason) CloneVT() isRouting_Variant {
- if m == nil {
- return (*Routing_ErrorReason)(nil)
- }
- r := new(Routing_ErrorReason)
- r.ErrorReason = m.ErrorReason
- return r
-}
-
-func (m *Data) CloneVT() *Data {
- if m == nil {
- return (*Data)(nil)
- }
- r := new(Data)
- r.Portnum = m.Portnum
- r.WantResponse = m.WantResponse
- r.Dest = m.Dest
- r.Source = m.Source
- r.RequestId = m.RequestId
- r.ReplyId = m.ReplyId
- r.Emoji = m.Emoji
- if rhs := m.Payload; rhs != nil {
- tmpBytes := make([]byte, len(rhs))
- copy(tmpBytes, rhs)
- r.Payload = tmpBytes
- }
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *Data) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *Waypoint) CloneVT() *Waypoint {
- if m == nil {
- return (*Waypoint)(nil)
- }
- r := new(Waypoint)
- r.Id = m.Id
- r.LatitudeI = m.LatitudeI
- r.LongitudeI = m.LongitudeI
- r.Expire = m.Expire
- r.LockedTo = m.LockedTo
- r.Name = m.Name
- r.Description = m.Description
- r.Icon = m.Icon
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *Waypoint) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *MqttClientProxyMessage) CloneVT() *MqttClientProxyMessage {
- if m == nil {
- return (*MqttClientProxyMessage)(nil)
- }
- r := new(MqttClientProxyMessage)
- r.Topic = m.Topic
- r.Retained = m.Retained
- if m.PayloadVariant != nil {
- r.PayloadVariant = m.PayloadVariant.(interface {
- CloneVT() isMqttClientProxyMessage_PayloadVariant
- }).CloneVT()
- }
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *MqttClientProxyMessage) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *MqttClientProxyMessage_Data) CloneVT() isMqttClientProxyMessage_PayloadVariant {
- if m == nil {
- return (*MqttClientProxyMessage_Data)(nil)
- }
- r := new(MqttClientProxyMessage_Data)
- if rhs := m.Data; rhs != nil {
- tmpBytes := make([]byte, len(rhs))
- copy(tmpBytes, rhs)
- r.Data = tmpBytes
- }
- return r
-}
-
-func (m *MqttClientProxyMessage_Text) CloneVT() isMqttClientProxyMessage_PayloadVariant {
- if m == nil {
- return (*MqttClientProxyMessage_Text)(nil)
- }
- r := new(MqttClientProxyMessage_Text)
- r.Text = m.Text
- return r
-}
-
-func (m *MeshPacket) CloneVT() *MeshPacket {
- if m == nil {
- return (*MeshPacket)(nil)
- }
- r := new(MeshPacket)
- r.From = m.From
- r.To = m.To
- r.Channel = m.Channel
- r.Id = m.Id
- r.RxTime = m.RxTime
- r.RxSnr = m.RxSnr
- r.HopLimit = m.HopLimit
- r.WantAck = m.WantAck
- r.Priority = m.Priority
- r.RxRssi = m.RxRssi
- r.Delayed = m.Delayed
- r.ViaMqtt = m.ViaMqtt
- if m.PayloadVariant != nil {
- r.PayloadVariant = m.PayloadVariant.(interface {
- CloneVT() isMeshPacket_PayloadVariant
- }).CloneVT()
- }
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *MeshPacket) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *MeshPacket_Decoded) CloneVT() isMeshPacket_PayloadVariant {
- if m == nil {
- return (*MeshPacket_Decoded)(nil)
- }
- r := new(MeshPacket_Decoded)
- r.Decoded = m.Decoded.CloneVT()
- return r
-}
-
-func (m *MeshPacket_Encrypted) CloneVT() isMeshPacket_PayloadVariant {
- if m == nil {
- return (*MeshPacket_Encrypted)(nil)
- }
- r := new(MeshPacket_Encrypted)
- if rhs := m.Encrypted; rhs != nil {
- tmpBytes := make([]byte, len(rhs))
- copy(tmpBytes, rhs)
- r.Encrypted = tmpBytes
- }
- return r
-}
-
-func (m *NodeInfo) CloneVT() *NodeInfo {
- if m == nil {
- return (*NodeInfo)(nil)
- }
- r := new(NodeInfo)
- r.Num = m.Num
- r.User = m.User.CloneVT()
- r.Position = m.Position.CloneVT()
- r.Snr = m.Snr
- r.LastHeard = m.LastHeard
- r.DeviceMetrics = m.DeviceMetrics.CloneVT()
- r.Channel = m.Channel
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *NodeInfo) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *MyNodeInfo) CloneVT() *MyNodeInfo {
- if m == nil {
- return (*MyNodeInfo)(nil)
- }
- r := new(MyNodeInfo)
- r.MyNodeNum = m.MyNodeNum
- r.RebootCount = m.RebootCount
- r.MinAppVersion = m.MinAppVersion
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *MyNodeInfo) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *LogRecord) CloneVT() *LogRecord {
- if m == nil {
- return (*LogRecord)(nil)
- }
- r := new(LogRecord)
- r.Message = m.Message
- r.Time = m.Time
- r.Source = m.Source
- r.Level = m.Level
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *LogRecord) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *QueueStatus) CloneVT() *QueueStatus {
- if m == nil {
- return (*QueueStatus)(nil)
- }
- r := new(QueueStatus)
- r.Res = m.Res
- r.Free = m.Free
- r.Maxlen = m.Maxlen
- r.MeshPacketId = m.MeshPacketId
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *QueueStatus) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *FromRadio) CloneVT() *FromRadio {
- if m == nil {
- return (*FromRadio)(nil)
- }
- r := new(FromRadio)
- r.Id = m.Id
- if m.PayloadVariant != nil {
- r.PayloadVariant = m.PayloadVariant.(interface {
- CloneVT() isFromRadio_PayloadVariant
- }).CloneVT()
- }
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *FromRadio) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *FromRadio_Packet) CloneVT() isFromRadio_PayloadVariant {
- if m == nil {
- return (*FromRadio_Packet)(nil)
- }
- r := new(FromRadio_Packet)
- r.Packet = m.Packet.CloneVT()
- return r
-}
-
-func (m *FromRadio_MyInfo) CloneVT() isFromRadio_PayloadVariant {
- if m == nil {
- return (*FromRadio_MyInfo)(nil)
- }
- r := new(FromRadio_MyInfo)
- r.MyInfo = m.MyInfo.CloneVT()
- return r
-}
-
-func (m *FromRadio_NodeInfo) CloneVT() isFromRadio_PayloadVariant {
- if m == nil {
- return (*FromRadio_NodeInfo)(nil)
- }
- r := new(FromRadio_NodeInfo)
- r.NodeInfo = m.NodeInfo.CloneVT()
- return r
-}
-
-func (m *FromRadio_Config) CloneVT() isFromRadio_PayloadVariant {
- if m == nil {
- return (*FromRadio_Config)(nil)
- }
- r := new(FromRadio_Config)
- r.Config = m.Config.CloneVT()
- return r
-}
-
-func (m *FromRadio_LogRecord) CloneVT() isFromRadio_PayloadVariant {
- if m == nil {
- return (*FromRadio_LogRecord)(nil)
- }
- r := new(FromRadio_LogRecord)
- r.LogRecord = m.LogRecord.CloneVT()
- return r
-}
-
-func (m *FromRadio_ConfigCompleteId) CloneVT() isFromRadio_PayloadVariant {
- if m == nil {
- return (*FromRadio_ConfigCompleteId)(nil)
- }
- r := new(FromRadio_ConfigCompleteId)
- r.ConfigCompleteId = m.ConfigCompleteId
- return r
-}
-
-func (m *FromRadio_Rebooted) CloneVT() isFromRadio_PayloadVariant {
- if m == nil {
- return (*FromRadio_Rebooted)(nil)
- }
- r := new(FromRadio_Rebooted)
- r.Rebooted = m.Rebooted
- return r
-}
-
-func (m *FromRadio_ModuleConfig) CloneVT() isFromRadio_PayloadVariant {
- if m == nil {
- return (*FromRadio_ModuleConfig)(nil)
- }
- r := new(FromRadio_ModuleConfig)
- r.ModuleConfig = m.ModuleConfig.CloneVT()
- return r
-}
-
-func (m *FromRadio_Channel) CloneVT() isFromRadio_PayloadVariant {
- if m == nil {
- return (*FromRadio_Channel)(nil)
- }
- r := new(FromRadio_Channel)
- r.Channel = m.Channel.CloneVT()
- return r
-}
-
-func (m *FromRadio_QueueStatus) CloneVT() isFromRadio_PayloadVariant {
- if m == nil {
- return (*FromRadio_QueueStatus)(nil)
- }
- r := new(FromRadio_QueueStatus)
- r.QueueStatus = m.QueueStatus.CloneVT()
- return r
-}
-
-func (m *FromRadio_XmodemPacket) CloneVT() isFromRadio_PayloadVariant {
- if m == nil {
- return (*FromRadio_XmodemPacket)(nil)
- }
- r := new(FromRadio_XmodemPacket)
- r.XmodemPacket = m.XmodemPacket.CloneVT()
- return r
-}
-
-func (m *FromRadio_Metadata) CloneVT() isFromRadio_PayloadVariant {
- if m == nil {
- return (*FromRadio_Metadata)(nil)
- }
- r := new(FromRadio_Metadata)
- r.Metadata = m.Metadata.CloneVT()
- return r
-}
-
-func (m *FromRadio_MqttClientProxyMessage) CloneVT() isFromRadio_PayloadVariant {
- if m == nil {
- return (*FromRadio_MqttClientProxyMessage)(nil)
- }
- r := new(FromRadio_MqttClientProxyMessage)
- r.MqttClientProxyMessage = m.MqttClientProxyMessage.CloneVT()
- return r
-}
-
-func (m *ToRadio) CloneVT() *ToRadio {
- if m == nil {
- return (*ToRadio)(nil)
- }
- r := new(ToRadio)
- if m.PayloadVariant != nil {
- r.PayloadVariant = m.PayloadVariant.(interface {
- CloneVT() isToRadio_PayloadVariant
- }).CloneVT()
- }
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *ToRadio) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *ToRadio_Packet) CloneVT() isToRadio_PayloadVariant {
- if m == nil {
- return (*ToRadio_Packet)(nil)
- }
- r := new(ToRadio_Packet)
- r.Packet = m.Packet.CloneVT()
- return r
-}
-
-func (m *ToRadio_WantConfigId) CloneVT() isToRadio_PayloadVariant {
- if m == nil {
- return (*ToRadio_WantConfigId)(nil)
- }
- r := new(ToRadio_WantConfigId)
- r.WantConfigId = m.WantConfigId
- return r
-}
-
-func (m *ToRadio_Disconnect) CloneVT() isToRadio_PayloadVariant {
- if m == nil {
- return (*ToRadio_Disconnect)(nil)
- }
- r := new(ToRadio_Disconnect)
- r.Disconnect = m.Disconnect
- return r
-}
-
-func (m *ToRadio_XmodemPacket) CloneVT() isToRadio_PayloadVariant {
- if m == nil {
- return (*ToRadio_XmodemPacket)(nil)
- }
- r := new(ToRadio_XmodemPacket)
- r.XmodemPacket = m.XmodemPacket.CloneVT()
- return r
-}
-
-func (m *ToRadio_MqttClientProxyMessage) CloneVT() isToRadio_PayloadVariant {
- if m == nil {
- return (*ToRadio_MqttClientProxyMessage)(nil)
- }
- r := new(ToRadio_MqttClientProxyMessage)
- r.MqttClientProxyMessage = m.MqttClientProxyMessage.CloneVT()
- return r
-}
-
-func (m *Compressed) CloneVT() *Compressed {
- if m == nil {
- return (*Compressed)(nil)
- }
- r := new(Compressed)
- r.Portnum = m.Portnum
- if rhs := m.Data; rhs != nil {
- tmpBytes := make([]byte, len(rhs))
- copy(tmpBytes, rhs)
- r.Data = tmpBytes
- }
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *Compressed) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *NeighborInfo) CloneVT() *NeighborInfo {
- if m == nil {
- return (*NeighborInfo)(nil)
- }
- r := new(NeighborInfo)
- r.NodeId = m.NodeId
- r.LastSentById = m.LastSentById
- r.NodeBroadcastIntervalSecs = m.NodeBroadcastIntervalSecs
- if rhs := m.Neighbors; rhs != nil {
- tmpContainer := make([]*Neighbor, len(rhs))
- for k, v := range rhs {
- tmpContainer[k] = v.CloneVT()
- }
- r.Neighbors = tmpContainer
- }
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *NeighborInfo) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *Neighbor) CloneVT() *Neighbor {
- if m == nil {
- return (*Neighbor)(nil)
- }
- r := new(Neighbor)
- r.NodeId = m.NodeId
- r.Snr = m.Snr
- r.LastRxTime = m.LastRxTime
- r.NodeBroadcastIntervalSecs = m.NodeBroadcastIntervalSecs
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *Neighbor) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *DeviceMetadata) CloneVT() *DeviceMetadata {
- if m == nil {
- return (*DeviceMetadata)(nil)
- }
- r := new(DeviceMetadata)
- r.FirmwareVersion = m.FirmwareVersion
- r.DeviceStateVersion = m.DeviceStateVersion
- r.CanShutdown = m.CanShutdown
- r.HasWifi = m.HasWifi
- r.HasBluetooth = m.HasBluetooth
- r.HasEthernet = m.HasEthernet
- r.Role = m.Role
- r.PositionFlags = m.PositionFlags
- r.HwModel = m.HwModel
- r.HasRemoteHardware = m.HasRemoteHardware
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *DeviceMetadata) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (this *Position) EqualVT(that *Position) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.LatitudeI != that.LatitudeI {
- return false
- }
- if this.LongitudeI != that.LongitudeI {
- return false
- }
- if this.Altitude != that.Altitude {
- return false
- }
- if this.Time != that.Time {
- return false
- }
- if this.LocationSource != that.LocationSource {
- return false
- }
- if this.AltitudeSource != that.AltitudeSource {
- return false
- }
- if this.Timestamp != that.Timestamp {
- return false
- }
- if this.TimestampMillisAdjust != that.TimestampMillisAdjust {
- return false
- }
- if this.AltitudeHae != that.AltitudeHae {
- return false
- }
- if this.AltitudeGeoidalSeparation != that.AltitudeGeoidalSeparation {
- return false
- }
- if this.PDOP != that.PDOP {
- return false
- }
- if this.HDOP != that.HDOP {
- return false
- }
- if this.VDOP != that.VDOP {
- return false
- }
- if this.GpsAccuracy != that.GpsAccuracy {
- return false
- }
- if this.GroundSpeed != that.GroundSpeed {
- return false
- }
- if this.GroundTrack != that.GroundTrack {
- return false
- }
- if this.FixQuality != that.FixQuality {
- return false
- }
- if this.FixType != that.FixType {
- return false
- }
- if this.SatsInView != that.SatsInView {
- return false
- }
- if this.SensorId != that.SensorId {
- return false
- }
- if this.NextUpdate != that.NextUpdate {
- return false
- }
- if this.SeqNumber != that.SeqNumber {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *Position) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*Position)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *User) EqualVT(that *User) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.Id != that.Id {
- return false
- }
- if this.LongName != that.LongName {
- return false
- }
- if this.ShortName != that.ShortName {
- return false
- }
- if string(this.Macaddr) != string(that.Macaddr) {
- return false
- }
- if this.HwModel != that.HwModel {
- return false
- }
- if this.IsLicensed != that.IsLicensed {
- return false
- }
- if this.Role != that.Role {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *User) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*User)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *RouteDiscovery) EqualVT(that *RouteDiscovery) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if len(this.Route) != len(that.Route) {
- return false
- }
- for i, vx := range this.Route {
- vy := that.Route[i]
- if vx != vy {
- return false
- }
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *RouteDiscovery) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*RouteDiscovery)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *Routing) EqualVT(that *Routing) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.Variant == nil && that.Variant != nil {
- return false
- } else if this.Variant != nil {
- if that.Variant == nil {
- return false
- }
- if !this.Variant.(interface{ EqualVT(isRouting_Variant) bool }).EqualVT(that.Variant) {
- return false
- }
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *Routing) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*Routing)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *Routing_RouteRequest) EqualVT(thatIface isRouting_Variant) bool {
- that, ok := thatIface.(*Routing_RouteRequest)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.RouteRequest, that.RouteRequest; p != q {
- if p == nil {
- p = &RouteDiscovery{}
- }
- if q == nil {
- q = &RouteDiscovery{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *Routing_RouteReply) EqualVT(thatIface isRouting_Variant) bool {
- that, ok := thatIface.(*Routing_RouteReply)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.RouteReply, that.RouteReply; p != q {
- if p == nil {
- p = &RouteDiscovery{}
- }
- if q == nil {
- q = &RouteDiscovery{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *Routing_ErrorReason) EqualVT(thatIface isRouting_Variant) bool {
- that, ok := thatIface.(*Routing_ErrorReason)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if this.ErrorReason != that.ErrorReason {
- return false
- }
- return true
-}
-
-func (this *Data) EqualVT(that *Data) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.Portnum != that.Portnum {
- return false
- }
- if string(this.Payload) != string(that.Payload) {
- return false
- }
- if this.WantResponse != that.WantResponse {
- return false
- }
- if this.Dest != that.Dest {
- return false
- }
- if this.Source != that.Source {
- return false
- }
- if this.RequestId != that.RequestId {
- return false
- }
- if this.ReplyId != that.ReplyId {
- return false
- }
- if this.Emoji != that.Emoji {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *Data) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*Data)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *Waypoint) EqualVT(that *Waypoint) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.Id != that.Id {
- return false
- }
- if this.LatitudeI != that.LatitudeI {
- return false
- }
- if this.LongitudeI != that.LongitudeI {
- return false
- }
- if this.Expire != that.Expire {
- return false
- }
- if this.LockedTo != that.LockedTo {
- return false
- }
- if this.Name != that.Name {
- return false
- }
- if this.Description != that.Description {
- return false
- }
- if this.Icon != that.Icon {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *Waypoint) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*Waypoint)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *MqttClientProxyMessage) EqualVT(that *MqttClientProxyMessage) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.PayloadVariant == nil && that.PayloadVariant != nil {
- return false
- } else if this.PayloadVariant != nil {
- if that.PayloadVariant == nil {
- return false
- }
- if !this.PayloadVariant.(interface {
- EqualVT(isMqttClientProxyMessage_PayloadVariant) bool
- }).EqualVT(that.PayloadVariant) {
- return false
- }
- }
- if this.Topic != that.Topic {
- return false
- }
- if this.Retained != that.Retained {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *MqttClientProxyMessage) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*MqttClientProxyMessage)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *MqttClientProxyMessage_Data) EqualVT(thatIface isMqttClientProxyMessage_PayloadVariant) bool {
- that, ok := thatIface.(*MqttClientProxyMessage_Data)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if string(this.Data) != string(that.Data) {
- return false
- }
- return true
-}
-
-func (this *MqttClientProxyMessage_Text) EqualVT(thatIface isMqttClientProxyMessage_PayloadVariant) bool {
- that, ok := thatIface.(*MqttClientProxyMessage_Text)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if this.Text != that.Text {
- return false
- }
- return true
-}
-
-func (this *MeshPacket) EqualVT(that *MeshPacket) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.PayloadVariant == nil && that.PayloadVariant != nil {
- return false
- } else if this.PayloadVariant != nil {
- if that.PayloadVariant == nil {
- return false
- }
- if !this.PayloadVariant.(interface {
- EqualVT(isMeshPacket_PayloadVariant) bool
- }).EqualVT(that.PayloadVariant) {
- return false
- }
- }
- if this.From != that.From {
- return false
- }
- if this.To != that.To {
- return false
- }
- if this.Channel != that.Channel {
- return false
- }
- if this.Id != that.Id {
- return false
- }
- if this.RxTime != that.RxTime {
- return false
- }
- if this.RxSnr != that.RxSnr {
- return false
- }
- if this.HopLimit != that.HopLimit {
- return false
- }
- if this.WantAck != that.WantAck {
- return false
- }
- if this.Priority != that.Priority {
- return false
- }
- if this.RxRssi != that.RxRssi {
- return false
- }
- if this.Delayed != that.Delayed {
- return false
- }
- if this.ViaMqtt != that.ViaMqtt {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *MeshPacket) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*MeshPacket)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *MeshPacket_Decoded) EqualVT(thatIface isMeshPacket_PayloadVariant) bool {
- that, ok := thatIface.(*MeshPacket_Decoded)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.Decoded, that.Decoded; p != q {
- if p == nil {
- p = &Data{}
- }
- if q == nil {
- q = &Data{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *MeshPacket_Encrypted) EqualVT(thatIface isMeshPacket_PayloadVariant) bool {
- that, ok := thatIface.(*MeshPacket_Encrypted)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if string(this.Encrypted) != string(that.Encrypted) {
- return false
- }
- return true
-}
-
-func (this *NodeInfo) EqualVT(that *NodeInfo) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.Num != that.Num {
- return false
- }
- if !this.User.EqualVT(that.User) {
- return false
- }
- if !this.Position.EqualVT(that.Position) {
- return false
- }
- if this.Snr != that.Snr {
- return false
- }
- if this.LastHeard != that.LastHeard {
- return false
- }
- if !this.DeviceMetrics.EqualVT(that.DeviceMetrics) {
- return false
- }
- if this.Channel != that.Channel {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *NodeInfo) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*NodeInfo)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *MyNodeInfo) EqualVT(that *MyNodeInfo) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.MyNodeNum != that.MyNodeNum {
- return false
- }
- if this.RebootCount != that.RebootCount {
- return false
- }
- if this.MinAppVersion != that.MinAppVersion {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *MyNodeInfo) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*MyNodeInfo)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *LogRecord) EqualVT(that *LogRecord) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.Message != that.Message {
- return false
- }
- if this.Time != that.Time {
- return false
- }
- if this.Source != that.Source {
- return false
- }
- if this.Level != that.Level {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *LogRecord) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*LogRecord)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *QueueStatus) EqualVT(that *QueueStatus) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.Res != that.Res {
- return false
- }
- if this.Free != that.Free {
- return false
- }
- if this.Maxlen != that.Maxlen {
- return false
- }
- if this.MeshPacketId != that.MeshPacketId {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *QueueStatus) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*QueueStatus)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *FromRadio) EqualVT(that *FromRadio) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.PayloadVariant == nil && that.PayloadVariant != nil {
- return false
- } else if this.PayloadVariant != nil {
- if that.PayloadVariant == nil {
- return false
- }
- if !this.PayloadVariant.(interface {
- EqualVT(isFromRadio_PayloadVariant) bool
- }).EqualVT(that.PayloadVariant) {
- return false
- }
- }
- if this.Id != that.Id {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *FromRadio) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*FromRadio)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *FromRadio_Packet) EqualVT(thatIface isFromRadio_PayloadVariant) bool {
- that, ok := thatIface.(*FromRadio_Packet)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.Packet, that.Packet; p != q {
- if p == nil {
- p = &MeshPacket{}
- }
- if q == nil {
- q = &MeshPacket{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *FromRadio_MyInfo) EqualVT(thatIface isFromRadio_PayloadVariant) bool {
- that, ok := thatIface.(*FromRadio_MyInfo)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.MyInfo, that.MyInfo; p != q {
- if p == nil {
- p = &MyNodeInfo{}
- }
- if q == nil {
- q = &MyNodeInfo{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *FromRadio_NodeInfo) EqualVT(thatIface isFromRadio_PayloadVariant) bool {
- that, ok := thatIface.(*FromRadio_NodeInfo)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.NodeInfo, that.NodeInfo; p != q {
- if p == nil {
- p = &NodeInfo{}
- }
- if q == nil {
- q = &NodeInfo{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *FromRadio_Config) EqualVT(thatIface isFromRadio_PayloadVariant) bool {
- that, ok := thatIface.(*FromRadio_Config)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.Config, that.Config; p != q {
- if p == nil {
- p = &Config{}
- }
- if q == nil {
- q = &Config{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *FromRadio_LogRecord) EqualVT(thatIface isFromRadio_PayloadVariant) bool {
- that, ok := thatIface.(*FromRadio_LogRecord)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.LogRecord, that.LogRecord; p != q {
- if p == nil {
- p = &LogRecord{}
- }
- if q == nil {
- q = &LogRecord{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *FromRadio_ConfigCompleteId) EqualVT(thatIface isFromRadio_PayloadVariant) bool {
- that, ok := thatIface.(*FromRadio_ConfigCompleteId)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if this.ConfigCompleteId != that.ConfigCompleteId {
- return false
- }
- return true
-}
-
-func (this *FromRadio_Rebooted) EqualVT(thatIface isFromRadio_PayloadVariant) bool {
- that, ok := thatIface.(*FromRadio_Rebooted)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if this.Rebooted != that.Rebooted {
- return false
- }
- return true
-}
-
-func (this *FromRadio_ModuleConfig) EqualVT(thatIface isFromRadio_PayloadVariant) bool {
- that, ok := thatIface.(*FromRadio_ModuleConfig)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.ModuleConfig, that.ModuleConfig; p != q {
- if p == nil {
- p = &ModuleConfig{}
- }
- if q == nil {
- q = &ModuleConfig{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *FromRadio_Channel) EqualVT(thatIface isFromRadio_PayloadVariant) bool {
- that, ok := thatIface.(*FromRadio_Channel)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.Channel, that.Channel; p != q {
- if p == nil {
- p = &Channel{}
- }
- if q == nil {
- q = &Channel{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *FromRadio_QueueStatus) EqualVT(thatIface isFromRadio_PayloadVariant) bool {
- that, ok := thatIface.(*FromRadio_QueueStatus)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.QueueStatus, that.QueueStatus; p != q {
- if p == nil {
- p = &QueueStatus{}
- }
- if q == nil {
- q = &QueueStatus{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *FromRadio_XmodemPacket) EqualVT(thatIface isFromRadio_PayloadVariant) bool {
- that, ok := thatIface.(*FromRadio_XmodemPacket)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.XmodemPacket, that.XmodemPacket; p != q {
- if p == nil {
- p = &XModem{}
- }
- if q == nil {
- q = &XModem{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *FromRadio_Metadata) EqualVT(thatIface isFromRadio_PayloadVariant) bool {
- that, ok := thatIface.(*FromRadio_Metadata)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.Metadata, that.Metadata; p != q {
- if p == nil {
- p = &DeviceMetadata{}
- }
- if q == nil {
- q = &DeviceMetadata{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *FromRadio_MqttClientProxyMessage) EqualVT(thatIface isFromRadio_PayloadVariant) bool {
- that, ok := thatIface.(*FromRadio_MqttClientProxyMessage)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.MqttClientProxyMessage, that.MqttClientProxyMessage; p != q {
- if p == nil {
- p = &MqttClientProxyMessage{}
- }
- if q == nil {
- q = &MqttClientProxyMessage{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *ToRadio) EqualVT(that *ToRadio) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.PayloadVariant == nil && that.PayloadVariant != nil {
- return false
- } else if this.PayloadVariant != nil {
- if that.PayloadVariant == nil {
- return false
- }
- if !this.PayloadVariant.(interface {
- EqualVT(isToRadio_PayloadVariant) bool
- }).EqualVT(that.PayloadVariant) {
- return false
- }
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *ToRadio) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*ToRadio)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *ToRadio_Packet) EqualVT(thatIface isToRadio_PayloadVariant) bool {
- that, ok := thatIface.(*ToRadio_Packet)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.Packet, that.Packet; p != q {
- if p == nil {
- p = &MeshPacket{}
- }
- if q == nil {
- q = &MeshPacket{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *ToRadio_WantConfigId) EqualVT(thatIface isToRadio_PayloadVariant) bool {
- that, ok := thatIface.(*ToRadio_WantConfigId)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if this.WantConfigId != that.WantConfigId {
- return false
- }
- return true
-}
-
-func (this *ToRadio_Disconnect) EqualVT(thatIface isToRadio_PayloadVariant) bool {
- that, ok := thatIface.(*ToRadio_Disconnect)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if this.Disconnect != that.Disconnect {
- return false
- }
- return true
-}
-
-func (this *ToRadio_XmodemPacket) EqualVT(thatIface isToRadio_PayloadVariant) bool {
- that, ok := thatIface.(*ToRadio_XmodemPacket)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.XmodemPacket, that.XmodemPacket; p != q {
- if p == nil {
- p = &XModem{}
- }
- if q == nil {
- q = &XModem{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *ToRadio_MqttClientProxyMessage) EqualVT(thatIface isToRadio_PayloadVariant) bool {
- that, ok := thatIface.(*ToRadio_MqttClientProxyMessage)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.MqttClientProxyMessage, that.MqttClientProxyMessage; p != q {
- if p == nil {
- p = &MqttClientProxyMessage{}
- }
- if q == nil {
- q = &MqttClientProxyMessage{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *Compressed) EqualVT(that *Compressed) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.Portnum != that.Portnum {
- return false
- }
- if string(this.Data) != string(that.Data) {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *Compressed) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*Compressed)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *NeighborInfo) EqualVT(that *NeighborInfo) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.NodeId != that.NodeId {
- return false
- }
- if this.LastSentById != that.LastSentById {
- return false
- }
- if this.NodeBroadcastIntervalSecs != that.NodeBroadcastIntervalSecs {
- return false
- }
- if len(this.Neighbors) != len(that.Neighbors) {
- return false
- }
- for i, vx := range this.Neighbors {
- vy := that.Neighbors[i]
- if p, q := vx, vy; p != q {
- if p == nil {
- p = &Neighbor{}
- }
- if q == nil {
- q = &Neighbor{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *NeighborInfo) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*NeighborInfo)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *Neighbor) EqualVT(that *Neighbor) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.NodeId != that.NodeId {
- return false
- }
- if this.Snr != that.Snr {
- return false
- }
- if this.LastRxTime != that.LastRxTime {
- return false
- }
- if this.NodeBroadcastIntervalSecs != that.NodeBroadcastIntervalSecs {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *Neighbor) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*Neighbor)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *DeviceMetadata) EqualVT(that *DeviceMetadata) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.FirmwareVersion != that.FirmwareVersion {
- return false
- }
- if this.DeviceStateVersion != that.DeviceStateVersion {
- return false
- }
- if this.CanShutdown != that.CanShutdown {
- return false
- }
- if this.HasWifi != that.HasWifi {
- return false
- }
- if this.HasBluetooth != that.HasBluetooth {
- return false
- }
- if this.HasEthernet != that.HasEthernet {
- return false
- }
- if this.Role != that.Role {
- return false
- }
- if this.PositionFlags != that.PositionFlags {
- return false
- }
- if this.HwModel != that.HwModel {
- return false
- }
- if this.HasRemoteHardware != that.HasRemoteHardware {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *DeviceMetadata) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*DeviceMetadata)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
func (m *Position) MarshalVT() (dAtA []byte, err error) {
if m == nil {
return nil, nil
@@ -1941,6 +50,13 @@ func (m *Position) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
i -= len(m.unknownFields)
copy(dAtA[i:], m.unknownFields)
}
+ if m.PrecisionBits != 0 {
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(m.PrecisionBits))
+ i--
+ dAtA[i] = 0x1
+ i--
+ dAtA[i] = 0xb8
+ }
if m.SeqNumber != 0 {
i = protohelpers.EncodeVarint(dAtA, i, uint64(m.SeqNumber))
i--
@@ -3616,1841 +1732,6 @@ func (m *DeviceMetadata) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
return len(dAtA) - i, nil
}
-func (m *Position) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *Position) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *Position) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.SeqNumber != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.SeqNumber))
- i--
- dAtA[i] = 0x1
- i--
- dAtA[i] = 0xb0
- }
- if m.NextUpdate != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.NextUpdate))
- i--
- dAtA[i] = 0x1
- i--
- dAtA[i] = 0xa8
- }
- if m.SensorId != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.SensorId))
- i--
- dAtA[i] = 0x1
- i--
- dAtA[i] = 0xa0
- }
- if m.SatsInView != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.SatsInView))
- i--
- dAtA[i] = 0x1
- i--
- dAtA[i] = 0x98
- }
- if m.FixType != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.FixType))
- i--
- dAtA[i] = 0x1
- i--
- dAtA[i] = 0x90
- }
- if m.FixQuality != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.FixQuality))
- i--
- dAtA[i] = 0x1
- i--
- dAtA[i] = 0x88
- }
- if m.GroundTrack != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.GroundTrack))
- i--
- dAtA[i] = 0x1
- i--
- dAtA[i] = 0x80
- }
- if m.GroundSpeed != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.GroundSpeed))
- i--
- dAtA[i] = 0x78
- }
- if m.GpsAccuracy != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.GpsAccuracy))
- i--
- dAtA[i] = 0x70
- }
- if m.VDOP != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.VDOP))
- i--
- dAtA[i] = 0x68
- }
- if m.HDOP != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.HDOP))
- i--
- dAtA[i] = 0x60
- }
- if m.PDOP != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.PDOP))
- i--
- dAtA[i] = 0x58
- }
- if m.AltitudeGeoidalSeparation != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64((uint32(m.AltitudeGeoidalSeparation)<<1)^uint32((m.AltitudeGeoidalSeparation>>31))))
- i--
- dAtA[i] = 0x50
- }
- if m.AltitudeHae != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64((uint32(m.AltitudeHae)<<1)^uint32((m.AltitudeHae>>31))))
- i--
- dAtA[i] = 0x48
- }
- if m.TimestampMillisAdjust != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.TimestampMillisAdjust))
- i--
- dAtA[i] = 0x40
- }
- if m.Timestamp != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(m.Timestamp))
- i--
- dAtA[i] = 0x3d
- }
- if m.AltitudeSource != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.AltitudeSource))
- i--
- dAtA[i] = 0x30
- }
- if m.LocationSource != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.LocationSource))
- i--
- dAtA[i] = 0x28
- }
- if m.Time != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(m.Time))
- i--
- dAtA[i] = 0x25
- }
- if m.Altitude != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Altitude))
- i--
- dAtA[i] = 0x18
- }
- if m.LongitudeI != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(m.LongitudeI))
- i--
- dAtA[i] = 0x15
- }
- if m.LatitudeI != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(m.LatitudeI))
- i--
- dAtA[i] = 0xd
- }
- return len(dAtA) - i, nil
-}
-
-func (m *User) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *User) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *User) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.Role != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Role))
- i--
- dAtA[i] = 0x38
- }
- if m.IsLicensed {
- i--
- if m.IsLicensed {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x30
- }
- if m.HwModel != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.HwModel))
- i--
- dAtA[i] = 0x28
- }
- if len(m.Macaddr) > 0 {
- i -= len(m.Macaddr)
- copy(dAtA[i:], m.Macaddr)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Macaddr)))
- i--
- dAtA[i] = 0x22
- }
- if len(m.ShortName) > 0 {
- i -= len(m.ShortName)
- copy(dAtA[i:], m.ShortName)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ShortName)))
- i--
- dAtA[i] = 0x1a
- }
- if len(m.LongName) > 0 {
- i -= len(m.LongName)
- copy(dAtA[i:], m.LongName)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.LongName)))
- i--
- dAtA[i] = 0x12
- }
- if len(m.Id) > 0 {
- i -= len(m.Id)
- copy(dAtA[i:], m.Id)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Id)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
-}
-
-func (m *RouteDiscovery) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *RouteDiscovery) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *RouteDiscovery) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if len(m.Route) > 0 {
- for iNdEx := len(m.Route) - 1; iNdEx >= 0; iNdEx-- {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(m.Route[iNdEx]))
- }
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Route)*4))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
-}
-
-func (m *Routing) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *Routing) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *Routing) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if msg, ok := m.Variant.(*Routing_ErrorReason); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.Variant.(*Routing_RouteReply); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.Variant.(*Routing_RouteRequest); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- return len(dAtA) - i, nil
-}
-
-func (m *Routing_RouteRequest) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *Routing_RouteRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.RouteRequest != nil {
- size, err := m.RouteRequest.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
-}
-func (m *Routing_RouteReply) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *Routing_RouteReply) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.RouteReply != nil {
- size, err := m.RouteReply.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x12
- }
- return len(dAtA) - i, nil
-}
-func (m *Routing_ErrorReason) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *Routing_ErrorReason) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.ErrorReason))
- i--
- dAtA[i] = 0x18
- return len(dAtA) - i, nil
-}
-func (m *Data) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *Data) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *Data) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.Emoji != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(m.Emoji))
- i--
- dAtA[i] = 0x45
- }
- if m.ReplyId != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(m.ReplyId))
- i--
- dAtA[i] = 0x3d
- }
- if m.RequestId != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(m.RequestId))
- i--
- dAtA[i] = 0x35
- }
- if m.Source != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(m.Source))
- i--
- dAtA[i] = 0x2d
- }
- if m.Dest != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(m.Dest))
- i--
- dAtA[i] = 0x25
- }
- if m.WantResponse {
- i--
- if m.WantResponse {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x18
- }
- if len(m.Payload) > 0 {
- i -= len(m.Payload)
- copy(dAtA[i:], m.Payload)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Payload)))
- i--
- dAtA[i] = 0x12
- }
- if m.Portnum != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Portnum))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *Waypoint) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *Waypoint) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *Waypoint) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.Icon != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(m.Icon))
- i--
- dAtA[i] = 0x45
- }
- if len(m.Description) > 0 {
- i -= len(m.Description)
- copy(dAtA[i:], m.Description)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Description)))
- i--
- dAtA[i] = 0x3a
- }
- if len(m.Name) > 0 {
- i -= len(m.Name)
- copy(dAtA[i:], m.Name)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name)))
- i--
- dAtA[i] = 0x32
- }
- if m.LockedTo != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.LockedTo))
- i--
- dAtA[i] = 0x28
- }
- if m.Expire != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Expire))
- i--
- dAtA[i] = 0x20
- }
- if m.LongitudeI != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(m.LongitudeI))
- i--
- dAtA[i] = 0x1d
- }
- if m.LatitudeI != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(m.LatitudeI))
- i--
- dAtA[i] = 0x15
- }
- if m.Id != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Id))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *MqttClientProxyMessage) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *MqttClientProxyMessage) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *MqttClientProxyMessage) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.Retained {
- i--
- if m.Retained {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x20
- }
- if msg, ok := m.PayloadVariant.(*MqttClientProxyMessage_Text); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*MqttClientProxyMessage_Data); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if len(m.Topic) > 0 {
- i -= len(m.Topic)
- copy(dAtA[i:], m.Topic)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Topic)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
-}
-
-func (m *MqttClientProxyMessage_Data) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *MqttClientProxyMessage_Data) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- i -= len(m.Data)
- copy(dAtA[i:], m.Data)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Data)))
- i--
- dAtA[i] = 0x12
- return len(dAtA) - i, nil
-}
-func (m *MqttClientProxyMessage_Text) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *MqttClientProxyMessage_Text) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- i -= len(m.Text)
- copy(dAtA[i:], m.Text)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Text)))
- i--
- dAtA[i] = 0x1a
- return len(dAtA) - i, nil
-}
-func (m *MeshPacket) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *MeshPacket) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *MeshPacket) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.ViaMqtt {
- i--
- if m.ViaMqtt {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x70
- }
- if m.Delayed != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Delayed))
- i--
- dAtA[i] = 0x68
- }
- if m.RxRssi != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.RxRssi))
- i--
- dAtA[i] = 0x60
- }
- if m.Priority != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Priority))
- i--
- dAtA[i] = 0x58
- }
- if m.WantAck {
- i--
- if m.WantAck {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x50
- }
- if m.HopLimit != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.HopLimit))
- i--
- dAtA[i] = 0x48
- }
- if m.RxSnr != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.RxSnr))))
- i--
- dAtA[i] = 0x45
- }
- if m.RxTime != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(m.RxTime))
- i--
- dAtA[i] = 0x3d
- }
- if m.Id != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(m.Id))
- i--
- dAtA[i] = 0x35
- }
- if msg, ok := m.PayloadVariant.(*MeshPacket_Encrypted); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*MeshPacket_Decoded); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if m.Channel != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Channel))
- i--
- dAtA[i] = 0x18
- }
- if m.To != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(m.To))
- i--
- dAtA[i] = 0x15
- }
- if m.From != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(m.From))
- i--
- dAtA[i] = 0xd
- }
- return len(dAtA) - i, nil
-}
-
-func (m *MeshPacket_Decoded) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *MeshPacket_Decoded) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.Decoded != nil {
- size, err := m.Decoded.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x22
- }
- return len(dAtA) - i, nil
-}
-func (m *MeshPacket_Encrypted) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *MeshPacket_Encrypted) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- i -= len(m.Encrypted)
- copy(dAtA[i:], m.Encrypted)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Encrypted)))
- i--
- dAtA[i] = 0x2a
- return len(dAtA) - i, nil
-}
-func (m *NodeInfo) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *NodeInfo) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *NodeInfo) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.Channel != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Channel))
- i--
- dAtA[i] = 0x38
- }
- if m.DeviceMetrics != nil {
- size, err := m.DeviceMetrics.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x32
- }
- if m.LastHeard != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(m.LastHeard))
- i--
- dAtA[i] = 0x2d
- }
- if m.Snr != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Snr))))
- i--
- dAtA[i] = 0x25
- }
- if m.Position != nil {
- size, err := m.Position.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x1a
- }
- if m.User != nil {
- size, err := m.User.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x12
- }
- if m.Num != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Num))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *MyNodeInfo) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *MyNodeInfo) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *MyNodeInfo) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.MinAppVersion != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.MinAppVersion))
- i--
- dAtA[i] = 0x58
- }
- if m.RebootCount != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.RebootCount))
- i--
- dAtA[i] = 0x40
- }
- if m.MyNodeNum != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.MyNodeNum))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *LogRecord) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *LogRecord) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *LogRecord) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.Level != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Level))
- i--
- dAtA[i] = 0x20
- }
- if len(m.Source) > 0 {
- i -= len(m.Source)
- copy(dAtA[i:], m.Source)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Source)))
- i--
- dAtA[i] = 0x1a
- }
- if m.Time != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(m.Time))
- i--
- dAtA[i] = 0x15
- }
- if len(m.Message) > 0 {
- i -= len(m.Message)
- copy(dAtA[i:], m.Message)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Message)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
-}
-
-func (m *QueueStatus) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *QueueStatus) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *QueueStatus) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.MeshPacketId != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.MeshPacketId))
- i--
- dAtA[i] = 0x20
- }
- if m.Maxlen != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Maxlen))
- i--
- dAtA[i] = 0x18
- }
- if m.Free != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Free))
- i--
- dAtA[i] = 0x10
- }
- if m.Res != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Res))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *FromRadio) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *FromRadio) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *FromRadio) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if msg, ok := m.PayloadVariant.(*FromRadio_MqttClientProxyMessage); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*FromRadio_Metadata); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*FromRadio_XmodemPacket); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*FromRadio_QueueStatus); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*FromRadio_Channel); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*FromRadio_ModuleConfig); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*FromRadio_Rebooted); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*FromRadio_ConfigCompleteId); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*FromRadio_LogRecord); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*FromRadio_Config); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*FromRadio_NodeInfo); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*FromRadio_MyInfo); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*FromRadio_Packet); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if m.Id != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Id))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *FromRadio_Packet) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *FromRadio_Packet) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.Packet != nil {
- size, err := m.Packet.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x12
- }
- return len(dAtA) - i, nil
-}
-func (m *FromRadio_MyInfo) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *FromRadio_MyInfo) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.MyInfo != nil {
- size, err := m.MyInfo.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x1a
- }
- return len(dAtA) - i, nil
-}
-func (m *FromRadio_NodeInfo) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *FromRadio_NodeInfo) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.NodeInfo != nil {
- size, err := m.NodeInfo.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x22
- }
- return len(dAtA) - i, nil
-}
-func (m *FromRadio_Config) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *FromRadio_Config) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.Config != nil {
- size, err := m.Config.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x2a
- }
- return len(dAtA) - i, nil
-}
-func (m *FromRadio_LogRecord) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *FromRadio_LogRecord) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.LogRecord != nil {
- size, err := m.LogRecord.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x32
- }
- return len(dAtA) - i, nil
-}
-func (m *FromRadio_ConfigCompleteId) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *FromRadio_ConfigCompleteId) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.ConfigCompleteId))
- i--
- dAtA[i] = 0x38
- return len(dAtA) - i, nil
-}
-func (m *FromRadio_Rebooted) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *FromRadio_Rebooted) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- i--
- if m.Rebooted {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x40
- return len(dAtA) - i, nil
-}
-func (m *FromRadio_ModuleConfig) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *FromRadio_ModuleConfig) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.ModuleConfig != nil {
- size, err := m.ModuleConfig.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x4a
- }
- return len(dAtA) - i, nil
-}
-func (m *FromRadio_Channel) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *FromRadio_Channel) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.Channel != nil {
- size, err := m.Channel.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x52
- }
- return len(dAtA) - i, nil
-}
-func (m *FromRadio_QueueStatus) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *FromRadio_QueueStatus) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.QueueStatus != nil {
- size, err := m.QueueStatus.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x5a
- }
- return len(dAtA) - i, nil
-}
-func (m *FromRadio_XmodemPacket) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *FromRadio_XmodemPacket) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.XmodemPacket != nil {
- size, err := m.XmodemPacket.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x62
- }
- return len(dAtA) - i, nil
-}
-func (m *FromRadio_Metadata) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *FromRadio_Metadata) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.Metadata != nil {
- size, err := m.Metadata.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x6a
- }
- return len(dAtA) - i, nil
-}
-func (m *FromRadio_MqttClientProxyMessage) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *FromRadio_MqttClientProxyMessage) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.MqttClientProxyMessage != nil {
- size, err := m.MqttClientProxyMessage.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x72
- }
- return len(dAtA) - i, nil
-}
-func (m *ToRadio) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *ToRadio) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *ToRadio) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if msg, ok := m.PayloadVariant.(*ToRadio_MqttClientProxyMessage); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*ToRadio_XmodemPacket); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*ToRadio_Disconnect); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*ToRadio_WantConfigId); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*ToRadio_Packet); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- return len(dAtA) - i, nil
-}
-
-func (m *ToRadio_Packet) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *ToRadio_Packet) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.Packet != nil {
- size, err := m.Packet.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
-}
-func (m *ToRadio_WantConfigId) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *ToRadio_WantConfigId) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.WantConfigId))
- i--
- dAtA[i] = 0x18
- return len(dAtA) - i, nil
-}
-func (m *ToRadio_Disconnect) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *ToRadio_Disconnect) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- i--
- if m.Disconnect {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x20
- return len(dAtA) - i, nil
-}
-func (m *ToRadio_XmodemPacket) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *ToRadio_XmodemPacket) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.XmodemPacket != nil {
- size, err := m.XmodemPacket.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x2a
- }
- return len(dAtA) - i, nil
-}
-func (m *ToRadio_MqttClientProxyMessage) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *ToRadio_MqttClientProxyMessage) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.MqttClientProxyMessage != nil {
- size, err := m.MqttClientProxyMessage.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x32
- }
- return len(dAtA) - i, nil
-}
-func (m *Compressed) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *Compressed) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *Compressed) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if len(m.Data) > 0 {
- i -= len(m.Data)
- copy(dAtA[i:], m.Data)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Data)))
- i--
- dAtA[i] = 0x12
- }
- if m.Portnum != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Portnum))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *NeighborInfo) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *NeighborInfo) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *NeighborInfo) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if len(m.Neighbors) > 0 {
- for iNdEx := len(m.Neighbors) - 1; iNdEx >= 0; iNdEx-- {
- size, err := m.Neighbors[iNdEx].MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x22
- }
- }
- if m.NodeBroadcastIntervalSecs != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.NodeBroadcastIntervalSecs))
- i--
- dAtA[i] = 0x18
- }
- if m.LastSentById != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.LastSentById))
- i--
- dAtA[i] = 0x10
- }
- if m.NodeId != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.NodeId))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *Neighbor) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *Neighbor) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *Neighbor) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.NodeBroadcastIntervalSecs != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.NodeBroadcastIntervalSecs))
- i--
- dAtA[i] = 0x20
- }
- if m.LastRxTime != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(m.LastRxTime))
- i--
- dAtA[i] = 0x1d
- }
- if m.Snr != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Snr))))
- i--
- dAtA[i] = 0x15
- }
- if m.NodeId != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.NodeId))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *DeviceMetadata) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *DeviceMetadata) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *DeviceMetadata) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.HasRemoteHardware {
- i--
- if m.HasRemoteHardware {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x50
- }
- if m.HwModel != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.HwModel))
- i--
- dAtA[i] = 0x48
- }
- if m.PositionFlags != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.PositionFlags))
- i--
- dAtA[i] = 0x40
- }
- if m.Role != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Role))
- i--
- dAtA[i] = 0x38
- }
- if m.HasEthernet {
- i--
- if m.HasEthernet {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x30
- }
- if m.HasBluetooth {
- i--
- if m.HasBluetooth {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x28
- }
- if m.HasWifi {
- i--
- if m.HasWifi {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x20
- }
- if m.CanShutdown {
- i--
- if m.CanShutdown {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x18
- }
- if m.DeviceStateVersion != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.DeviceStateVersion))
- i--
- dAtA[i] = 0x10
- }
- if len(m.FirmwareVersion) > 0 {
- i -= len(m.FirmwareVersion)
- copy(dAtA[i:], m.FirmwareVersion)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.FirmwareVersion)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
-}
-
func (m *Position) SizeVT() (n int) {
if m == nil {
return 0
@@ -5523,6 +1804,9 @@ func (m *Position) SizeVT() (n int) {
if m.SeqNumber != 0 {
n += 2 + protohelpers.SizeOfVarint(uint64(m.SeqNumber))
}
+ if m.PrecisionBits != 0 {
+ n += 2 + protohelpers.SizeOfVarint(uint64(m.PrecisionBits))
+ }
n += len(m.unknownFields)
return n
}
@@ -6655,6 +2939,25 @@ func (m *Position) UnmarshalVT(dAtA []byte) error {
break
}
}
+ case 23:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field PrecisionBits", wireType)
+ }
+ m.PrecisionBits = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.PrecisionBits |= uint32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
default:
iNdEx = preIndex
skippy, err := protohelpers.Skip(dAtA[iNdEx:])
@@ -10016,3808 +6319,3 @@ func (m *DeviceMetadata) UnmarshalVT(dAtA []byte) error {
}
return nil
}
-func (m *Position) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: Position: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Position: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field LatitudeI", wireType)
- }
- m.LatitudeI = 0
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- m.LatitudeI = int32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- case 2:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field LongitudeI", wireType)
- }
- m.LongitudeI = 0
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- m.LongitudeI = int32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Altitude", wireType)
- }
- m.Altitude = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Altitude |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 4:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
- }
- m.Time = 0
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- m.Time = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field LocationSource", wireType)
- }
- m.LocationSource = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.LocationSource |= Position_LocSource(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 6:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field AltitudeSource", wireType)
- }
- m.AltitudeSource = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.AltitudeSource |= Position_AltSource(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 7:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType)
- }
- m.Timestamp = 0
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- m.Timestamp = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- case 8:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field TimestampMillisAdjust", wireType)
- }
- m.TimestampMillisAdjust = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.TimestampMillisAdjust |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 9:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field AltitudeHae", wireType)
- }
- var v int32
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- v = int32((uint32(v) >> 1) ^ uint32(((v&1)<<31)>>31))
- m.AltitudeHae = v
- case 10:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field AltitudeGeoidalSeparation", wireType)
- }
- var v int32
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- v = int32((uint32(v) >> 1) ^ uint32(((v&1)<<31)>>31))
- m.AltitudeGeoidalSeparation = v
- case 11:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field PDOP", wireType)
- }
- m.PDOP = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.PDOP |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 12:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field HDOP", wireType)
- }
- m.HDOP = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.HDOP |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 13:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field VDOP", wireType)
- }
- m.VDOP = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.VDOP |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 14:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GpsAccuracy", wireType)
- }
- m.GpsAccuracy = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GpsAccuracy |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 15:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroundSpeed", wireType)
- }
- m.GroundSpeed = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GroundSpeed |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 16:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroundTrack", wireType)
- }
- m.GroundTrack = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GroundTrack |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 17:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field FixQuality", wireType)
- }
- m.FixQuality = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.FixQuality |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 18:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field FixType", wireType)
- }
- m.FixType = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.FixType |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 19:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field SatsInView", wireType)
- }
- m.SatsInView = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.SatsInView |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 20:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field SensorId", wireType)
- }
- m.SensorId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.SensorId |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 21:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field NextUpdate", wireType)
- }
- m.NextUpdate = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.NextUpdate |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 22:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field SeqNumber", wireType)
- }
- m.SeqNumber = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.SeqNumber |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *User) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: User: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: User: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var stringValue string
- if intStringLen > 0 {
- stringValue = unsafe.String(&dAtA[iNdEx], intStringLen)
- }
- m.Id = stringValue
- iNdEx = postIndex
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field LongName", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var stringValue string
- if intStringLen > 0 {
- stringValue = unsafe.String(&dAtA[iNdEx], intStringLen)
- }
- m.LongName = stringValue
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ShortName", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var stringValue string
- if intStringLen > 0 {
- stringValue = unsafe.String(&dAtA[iNdEx], intStringLen)
- }
- m.ShortName = stringValue
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Macaddr", wireType)
- }
- var byteLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- byteLen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if byteLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + byteLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Macaddr = dAtA[iNdEx:postIndex]
- iNdEx = postIndex
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field HwModel", wireType)
- }
- m.HwModel = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.HwModel |= HardwareModel(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 6:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field IsLicensed", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.IsLicensed = bool(v != 0)
- case 7:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType)
- }
- m.Role = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Role |= Config_DeviceConfig_Role(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *RouteDiscovery) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: RouteDiscovery: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: RouteDiscovery: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType == 5 {
- var v uint32
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- m.Route = append(m.Route, v)
- } else if wireType == 2 {
- var packedLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- packedLen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if packedLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + packedLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var elementCount int
- elementCount = packedLen / 4
- if elementCount != 0 && len(m.Route) == 0 {
- m.Route = make([]uint32, 0, elementCount)
- }
- for iNdEx < postIndex {
- var v uint32
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- m.Route = append(m.Route, v)
- }
- } else {
- return fmt.Errorf("proto: wrong wireType = %d for field Route", wireType)
- }
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *Routing) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: Routing: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Routing: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field RouteRequest", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.Variant.(*Routing_RouteRequest); ok {
- if err := oneof.RouteRequest.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &RouteDiscovery{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Variant = &Routing_RouteRequest{RouteRequest: v}
- }
- iNdEx = postIndex
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field RouteReply", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.Variant.(*Routing_RouteReply); ok {
- if err := oneof.RouteReply.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &RouteDiscovery{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Variant = &Routing_RouteReply{RouteReply: v}
- }
- iNdEx = postIndex
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ErrorReason", wireType)
- }
- var v Routing_Error
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= Routing_Error(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Variant = &Routing_ErrorReason{ErrorReason: v}
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *Data) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: Data: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Data: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Portnum", wireType)
- }
- m.Portnum = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Portnum |= PortNum(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType)
- }
- var byteLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- byteLen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if byteLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + byteLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Payload = dAtA[iNdEx:postIndex]
- iNdEx = postIndex
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field WantResponse", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.WantResponse = bool(v != 0)
- case 4:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field Dest", wireType)
- }
- m.Dest = 0
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- m.Dest = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- case 5:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType)
- }
- m.Source = 0
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- m.Source = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- case 6:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field RequestId", wireType)
- }
- m.RequestId = 0
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- m.RequestId = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- case 7:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field ReplyId", wireType)
- }
- m.ReplyId = 0
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- m.ReplyId = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- case 8:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field Emoji", wireType)
- }
- m.Emoji = 0
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- m.Emoji = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *Waypoint) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: Waypoint: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Waypoint: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
- }
- m.Id = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Id |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field LatitudeI", wireType)
- }
- m.LatitudeI = 0
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- m.LatitudeI = int32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- case 3:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field LongitudeI", wireType)
- }
- m.LongitudeI = 0
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- m.LongitudeI = int32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Expire", wireType)
- }
- m.Expire = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Expire |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field LockedTo", wireType)
- }
- m.LockedTo = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.LockedTo |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 6:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var stringValue string
- if intStringLen > 0 {
- stringValue = unsafe.String(&dAtA[iNdEx], intStringLen)
- }
- m.Name = stringValue
- iNdEx = postIndex
- case 7:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var stringValue string
- if intStringLen > 0 {
- stringValue = unsafe.String(&dAtA[iNdEx], intStringLen)
- }
- m.Description = stringValue
- iNdEx = postIndex
- case 8:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field Icon", wireType)
- }
- m.Icon = 0
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- m.Icon = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *MqttClientProxyMessage) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: MqttClientProxyMessage: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: MqttClientProxyMessage: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Topic", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var stringValue string
- if intStringLen > 0 {
- stringValue = unsafe.String(&dAtA[iNdEx], intStringLen)
- }
- m.Topic = stringValue
- iNdEx = postIndex
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
- }
- var byteLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- byteLen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if byteLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + byteLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := dAtA[iNdEx:postIndex]
- m.PayloadVariant = &MqttClientProxyMessage_Data{Data: v}
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Text", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var stringValue string
- if intStringLen > 0 {
- stringValue = unsafe.String(&dAtA[iNdEx], intStringLen)
- }
- m.PayloadVariant = &MqttClientProxyMessage_Text{Text: stringValue}
- iNdEx = postIndex
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Retained", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Retained = bool(v != 0)
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *MeshPacket) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: MeshPacket: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: MeshPacket: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field From", wireType)
- }
- m.From = 0
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- m.From = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- case 2:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field To", wireType)
- }
- m.To = 0
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- m.To = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Channel", wireType)
- }
- m.Channel = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Channel |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Decoded", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*MeshPacket_Decoded); ok {
- if err := oneof.Decoded.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &Data{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &MeshPacket_Decoded{Decoded: v}
- }
- iNdEx = postIndex
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Encrypted", wireType)
- }
- var byteLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- byteLen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if byteLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + byteLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := dAtA[iNdEx:postIndex]
- m.PayloadVariant = &MeshPacket_Encrypted{Encrypted: v}
- iNdEx = postIndex
- case 6:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
- }
- m.Id = 0
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- m.Id = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- case 7:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field RxTime", wireType)
- }
- m.RxTime = 0
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- m.RxTime = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- case 8:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field RxSnr", wireType)
- }
- var v uint32
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- m.RxSnr = float32(math.Float32frombits(v))
- case 9:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field HopLimit", wireType)
- }
- m.HopLimit = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.HopLimit |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 10:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field WantAck", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.WantAck = bool(v != 0)
- case 11:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Priority", wireType)
- }
- m.Priority = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Priority |= MeshPacket_Priority(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 12:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field RxRssi", wireType)
- }
- m.RxRssi = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.RxRssi |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 13:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Delayed", wireType)
- }
- m.Delayed = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Delayed |= MeshPacket_Delayed(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 14:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ViaMqtt", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.ViaMqtt = bool(v != 0)
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *NodeInfo) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: NodeInfo: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: NodeInfo: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Num", wireType)
- }
- m.Num = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Num |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field User", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.User == nil {
- m.User = &User{}
- }
- if err := m.User.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Position == nil {
- m.Position = &Position{}
- }
- if err := m.Position.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 4:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field Snr", wireType)
- }
- var v uint32
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- m.Snr = float32(math.Float32frombits(v))
- case 5:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field LastHeard", wireType)
- }
- m.LastHeard = 0
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- m.LastHeard = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- case 6:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field DeviceMetrics", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.DeviceMetrics == nil {
- m.DeviceMetrics = &DeviceMetrics{}
- }
- if err := m.DeviceMetrics.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 7:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Channel", wireType)
- }
- m.Channel = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Channel |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *MyNodeInfo) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: MyNodeInfo: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: MyNodeInfo: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field MyNodeNum", wireType)
- }
- m.MyNodeNum = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.MyNodeNum |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 8:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field RebootCount", wireType)
- }
- m.RebootCount = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.RebootCount |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 11:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field MinAppVersion", wireType)
- }
- m.MinAppVersion = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.MinAppVersion |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *LogRecord) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: LogRecord: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: LogRecord: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var stringValue string
- if intStringLen > 0 {
- stringValue = unsafe.String(&dAtA[iNdEx], intStringLen)
- }
- m.Message = stringValue
- iNdEx = postIndex
- case 2:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
- }
- m.Time = 0
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- m.Time = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var stringValue string
- if intStringLen > 0 {
- stringValue = unsafe.String(&dAtA[iNdEx], intStringLen)
- }
- m.Source = stringValue
- iNdEx = postIndex
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Level", wireType)
- }
- m.Level = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Level |= LogRecord_Level(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *QueueStatus) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: QueueStatus: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: QueueStatus: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Res", wireType)
- }
- m.Res = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Res |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Free", wireType)
- }
- m.Free = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Free |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Maxlen", wireType)
- }
- m.Maxlen = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Maxlen |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field MeshPacketId", wireType)
- }
- m.MeshPacketId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.MeshPacketId |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *FromRadio) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: FromRadio: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: FromRadio: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
- }
- m.Id = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Id |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Packet", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*FromRadio_Packet); ok {
- if err := oneof.Packet.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &MeshPacket{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &FromRadio_Packet{Packet: v}
- }
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field MyInfo", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*FromRadio_MyInfo); ok {
- if err := oneof.MyInfo.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &MyNodeInfo{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &FromRadio_MyInfo{MyInfo: v}
- }
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field NodeInfo", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*FromRadio_NodeInfo); ok {
- if err := oneof.NodeInfo.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &NodeInfo{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &FromRadio_NodeInfo{NodeInfo: v}
- }
- iNdEx = postIndex
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Config", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*FromRadio_Config); ok {
- if err := oneof.Config.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &Config{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &FromRadio_Config{Config: v}
- }
- iNdEx = postIndex
- case 6:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field LogRecord", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*FromRadio_LogRecord); ok {
- if err := oneof.LogRecord.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &LogRecord{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &FromRadio_LogRecord{LogRecord: v}
- }
- iNdEx = postIndex
- case 7:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ConfigCompleteId", wireType)
- }
- var v uint32
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.PayloadVariant = &FromRadio_ConfigCompleteId{ConfigCompleteId: v}
- case 8:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Rebooted", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- b := bool(v != 0)
- m.PayloadVariant = &FromRadio_Rebooted{Rebooted: b}
- case 9:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ModuleConfig", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*FromRadio_ModuleConfig); ok {
- if err := oneof.ModuleConfig.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &ModuleConfig{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &FromRadio_ModuleConfig{ModuleConfig: v}
- }
- iNdEx = postIndex
- case 10:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Channel", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*FromRadio_Channel); ok {
- if err := oneof.Channel.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &Channel{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &FromRadio_Channel{Channel: v}
- }
- iNdEx = postIndex
- case 11:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field QueueStatus", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*FromRadio_QueueStatus); ok {
- if err := oneof.QueueStatus.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &QueueStatus{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &FromRadio_QueueStatus{QueueStatus: v}
- }
- iNdEx = postIndex
- case 12:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field XmodemPacket", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*FromRadio_XmodemPacket); ok {
- if err := oneof.XmodemPacket.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &XModem{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &FromRadio_XmodemPacket{XmodemPacket: v}
- }
- iNdEx = postIndex
- case 13:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*FromRadio_Metadata); ok {
- if err := oneof.Metadata.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &DeviceMetadata{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &FromRadio_Metadata{Metadata: v}
- }
- iNdEx = postIndex
- case 14:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field MqttClientProxyMessage", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*FromRadio_MqttClientProxyMessage); ok {
- if err := oneof.MqttClientProxyMessage.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &MqttClientProxyMessage{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &FromRadio_MqttClientProxyMessage{MqttClientProxyMessage: v}
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *ToRadio) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: ToRadio: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: ToRadio: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Packet", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*ToRadio_Packet); ok {
- if err := oneof.Packet.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &MeshPacket{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &ToRadio_Packet{Packet: v}
- }
- iNdEx = postIndex
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field WantConfigId", wireType)
- }
- var v uint32
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.PayloadVariant = &ToRadio_WantConfigId{WantConfigId: v}
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Disconnect", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- b := bool(v != 0)
- m.PayloadVariant = &ToRadio_Disconnect{Disconnect: b}
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field XmodemPacket", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*ToRadio_XmodemPacket); ok {
- if err := oneof.XmodemPacket.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &XModem{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &ToRadio_XmodemPacket{XmodemPacket: v}
- }
- iNdEx = postIndex
- case 6:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field MqttClientProxyMessage", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*ToRadio_MqttClientProxyMessage); ok {
- if err := oneof.MqttClientProxyMessage.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &MqttClientProxyMessage{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &ToRadio_MqttClientProxyMessage{MqttClientProxyMessage: v}
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *Compressed) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: Compressed: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Compressed: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Portnum", wireType)
- }
- m.Portnum = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Portnum |= PortNum(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
- }
- var byteLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- byteLen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if byteLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + byteLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Data = dAtA[iNdEx:postIndex]
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *NeighborInfo) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: NeighborInfo: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: NeighborInfo: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field NodeId", wireType)
- }
- m.NodeId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.NodeId |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field LastSentById", wireType)
- }
- m.LastSentById = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.LastSentById |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field NodeBroadcastIntervalSecs", wireType)
- }
- m.NodeBroadcastIntervalSecs = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.NodeBroadcastIntervalSecs |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Neighbors", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Neighbors = append(m.Neighbors, &Neighbor{})
- if err := m.Neighbors[len(m.Neighbors)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *Neighbor) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: Neighbor: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Neighbor: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field NodeId", wireType)
- }
- m.NodeId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.NodeId |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field Snr", wireType)
- }
- var v uint32
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- m.Snr = float32(math.Float32frombits(v))
- case 3:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field LastRxTime", wireType)
- }
- m.LastRxTime = 0
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- m.LastRxTime = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field NodeBroadcastIntervalSecs", wireType)
- }
- m.NodeBroadcastIntervalSecs = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.NodeBroadcastIntervalSecs |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *DeviceMetadata) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: DeviceMetadata: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: DeviceMetadata: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field FirmwareVersion", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var stringValue string
- if intStringLen > 0 {
- stringValue = unsafe.String(&dAtA[iNdEx], intStringLen)
- }
- m.FirmwareVersion = stringValue
- iNdEx = postIndex
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field DeviceStateVersion", wireType)
- }
- m.DeviceStateVersion = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.DeviceStateVersion |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field CanShutdown", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.CanShutdown = bool(v != 0)
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field HasWifi", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.HasWifi = bool(v != 0)
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field HasBluetooth", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.HasBluetooth = bool(v != 0)
- case 6:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field HasEthernet", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.HasEthernet = bool(v != 0)
- case 7:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType)
- }
- m.Role = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Role |= Config_DeviceConfig_Role(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 8:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field PositionFlags", wireType)
- }
- m.PositionFlags = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.PositionFlags |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 9:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field HwModel", wireType)
- }
- m.HwModel = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.HwModel |= HardwareModel(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 10:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field HasRemoteHardware", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.HasRemoteHardware = bool(v != 0)
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
diff --git a/meshtastic/module_config.pb.go b/meshtastic/module_config.pb.go
index 1abbf27..f080b5f 100644
--- a/meshtastic/module_config.pb.go
+++ b/meshtastic/module_config.pb.go
@@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.31.0
-// protoc v4.24.3
+// protoc-gen-go v1.32.0
+// protoc v4.25.2
// source: meshtastic/module_config.proto
package generated
diff --git a/meshtastic/module_config_vtproto.pb.go b/meshtastic/module_config_vtproto.pb.go
index 1658c9b..272cb64 100644
--- a/meshtastic/module_config_vtproto.pb.go
+++ b/meshtastic/module_config_vtproto.pb.go
@@ -7,10 +7,8 @@ package generated
import (
fmt "fmt"
protohelpers "github.com/planetscale/vtprotobuf/protohelpers"
- proto "google.golang.org/protobuf/proto"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
- unsafe "unsafe"
)
const (
@@ -20,1329 +18,6 @@ const (
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
-func (m *ModuleConfig_MQTTConfig) CloneVT() *ModuleConfig_MQTTConfig {
- if m == nil {
- return (*ModuleConfig_MQTTConfig)(nil)
- }
- r := new(ModuleConfig_MQTTConfig)
- r.Enabled = m.Enabled
- r.Address = m.Address
- r.Username = m.Username
- r.Password = m.Password
- r.EncryptionEnabled = m.EncryptionEnabled
- r.JsonEnabled = m.JsonEnabled
- r.TlsEnabled = m.TlsEnabled
- r.Root = m.Root
- r.ProxyToClientEnabled = m.ProxyToClientEnabled
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *ModuleConfig_MQTTConfig) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *ModuleConfig_RemoteHardwareConfig) CloneVT() *ModuleConfig_RemoteHardwareConfig {
- if m == nil {
- return (*ModuleConfig_RemoteHardwareConfig)(nil)
- }
- r := new(ModuleConfig_RemoteHardwareConfig)
- r.Enabled = m.Enabled
- r.AllowUndefinedPinAccess = m.AllowUndefinedPinAccess
- if rhs := m.AvailablePins; rhs != nil {
- tmpContainer := make([]*RemoteHardwarePin, len(rhs))
- for k, v := range rhs {
- tmpContainer[k] = v.CloneVT()
- }
- r.AvailablePins = tmpContainer
- }
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *ModuleConfig_RemoteHardwareConfig) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *ModuleConfig_NeighborInfoConfig) CloneVT() *ModuleConfig_NeighborInfoConfig {
- if m == nil {
- return (*ModuleConfig_NeighborInfoConfig)(nil)
- }
- r := new(ModuleConfig_NeighborInfoConfig)
- r.Enabled = m.Enabled
- r.UpdateInterval = m.UpdateInterval
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *ModuleConfig_NeighborInfoConfig) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *ModuleConfig_DetectionSensorConfig) CloneVT() *ModuleConfig_DetectionSensorConfig {
- if m == nil {
- return (*ModuleConfig_DetectionSensorConfig)(nil)
- }
- r := new(ModuleConfig_DetectionSensorConfig)
- r.Enabled = m.Enabled
- r.MinimumBroadcastSecs = m.MinimumBroadcastSecs
- r.StateBroadcastSecs = m.StateBroadcastSecs
- r.SendBell = m.SendBell
- r.Name = m.Name
- r.MonitorPin = m.MonitorPin
- r.DetectionTriggeredHigh = m.DetectionTriggeredHigh
- r.UsePullup = m.UsePullup
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *ModuleConfig_DetectionSensorConfig) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *ModuleConfig_AudioConfig) CloneVT() *ModuleConfig_AudioConfig {
- if m == nil {
- return (*ModuleConfig_AudioConfig)(nil)
- }
- r := new(ModuleConfig_AudioConfig)
- r.Codec2Enabled = m.Codec2Enabled
- r.PttPin = m.PttPin
- r.Bitrate = m.Bitrate
- r.I2SWs = m.I2SWs
- r.I2SSd = m.I2SSd
- r.I2SDin = m.I2SDin
- r.I2SSck = m.I2SSck
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *ModuleConfig_AudioConfig) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *ModuleConfig_PaxcounterConfig) CloneVT() *ModuleConfig_PaxcounterConfig {
- if m == nil {
- return (*ModuleConfig_PaxcounterConfig)(nil)
- }
- r := new(ModuleConfig_PaxcounterConfig)
- r.Enabled = m.Enabled
- r.PaxcounterUpdateInterval = m.PaxcounterUpdateInterval
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *ModuleConfig_PaxcounterConfig) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *ModuleConfig_SerialConfig) CloneVT() *ModuleConfig_SerialConfig {
- if m == nil {
- return (*ModuleConfig_SerialConfig)(nil)
- }
- r := new(ModuleConfig_SerialConfig)
- r.Enabled = m.Enabled
- r.Echo = m.Echo
- r.Rxd = m.Rxd
- r.Txd = m.Txd
- r.Baud = m.Baud
- r.Timeout = m.Timeout
- r.Mode = m.Mode
- r.OverrideConsoleSerialPort = m.OverrideConsoleSerialPort
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *ModuleConfig_SerialConfig) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *ModuleConfig_ExternalNotificationConfig) CloneVT() *ModuleConfig_ExternalNotificationConfig {
- if m == nil {
- return (*ModuleConfig_ExternalNotificationConfig)(nil)
- }
- r := new(ModuleConfig_ExternalNotificationConfig)
- r.Enabled = m.Enabled
- r.OutputMs = m.OutputMs
- r.Output = m.Output
- r.OutputVibra = m.OutputVibra
- r.OutputBuzzer = m.OutputBuzzer
- r.Active = m.Active
- r.AlertMessage = m.AlertMessage
- r.AlertMessageVibra = m.AlertMessageVibra
- r.AlertMessageBuzzer = m.AlertMessageBuzzer
- r.AlertBell = m.AlertBell
- r.AlertBellVibra = m.AlertBellVibra
- r.AlertBellBuzzer = m.AlertBellBuzzer
- r.UsePwm = m.UsePwm
- r.NagTimeout = m.NagTimeout
- r.UseI2SAsBuzzer = m.UseI2SAsBuzzer
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *ModuleConfig_ExternalNotificationConfig) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *ModuleConfig_StoreForwardConfig) CloneVT() *ModuleConfig_StoreForwardConfig {
- if m == nil {
- return (*ModuleConfig_StoreForwardConfig)(nil)
- }
- r := new(ModuleConfig_StoreForwardConfig)
- r.Enabled = m.Enabled
- r.Heartbeat = m.Heartbeat
- r.Records = m.Records
- r.HistoryReturnMax = m.HistoryReturnMax
- r.HistoryReturnWindow = m.HistoryReturnWindow
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *ModuleConfig_StoreForwardConfig) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *ModuleConfig_RangeTestConfig) CloneVT() *ModuleConfig_RangeTestConfig {
- if m == nil {
- return (*ModuleConfig_RangeTestConfig)(nil)
- }
- r := new(ModuleConfig_RangeTestConfig)
- r.Enabled = m.Enabled
- r.Sender = m.Sender
- r.Save = m.Save
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *ModuleConfig_RangeTestConfig) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *ModuleConfig_TelemetryConfig) CloneVT() *ModuleConfig_TelemetryConfig {
- if m == nil {
- return (*ModuleConfig_TelemetryConfig)(nil)
- }
- r := new(ModuleConfig_TelemetryConfig)
- r.DeviceUpdateInterval = m.DeviceUpdateInterval
- r.EnvironmentUpdateInterval = m.EnvironmentUpdateInterval
- r.EnvironmentMeasurementEnabled = m.EnvironmentMeasurementEnabled
- r.EnvironmentScreenEnabled = m.EnvironmentScreenEnabled
- r.EnvironmentDisplayFahrenheit = m.EnvironmentDisplayFahrenheit
- r.AirQualityEnabled = m.AirQualityEnabled
- r.AirQualityInterval = m.AirQualityInterval
- r.PowerMeasurementEnabled = m.PowerMeasurementEnabled
- r.PowerUpdateInterval = m.PowerUpdateInterval
- r.PowerScreenEnabled = m.PowerScreenEnabled
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *ModuleConfig_TelemetryConfig) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *ModuleConfig_CannedMessageConfig) CloneVT() *ModuleConfig_CannedMessageConfig {
- if m == nil {
- return (*ModuleConfig_CannedMessageConfig)(nil)
- }
- r := new(ModuleConfig_CannedMessageConfig)
- r.Rotary1Enabled = m.Rotary1Enabled
- r.InputbrokerPinA = m.InputbrokerPinA
- r.InputbrokerPinB = m.InputbrokerPinB
- r.InputbrokerPinPress = m.InputbrokerPinPress
- r.InputbrokerEventCw = m.InputbrokerEventCw
- r.InputbrokerEventCcw = m.InputbrokerEventCcw
- r.InputbrokerEventPress = m.InputbrokerEventPress
- r.Updown1Enabled = m.Updown1Enabled
- r.Enabled = m.Enabled
- r.AllowInputSource = m.AllowInputSource
- r.SendBell = m.SendBell
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *ModuleConfig_CannedMessageConfig) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *ModuleConfig_AmbientLightingConfig) CloneVT() *ModuleConfig_AmbientLightingConfig {
- if m == nil {
- return (*ModuleConfig_AmbientLightingConfig)(nil)
- }
- r := new(ModuleConfig_AmbientLightingConfig)
- r.LedState = m.LedState
- r.Current = m.Current
- r.Red = m.Red
- r.Green = m.Green
- r.Blue = m.Blue
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *ModuleConfig_AmbientLightingConfig) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *ModuleConfig) CloneVT() *ModuleConfig {
- if m == nil {
- return (*ModuleConfig)(nil)
- }
- r := new(ModuleConfig)
- if m.PayloadVariant != nil {
- r.PayloadVariant = m.PayloadVariant.(interface {
- CloneVT() isModuleConfig_PayloadVariant
- }).CloneVT()
- }
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *ModuleConfig) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *ModuleConfig_Mqtt) CloneVT() isModuleConfig_PayloadVariant {
- if m == nil {
- return (*ModuleConfig_Mqtt)(nil)
- }
- r := new(ModuleConfig_Mqtt)
- r.Mqtt = m.Mqtt.CloneVT()
- return r
-}
-
-func (m *ModuleConfig_Serial) CloneVT() isModuleConfig_PayloadVariant {
- if m == nil {
- return (*ModuleConfig_Serial)(nil)
- }
- r := new(ModuleConfig_Serial)
- r.Serial = m.Serial.CloneVT()
- return r
-}
-
-func (m *ModuleConfig_ExternalNotification) CloneVT() isModuleConfig_PayloadVariant {
- if m == nil {
- return (*ModuleConfig_ExternalNotification)(nil)
- }
- r := new(ModuleConfig_ExternalNotification)
- r.ExternalNotification = m.ExternalNotification.CloneVT()
- return r
-}
-
-func (m *ModuleConfig_StoreForward) CloneVT() isModuleConfig_PayloadVariant {
- if m == nil {
- return (*ModuleConfig_StoreForward)(nil)
- }
- r := new(ModuleConfig_StoreForward)
- r.StoreForward = m.StoreForward.CloneVT()
- return r
-}
-
-func (m *ModuleConfig_RangeTest) CloneVT() isModuleConfig_PayloadVariant {
- if m == nil {
- return (*ModuleConfig_RangeTest)(nil)
- }
- r := new(ModuleConfig_RangeTest)
- r.RangeTest = m.RangeTest.CloneVT()
- return r
-}
-
-func (m *ModuleConfig_Telemetry) CloneVT() isModuleConfig_PayloadVariant {
- if m == nil {
- return (*ModuleConfig_Telemetry)(nil)
- }
- r := new(ModuleConfig_Telemetry)
- r.Telemetry = m.Telemetry.CloneVT()
- return r
-}
-
-func (m *ModuleConfig_CannedMessage) CloneVT() isModuleConfig_PayloadVariant {
- if m == nil {
- return (*ModuleConfig_CannedMessage)(nil)
- }
- r := new(ModuleConfig_CannedMessage)
- r.CannedMessage = m.CannedMessage.CloneVT()
- return r
-}
-
-func (m *ModuleConfig_Audio) CloneVT() isModuleConfig_PayloadVariant {
- if m == nil {
- return (*ModuleConfig_Audio)(nil)
- }
- r := new(ModuleConfig_Audio)
- r.Audio = m.Audio.CloneVT()
- return r
-}
-
-func (m *ModuleConfig_RemoteHardware) CloneVT() isModuleConfig_PayloadVariant {
- if m == nil {
- return (*ModuleConfig_RemoteHardware)(nil)
- }
- r := new(ModuleConfig_RemoteHardware)
- r.RemoteHardware = m.RemoteHardware.CloneVT()
- return r
-}
-
-func (m *ModuleConfig_NeighborInfo) CloneVT() isModuleConfig_PayloadVariant {
- if m == nil {
- return (*ModuleConfig_NeighborInfo)(nil)
- }
- r := new(ModuleConfig_NeighborInfo)
- r.NeighborInfo = m.NeighborInfo.CloneVT()
- return r
-}
-
-func (m *ModuleConfig_AmbientLighting) CloneVT() isModuleConfig_PayloadVariant {
- if m == nil {
- return (*ModuleConfig_AmbientLighting)(nil)
- }
- r := new(ModuleConfig_AmbientLighting)
- r.AmbientLighting = m.AmbientLighting.CloneVT()
- return r
-}
-
-func (m *ModuleConfig_DetectionSensor) CloneVT() isModuleConfig_PayloadVariant {
- if m == nil {
- return (*ModuleConfig_DetectionSensor)(nil)
- }
- r := new(ModuleConfig_DetectionSensor)
- r.DetectionSensor = m.DetectionSensor.CloneVT()
- return r
-}
-
-func (m *ModuleConfig_Paxcounter) CloneVT() isModuleConfig_PayloadVariant {
- if m == nil {
- return (*ModuleConfig_Paxcounter)(nil)
- }
- r := new(ModuleConfig_Paxcounter)
- r.Paxcounter = m.Paxcounter.CloneVT()
- return r
-}
-
-func (m *RemoteHardwarePin) CloneVT() *RemoteHardwarePin {
- if m == nil {
- return (*RemoteHardwarePin)(nil)
- }
- r := new(RemoteHardwarePin)
- r.GpioPin = m.GpioPin
- r.Name = m.Name
- r.Type = m.Type
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *RemoteHardwarePin) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (this *ModuleConfig_MQTTConfig) EqualVT(that *ModuleConfig_MQTTConfig) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.Enabled != that.Enabled {
- return false
- }
- if this.Address != that.Address {
- return false
- }
- if this.Username != that.Username {
- return false
- }
- if this.Password != that.Password {
- return false
- }
- if this.EncryptionEnabled != that.EncryptionEnabled {
- return false
- }
- if this.JsonEnabled != that.JsonEnabled {
- return false
- }
- if this.TlsEnabled != that.TlsEnabled {
- return false
- }
- if this.Root != that.Root {
- return false
- }
- if this.ProxyToClientEnabled != that.ProxyToClientEnabled {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *ModuleConfig_MQTTConfig) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*ModuleConfig_MQTTConfig)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *ModuleConfig_RemoteHardwareConfig) EqualVT(that *ModuleConfig_RemoteHardwareConfig) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.Enabled != that.Enabled {
- return false
- }
- if this.AllowUndefinedPinAccess != that.AllowUndefinedPinAccess {
- return false
- }
- if len(this.AvailablePins) != len(that.AvailablePins) {
- return false
- }
- for i, vx := range this.AvailablePins {
- vy := that.AvailablePins[i]
- if p, q := vx, vy; p != q {
- if p == nil {
- p = &RemoteHardwarePin{}
- }
- if q == nil {
- q = &RemoteHardwarePin{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *ModuleConfig_RemoteHardwareConfig) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*ModuleConfig_RemoteHardwareConfig)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *ModuleConfig_NeighborInfoConfig) EqualVT(that *ModuleConfig_NeighborInfoConfig) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.Enabled != that.Enabled {
- return false
- }
- if this.UpdateInterval != that.UpdateInterval {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *ModuleConfig_NeighborInfoConfig) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*ModuleConfig_NeighborInfoConfig)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *ModuleConfig_DetectionSensorConfig) EqualVT(that *ModuleConfig_DetectionSensorConfig) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.Enabled != that.Enabled {
- return false
- }
- if this.MinimumBroadcastSecs != that.MinimumBroadcastSecs {
- return false
- }
- if this.StateBroadcastSecs != that.StateBroadcastSecs {
- return false
- }
- if this.SendBell != that.SendBell {
- return false
- }
- if this.Name != that.Name {
- return false
- }
- if this.MonitorPin != that.MonitorPin {
- return false
- }
- if this.DetectionTriggeredHigh != that.DetectionTriggeredHigh {
- return false
- }
- if this.UsePullup != that.UsePullup {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *ModuleConfig_DetectionSensorConfig) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*ModuleConfig_DetectionSensorConfig)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *ModuleConfig_AudioConfig) EqualVT(that *ModuleConfig_AudioConfig) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.Codec2Enabled != that.Codec2Enabled {
- return false
- }
- if this.PttPin != that.PttPin {
- return false
- }
- if this.Bitrate != that.Bitrate {
- return false
- }
- if this.I2SWs != that.I2SWs {
- return false
- }
- if this.I2SSd != that.I2SSd {
- return false
- }
- if this.I2SDin != that.I2SDin {
- return false
- }
- if this.I2SSck != that.I2SSck {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *ModuleConfig_AudioConfig) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*ModuleConfig_AudioConfig)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *ModuleConfig_PaxcounterConfig) EqualVT(that *ModuleConfig_PaxcounterConfig) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.Enabled != that.Enabled {
- return false
- }
- if this.PaxcounterUpdateInterval != that.PaxcounterUpdateInterval {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *ModuleConfig_PaxcounterConfig) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*ModuleConfig_PaxcounterConfig)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *ModuleConfig_SerialConfig) EqualVT(that *ModuleConfig_SerialConfig) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.Enabled != that.Enabled {
- return false
- }
- if this.Echo != that.Echo {
- return false
- }
- if this.Rxd != that.Rxd {
- return false
- }
- if this.Txd != that.Txd {
- return false
- }
- if this.Baud != that.Baud {
- return false
- }
- if this.Timeout != that.Timeout {
- return false
- }
- if this.Mode != that.Mode {
- return false
- }
- if this.OverrideConsoleSerialPort != that.OverrideConsoleSerialPort {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *ModuleConfig_SerialConfig) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*ModuleConfig_SerialConfig)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *ModuleConfig_ExternalNotificationConfig) EqualVT(that *ModuleConfig_ExternalNotificationConfig) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.Enabled != that.Enabled {
- return false
- }
- if this.OutputMs != that.OutputMs {
- return false
- }
- if this.Output != that.Output {
- return false
- }
- if this.Active != that.Active {
- return false
- }
- if this.AlertMessage != that.AlertMessage {
- return false
- }
- if this.AlertBell != that.AlertBell {
- return false
- }
- if this.UsePwm != that.UsePwm {
- return false
- }
- if this.OutputVibra != that.OutputVibra {
- return false
- }
- if this.OutputBuzzer != that.OutputBuzzer {
- return false
- }
- if this.AlertMessageVibra != that.AlertMessageVibra {
- return false
- }
- if this.AlertMessageBuzzer != that.AlertMessageBuzzer {
- return false
- }
- if this.AlertBellVibra != that.AlertBellVibra {
- return false
- }
- if this.AlertBellBuzzer != that.AlertBellBuzzer {
- return false
- }
- if this.NagTimeout != that.NagTimeout {
- return false
- }
- if this.UseI2SAsBuzzer != that.UseI2SAsBuzzer {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *ModuleConfig_ExternalNotificationConfig) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*ModuleConfig_ExternalNotificationConfig)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *ModuleConfig_StoreForwardConfig) EqualVT(that *ModuleConfig_StoreForwardConfig) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.Enabled != that.Enabled {
- return false
- }
- if this.Heartbeat != that.Heartbeat {
- return false
- }
- if this.Records != that.Records {
- return false
- }
- if this.HistoryReturnMax != that.HistoryReturnMax {
- return false
- }
- if this.HistoryReturnWindow != that.HistoryReturnWindow {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *ModuleConfig_StoreForwardConfig) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*ModuleConfig_StoreForwardConfig)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *ModuleConfig_RangeTestConfig) EqualVT(that *ModuleConfig_RangeTestConfig) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.Enabled != that.Enabled {
- return false
- }
- if this.Sender != that.Sender {
- return false
- }
- if this.Save != that.Save {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *ModuleConfig_RangeTestConfig) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*ModuleConfig_RangeTestConfig)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *ModuleConfig_TelemetryConfig) EqualVT(that *ModuleConfig_TelemetryConfig) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.DeviceUpdateInterval != that.DeviceUpdateInterval {
- return false
- }
- if this.EnvironmentUpdateInterval != that.EnvironmentUpdateInterval {
- return false
- }
- if this.EnvironmentMeasurementEnabled != that.EnvironmentMeasurementEnabled {
- return false
- }
- if this.EnvironmentScreenEnabled != that.EnvironmentScreenEnabled {
- return false
- }
- if this.EnvironmentDisplayFahrenheit != that.EnvironmentDisplayFahrenheit {
- return false
- }
- if this.AirQualityEnabled != that.AirQualityEnabled {
- return false
- }
- if this.AirQualityInterval != that.AirQualityInterval {
- return false
- }
- if this.PowerMeasurementEnabled != that.PowerMeasurementEnabled {
- return false
- }
- if this.PowerUpdateInterval != that.PowerUpdateInterval {
- return false
- }
- if this.PowerScreenEnabled != that.PowerScreenEnabled {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *ModuleConfig_TelemetryConfig) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*ModuleConfig_TelemetryConfig)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *ModuleConfig_CannedMessageConfig) EqualVT(that *ModuleConfig_CannedMessageConfig) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.Rotary1Enabled != that.Rotary1Enabled {
- return false
- }
- if this.InputbrokerPinA != that.InputbrokerPinA {
- return false
- }
- if this.InputbrokerPinB != that.InputbrokerPinB {
- return false
- }
- if this.InputbrokerPinPress != that.InputbrokerPinPress {
- return false
- }
- if this.InputbrokerEventCw != that.InputbrokerEventCw {
- return false
- }
- if this.InputbrokerEventCcw != that.InputbrokerEventCcw {
- return false
- }
- if this.InputbrokerEventPress != that.InputbrokerEventPress {
- return false
- }
- if this.Updown1Enabled != that.Updown1Enabled {
- return false
- }
- if this.Enabled != that.Enabled {
- return false
- }
- if this.AllowInputSource != that.AllowInputSource {
- return false
- }
- if this.SendBell != that.SendBell {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *ModuleConfig_CannedMessageConfig) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*ModuleConfig_CannedMessageConfig)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *ModuleConfig_AmbientLightingConfig) EqualVT(that *ModuleConfig_AmbientLightingConfig) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.LedState != that.LedState {
- return false
- }
- if this.Current != that.Current {
- return false
- }
- if this.Red != that.Red {
- return false
- }
- if this.Green != that.Green {
- return false
- }
- if this.Blue != that.Blue {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *ModuleConfig_AmbientLightingConfig) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*ModuleConfig_AmbientLightingConfig)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *ModuleConfig) EqualVT(that *ModuleConfig) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.PayloadVariant == nil && that.PayloadVariant != nil {
- return false
- } else if this.PayloadVariant != nil {
- if that.PayloadVariant == nil {
- return false
- }
- if !this.PayloadVariant.(interface {
- EqualVT(isModuleConfig_PayloadVariant) bool
- }).EqualVT(that.PayloadVariant) {
- return false
- }
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *ModuleConfig) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*ModuleConfig)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *ModuleConfig_Mqtt) EqualVT(thatIface isModuleConfig_PayloadVariant) bool {
- that, ok := thatIface.(*ModuleConfig_Mqtt)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.Mqtt, that.Mqtt; p != q {
- if p == nil {
- p = &ModuleConfig_MQTTConfig{}
- }
- if q == nil {
- q = &ModuleConfig_MQTTConfig{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *ModuleConfig_Serial) EqualVT(thatIface isModuleConfig_PayloadVariant) bool {
- that, ok := thatIface.(*ModuleConfig_Serial)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.Serial, that.Serial; p != q {
- if p == nil {
- p = &ModuleConfig_SerialConfig{}
- }
- if q == nil {
- q = &ModuleConfig_SerialConfig{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *ModuleConfig_ExternalNotification) EqualVT(thatIface isModuleConfig_PayloadVariant) bool {
- that, ok := thatIface.(*ModuleConfig_ExternalNotification)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.ExternalNotification, that.ExternalNotification; p != q {
- if p == nil {
- p = &ModuleConfig_ExternalNotificationConfig{}
- }
- if q == nil {
- q = &ModuleConfig_ExternalNotificationConfig{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *ModuleConfig_StoreForward) EqualVT(thatIface isModuleConfig_PayloadVariant) bool {
- that, ok := thatIface.(*ModuleConfig_StoreForward)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.StoreForward, that.StoreForward; p != q {
- if p == nil {
- p = &ModuleConfig_StoreForwardConfig{}
- }
- if q == nil {
- q = &ModuleConfig_StoreForwardConfig{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *ModuleConfig_RangeTest) EqualVT(thatIface isModuleConfig_PayloadVariant) bool {
- that, ok := thatIface.(*ModuleConfig_RangeTest)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.RangeTest, that.RangeTest; p != q {
- if p == nil {
- p = &ModuleConfig_RangeTestConfig{}
- }
- if q == nil {
- q = &ModuleConfig_RangeTestConfig{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *ModuleConfig_Telemetry) EqualVT(thatIface isModuleConfig_PayloadVariant) bool {
- that, ok := thatIface.(*ModuleConfig_Telemetry)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.Telemetry, that.Telemetry; p != q {
- if p == nil {
- p = &ModuleConfig_TelemetryConfig{}
- }
- if q == nil {
- q = &ModuleConfig_TelemetryConfig{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *ModuleConfig_CannedMessage) EqualVT(thatIface isModuleConfig_PayloadVariant) bool {
- that, ok := thatIface.(*ModuleConfig_CannedMessage)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.CannedMessage, that.CannedMessage; p != q {
- if p == nil {
- p = &ModuleConfig_CannedMessageConfig{}
- }
- if q == nil {
- q = &ModuleConfig_CannedMessageConfig{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *ModuleConfig_Audio) EqualVT(thatIface isModuleConfig_PayloadVariant) bool {
- that, ok := thatIface.(*ModuleConfig_Audio)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.Audio, that.Audio; p != q {
- if p == nil {
- p = &ModuleConfig_AudioConfig{}
- }
- if q == nil {
- q = &ModuleConfig_AudioConfig{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *ModuleConfig_RemoteHardware) EqualVT(thatIface isModuleConfig_PayloadVariant) bool {
- that, ok := thatIface.(*ModuleConfig_RemoteHardware)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.RemoteHardware, that.RemoteHardware; p != q {
- if p == nil {
- p = &ModuleConfig_RemoteHardwareConfig{}
- }
- if q == nil {
- q = &ModuleConfig_RemoteHardwareConfig{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *ModuleConfig_NeighborInfo) EqualVT(thatIface isModuleConfig_PayloadVariant) bool {
- that, ok := thatIface.(*ModuleConfig_NeighborInfo)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.NeighborInfo, that.NeighborInfo; p != q {
- if p == nil {
- p = &ModuleConfig_NeighborInfoConfig{}
- }
- if q == nil {
- q = &ModuleConfig_NeighborInfoConfig{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *ModuleConfig_AmbientLighting) EqualVT(thatIface isModuleConfig_PayloadVariant) bool {
- that, ok := thatIface.(*ModuleConfig_AmbientLighting)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.AmbientLighting, that.AmbientLighting; p != q {
- if p == nil {
- p = &ModuleConfig_AmbientLightingConfig{}
- }
- if q == nil {
- q = &ModuleConfig_AmbientLightingConfig{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *ModuleConfig_DetectionSensor) EqualVT(thatIface isModuleConfig_PayloadVariant) bool {
- that, ok := thatIface.(*ModuleConfig_DetectionSensor)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.DetectionSensor, that.DetectionSensor; p != q {
- if p == nil {
- p = &ModuleConfig_DetectionSensorConfig{}
- }
- if q == nil {
- q = &ModuleConfig_DetectionSensorConfig{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *ModuleConfig_Paxcounter) EqualVT(thatIface isModuleConfig_PayloadVariant) bool {
- that, ok := thatIface.(*ModuleConfig_Paxcounter)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.Paxcounter, that.Paxcounter; p != q {
- if p == nil {
- p = &ModuleConfig_PaxcounterConfig{}
- }
- if q == nil {
- q = &ModuleConfig_PaxcounterConfig{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *RemoteHardwarePin) EqualVT(that *RemoteHardwarePin) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.GpioPin != that.GpioPin {
- return false
- }
- if this.Name != that.Name {
- return false
- }
- if this.Type != that.Type {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *RemoteHardwarePin) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*RemoteHardwarePin)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
func (m *ModuleConfig_MQTTConfig) MarshalVT() (dAtA []byte, err error) {
if m == nil {
return nil, nil
@@ -2780,1525 +1455,6 @@ func (m *RemoteHardwarePin) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
return len(dAtA) - i, nil
}
-func (m *ModuleConfig_MQTTConfig) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *ModuleConfig_MQTTConfig) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *ModuleConfig_MQTTConfig) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.ProxyToClientEnabled {
- i--
- if m.ProxyToClientEnabled {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x48
- }
- if len(m.Root) > 0 {
- i -= len(m.Root)
- copy(dAtA[i:], m.Root)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Root)))
- i--
- dAtA[i] = 0x42
- }
- if m.TlsEnabled {
- i--
- if m.TlsEnabled {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x38
- }
- if m.JsonEnabled {
- i--
- if m.JsonEnabled {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x30
- }
- if m.EncryptionEnabled {
- i--
- if m.EncryptionEnabled {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x28
- }
- if len(m.Password) > 0 {
- i -= len(m.Password)
- copy(dAtA[i:], m.Password)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Password)))
- i--
- dAtA[i] = 0x22
- }
- if len(m.Username) > 0 {
- i -= len(m.Username)
- copy(dAtA[i:], m.Username)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Username)))
- i--
- dAtA[i] = 0x1a
- }
- if len(m.Address) > 0 {
- i -= len(m.Address)
- copy(dAtA[i:], m.Address)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Address)))
- i--
- dAtA[i] = 0x12
- }
- if m.Enabled {
- i--
- if m.Enabled {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *ModuleConfig_RemoteHardwareConfig) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *ModuleConfig_RemoteHardwareConfig) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *ModuleConfig_RemoteHardwareConfig) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if len(m.AvailablePins) > 0 {
- for iNdEx := len(m.AvailablePins) - 1; iNdEx >= 0; iNdEx-- {
- size, err := m.AvailablePins[iNdEx].MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x1a
- }
- }
- if m.AllowUndefinedPinAccess {
- i--
- if m.AllowUndefinedPinAccess {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x10
- }
- if m.Enabled {
- i--
- if m.Enabled {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *ModuleConfig_NeighborInfoConfig) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *ModuleConfig_NeighborInfoConfig) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *ModuleConfig_NeighborInfoConfig) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.UpdateInterval != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.UpdateInterval))
- i--
- dAtA[i] = 0x10
- }
- if m.Enabled {
- i--
- if m.Enabled {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *ModuleConfig_DetectionSensorConfig) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *ModuleConfig_DetectionSensorConfig) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *ModuleConfig_DetectionSensorConfig) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.UsePullup {
- i--
- if m.UsePullup {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x40
- }
- if m.DetectionTriggeredHigh {
- i--
- if m.DetectionTriggeredHigh {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x38
- }
- if m.MonitorPin != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.MonitorPin))
- i--
- dAtA[i] = 0x30
- }
- if len(m.Name) > 0 {
- i -= len(m.Name)
- copy(dAtA[i:], m.Name)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name)))
- i--
- dAtA[i] = 0x2a
- }
- if m.SendBell {
- i--
- if m.SendBell {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x20
- }
- if m.StateBroadcastSecs != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.StateBroadcastSecs))
- i--
- dAtA[i] = 0x18
- }
- if m.MinimumBroadcastSecs != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.MinimumBroadcastSecs))
- i--
- dAtA[i] = 0x10
- }
- if m.Enabled {
- i--
- if m.Enabled {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *ModuleConfig_AudioConfig) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *ModuleConfig_AudioConfig) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *ModuleConfig_AudioConfig) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.I2SSck != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.I2SSck))
- i--
- dAtA[i] = 0x38
- }
- if m.I2SDin != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.I2SDin))
- i--
- dAtA[i] = 0x30
- }
- if m.I2SSd != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.I2SSd))
- i--
- dAtA[i] = 0x28
- }
- if m.I2SWs != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.I2SWs))
- i--
- dAtA[i] = 0x20
- }
- if m.Bitrate != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Bitrate))
- i--
- dAtA[i] = 0x18
- }
- if m.PttPin != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.PttPin))
- i--
- dAtA[i] = 0x10
- }
- if m.Codec2Enabled {
- i--
- if m.Codec2Enabled {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *ModuleConfig_PaxcounterConfig) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *ModuleConfig_PaxcounterConfig) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *ModuleConfig_PaxcounterConfig) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.PaxcounterUpdateInterval != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.PaxcounterUpdateInterval))
- i--
- dAtA[i] = 0x10
- }
- if m.Enabled {
- i--
- if m.Enabled {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *ModuleConfig_SerialConfig) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *ModuleConfig_SerialConfig) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *ModuleConfig_SerialConfig) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.OverrideConsoleSerialPort {
- i--
- if m.OverrideConsoleSerialPort {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x40
- }
- if m.Mode != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Mode))
- i--
- dAtA[i] = 0x38
- }
- if m.Timeout != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timeout))
- i--
- dAtA[i] = 0x30
- }
- if m.Baud != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Baud))
- i--
- dAtA[i] = 0x28
- }
- if m.Txd != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Txd))
- i--
- dAtA[i] = 0x20
- }
- if m.Rxd != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Rxd))
- i--
- dAtA[i] = 0x18
- }
- if m.Echo {
- i--
- if m.Echo {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x10
- }
- if m.Enabled {
- i--
- if m.Enabled {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *ModuleConfig_ExternalNotificationConfig) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *ModuleConfig_ExternalNotificationConfig) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *ModuleConfig_ExternalNotificationConfig) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.UseI2SAsBuzzer {
- i--
- if m.UseI2SAsBuzzer {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x78
- }
- if m.NagTimeout != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.NagTimeout))
- i--
- dAtA[i] = 0x70
- }
- if m.AlertBellBuzzer {
- i--
- if m.AlertBellBuzzer {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x68
- }
- if m.AlertBellVibra {
- i--
- if m.AlertBellVibra {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x60
- }
- if m.AlertMessageBuzzer {
- i--
- if m.AlertMessageBuzzer {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x58
- }
- if m.AlertMessageVibra {
- i--
- if m.AlertMessageVibra {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x50
- }
- if m.OutputBuzzer != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.OutputBuzzer))
- i--
- dAtA[i] = 0x48
- }
- if m.OutputVibra != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.OutputVibra))
- i--
- dAtA[i] = 0x40
- }
- if m.UsePwm {
- i--
- if m.UsePwm {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x38
- }
- if m.AlertBell {
- i--
- if m.AlertBell {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x30
- }
- if m.AlertMessage {
- i--
- if m.AlertMessage {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x28
- }
- if m.Active {
- i--
- if m.Active {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x20
- }
- if m.Output != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Output))
- i--
- dAtA[i] = 0x18
- }
- if m.OutputMs != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.OutputMs))
- i--
- dAtA[i] = 0x10
- }
- if m.Enabled {
- i--
- if m.Enabled {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *ModuleConfig_StoreForwardConfig) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *ModuleConfig_StoreForwardConfig) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *ModuleConfig_StoreForwardConfig) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.HistoryReturnWindow != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.HistoryReturnWindow))
- i--
- dAtA[i] = 0x28
- }
- if m.HistoryReturnMax != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.HistoryReturnMax))
- i--
- dAtA[i] = 0x20
- }
- if m.Records != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Records))
- i--
- dAtA[i] = 0x18
- }
- if m.Heartbeat {
- i--
- if m.Heartbeat {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x10
- }
- if m.Enabled {
- i--
- if m.Enabled {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *ModuleConfig_RangeTestConfig) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *ModuleConfig_RangeTestConfig) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *ModuleConfig_RangeTestConfig) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.Save {
- i--
- if m.Save {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x18
- }
- if m.Sender != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Sender))
- i--
- dAtA[i] = 0x10
- }
- if m.Enabled {
- i--
- if m.Enabled {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *ModuleConfig_TelemetryConfig) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *ModuleConfig_TelemetryConfig) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *ModuleConfig_TelemetryConfig) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.PowerScreenEnabled {
- i--
- if m.PowerScreenEnabled {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x50
- }
- if m.PowerUpdateInterval != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.PowerUpdateInterval))
- i--
- dAtA[i] = 0x48
- }
- if m.PowerMeasurementEnabled {
- i--
- if m.PowerMeasurementEnabled {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x40
- }
- if m.AirQualityInterval != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.AirQualityInterval))
- i--
- dAtA[i] = 0x38
- }
- if m.AirQualityEnabled {
- i--
- if m.AirQualityEnabled {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x30
- }
- if m.EnvironmentDisplayFahrenheit {
- i--
- if m.EnvironmentDisplayFahrenheit {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x28
- }
- if m.EnvironmentScreenEnabled {
- i--
- if m.EnvironmentScreenEnabled {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x20
- }
- if m.EnvironmentMeasurementEnabled {
- i--
- if m.EnvironmentMeasurementEnabled {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x18
- }
- if m.EnvironmentUpdateInterval != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.EnvironmentUpdateInterval))
- i--
- dAtA[i] = 0x10
- }
- if m.DeviceUpdateInterval != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.DeviceUpdateInterval))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *ModuleConfig_CannedMessageConfig) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *ModuleConfig_CannedMessageConfig) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *ModuleConfig_CannedMessageConfig) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.SendBell {
- i--
- if m.SendBell {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x58
- }
- if len(m.AllowInputSource) > 0 {
- i -= len(m.AllowInputSource)
- copy(dAtA[i:], m.AllowInputSource)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.AllowInputSource)))
- i--
- dAtA[i] = 0x52
- }
- if m.Enabled {
- i--
- if m.Enabled {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x48
- }
- if m.Updown1Enabled {
- i--
- if m.Updown1Enabled {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x40
- }
- if m.InputbrokerEventPress != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.InputbrokerEventPress))
- i--
- dAtA[i] = 0x38
- }
- if m.InputbrokerEventCcw != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.InputbrokerEventCcw))
- i--
- dAtA[i] = 0x30
- }
- if m.InputbrokerEventCw != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.InputbrokerEventCw))
- i--
- dAtA[i] = 0x28
- }
- if m.InputbrokerPinPress != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.InputbrokerPinPress))
- i--
- dAtA[i] = 0x20
- }
- if m.InputbrokerPinB != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.InputbrokerPinB))
- i--
- dAtA[i] = 0x18
- }
- if m.InputbrokerPinA != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.InputbrokerPinA))
- i--
- dAtA[i] = 0x10
- }
- if m.Rotary1Enabled {
- i--
- if m.Rotary1Enabled {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *ModuleConfig_AmbientLightingConfig) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *ModuleConfig_AmbientLightingConfig) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *ModuleConfig_AmbientLightingConfig) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.Blue != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Blue))
- i--
- dAtA[i] = 0x28
- }
- if m.Green != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Green))
- i--
- dAtA[i] = 0x20
- }
- if m.Red != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Red))
- i--
- dAtA[i] = 0x18
- }
- if m.Current != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Current))
- i--
- dAtA[i] = 0x10
- }
- if m.LedState {
- i--
- if m.LedState {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *ModuleConfig) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *ModuleConfig) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *ModuleConfig) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if msg, ok := m.PayloadVariant.(*ModuleConfig_Paxcounter); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*ModuleConfig_DetectionSensor); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*ModuleConfig_AmbientLighting); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*ModuleConfig_NeighborInfo); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*ModuleConfig_RemoteHardware); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*ModuleConfig_Audio); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*ModuleConfig_CannedMessage); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*ModuleConfig_Telemetry); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*ModuleConfig_RangeTest); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*ModuleConfig_StoreForward); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*ModuleConfig_ExternalNotification); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*ModuleConfig_Serial); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.PayloadVariant.(*ModuleConfig_Mqtt); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- return len(dAtA) - i, nil
-}
-
-func (m *ModuleConfig_Mqtt) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *ModuleConfig_Mqtt) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.Mqtt != nil {
- size, err := m.Mqtt.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
-}
-func (m *ModuleConfig_Serial) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *ModuleConfig_Serial) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.Serial != nil {
- size, err := m.Serial.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x12
- }
- return len(dAtA) - i, nil
-}
-func (m *ModuleConfig_ExternalNotification) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *ModuleConfig_ExternalNotification) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.ExternalNotification != nil {
- size, err := m.ExternalNotification.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x1a
- }
- return len(dAtA) - i, nil
-}
-func (m *ModuleConfig_StoreForward) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *ModuleConfig_StoreForward) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.StoreForward != nil {
- size, err := m.StoreForward.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x22
- }
- return len(dAtA) - i, nil
-}
-func (m *ModuleConfig_RangeTest) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *ModuleConfig_RangeTest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.RangeTest != nil {
- size, err := m.RangeTest.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x2a
- }
- return len(dAtA) - i, nil
-}
-func (m *ModuleConfig_Telemetry) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *ModuleConfig_Telemetry) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.Telemetry != nil {
- size, err := m.Telemetry.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x32
- }
- return len(dAtA) - i, nil
-}
-func (m *ModuleConfig_CannedMessage) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *ModuleConfig_CannedMessage) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.CannedMessage != nil {
- size, err := m.CannedMessage.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x3a
- }
- return len(dAtA) - i, nil
-}
-func (m *ModuleConfig_Audio) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *ModuleConfig_Audio) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.Audio != nil {
- size, err := m.Audio.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x42
- }
- return len(dAtA) - i, nil
-}
-func (m *ModuleConfig_RemoteHardware) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *ModuleConfig_RemoteHardware) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.RemoteHardware != nil {
- size, err := m.RemoteHardware.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x4a
- }
- return len(dAtA) - i, nil
-}
-func (m *ModuleConfig_NeighborInfo) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *ModuleConfig_NeighborInfo) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.NeighborInfo != nil {
- size, err := m.NeighborInfo.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x52
- }
- return len(dAtA) - i, nil
-}
-func (m *ModuleConfig_AmbientLighting) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *ModuleConfig_AmbientLighting) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.AmbientLighting != nil {
- size, err := m.AmbientLighting.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x5a
- }
- return len(dAtA) - i, nil
-}
-func (m *ModuleConfig_DetectionSensor) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *ModuleConfig_DetectionSensor) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.DetectionSensor != nil {
- size, err := m.DetectionSensor.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x62
- }
- return len(dAtA) - i, nil
-}
-func (m *ModuleConfig_Paxcounter) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *ModuleConfig_Paxcounter) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.Paxcounter != nil {
- size, err := m.Paxcounter.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x6a
- }
- return len(dAtA) - i, nil
-}
-func (m *RemoteHardwarePin) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *RemoteHardwarePin) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *RemoteHardwarePin) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.Type != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Type))
- i--
- dAtA[i] = 0x18
- }
- if len(m.Name) > 0 {
- i -= len(m.Name)
- copy(dAtA[i:], m.Name)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name)))
- i--
- dAtA[i] = 0x12
- }
- if m.GpioPin != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.GpioPin))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
func (m *ModuleConfig_MQTTConfig) SizeVT() (n int) {
if m == nil {
return 0
@@ -8066,3206 +5222,3 @@ func (m *RemoteHardwarePin) UnmarshalVT(dAtA []byte) error {
}
return nil
}
-func (m *ModuleConfig_MQTTConfig) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: ModuleConfig_MQTTConfig: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: ModuleConfig_MQTTConfig: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Enabled = bool(v != 0)
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var stringValue string
- if intStringLen > 0 {
- stringValue = unsafe.String(&dAtA[iNdEx], intStringLen)
- }
- m.Address = stringValue
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var stringValue string
- if intStringLen > 0 {
- stringValue = unsafe.String(&dAtA[iNdEx], intStringLen)
- }
- m.Username = stringValue
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var stringValue string
- if intStringLen > 0 {
- stringValue = unsafe.String(&dAtA[iNdEx], intStringLen)
- }
- m.Password = stringValue
- iNdEx = postIndex
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field EncryptionEnabled", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.EncryptionEnabled = bool(v != 0)
- case 6:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field JsonEnabled", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.JsonEnabled = bool(v != 0)
- case 7:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field TlsEnabled", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.TlsEnabled = bool(v != 0)
- case 8:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Root", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var stringValue string
- if intStringLen > 0 {
- stringValue = unsafe.String(&dAtA[iNdEx], intStringLen)
- }
- m.Root = stringValue
- iNdEx = postIndex
- case 9:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ProxyToClientEnabled", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.ProxyToClientEnabled = bool(v != 0)
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *ModuleConfig_RemoteHardwareConfig) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: ModuleConfig_RemoteHardwareConfig: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: ModuleConfig_RemoteHardwareConfig: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Enabled = bool(v != 0)
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field AllowUndefinedPinAccess", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.AllowUndefinedPinAccess = bool(v != 0)
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field AvailablePins", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.AvailablePins = append(m.AvailablePins, &RemoteHardwarePin{})
- if err := m.AvailablePins[len(m.AvailablePins)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *ModuleConfig_NeighborInfoConfig) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: ModuleConfig_NeighborInfoConfig: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: ModuleConfig_NeighborInfoConfig: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Enabled = bool(v != 0)
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UpdateInterval", wireType)
- }
- m.UpdateInterval = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.UpdateInterval |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *ModuleConfig_DetectionSensorConfig) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: ModuleConfig_DetectionSensorConfig: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: ModuleConfig_DetectionSensorConfig: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Enabled = bool(v != 0)
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field MinimumBroadcastSecs", wireType)
- }
- m.MinimumBroadcastSecs = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.MinimumBroadcastSecs |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field StateBroadcastSecs", wireType)
- }
- m.StateBroadcastSecs = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.StateBroadcastSecs |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field SendBell", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.SendBell = bool(v != 0)
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var stringValue string
- if intStringLen > 0 {
- stringValue = unsafe.String(&dAtA[iNdEx], intStringLen)
- }
- m.Name = stringValue
- iNdEx = postIndex
- case 6:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field MonitorPin", wireType)
- }
- m.MonitorPin = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.MonitorPin |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 7:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field DetectionTriggeredHigh", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.DetectionTriggeredHigh = bool(v != 0)
- case 8:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UsePullup", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.UsePullup = bool(v != 0)
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *ModuleConfig_AudioConfig) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: ModuleConfig_AudioConfig: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: ModuleConfig_AudioConfig: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Codec2Enabled", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Codec2Enabled = bool(v != 0)
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field PttPin", wireType)
- }
- m.PttPin = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.PttPin |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Bitrate", wireType)
- }
- m.Bitrate = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Bitrate |= ModuleConfig_AudioConfig_Audio_Baud(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field I2SWs", wireType)
- }
- m.I2SWs = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.I2SWs |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field I2SSd", wireType)
- }
- m.I2SSd = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.I2SSd |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 6:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field I2SDin", wireType)
- }
- m.I2SDin = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.I2SDin |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 7:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field I2SSck", wireType)
- }
- m.I2SSck = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.I2SSck |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *ModuleConfig_PaxcounterConfig) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: ModuleConfig_PaxcounterConfig: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: ModuleConfig_PaxcounterConfig: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Enabled = bool(v != 0)
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field PaxcounterUpdateInterval", wireType)
- }
- m.PaxcounterUpdateInterval = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.PaxcounterUpdateInterval |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *ModuleConfig_SerialConfig) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: ModuleConfig_SerialConfig: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: ModuleConfig_SerialConfig: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Enabled = bool(v != 0)
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Echo", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Echo = bool(v != 0)
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Rxd", wireType)
- }
- m.Rxd = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Rxd |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Txd", wireType)
- }
- m.Txd = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Txd |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Baud", wireType)
- }
- m.Baud = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Baud |= ModuleConfig_SerialConfig_Serial_Baud(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 6:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Timeout", wireType)
- }
- m.Timeout = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Timeout |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 7:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType)
- }
- m.Mode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Mode |= ModuleConfig_SerialConfig_Serial_Mode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 8:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field OverrideConsoleSerialPort", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.OverrideConsoleSerialPort = bool(v != 0)
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *ModuleConfig_ExternalNotificationConfig) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: ModuleConfig_ExternalNotificationConfig: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: ModuleConfig_ExternalNotificationConfig: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Enabled = bool(v != 0)
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field OutputMs", wireType)
- }
- m.OutputMs = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.OutputMs |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Output", wireType)
- }
- m.Output = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Output |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Active", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Active = bool(v != 0)
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field AlertMessage", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.AlertMessage = bool(v != 0)
- case 6:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field AlertBell", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.AlertBell = bool(v != 0)
- case 7:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UsePwm", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.UsePwm = bool(v != 0)
- case 8:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field OutputVibra", wireType)
- }
- m.OutputVibra = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.OutputVibra |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 9:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field OutputBuzzer", wireType)
- }
- m.OutputBuzzer = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.OutputBuzzer |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 10:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field AlertMessageVibra", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.AlertMessageVibra = bool(v != 0)
- case 11:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field AlertMessageBuzzer", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.AlertMessageBuzzer = bool(v != 0)
- case 12:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field AlertBellVibra", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.AlertBellVibra = bool(v != 0)
- case 13:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field AlertBellBuzzer", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.AlertBellBuzzer = bool(v != 0)
- case 14:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field NagTimeout", wireType)
- }
- m.NagTimeout = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.NagTimeout |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 15:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UseI2SAsBuzzer", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.UseI2SAsBuzzer = bool(v != 0)
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *ModuleConfig_StoreForwardConfig) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: ModuleConfig_StoreForwardConfig: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: ModuleConfig_StoreForwardConfig: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Enabled = bool(v != 0)
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Heartbeat", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Heartbeat = bool(v != 0)
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Records", wireType)
- }
- m.Records = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Records |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field HistoryReturnMax", wireType)
- }
- m.HistoryReturnMax = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.HistoryReturnMax |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field HistoryReturnWindow", wireType)
- }
- m.HistoryReturnWindow = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.HistoryReturnWindow |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *ModuleConfig_RangeTestConfig) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: ModuleConfig_RangeTestConfig: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: ModuleConfig_RangeTestConfig: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Enabled = bool(v != 0)
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType)
- }
- m.Sender = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Sender |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Save", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Save = bool(v != 0)
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *ModuleConfig_TelemetryConfig) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: ModuleConfig_TelemetryConfig: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: ModuleConfig_TelemetryConfig: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field DeviceUpdateInterval", wireType)
- }
- m.DeviceUpdateInterval = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.DeviceUpdateInterval |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field EnvironmentUpdateInterval", wireType)
- }
- m.EnvironmentUpdateInterval = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.EnvironmentUpdateInterval |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field EnvironmentMeasurementEnabled", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.EnvironmentMeasurementEnabled = bool(v != 0)
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field EnvironmentScreenEnabled", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.EnvironmentScreenEnabled = bool(v != 0)
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field EnvironmentDisplayFahrenheit", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.EnvironmentDisplayFahrenheit = bool(v != 0)
- case 6:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field AirQualityEnabled", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.AirQualityEnabled = bool(v != 0)
- case 7:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field AirQualityInterval", wireType)
- }
- m.AirQualityInterval = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.AirQualityInterval |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 8:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field PowerMeasurementEnabled", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.PowerMeasurementEnabled = bool(v != 0)
- case 9:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field PowerUpdateInterval", wireType)
- }
- m.PowerUpdateInterval = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.PowerUpdateInterval |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 10:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field PowerScreenEnabled", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.PowerScreenEnabled = bool(v != 0)
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *ModuleConfig_CannedMessageConfig) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: ModuleConfig_CannedMessageConfig: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: ModuleConfig_CannedMessageConfig: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Rotary1Enabled", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Rotary1Enabled = bool(v != 0)
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field InputbrokerPinA", wireType)
- }
- m.InputbrokerPinA = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.InputbrokerPinA |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field InputbrokerPinB", wireType)
- }
- m.InputbrokerPinB = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.InputbrokerPinB |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field InputbrokerPinPress", wireType)
- }
- m.InputbrokerPinPress = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.InputbrokerPinPress |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field InputbrokerEventCw", wireType)
- }
- m.InputbrokerEventCw = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.InputbrokerEventCw |= ModuleConfig_CannedMessageConfig_InputEventChar(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 6:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field InputbrokerEventCcw", wireType)
- }
- m.InputbrokerEventCcw = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.InputbrokerEventCcw |= ModuleConfig_CannedMessageConfig_InputEventChar(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 7:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field InputbrokerEventPress", wireType)
- }
- m.InputbrokerEventPress = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.InputbrokerEventPress |= ModuleConfig_CannedMessageConfig_InputEventChar(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 8:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Updown1Enabled", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Updown1Enabled = bool(v != 0)
- case 9:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Enabled = bool(v != 0)
- case 10:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field AllowInputSource", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var stringValue string
- if intStringLen > 0 {
- stringValue = unsafe.String(&dAtA[iNdEx], intStringLen)
- }
- m.AllowInputSource = stringValue
- iNdEx = postIndex
- case 11:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field SendBell", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.SendBell = bool(v != 0)
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *ModuleConfig_AmbientLightingConfig) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: ModuleConfig_AmbientLightingConfig: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: ModuleConfig_AmbientLightingConfig: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field LedState", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.LedState = bool(v != 0)
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Current", wireType)
- }
- m.Current = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Current |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Red", wireType)
- }
- m.Red = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Red |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Green", wireType)
- }
- m.Green = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Green |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Blue", wireType)
- }
- m.Blue = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Blue |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *ModuleConfig) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: ModuleConfig: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: ModuleConfig: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Mqtt", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*ModuleConfig_Mqtt); ok {
- if err := oneof.Mqtt.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &ModuleConfig_MQTTConfig{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &ModuleConfig_Mqtt{Mqtt: v}
- }
- iNdEx = postIndex
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Serial", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*ModuleConfig_Serial); ok {
- if err := oneof.Serial.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &ModuleConfig_SerialConfig{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &ModuleConfig_Serial{Serial: v}
- }
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ExternalNotification", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*ModuleConfig_ExternalNotification); ok {
- if err := oneof.ExternalNotification.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &ModuleConfig_ExternalNotificationConfig{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &ModuleConfig_ExternalNotification{ExternalNotification: v}
- }
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field StoreForward", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*ModuleConfig_StoreForward); ok {
- if err := oneof.StoreForward.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &ModuleConfig_StoreForwardConfig{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &ModuleConfig_StoreForward{StoreForward: v}
- }
- iNdEx = postIndex
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field RangeTest", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*ModuleConfig_RangeTest); ok {
- if err := oneof.RangeTest.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &ModuleConfig_RangeTestConfig{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &ModuleConfig_RangeTest{RangeTest: v}
- }
- iNdEx = postIndex
- case 6:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Telemetry", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*ModuleConfig_Telemetry); ok {
- if err := oneof.Telemetry.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &ModuleConfig_TelemetryConfig{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &ModuleConfig_Telemetry{Telemetry: v}
- }
- iNdEx = postIndex
- case 7:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field CannedMessage", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*ModuleConfig_CannedMessage); ok {
- if err := oneof.CannedMessage.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &ModuleConfig_CannedMessageConfig{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &ModuleConfig_CannedMessage{CannedMessage: v}
- }
- iNdEx = postIndex
- case 8:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Audio", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*ModuleConfig_Audio); ok {
- if err := oneof.Audio.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &ModuleConfig_AudioConfig{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &ModuleConfig_Audio{Audio: v}
- }
- iNdEx = postIndex
- case 9:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field RemoteHardware", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*ModuleConfig_RemoteHardware); ok {
- if err := oneof.RemoteHardware.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &ModuleConfig_RemoteHardwareConfig{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &ModuleConfig_RemoteHardware{RemoteHardware: v}
- }
- iNdEx = postIndex
- case 10:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field NeighborInfo", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*ModuleConfig_NeighborInfo); ok {
- if err := oneof.NeighborInfo.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &ModuleConfig_NeighborInfoConfig{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &ModuleConfig_NeighborInfo{NeighborInfo: v}
- }
- iNdEx = postIndex
- case 11:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field AmbientLighting", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*ModuleConfig_AmbientLighting); ok {
- if err := oneof.AmbientLighting.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &ModuleConfig_AmbientLightingConfig{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &ModuleConfig_AmbientLighting{AmbientLighting: v}
- }
- iNdEx = postIndex
- case 12:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field DetectionSensor", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*ModuleConfig_DetectionSensor); ok {
- if err := oneof.DetectionSensor.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &ModuleConfig_DetectionSensorConfig{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &ModuleConfig_DetectionSensor{DetectionSensor: v}
- }
- iNdEx = postIndex
- case 13:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Paxcounter", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.PayloadVariant.(*ModuleConfig_Paxcounter); ok {
- if err := oneof.Paxcounter.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &ModuleConfig_PaxcounterConfig{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.PayloadVariant = &ModuleConfig_Paxcounter{Paxcounter: v}
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *RemoteHardwarePin) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: RemoteHardwarePin: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: RemoteHardwarePin: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GpioPin", wireType)
- }
- m.GpioPin = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GpioPin |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var stringValue string
- if intStringLen > 0 {
- stringValue = unsafe.String(&dAtA[iNdEx], intStringLen)
- }
- m.Name = stringValue
- iNdEx = postIndex
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
- }
- m.Type = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Type |= RemoteHardwarePinType(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
diff --git a/meshtastic/mqtt.pb.go b/meshtastic/mqtt.pb.go
index 22e2d0e..ea3e5c7 100644
--- a/meshtastic/mqtt.pb.go
+++ b/meshtastic/mqtt.pb.go
@@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.31.0
-// protoc v4.24.3
+// protoc-gen-go v1.32.0
+// protoc v4.25.2
// source: meshtastic/mqtt.proto
package generated
diff --git a/meshtastic/mqtt_vtproto.pb.go b/meshtastic/mqtt_vtproto.pb.go
index 2f3c5a8..ddfe1b8 100644
--- a/meshtastic/mqtt_vtproto.pb.go
+++ b/meshtastic/mqtt_vtproto.pb.go
@@ -7,10 +7,8 @@ package generated
import (
fmt "fmt"
protohelpers "github.com/planetscale/vtprotobuf/protohelpers"
- proto "google.golang.org/protobuf/proto"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
- unsafe "unsafe"
)
const (
@@ -20,50 +18,6 @@ const (
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
-func (m *ServiceEnvelope) CloneVT() *ServiceEnvelope {
- if m == nil {
- return (*ServiceEnvelope)(nil)
- }
- r := new(ServiceEnvelope)
- r.Packet = m.Packet.CloneVT()
- r.ChannelId = m.ChannelId
- r.GatewayId = m.GatewayId
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *ServiceEnvelope) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (this *ServiceEnvelope) EqualVT(that *ServiceEnvelope) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if !this.Packet.EqualVT(that.Packet) {
- return false
- }
- if this.ChannelId != that.ChannelId {
- return false
- }
- if this.GatewayId != that.GatewayId {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *ServiceEnvelope) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*ServiceEnvelope)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
func (m *ServiceEnvelope) MarshalVT() (dAtA []byte, err error) {
if m == nil {
return nil, nil
@@ -121,63 +75,6 @@ func (m *ServiceEnvelope) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
return len(dAtA) - i, nil
}
-func (m *ServiceEnvelope) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *ServiceEnvelope) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *ServiceEnvelope) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if len(m.GatewayId) > 0 {
- i -= len(m.GatewayId)
- copy(dAtA[i:], m.GatewayId)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.GatewayId)))
- i--
- dAtA[i] = 0x1a
- }
- if len(m.ChannelId) > 0 {
- i -= len(m.ChannelId)
- copy(dAtA[i:], m.ChannelId)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ChannelId)))
- i--
- dAtA[i] = 0x12
- }
- if m.Packet != nil {
- size, err := m.Packet.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
-}
-
func (m *ServiceEnvelope) SizeVT() (n int) {
if m == nil {
return 0
@@ -351,162 +248,3 @@ func (m *ServiceEnvelope) UnmarshalVT(dAtA []byte) error {
}
return nil
}
-func (m *ServiceEnvelope) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: ServiceEnvelope: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: ServiceEnvelope: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Packet", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Packet == nil {
- m.Packet = &MeshPacket{}
- }
- if err := m.Packet.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var stringValue string
- if intStringLen > 0 {
- stringValue = unsafe.String(&dAtA[iNdEx], intStringLen)
- }
- m.ChannelId = stringValue
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GatewayId", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var stringValue string
- if intStringLen > 0 {
- stringValue = unsafe.String(&dAtA[iNdEx], intStringLen)
- }
- m.GatewayId = stringValue
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
diff --git a/meshtastic/paxcount.pb.go b/meshtastic/paxcount.pb.go
index 0cf7c3f..ee3b0e0 100644
--- a/meshtastic/paxcount.pb.go
+++ b/meshtastic/paxcount.pb.go
@@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.31.0
-// protoc v4.24.3
+// protoc-gen-go v1.32.0
+// protoc v4.25.2
// source: meshtastic/paxcount.proto
package generated
diff --git a/meshtastic/paxcount_vtproto.pb.go b/meshtastic/paxcount_vtproto.pb.go
index 0f0f046..caf1807 100644
--- a/meshtastic/paxcount_vtproto.pb.go
+++ b/meshtastic/paxcount_vtproto.pb.go
@@ -7,7 +7,6 @@ package generated
import (
fmt "fmt"
protohelpers "github.com/planetscale/vtprotobuf/protohelpers"
- proto "google.golang.org/protobuf/proto"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
)
@@ -19,50 +18,6 @@ const (
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
-func (m *Paxcount) CloneVT() *Paxcount {
- if m == nil {
- return (*Paxcount)(nil)
- }
- r := new(Paxcount)
- r.Wifi = m.Wifi
- r.Ble = m.Ble
- r.Uptime = m.Uptime
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *Paxcount) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (this *Paxcount) EqualVT(that *Paxcount) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.Wifi != that.Wifi {
- return false
- }
- if this.Ble != that.Ble {
- return false
- }
- if this.Uptime != that.Uptime {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *Paxcount) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*Paxcount)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
func (m *Paxcount) MarshalVT() (dAtA []byte, err error) {
if m == nil {
return nil, nil
@@ -111,54 +66,6 @@ func (m *Paxcount) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
return len(dAtA) - i, nil
}
-func (m *Paxcount) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *Paxcount) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *Paxcount) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.Uptime != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Uptime))
- i--
- dAtA[i] = 0x18
- }
- if m.Ble != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Ble))
- i--
- dAtA[i] = 0x10
- }
- if m.Wifi != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Wifi))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
func (m *Paxcount) SizeVT() (n int) {
if m == nil {
return 0
@@ -286,111 +193,3 @@ func (m *Paxcount) UnmarshalVT(dAtA []byte) error {
}
return nil
}
-func (m *Paxcount) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: Paxcount: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Paxcount: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Wifi", wireType)
- }
- m.Wifi = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Wifi |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Ble", wireType)
- }
- m.Ble = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Ble |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Uptime", wireType)
- }
- m.Uptime = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Uptime |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
diff --git a/meshtastic/portnums.pb.go b/meshtastic/portnums.pb.go
index e362328..69e3c76 100644
--- a/meshtastic/portnums.pb.go
+++ b/meshtastic/portnums.pb.go
@@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.31.0
-// protoc v4.24.3
+// protoc-gen-go v1.32.0
+// protoc v4.25.2
// source: meshtastic/portnums.proto
package generated
diff --git a/meshtastic/remote_hardware.pb.go b/meshtastic/remote_hardware.pb.go
index 804f33f..f224e33 100644
--- a/meshtastic/remote_hardware.pb.go
+++ b/meshtastic/remote_hardware.pb.go
@@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.31.0
-// protoc v4.24.3
+// protoc-gen-go v1.32.0
+// protoc v4.25.2
// source: meshtastic/remote_hardware.proto
package generated
diff --git a/meshtastic/remote_hardware_vtproto.pb.go b/meshtastic/remote_hardware_vtproto.pb.go
index ed37206..6b114d6 100644
--- a/meshtastic/remote_hardware_vtproto.pb.go
+++ b/meshtastic/remote_hardware_vtproto.pb.go
@@ -7,7 +7,6 @@ package generated
import (
fmt "fmt"
protohelpers "github.com/planetscale/vtprotobuf/protohelpers"
- proto "google.golang.org/protobuf/proto"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
)
@@ -19,50 +18,6 @@ const (
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
-func (m *HardwareMessage) CloneVT() *HardwareMessage {
- if m == nil {
- return (*HardwareMessage)(nil)
- }
- r := new(HardwareMessage)
- r.Type = m.Type
- r.GpioMask = m.GpioMask
- r.GpioValue = m.GpioValue
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *HardwareMessage) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (this *HardwareMessage) EqualVT(that *HardwareMessage) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.Type != that.Type {
- return false
- }
- if this.GpioMask != that.GpioMask {
- return false
- }
- if this.GpioValue != that.GpioValue {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *HardwareMessage) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*HardwareMessage)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
func (m *HardwareMessage) MarshalVT() (dAtA []byte, err error) {
if m == nil {
return nil, nil
@@ -111,54 +66,6 @@ func (m *HardwareMessage) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
return len(dAtA) - i, nil
}
-func (m *HardwareMessage) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *HardwareMessage) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *HardwareMessage) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.GpioValue != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.GpioValue))
- i--
- dAtA[i] = 0x18
- }
- if m.GpioMask != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.GpioMask))
- i--
- dAtA[i] = 0x10
- }
- if m.Type != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Type))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
func (m *HardwareMessage) SizeVT() (n int) {
if m == nil {
return 0
@@ -286,111 +193,3 @@ func (m *HardwareMessage) UnmarshalVT(dAtA []byte) error {
}
return nil
}
-func (m *HardwareMessage) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: HardwareMessage: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: HardwareMessage: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
- }
- m.Type = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Type |= HardwareMessage_Type(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GpioMask", wireType)
- }
- m.GpioMask = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GpioMask |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GpioValue", wireType)
- }
- m.GpioValue = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GpioValue |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
diff --git a/meshtastic/rtttl.pb.go b/meshtastic/rtttl.pb.go
index eac6bf9..436d0db 100644
--- a/meshtastic/rtttl.pb.go
+++ b/meshtastic/rtttl.pb.go
@@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.31.0
-// protoc v4.24.3
+// protoc-gen-go v1.32.0
+// protoc v4.25.2
// source: meshtastic/rtttl.proto
package generated
diff --git a/meshtastic/rtttl_vtproto.pb.go b/meshtastic/rtttl_vtproto.pb.go
index 34a40a7..2fa2c19 100644
--- a/meshtastic/rtttl_vtproto.pb.go
+++ b/meshtastic/rtttl_vtproto.pb.go
@@ -7,10 +7,8 @@ package generated
import (
fmt "fmt"
protohelpers "github.com/planetscale/vtprotobuf/protohelpers"
- proto "google.golang.org/protobuf/proto"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
- unsafe "unsafe"
)
const (
@@ -20,42 +18,6 @@ const (
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
-func (m *RTTTLConfig) CloneVT() *RTTTLConfig {
- if m == nil {
- return (*RTTTLConfig)(nil)
- }
- r := new(RTTTLConfig)
- r.Ringtone = m.Ringtone
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *RTTTLConfig) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (this *RTTTLConfig) EqualVT(that *RTTTLConfig) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.Ringtone != that.Ringtone {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *RTTTLConfig) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*RTTTLConfig)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
func (m *RTTTLConfig) MarshalVT() (dAtA []byte, err error) {
if m == nil {
return nil, nil
@@ -96,46 +58,6 @@ func (m *RTTTLConfig) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
return len(dAtA) - i, nil
}
-func (m *RTTTLConfig) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *RTTTLConfig) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *RTTTLConfig) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if len(m.Ringtone) > 0 {
- i -= len(m.Ringtone)
- copy(dAtA[i:], m.Ringtone)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Ringtone)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
-}
-
func (m *RTTTLConfig) SizeVT() (n int) {
if m == nil {
return 0
@@ -233,90 +155,3 @@ func (m *RTTTLConfig) UnmarshalVT(dAtA []byte) error {
}
return nil
}
-func (m *RTTTLConfig) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: RTTTLConfig: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: RTTTLConfig: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Ringtone", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var stringValue string
- if intStringLen > 0 {
- stringValue = unsafe.String(&dAtA[iNdEx], intStringLen)
- }
- m.Ringtone = stringValue
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
diff --git a/meshtastic/storeforward.pb.go b/meshtastic/storeforward.pb.go
index 9b05ae8..df23d89 100644
--- a/meshtastic/storeforward.pb.go
+++ b/meshtastic/storeforward.pb.go
@@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.31.0
-// protoc v4.24.3
+// protoc-gen-go v1.32.0
+// protoc v4.25.2
// source: meshtastic/storeforward.proto
package generated
diff --git a/meshtastic/storeforward_vtproto.pb.go b/meshtastic/storeforward_vtproto.pb.go
index cdc8f2d..49218bf 100644
--- a/meshtastic/storeforward_vtproto.pb.go
+++ b/meshtastic/storeforward_vtproto.pb.go
@@ -7,7 +7,6 @@ package generated
import (
fmt "fmt"
protohelpers "github.com/planetscale/vtprotobuf/protohelpers"
- proto "google.golang.org/protobuf/proto"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
)
@@ -19,343 +18,6 @@ const (
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
-func (m *StoreAndForward_Statistics) CloneVT() *StoreAndForward_Statistics {
- if m == nil {
- return (*StoreAndForward_Statistics)(nil)
- }
- r := new(StoreAndForward_Statistics)
- r.MessagesTotal = m.MessagesTotal
- r.MessagesSaved = m.MessagesSaved
- r.MessagesMax = m.MessagesMax
- r.UpTime = m.UpTime
- r.Requests = m.Requests
- r.RequestsHistory = m.RequestsHistory
- r.Heartbeat = m.Heartbeat
- r.ReturnMax = m.ReturnMax
- r.ReturnWindow = m.ReturnWindow
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *StoreAndForward_Statistics) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *StoreAndForward_History) CloneVT() *StoreAndForward_History {
- if m == nil {
- return (*StoreAndForward_History)(nil)
- }
- r := new(StoreAndForward_History)
- r.HistoryMessages = m.HistoryMessages
- r.Window = m.Window
- r.LastRequest = m.LastRequest
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *StoreAndForward_History) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *StoreAndForward_Heartbeat) CloneVT() *StoreAndForward_Heartbeat {
- if m == nil {
- return (*StoreAndForward_Heartbeat)(nil)
- }
- r := new(StoreAndForward_Heartbeat)
- r.Period = m.Period
- r.Secondary = m.Secondary
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *StoreAndForward_Heartbeat) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *StoreAndForward) CloneVT() *StoreAndForward {
- if m == nil {
- return (*StoreAndForward)(nil)
- }
- r := new(StoreAndForward)
- r.Rr = m.Rr
- if m.Variant != nil {
- r.Variant = m.Variant.(interface {
- CloneVT() isStoreAndForward_Variant
- }).CloneVT()
- }
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *StoreAndForward) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *StoreAndForward_Stats) CloneVT() isStoreAndForward_Variant {
- if m == nil {
- return (*StoreAndForward_Stats)(nil)
- }
- r := new(StoreAndForward_Stats)
- r.Stats = m.Stats.CloneVT()
- return r
-}
-
-func (m *StoreAndForward_History_) CloneVT() isStoreAndForward_Variant {
- if m == nil {
- return (*StoreAndForward_History_)(nil)
- }
- r := new(StoreAndForward_History_)
- r.History = m.History.CloneVT()
- return r
-}
-
-func (m *StoreAndForward_Heartbeat_) CloneVT() isStoreAndForward_Variant {
- if m == nil {
- return (*StoreAndForward_Heartbeat_)(nil)
- }
- r := new(StoreAndForward_Heartbeat_)
- r.Heartbeat = m.Heartbeat.CloneVT()
- return r
-}
-
-func (m *StoreAndForward_Text) CloneVT() isStoreAndForward_Variant {
- if m == nil {
- return (*StoreAndForward_Text)(nil)
- }
- r := new(StoreAndForward_Text)
- if rhs := m.Text; rhs != nil {
- tmpBytes := make([]byte, len(rhs))
- copy(tmpBytes, rhs)
- r.Text = tmpBytes
- }
- return r
-}
-
-func (this *StoreAndForward_Statistics) EqualVT(that *StoreAndForward_Statistics) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.MessagesTotal != that.MessagesTotal {
- return false
- }
- if this.MessagesSaved != that.MessagesSaved {
- return false
- }
- if this.MessagesMax != that.MessagesMax {
- return false
- }
- if this.UpTime != that.UpTime {
- return false
- }
- if this.Requests != that.Requests {
- return false
- }
- if this.RequestsHistory != that.RequestsHistory {
- return false
- }
- if this.Heartbeat != that.Heartbeat {
- return false
- }
- if this.ReturnMax != that.ReturnMax {
- return false
- }
- if this.ReturnWindow != that.ReturnWindow {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *StoreAndForward_Statistics) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*StoreAndForward_Statistics)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *StoreAndForward_History) EqualVT(that *StoreAndForward_History) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.HistoryMessages != that.HistoryMessages {
- return false
- }
- if this.Window != that.Window {
- return false
- }
- if this.LastRequest != that.LastRequest {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *StoreAndForward_History) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*StoreAndForward_History)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *StoreAndForward_Heartbeat) EqualVT(that *StoreAndForward_Heartbeat) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.Period != that.Period {
- return false
- }
- if this.Secondary != that.Secondary {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *StoreAndForward_Heartbeat) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*StoreAndForward_Heartbeat)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *StoreAndForward) EqualVT(that *StoreAndForward) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.Variant == nil && that.Variant != nil {
- return false
- } else if this.Variant != nil {
- if that.Variant == nil {
- return false
- }
- if !this.Variant.(interface {
- EqualVT(isStoreAndForward_Variant) bool
- }).EqualVT(that.Variant) {
- return false
- }
- }
- if this.Rr != that.Rr {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *StoreAndForward) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*StoreAndForward)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *StoreAndForward_Stats) EqualVT(thatIface isStoreAndForward_Variant) bool {
- that, ok := thatIface.(*StoreAndForward_Stats)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.Stats, that.Stats; p != q {
- if p == nil {
- p = &StoreAndForward_Statistics{}
- }
- if q == nil {
- q = &StoreAndForward_Statistics{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *StoreAndForward_History_) EqualVT(thatIface isStoreAndForward_Variant) bool {
- that, ok := thatIface.(*StoreAndForward_History_)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.History, that.History; p != q {
- if p == nil {
- p = &StoreAndForward_History{}
- }
- if q == nil {
- q = &StoreAndForward_History{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *StoreAndForward_Heartbeat_) EqualVT(thatIface isStoreAndForward_Variant) bool {
- that, ok := thatIface.(*StoreAndForward_Heartbeat_)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.Heartbeat, that.Heartbeat; p != q {
- if p == nil {
- p = &StoreAndForward_Heartbeat{}
- }
- if q == nil {
- q = &StoreAndForward_Heartbeat{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *StoreAndForward_Text) EqualVT(thatIface isStoreAndForward_Variant) bool {
- that, ok := thatIface.(*StoreAndForward_Text)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if string(this.Text) != string(that.Text) {
- return false
- }
- return true
-}
-
func (m *StoreAndForward_Statistics) MarshalVT() (dAtA []byte, err error) {
if m == nil {
return nil, nil
@@ -648,317 +310,6 @@ func (m *StoreAndForward_Text) MarshalToSizedBufferVT(dAtA []byte) (int, error)
dAtA[i] = 0x2a
return len(dAtA) - i, nil
}
-func (m *StoreAndForward_Statistics) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *StoreAndForward_Statistics) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *StoreAndForward_Statistics) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.ReturnWindow != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.ReturnWindow))
- i--
- dAtA[i] = 0x48
- }
- if m.ReturnMax != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.ReturnMax))
- i--
- dAtA[i] = 0x40
- }
- if m.Heartbeat {
- i--
- if m.Heartbeat {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x38
- }
- if m.RequestsHistory != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.RequestsHistory))
- i--
- dAtA[i] = 0x30
- }
- if m.Requests != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Requests))
- i--
- dAtA[i] = 0x28
- }
- if m.UpTime != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.UpTime))
- i--
- dAtA[i] = 0x20
- }
- if m.MessagesMax != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.MessagesMax))
- i--
- dAtA[i] = 0x18
- }
- if m.MessagesSaved != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.MessagesSaved))
- i--
- dAtA[i] = 0x10
- }
- if m.MessagesTotal != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.MessagesTotal))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *StoreAndForward_History) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *StoreAndForward_History) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *StoreAndForward_History) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.LastRequest != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.LastRequest))
- i--
- dAtA[i] = 0x18
- }
- if m.Window != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Window))
- i--
- dAtA[i] = 0x10
- }
- if m.HistoryMessages != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.HistoryMessages))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *StoreAndForward_Heartbeat) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *StoreAndForward_Heartbeat) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *StoreAndForward_Heartbeat) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.Secondary != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Secondary))
- i--
- dAtA[i] = 0x10
- }
- if m.Period != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Period))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *StoreAndForward) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *StoreAndForward) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *StoreAndForward) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if msg, ok := m.Variant.(*StoreAndForward_Text); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.Variant.(*StoreAndForward_Heartbeat_); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.Variant.(*StoreAndForward_History_); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.Variant.(*StoreAndForward_Stats); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if m.Rr != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Rr))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *StoreAndForward_Stats) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *StoreAndForward_Stats) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.Stats != nil {
- size, err := m.Stats.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x12
- }
- return len(dAtA) - i, nil
-}
-func (m *StoreAndForward_History_) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *StoreAndForward_History_) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.History != nil {
- size, err := m.History.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x1a
- }
- return len(dAtA) - i, nil
-}
-func (m *StoreAndForward_Heartbeat_) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *StoreAndForward_Heartbeat_) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.Heartbeat != nil {
- size, err := m.Heartbeat.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x22
- }
- return len(dAtA) - i, nil
-}
-func (m *StoreAndForward_Text) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *StoreAndForward_Text) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- i -= len(m.Text)
- copy(dAtA[i:], m.Text)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Text)))
- i--
- dAtA[i] = 0x2a
- return len(dAtA) - i, nil
-}
func (m *StoreAndForward_Statistics) SizeVT() (n int) {
if m == nil {
return 0
@@ -1739,648 +1090,3 @@ func (m *StoreAndForward) UnmarshalVT(dAtA []byte) error {
}
return nil
}
-func (m *StoreAndForward_Statistics) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: StoreAndForward_Statistics: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: StoreAndForward_Statistics: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field MessagesTotal", wireType)
- }
- m.MessagesTotal = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.MessagesTotal |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field MessagesSaved", wireType)
- }
- m.MessagesSaved = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.MessagesSaved |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field MessagesMax", wireType)
- }
- m.MessagesMax = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.MessagesMax |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UpTime", wireType)
- }
- m.UpTime = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.UpTime |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Requests", wireType)
- }
- m.Requests = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Requests |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 6:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field RequestsHistory", wireType)
- }
- m.RequestsHistory = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.RequestsHistory |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 7:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Heartbeat", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Heartbeat = bool(v != 0)
- case 8:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ReturnMax", wireType)
- }
- m.ReturnMax = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ReturnMax |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 9:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ReturnWindow", wireType)
- }
- m.ReturnWindow = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ReturnWindow |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *StoreAndForward_History) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: StoreAndForward_History: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: StoreAndForward_History: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field HistoryMessages", wireType)
- }
- m.HistoryMessages = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.HistoryMessages |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Window", wireType)
- }
- m.Window = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Window |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field LastRequest", wireType)
- }
- m.LastRequest = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.LastRequest |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *StoreAndForward_Heartbeat) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: StoreAndForward_Heartbeat: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: StoreAndForward_Heartbeat: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Period", wireType)
- }
- m.Period = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Period |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Secondary", wireType)
- }
- m.Secondary = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Secondary |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *StoreAndForward) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: StoreAndForward: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: StoreAndForward: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Rr", wireType)
- }
- m.Rr = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Rr |= StoreAndForward_RequestResponse(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Stats", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.Variant.(*StoreAndForward_Stats); ok {
- if err := oneof.Stats.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &StoreAndForward_Statistics{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Variant = &StoreAndForward_Stats{Stats: v}
- }
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field History", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.Variant.(*StoreAndForward_History_); ok {
- if err := oneof.History.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &StoreAndForward_History{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Variant = &StoreAndForward_History_{History: v}
- }
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Heartbeat", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.Variant.(*StoreAndForward_Heartbeat_); ok {
- if err := oneof.Heartbeat.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &StoreAndForward_Heartbeat{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Variant = &StoreAndForward_Heartbeat_{Heartbeat: v}
- }
- iNdEx = postIndex
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Text", wireType)
- }
- var byteLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- byteLen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if byteLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + byteLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := dAtA[iNdEx:postIndex]
- m.Variant = &StoreAndForward_Text{Text: v}
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
diff --git a/meshtastic/telemetry.pb.go b/meshtastic/telemetry.pb.go
index 8815319..8b1358d 100644
--- a/meshtastic/telemetry.pb.go
+++ b/meshtastic/telemetry.pb.go
@@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.31.0
-// protoc v4.24.3
+// protoc-gen-go v1.32.0
+// protoc v4.25.2
// source: meshtastic/telemetry.proto
package generated
@@ -24,34 +24,49 @@ const (
type TelemetrySensorType int32
const (
+ //
// No external telemetry sensor explicitly set
TelemetrySensorType_SENSOR_UNSET TelemetrySensorType = 0
+ //
// High accuracy temperature, pressure, humidity
TelemetrySensorType_BME280 TelemetrySensorType = 1
+ //
// High accuracy temperature, pressure, humidity, and air resistance
TelemetrySensorType_BME680 TelemetrySensorType = 2
+ //
// Very high accuracy temperature
TelemetrySensorType_MCP9808 TelemetrySensorType = 3
+ //
// Moderate accuracy current and voltage
TelemetrySensorType_INA260 TelemetrySensorType = 4
+ //
// Moderate accuracy current and voltage
TelemetrySensorType_INA219 TelemetrySensorType = 5
+ //
// High accuracy temperature and pressure
TelemetrySensorType_BMP280 TelemetrySensorType = 6
+ //
// High accuracy temperature and humidity
TelemetrySensorType_SHTC3 TelemetrySensorType = 7
+ //
// High accuracy pressure
TelemetrySensorType_LPS22 TelemetrySensorType = 8
+ //
// 3-Axis magnetic sensor
TelemetrySensorType_QMC6310 TelemetrySensorType = 9
+ //
// 6-Axis inertial measurement sensor
TelemetrySensorType_QMI8658 TelemetrySensorType = 10
+ //
// 3-Axis magnetic sensor
TelemetrySensorType_QMC5883L TelemetrySensorType = 11
+ //
// High accuracy temperature and humidity
TelemetrySensorType_SHT31 TelemetrySensorType = 12
+ //
// PM2.5 air quality sensor
TelemetrySensorType_PMSA003I TelemetrySensorType = 13
+ //
// INA3221 3 Channel Voltage / Current Sensor
TelemetrySensorType_INA3221 TelemetrySensorType = 14
)
@@ -127,12 +142,16 @@ type DeviceMetrics struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
+ //
// 0-100 (>100 means powered)
BatteryLevel uint32 `protobuf:"varint,1,opt,name=battery_level,json=batteryLevel,proto3" json:"battery_level,omitempty"`
+ //
// Voltage measured
Voltage float32 `protobuf:"fixed32,2,opt,name=voltage,proto3" json:"voltage,omitempty"`
+ //
// Utilization for the current channel, including well formed TX, RX and malformed RX (aka noise).
ChannelUtilization float32 `protobuf:"fixed32,3,opt,name=channel_utilization,json=channelUtilization,proto3" json:"channel_utilization,omitempty"`
+ //
// Percent of airtime for transmission used within the last hour.
AirUtilTx float32 `protobuf:"fixed32,4,opt,name=air_util_tx,json=airUtilTx,proto3" json:"air_util_tx,omitempty"`
}
@@ -203,16 +222,22 @@ type EnvironmentMetrics struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
+ //
// Temperature measured
Temperature float32 `protobuf:"fixed32,1,opt,name=temperature,proto3" json:"temperature,omitempty"`
+ //
// Relative humidity percent measured
RelativeHumidity float32 `protobuf:"fixed32,2,opt,name=relative_humidity,json=relativeHumidity,proto3" json:"relative_humidity,omitempty"`
+ //
// Barometric pressure in hPA measured
BarometricPressure float32 `protobuf:"fixed32,3,opt,name=barometric_pressure,json=barometricPressure,proto3" json:"barometric_pressure,omitempty"`
+ //
// Gas resistance in MOhm measured
GasResistance float32 `protobuf:"fixed32,4,opt,name=gas_resistance,json=gasResistance,proto3" json:"gas_resistance,omitempty"`
+ //
// Voltage measured (To be depreciated in favor of PowerMetrics in Meshtastic 3.x)
Voltage float32 `protobuf:"fixed32,5,opt,name=voltage,proto3" json:"voltage,omitempty"`
+ //
// Current measured (To be depreciated in favor of PowerMetrics in Meshtastic 3.x)
Current float32 `protobuf:"fixed32,6,opt,name=current,proto3" json:"current,omitempty"`
}
@@ -297,16 +322,22 @@ type PowerMetrics struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
+ //
// Voltage (Ch1)
Ch1Voltage float32 `protobuf:"fixed32,1,opt,name=ch1_voltage,json=ch1Voltage,proto3" json:"ch1_voltage,omitempty"`
+ //
// Current (Ch1)
Ch1Current float32 `protobuf:"fixed32,2,opt,name=ch1_current,json=ch1Current,proto3" json:"ch1_current,omitempty"`
+ //
// Voltage (Ch2)
Ch2Voltage float32 `protobuf:"fixed32,3,opt,name=ch2_voltage,json=ch2Voltage,proto3" json:"ch2_voltage,omitempty"`
+ //
// Current (Ch2)
Ch2Current float32 `protobuf:"fixed32,4,opt,name=ch2_current,json=ch2Current,proto3" json:"ch2_current,omitempty"`
+ //
// Voltage (Ch3)
Ch3Voltage float32 `protobuf:"fixed32,5,opt,name=ch3_voltage,json=ch3Voltage,proto3" json:"ch3_voltage,omitempty"`
+ //
// Current (Ch3)
Ch3Current float32 `protobuf:"fixed32,6,opt,name=ch3_current,json=ch3Current,proto3" json:"ch3_current,omitempty"`
}
@@ -391,28 +422,40 @@ type AirQualityMetrics struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
+ //
// Concentration Units Standard PM1.0
Pm10Standard uint32 `protobuf:"varint,1,opt,name=pm10_standard,json=pm10Standard,proto3" json:"pm10_standard,omitempty"`
+ //
// Concentration Units Standard PM2.5
Pm25Standard uint32 `protobuf:"varint,2,opt,name=pm25_standard,json=pm25Standard,proto3" json:"pm25_standard,omitempty"`
+ //
// Concentration Units Standard PM10.0
Pm100Standard uint32 `protobuf:"varint,3,opt,name=pm100_standard,json=pm100Standard,proto3" json:"pm100_standard,omitempty"`
+ //
// Concentration Units Environmental PM1.0
Pm10Environmental uint32 `protobuf:"varint,4,opt,name=pm10_environmental,json=pm10Environmental,proto3" json:"pm10_environmental,omitempty"`
+ //
// Concentration Units Environmental PM2.5
Pm25Environmental uint32 `protobuf:"varint,5,opt,name=pm25_environmental,json=pm25Environmental,proto3" json:"pm25_environmental,omitempty"`
+ //
// Concentration Units Environmental PM10.0
Pm100Environmental uint32 `protobuf:"varint,6,opt,name=pm100_environmental,json=pm100Environmental,proto3" json:"pm100_environmental,omitempty"`
+ //
// 0.3um Particle Count
Particles_03Um uint32 `protobuf:"varint,7,opt,name=particles_03um,json=particles03um,proto3" json:"particles_03um,omitempty"`
+ //
// 0.5um Particle Count
Particles_05Um uint32 `protobuf:"varint,8,opt,name=particles_05um,json=particles05um,proto3" json:"particles_05um,omitempty"`
+ //
// 1.0um Particle Count
Particles_10Um uint32 `protobuf:"varint,9,opt,name=particles_10um,json=particles10um,proto3" json:"particles_10um,omitempty"`
+ //
// 2.5um Particle Count
Particles_25Um uint32 `protobuf:"varint,10,opt,name=particles_25um,json=particles25um,proto3" json:"particles_25um,omitempty"`
+ //
// 5.0um Particle Count
Particles_50Um uint32 `protobuf:"varint,11,opt,name=particles_50um,json=particles50um,proto3" json:"particles_50um,omitempty"`
+ //
// 10.0um Particle Count
Particles_100Um uint32 `protobuf:"varint,12,opt,name=particles_100um,json=particles100um,proto3" json:"particles_100um,omitempty"`
}
@@ -539,6 +582,7 @@ type Telemetry struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
+ //
// Seconds since 1970 - or 0 for unknown/unset
Time uint32 `protobuf:"fixed32,1,opt,name=time,proto3" json:"time,omitempty"`
// Types that are assignable to Variant:
@@ -629,21 +673,25 @@ type isTelemetry_Variant interface {
}
type Telemetry_DeviceMetrics struct {
+ //
// Key native device metrics such as battery level
DeviceMetrics *DeviceMetrics `protobuf:"bytes,2,opt,name=device_metrics,json=deviceMetrics,proto3,oneof"`
}
type Telemetry_EnvironmentMetrics struct {
+ //
// Weather station or other environmental metrics
EnvironmentMetrics *EnvironmentMetrics `protobuf:"bytes,3,opt,name=environment_metrics,json=environmentMetrics,proto3,oneof"`
}
type Telemetry_AirQualityMetrics struct {
+ //
// Air quality metrics
AirQualityMetrics *AirQualityMetrics `protobuf:"bytes,4,opt,name=air_quality_metrics,json=airQualityMetrics,proto3,oneof"`
}
type Telemetry_PowerMetrics struct {
+ //
// Power Metrics
PowerMetrics *PowerMetrics `protobuf:"bytes,5,opt,name=power_metrics,json=powerMetrics,proto3,oneof"`
}
diff --git a/meshtastic/telemetry_vtproto.pb.go b/meshtastic/telemetry_vtproto.pb.go
index 89264d6..1586062 100644
--- a/meshtastic/telemetry_vtproto.pb.go
+++ b/meshtastic/telemetry_vtproto.pb.go
@@ -8,7 +8,6 @@ import (
binary "encoding/binary"
fmt "fmt"
protohelpers "github.com/planetscale/vtprotobuf/protohelpers"
- proto "google.golang.org/protobuf/proto"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
math "math"
@@ -21,433 +20,6 @@ const (
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
-func (m *DeviceMetrics) CloneVT() *DeviceMetrics {
- if m == nil {
- return (*DeviceMetrics)(nil)
- }
- r := new(DeviceMetrics)
- r.BatteryLevel = m.BatteryLevel
- r.Voltage = m.Voltage
- r.ChannelUtilization = m.ChannelUtilization
- r.AirUtilTx = m.AirUtilTx
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *DeviceMetrics) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *EnvironmentMetrics) CloneVT() *EnvironmentMetrics {
- if m == nil {
- return (*EnvironmentMetrics)(nil)
- }
- r := new(EnvironmentMetrics)
- r.Temperature = m.Temperature
- r.RelativeHumidity = m.RelativeHumidity
- r.BarometricPressure = m.BarometricPressure
- r.GasResistance = m.GasResistance
- r.Voltage = m.Voltage
- r.Current = m.Current
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *EnvironmentMetrics) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *PowerMetrics) CloneVT() *PowerMetrics {
- if m == nil {
- return (*PowerMetrics)(nil)
- }
- r := new(PowerMetrics)
- r.Ch1Voltage = m.Ch1Voltage
- r.Ch1Current = m.Ch1Current
- r.Ch2Voltage = m.Ch2Voltage
- r.Ch2Current = m.Ch2Current
- r.Ch3Voltage = m.Ch3Voltage
- r.Ch3Current = m.Ch3Current
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *PowerMetrics) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *AirQualityMetrics) CloneVT() *AirQualityMetrics {
- if m == nil {
- return (*AirQualityMetrics)(nil)
- }
- r := new(AirQualityMetrics)
- r.Pm10Standard = m.Pm10Standard
- r.Pm25Standard = m.Pm25Standard
- r.Pm100Standard = m.Pm100Standard
- r.Pm10Environmental = m.Pm10Environmental
- r.Pm25Environmental = m.Pm25Environmental
- r.Pm100Environmental = m.Pm100Environmental
- r.Particles_03Um = m.Particles_03Um
- r.Particles_05Um = m.Particles_05Um
- r.Particles_10Um = m.Particles_10Um
- r.Particles_25Um = m.Particles_25Um
- r.Particles_50Um = m.Particles_50Um
- r.Particles_100Um = m.Particles_100Um
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *AirQualityMetrics) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *Telemetry) CloneVT() *Telemetry {
- if m == nil {
- return (*Telemetry)(nil)
- }
- r := new(Telemetry)
- r.Time = m.Time
- if m.Variant != nil {
- r.Variant = m.Variant.(interface{ CloneVT() isTelemetry_Variant }).CloneVT()
- }
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *Telemetry) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (m *Telemetry_DeviceMetrics) CloneVT() isTelemetry_Variant {
- if m == nil {
- return (*Telemetry_DeviceMetrics)(nil)
- }
- r := new(Telemetry_DeviceMetrics)
- r.DeviceMetrics = m.DeviceMetrics.CloneVT()
- return r
-}
-
-func (m *Telemetry_EnvironmentMetrics) CloneVT() isTelemetry_Variant {
- if m == nil {
- return (*Telemetry_EnvironmentMetrics)(nil)
- }
- r := new(Telemetry_EnvironmentMetrics)
- r.EnvironmentMetrics = m.EnvironmentMetrics.CloneVT()
- return r
-}
-
-func (m *Telemetry_AirQualityMetrics) CloneVT() isTelemetry_Variant {
- if m == nil {
- return (*Telemetry_AirQualityMetrics)(nil)
- }
- r := new(Telemetry_AirQualityMetrics)
- r.AirQualityMetrics = m.AirQualityMetrics.CloneVT()
- return r
-}
-
-func (m *Telemetry_PowerMetrics) CloneVT() isTelemetry_Variant {
- if m == nil {
- return (*Telemetry_PowerMetrics)(nil)
- }
- r := new(Telemetry_PowerMetrics)
- r.PowerMetrics = m.PowerMetrics.CloneVT()
- return r
-}
-
-func (this *DeviceMetrics) EqualVT(that *DeviceMetrics) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.BatteryLevel != that.BatteryLevel {
- return false
- }
- if this.Voltage != that.Voltage {
- return false
- }
- if this.ChannelUtilization != that.ChannelUtilization {
- return false
- }
- if this.AirUtilTx != that.AirUtilTx {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *DeviceMetrics) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*DeviceMetrics)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *EnvironmentMetrics) EqualVT(that *EnvironmentMetrics) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.Temperature != that.Temperature {
- return false
- }
- if this.RelativeHumidity != that.RelativeHumidity {
- return false
- }
- if this.BarometricPressure != that.BarometricPressure {
- return false
- }
- if this.GasResistance != that.GasResistance {
- return false
- }
- if this.Voltage != that.Voltage {
- return false
- }
- if this.Current != that.Current {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *EnvironmentMetrics) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*EnvironmentMetrics)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *PowerMetrics) EqualVT(that *PowerMetrics) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.Ch1Voltage != that.Ch1Voltage {
- return false
- }
- if this.Ch1Current != that.Ch1Current {
- return false
- }
- if this.Ch2Voltage != that.Ch2Voltage {
- return false
- }
- if this.Ch2Current != that.Ch2Current {
- return false
- }
- if this.Ch3Voltage != that.Ch3Voltage {
- return false
- }
- if this.Ch3Current != that.Ch3Current {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *PowerMetrics) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*PowerMetrics)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *AirQualityMetrics) EqualVT(that *AirQualityMetrics) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.Pm10Standard != that.Pm10Standard {
- return false
- }
- if this.Pm25Standard != that.Pm25Standard {
- return false
- }
- if this.Pm100Standard != that.Pm100Standard {
- return false
- }
- if this.Pm10Environmental != that.Pm10Environmental {
- return false
- }
- if this.Pm25Environmental != that.Pm25Environmental {
- return false
- }
- if this.Pm100Environmental != that.Pm100Environmental {
- return false
- }
- if this.Particles_03Um != that.Particles_03Um {
- return false
- }
- if this.Particles_05Um != that.Particles_05Um {
- return false
- }
- if this.Particles_10Um != that.Particles_10Um {
- return false
- }
- if this.Particles_25Um != that.Particles_25Um {
- return false
- }
- if this.Particles_50Um != that.Particles_50Um {
- return false
- }
- if this.Particles_100Um != that.Particles_100Um {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *AirQualityMetrics) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*AirQualityMetrics)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *Telemetry) EqualVT(that *Telemetry) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.Variant == nil && that.Variant != nil {
- return false
- } else if this.Variant != nil {
- if that.Variant == nil {
- return false
- }
- if !this.Variant.(interface {
- EqualVT(isTelemetry_Variant) bool
- }).EqualVT(that.Variant) {
- return false
- }
- }
- if this.Time != that.Time {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *Telemetry) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*Telemetry)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
-func (this *Telemetry_DeviceMetrics) EqualVT(thatIface isTelemetry_Variant) bool {
- that, ok := thatIface.(*Telemetry_DeviceMetrics)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.DeviceMetrics, that.DeviceMetrics; p != q {
- if p == nil {
- p = &DeviceMetrics{}
- }
- if q == nil {
- q = &DeviceMetrics{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *Telemetry_EnvironmentMetrics) EqualVT(thatIface isTelemetry_Variant) bool {
- that, ok := thatIface.(*Telemetry_EnvironmentMetrics)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.EnvironmentMetrics, that.EnvironmentMetrics; p != q {
- if p == nil {
- p = &EnvironmentMetrics{}
- }
- if q == nil {
- q = &EnvironmentMetrics{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *Telemetry_AirQualityMetrics) EqualVT(thatIface isTelemetry_Variant) bool {
- that, ok := thatIface.(*Telemetry_AirQualityMetrics)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.AirQualityMetrics, that.AirQualityMetrics; p != q {
- if p == nil {
- p = &AirQualityMetrics{}
- }
- if q == nil {
- q = &AirQualityMetrics{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
-func (this *Telemetry_PowerMetrics) EqualVT(thatIface isTelemetry_Variant) bool {
- that, ok := thatIface.(*Telemetry_PowerMetrics)
- if !ok {
- return false
- }
- if this == that {
- return true
- }
- if this == nil && that != nil || this != nil && that == nil {
- return false
- }
- if p, q := this.PowerMetrics, that.PowerMetrics; p != q {
- if p == nil {
- p = &PowerMetrics{}
- }
- if q == nil {
- q = &PowerMetrics{}
- }
- if !p.EqualVT(q) {
- return false
- }
- }
- return true
-}
-
func (m *DeviceMetrics) MarshalVT() (dAtA []byte, err error) {
if m == nil {
return nil, nil
@@ -859,436 +431,6 @@ func (m *Telemetry_PowerMetrics) MarshalToSizedBufferVT(dAtA []byte) (int, error
}
return len(dAtA) - i, nil
}
-func (m *DeviceMetrics) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *DeviceMetrics) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *DeviceMetrics) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.AirUtilTx != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.AirUtilTx))))
- i--
- dAtA[i] = 0x25
- }
- if m.ChannelUtilization != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.ChannelUtilization))))
- i--
- dAtA[i] = 0x1d
- }
- if m.Voltage != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Voltage))))
- i--
- dAtA[i] = 0x15
- }
- if m.BatteryLevel != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.BatteryLevel))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *EnvironmentMetrics) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *EnvironmentMetrics) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *EnvironmentMetrics) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.Current != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Current))))
- i--
- dAtA[i] = 0x35
- }
- if m.Voltage != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Voltage))))
- i--
- dAtA[i] = 0x2d
- }
- if m.GasResistance != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.GasResistance))))
- i--
- dAtA[i] = 0x25
- }
- if m.BarometricPressure != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.BarometricPressure))))
- i--
- dAtA[i] = 0x1d
- }
- if m.RelativeHumidity != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.RelativeHumidity))))
- i--
- dAtA[i] = 0x15
- }
- if m.Temperature != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Temperature))))
- i--
- dAtA[i] = 0xd
- }
- return len(dAtA) - i, nil
-}
-
-func (m *PowerMetrics) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *PowerMetrics) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *PowerMetrics) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.Ch3Current != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Ch3Current))))
- i--
- dAtA[i] = 0x35
- }
- if m.Ch3Voltage != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Ch3Voltage))))
- i--
- dAtA[i] = 0x2d
- }
- if m.Ch2Current != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Ch2Current))))
- i--
- dAtA[i] = 0x25
- }
- if m.Ch2Voltage != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Ch2Voltage))))
- i--
- dAtA[i] = 0x1d
- }
- if m.Ch1Current != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Ch1Current))))
- i--
- dAtA[i] = 0x15
- }
- if m.Ch1Voltage != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Ch1Voltage))))
- i--
- dAtA[i] = 0xd
- }
- return len(dAtA) - i, nil
-}
-
-func (m *AirQualityMetrics) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *AirQualityMetrics) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *AirQualityMetrics) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if m.Particles_100Um != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Particles_100Um))
- i--
- dAtA[i] = 0x60
- }
- if m.Particles_50Um != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Particles_50Um))
- i--
- dAtA[i] = 0x58
- }
- if m.Particles_25Um != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Particles_25Um))
- i--
- dAtA[i] = 0x50
- }
- if m.Particles_10Um != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Particles_10Um))
- i--
- dAtA[i] = 0x48
- }
- if m.Particles_05Um != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Particles_05Um))
- i--
- dAtA[i] = 0x40
- }
- if m.Particles_03Um != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Particles_03Um))
- i--
- dAtA[i] = 0x38
- }
- if m.Pm100Environmental != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Pm100Environmental))
- i--
- dAtA[i] = 0x30
- }
- if m.Pm25Environmental != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Pm25Environmental))
- i--
- dAtA[i] = 0x28
- }
- if m.Pm10Environmental != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Pm10Environmental))
- i--
- dAtA[i] = 0x20
- }
- if m.Pm100Standard != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Pm100Standard))
- i--
- dAtA[i] = 0x18
- }
- if m.Pm25Standard != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Pm25Standard))
- i--
- dAtA[i] = 0x10
- }
- if m.Pm10Standard != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Pm10Standard))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *Telemetry) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *Telemetry) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *Telemetry) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if msg, ok := m.Variant.(*Telemetry_PowerMetrics); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.Variant.(*Telemetry_AirQualityMetrics); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.Variant.(*Telemetry_EnvironmentMetrics); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if msg, ok := m.Variant.(*Telemetry_DeviceMetrics); ok {
- size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- }
- if m.Time != 0 {
- i -= 4
- binary.LittleEndian.PutUint32(dAtA[i:], uint32(m.Time))
- i--
- dAtA[i] = 0xd
- }
- return len(dAtA) - i, nil
-}
-
-func (m *Telemetry_DeviceMetrics) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *Telemetry_DeviceMetrics) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.DeviceMetrics != nil {
- size, err := m.DeviceMetrics.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x12
- }
- return len(dAtA) - i, nil
-}
-func (m *Telemetry_EnvironmentMetrics) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *Telemetry_EnvironmentMetrics) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.EnvironmentMetrics != nil {
- size, err := m.EnvironmentMetrics.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x1a
- }
- return len(dAtA) - i, nil
-}
-func (m *Telemetry_AirQualityMetrics) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *Telemetry_AirQualityMetrics) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.AirQualityMetrics != nil {
- size, err := m.AirQualityMetrics.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x22
- }
- return len(dAtA) - i, nil
-}
-func (m *Telemetry_PowerMetrics) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *Telemetry_PowerMetrics) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.PowerMetrics != nil {
- size, err := m.PowerMetrics.MarshalToSizedBufferVTStrict(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
- i--
- dAtA[i] = 0x2a
- }
- return len(dAtA) - i, nil
-}
func (m *DeviceMetrics) SizeVT() (n int) {
if m == nil {
return 0
@@ -2318,844 +1460,3 @@ func (m *Telemetry) UnmarshalVT(dAtA []byte) error {
}
return nil
}
-func (m *DeviceMetrics) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: DeviceMetrics: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: DeviceMetrics: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BatteryLevel", wireType)
- }
- m.BatteryLevel = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BatteryLevel |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field Voltage", wireType)
- }
- var v uint32
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- m.Voltage = float32(math.Float32frombits(v))
- case 3:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field ChannelUtilization", wireType)
- }
- var v uint32
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- m.ChannelUtilization = float32(math.Float32frombits(v))
- case 4:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field AirUtilTx", wireType)
- }
- var v uint32
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- m.AirUtilTx = float32(math.Float32frombits(v))
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *EnvironmentMetrics) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: EnvironmentMetrics: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: EnvironmentMetrics: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field Temperature", wireType)
- }
- var v uint32
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- m.Temperature = float32(math.Float32frombits(v))
- case 2:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field RelativeHumidity", wireType)
- }
- var v uint32
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- m.RelativeHumidity = float32(math.Float32frombits(v))
- case 3:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field BarometricPressure", wireType)
- }
- var v uint32
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- m.BarometricPressure = float32(math.Float32frombits(v))
- case 4:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field GasResistance", wireType)
- }
- var v uint32
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- m.GasResistance = float32(math.Float32frombits(v))
- case 5:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field Voltage", wireType)
- }
- var v uint32
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- m.Voltage = float32(math.Float32frombits(v))
- case 6:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field Current", wireType)
- }
- var v uint32
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- m.Current = float32(math.Float32frombits(v))
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *PowerMetrics) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: PowerMetrics: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: PowerMetrics: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field Ch1Voltage", wireType)
- }
- var v uint32
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- m.Ch1Voltage = float32(math.Float32frombits(v))
- case 2:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field Ch1Current", wireType)
- }
- var v uint32
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- m.Ch1Current = float32(math.Float32frombits(v))
- case 3:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field Ch2Voltage", wireType)
- }
- var v uint32
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- m.Ch2Voltage = float32(math.Float32frombits(v))
- case 4:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field Ch2Current", wireType)
- }
- var v uint32
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- m.Ch2Current = float32(math.Float32frombits(v))
- case 5:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field Ch3Voltage", wireType)
- }
- var v uint32
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- m.Ch3Voltage = float32(math.Float32frombits(v))
- case 6:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field Ch3Current", wireType)
- }
- var v uint32
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- m.Ch3Current = float32(math.Float32frombits(v))
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *AirQualityMetrics) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: AirQualityMetrics: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: AirQualityMetrics: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Pm10Standard", wireType)
- }
- m.Pm10Standard = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Pm10Standard |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Pm25Standard", wireType)
- }
- m.Pm25Standard = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Pm25Standard |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Pm100Standard", wireType)
- }
- m.Pm100Standard = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Pm100Standard |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Pm10Environmental", wireType)
- }
- m.Pm10Environmental = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Pm10Environmental |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Pm25Environmental", wireType)
- }
- m.Pm25Environmental = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Pm25Environmental |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 6:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Pm100Environmental", wireType)
- }
- m.Pm100Environmental = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Pm100Environmental |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 7:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Particles_03Um", wireType)
- }
- m.Particles_03Um = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Particles_03Um |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 8:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Particles_05Um", wireType)
- }
- m.Particles_05Um = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Particles_05Um |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 9:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Particles_10Um", wireType)
- }
- m.Particles_10Um = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Particles_10Um |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 10:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Particles_25Um", wireType)
- }
- m.Particles_25Um = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Particles_25Um |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 11:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Particles_50Um", wireType)
- }
- m.Particles_50Um = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Particles_50Um |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 12:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Particles_100Um", wireType)
- }
- m.Particles_100Um = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Particles_100Um |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *Telemetry) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: Telemetry: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Telemetry: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 5 {
- return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
- }
- m.Time = 0
- if (iNdEx + 4) > l {
- return io.ErrUnexpectedEOF
- }
- m.Time = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:]))
- iNdEx += 4
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field DeviceMetrics", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.Variant.(*Telemetry_DeviceMetrics); ok {
- if err := oneof.DeviceMetrics.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &DeviceMetrics{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Variant = &Telemetry_DeviceMetrics{DeviceMetrics: v}
- }
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field EnvironmentMetrics", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.Variant.(*Telemetry_EnvironmentMetrics); ok {
- if err := oneof.EnvironmentMetrics.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &EnvironmentMetrics{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Variant = &Telemetry_EnvironmentMetrics{EnvironmentMetrics: v}
- }
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field AirQualityMetrics", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.Variant.(*Telemetry_AirQualityMetrics); ok {
- if err := oneof.AirQualityMetrics.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &AirQualityMetrics{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Variant = &Telemetry_AirQualityMetrics{AirQualityMetrics: v}
- }
- iNdEx = postIndex
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field PowerMetrics", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if oneof, ok := m.Variant.(*Telemetry_PowerMetrics); ok {
- if err := oneof.PowerMetrics.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- } else {
- v := &PowerMetrics{}
- if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Variant = &Telemetry_PowerMetrics{PowerMetrics: v}
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
diff --git a/meshtastic/xmodem.pb.go b/meshtastic/xmodem.pb.go
index f2aa4b6..40e986a 100644
--- a/meshtastic/xmodem.pb.go
+++ b/meshtastic/xmodem.pb.go
@@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.31.0
-// protoc v4.24.3
+// protoc-gen-go v1.32.0
+// protoc v4.25.2
// source: meshtastic/xmodem.proto
package generated
diff --git a/meshtastic/xmodem_vtproto.pb.go b/meshtastic/xmodem_vtproto.pb.go
index 70e9684..7a65118 100644
--- a/meshtastic/xmodem_vtproto.pb.go
+++ b/meshtastic/xmodem_vtproto.pb.go
@@ -7,7 +7,6 @@ package generated
import (
fmt "fmt"
protohelpers "github.com/planetscale/vtprotobuf/protohelpers"
- proto "google.golang.org/protobuf/proto"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
)
@@ -19,58 +18,6 @@ const (
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
-func (m *XModem) CloneVT() *XModem {
- if m == nil {
- return (*XModem)(nil)
- }
- r := new(XModem)
- r.Control = m.Control
- r.Seq = m.Seq
- r.Crc16 = m.Crc16
- if rhs := m.Buffer; rhs != nil {
- tmpBytes := make([]byte, len(rhs))
- copy(tmpBytes, rhs)
- r.Buffer = tmpBytes
- }
- if len(m.unknownFields) > 0 {
- r.unknownFields = make([]byte, len(m.unknownFields))
- copy(r.unknownFields, m.unknownFields)
- }
- return r
-}
-
-func (m *XModem) CloneMessageVT() proto.Message {
- return m.CloneVT()
-}
-
-func (this *XModem) EqualVT(that *XModem) bool {
- if this == that {
- return true
- } else if this == nil || that == nil {
- return false
- }
- if this.Control != that.Control {
- return false
- }
- if this.Seq != that.Seq {
- return false
- }
- if this.Crc16 != that.Crc16 {
- return false
- }
- if string(this.Buffer) != string(that.Buffer) {
- return false
- }
- return string(this.unknownFields) == string(that.unknownFields)
-}
-
-func (this *XModem) EqualMessageVT(thatMsg proto.Message) bool {
- that, ok := thatMsg.(*XModem)
- if !ok {
- return false
- }
- return this.EqualVT(that)
-}
func (m *XModem) MarshalVT() (dAtA []byte, err error) {
if m == nil {
return nil, nil
@@ -126,61 +73,6 @@ func (m *XModem) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
return len(dAtA) - i, nil
}
-func (m *XModem) MarshalVTStrict() (dAtA []byte, err error) {
- if m == nil {
- return nil, nil
- }
- size := m.SizeVT()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *XModem) MarshalToVTStrict(dAtA []byte) (int, error) {
- size := m.SizeVT()
- return m.MarshalToSizedBufferVTStrict(dAtA[:size])
-}
-
-func (m *XModem) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) {
- if m == nil {
- return 0, nil
- }
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.unknownFields != nil {
- i -= len(m.unknownFields)
- copy(dAtA[i:], m.unknownFields)
- }
- if len(m.Buffer) > 0 {
- i -= len(m.Buffer)
- copy(dAtA[i:], m.Buffer)
- i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Buffer)))
- i--
- dAtA[i] = 0x22
- }
- if m.Crc16 != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Crc16))
- i--
- dAtA[i] = 0x18
- }
- if m.Seq != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Seq))
- i--
- dAtA[i] = 0x10
- }
- if m.Control != 0 {
- i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Control))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
func (m *XModem) SizeVT() (n int) {
if m == nil {
return 0
@@ -346,142 +238,3 @@ func (m *XModem) UnmarshalVT(dAtA []byte) error {
}
return nil
}
-func (m *XModem) UnmarshalVTUnsafe(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: XModem: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: XModem: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Control", wireType)
- }
- m.Control = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Control |= XModem_Control(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Seq", wireType)
- }
- m.Seq = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Seq |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Crc16", wireType)
- }
- m.Crc16 = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Crc16 |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Buffer", wireType)
- }
- var byteLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return protohelpers.ErrIntOverflow
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- byteLen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if byteLen < 0 {
- return protohelpers.ErrInvalidLength
- }
- postIndex := iNdEx + byteLen
- if postIndex < 0 {
- return protohelpers.ErrInvalidLength
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Buffer = dAtA[iNdEx:postIndex]
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := protohelpers.Skip(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return protohelpers.ErrInvalidLength
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
diff --git a/protobufs b/protobufs
-Subproject 5f28be497a5518334c86378335e8ffcd177ed66
+Subproject 4e4ccdbb9cc138b0adce8718b73697bcac54412