func (*DeviceGatewayRXInfoSetPB) Descriptor() ([]byte, []int) {
	return file_device_session_proto_rawDescGZIP(), []int{3}
}
Deprecated: Use DeviceGatewayRXInfoSetPB.ProtoReflect.Descriptor instead.
package storage
import (
	common "github.com/brocaar/chirpstack-api/go/v3/common"
	proto "github.com/golang/protobuf/proto"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
	reflect "reflect"
	sync "sync"
)
const (
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
const _ = proto.ProtoPackageIsVersion4
type DeviceSessionPBChannel struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields
	Frequency uint32 `protobuf:"varint,1,opt,name=frequency,proto3" json:"frequency,omitempty"`
	MinDr uint32 `protobuf:"varint,2,opt,name=min_dr,json=minDr,proto3" json:"min_dr,omitempty"`
	MaxDr uint32 `protobuf:"varint,3,opt,name=max_dr,json=maxDr,proto3" json:"max_dr,omitempty"`
}
func (x *DeviceSessionPBChannel) Reset() {
	*x = DeviceSessionPBChannel{}
	if protoimpl.UnsafeEnabled {
		mi := &file_device_session_proto_msgTypes[0]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}
func (x *DeviceSessionPBChannel) String() string {
	return protoimpl.X.MessageStringOf(x)
}
func (*DeviceSessionPBChannel) ProtoMessage() {}
func (x *DeviceSessionPBChannel) ProtoReflect() protoreflect.Message {
	mi := &file_device_session_proto_msgTypes[0]
	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)
}
func (*DeviceSessionPBChannel) Descriptor() ([]byte, []int) {
	return file_device_session_proto_rawDescGZIP(), []int{0}
}
func (x *DeviceSessionPBChannel) GetFrequency() uint32 {
	if x != nil {
		return x.Frequency
	}
	return 0
}
func (x *DeviceSessionPBChannel) GetMinDr() uint32 {
	if x != nil {
		return x.MinDr
	}
	return 0
}
func (x *DeviceSessionPBChannel) GetMaxDr() uint32 {
	if x != nil {
		return x.MaxDr
	}
	return 0
}
type DeviceSessionPBUplinkADRHistory struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields
	FCnt uint32 `protobuf:"varint,1,opt,name=f_cnt,json=fCnt,proto3" json:"f_cnt,omitempty"`
	MaxSnr float32 `protobuf:"fixed32,2,opt,name=max_snr,json=maxSnr,proto3" json:"max_snr,omitempty"`
	TxPowerIndex uint32 `protobuf:"varint,3,opt,name=tx_power_index,json=txPowerIndex,proto3" json:"tx_power_index,omitempty"`
	GatewayCount uint32 `protobuf:"varint,4,opt,name=gateway_count,json=gatewayCount,proto3" json:"gateway_count,omitempty"`
}
func (x *DeviceSessionPBUplinkADRHistory) Reset() {
	*x = DeviceSessionPBUplinkADRHistory{}
	if protoimpl.UnsafeEnabled {
		mi := &file_device_session_proto_msgTypes[1]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}
func (x *DeviceSessionPBUplinkADRHistory) String() string {
	return protoimpl.X.MessageStringOf(x)
}
func (*DeviceSessionPBUplinkADRHistory) ProtoMessage() {}
func (x *DeviceSessionPBUplinkADRHistory) ProtoReflect() protoreflect.Message {
	mi := &file_device_session_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)
}
func (*DeviceSessionPBUplinkADRHistory) Descriptor() ([]byte, []int) {
	return file_device_session_proto_rawDescGZIP(), []int{1}
}
func (x *DeviceSessionPBUplinkADRHistory) GetFCnt() uint32 {
	if x != nil {
		return x.FCnt
	}
	return 0
}
func (x *DeviceSessionPBUplinkADRHistory) GetMaxSnr() float32 {
	if x != nil {
		return x.MaxSnr
	}
	return 0
}
func (x *DeviceSessionPBUplinkADRHistory) GetTxPowerIndex() uint32 {
	if x != nil {
		return x.TxPowerIndex
	}
	return 0
}
func (x *DeviceSessionPBUplinkADRHistory) GetGatewayCount() uint32 {
	if x != nil {
		return x.GatewayCount
	}
	return 0
}
type DeviceSessionPB struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields
	DeviceProfileId string `protobuf:"bytes,1,opt,name=device_profile_id,json=deviceProfileId,proto3" json:"device_profile_id,omitempty"`
	ServiceProfileId string `protobuf:"bytes,2,opt,name=service_profile_id,json=serviceProfileId,proto3" json:"service_profile_id,omitempty"`
	RoutingProfileId string `protobuf:"bytes,3,opt,name=routing_profile_id,json=routingProfileId,proto3" json:"routing_profile_id,omitempty"`
	DevAddr []byte `protobuf:"bytes,4,opt,name=dev_addr,json=devAddr,proto3" json:"dev_addr,omitempty"`
	DevEui []byte `protobuf:"bytes,5,opt,name=dev_eui,json=devEui,proto3" json:"dev_eui,omitempty"`
	JoinEui []byte `protobuf:"bytes,6,opt,name=join_eui,json=joinEui,proto3" json:"join_eui,omitempty"`
	FNwkSIntKey []byte `protobuf:"bytes,7,opt,name=f_nwk_s_int_key,json=fNwkSIntKey,proto3" json:"f_nwk_s_int_key,omitempty"`
	SNwkSIntKey []byte `protobuf:"bytes,8,opt,name=s_nwk_s_int_key,json=sNwkSIntKey,proto3" json:"s_nwk_s_int_key,omitempty"`
	NwkSEncKey []byte `protobuf:"bytes,9,opt,name=nwk_s_enc_key,json=nwkSEncKey,proto3" json:"nwk_s_enc_key,omitempty"`
	AppSKeyEnvelope *common.KeyEnvelope `protobuf:"bytes,45,opt,name=app_s_key_envelope,json=appSKeyEnvelope,proto3" json:"app_s_key_envelope,omitempty"`
	FCntUp uint32 `protobuf:"varint,10,opt,name=f_cnt_up,json=fCntUp,proto3" json:"f_cnt_up,omitempty"`
	NFCntDown uint32 `protobuf:"varint,11,opt,name=n_f_cnt_down,json=nFCntDown,proto3" json:"n_f_cnt_down,omitempty"`
	AFCntDown uint32 `protobuf:"varint,12,opt,name=a_f_cnt_down,json=aFCntDown,proto3" json:"a_f_cnt_down,omitempty"`
	ConfFCnt uint32 `protobuf:"varint,39,opt,name=conf_f_cnt,json=confFCnt,proto3" json:"conf_f_cnt,omitempty"`
	SkipFCntCheck bool `protobuf:"varint,13,opt,name=skip_f_cnt_check,json=skipFCntCheck,proto3" json:"skip_f_cnt_check,omitempty"`
	RxDelay uint32 `protobuf:"varint,14,opt,name=rx_delay,json=rxDelay,proto3" json:"rx_delay,omitempty"`
	Rx1DrOffset uint32 `protobuf:"varint,15,opt,name=rx1_dr_offset,json=rx1DrOffset,proto3" json:"rx1_dr_offset,omitempty"`
	Rx2Dr uint32 `protobuf:"varint,16,opt,name=rx2_dr,json=rx2Dr,proto3" json:"rx2_dr,omitempty"`
	Rx2Frequency uint32 `protobuf:"varint,17,opt,name=rx2_frequency,json=rx2Frequency,proto3" json:"rx2_frequency,omitempty"`
	TxPowerIndex uint32 `protobuf:"varint,18,opt,name=tx_power_index,json=txPowerIndex,proto3" json:"tx_power_index,omitempty"`
	Dr uint32 `protobuf:"varint,19,opt,name=dr,proto3" json:"dr,omitempty"`
	Adr bool `protobuf:"varint,20,opt,name=adr,proto3" json:"adr,omitempty"`
	MaxSupportedTxPowerIndex uint32 `protobuf:"varint,21,opt,name=max_supported_tx_power_index,json=maxSupportedTxPowerIndex,proto3" json:"max_supported_tx_power_index,omitempty"`
	NbTrans uint32 `protobuf:"varint,23,opt,name=nb_trans,json=nbTrans,proto3" json:"nb_trans,omitempty"`
	EnabledUplinkChannels []uint32 `protobuf:"varint,24,rep,packed,name=enabled_uplink_channels,json=enabledUplinkChannels,proto3" json:"enabled_uplink_channels,omitempty"`
	ExtraUplinkChannels map[uint32]*DeviceSessionPBChannel `protobuf:"bytes,25,rep,name=extra_uplink_channels,json=extraUplinkChannels,proto3" json:"extra_uplink_channels,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
	ChannelFrequencies []uint32 `protobuf:"varint,26,rep,packed,name=channel_frequencies,json=channelFrequencies,proto3" json:"channel_frequencies,omitempty"`
	UplinkAdrHistory []*DeviceSessionPBUplinkADRHistory `protobuf:"bytes,27,rep,name=uplink_adr_history,json=uplinkAdrHistory,proto3" json:"uplink_adr_history,omitempty"`
	LastDeviceStatusRequestTimeUnixNs int64 `protobuf:"varint,29,opt,name=last_device_status_request_time_unix_ns,json=lastDeviceStatusRequestTimeUnixNs,proto3" json:"last_device_status_request_time_unix_ns,omitempty"`
	BeaconLocked bool `protobuf:"varint,33,opt,name=beacon_locked,json=beaconLocked,proto3" json:"beacon_locked,omitempty"`
	PingSlotNb uint32 `protobuf:"varint,34,opt,name=ping_slot_nb,json=pingSlotNb,proto3" json:"ping_slot_nb,omitempty"`
	PingSlotDr uint32 `protobuf:"varint,35,opt,name=ping_slot_dr,json=pingSlotDr,proto3" json:"ping_slot_dr,omitempty"`
	PingSlotFrequency uint32 `protobuf:"varint,36,opt,name=ping_slot_frequency,json=pingSlotFrequency,proto3" json:"ping_slot_frequency,omitempty"`
	MacVersion string `protobuf:"bytes,37,opt,name=mac_version,json=macVersion,proto3" json:"mac_version,omitempty"`
	MinSupportedTxPowerIndex uint32 `protobuf:"varint,38,opt,name=min_supported_tx_power_index,json=minSupportedTxPowerIndex,proto3" json:"min_supported_tx_power_index,omitempty"`
	RejoinRequestEnabled bool `protobuf:"varint,44,opt,name=rejoin_request_enabled,json=rejoinRequestEnabled,proto3" json:"rejoin_request_enabled,omitempty"`
	RejoinRequestMaxCountN uint32 `protobuf:"varint,40,opt,name=rejoin_request_max_count_n,json=rejoinRequestMaxCountN,proto3" json:"rejoin_request_max_count_n,omitempty"`
	RejoinRequestMaxTimeN uint32 `protobuf:"varint,41,opt,name=rejoin_request_max_time_n,json=rejoinRequestMaxTimeN,proto3" json:"rejoin_request_max_time_n,omitempty"`
	RejoinCount_0 uint32 `protobuf:"varint,42,opt,name=rejoin_count_0,json=rejoinCount0,proto3" json:"rejoin_count_0,omitempty"`
	PendingRejoinDeviceSession []byte `protobuf:"bytes,43,opt,name=pending_rejoin_device_session,json=pendingRejoinDeviceSession,proto3" json:"pending_rejoin_device_session,omitempty"`
	ReferenceAltitude float64 `protobuf:"fixed64,46,opt,name=reference_altitude,json=referenceAltitude,proto3" json:"reference_altitude,omitempty"`
	UplinkDwellTime_400Ms bool `protobuf:"varint,47,opt,name=uplink_dwell_time_400ms,json=uplinkDwellTime400ms,proto3" json:"uplink_dwell_time_400ms,omitempty"`
	DownlinkDwellTime_400Ms bool `protobuf:"varint,48,opt,name=downlink_dwell_time_400ms,json=downlinkDwellTime400ms,proto3" json:"downlink_dwell_time_400ms,omitempty"`
	UplinkMaxEirpIndex uint32 `protobuf:"varint,49,opt,name=uplink_max_eirp_index,json=uplinkMaxEirpIndex,proto3" json:"uplink_max_eirp_index,omitempty"`
	MacCommandErrorCount map[uint32]uint32 `protobuf:"bytes,50,rep,name=mac_command_error_count,json=macCommandErrorCount,proto3" json:"mac_command_error_count,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
	IsDisabled bool `protobuf:"varint,51,opt,name=is_disabled,json=isDisabled,proto3" json:"is_disabled,omitempty"`
}
func (x *DeviceSessionPB) Reset() {
	*x = DeviceSessionPB{}
	if protoimpl.UnsafeEnabled {
		mi := &file_device_session_proto_msgTypes[2]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}
func (x *DeviceSessionPB) String() string {
	return protoimpl.X.MessageStringOf(x)
}
func (*DeviceSessionPB) ProtoMessage() {}
func (x *DeviceSessionPB) ProtoReflect() protoreflect.Message {
	mi := &file_device_session_proto_msgTypes[2]
	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)
}
func (*DeviceSessionPB) Descriptor() ([]byte, []int) {
	return file_device_session_proto_rawDescGZIP(), []int{2}
}
func (x *DeviceSessionPB) GetDeviceProfileId() string {
	if x != nil {
		return x.DeviceProfileId
	}
	return ""
}
func (x *DeviceSessionPB) GetServiceProfileId() string {
	if x != nil {
		return x.ServiceProfileId
	}
	return ""
}
func (x *DeviceSessionPB) GetRoutingProfileId() string {
	if x != nil {
		return x.RoutingProfileId
	}
	return ""
}
func (x *DeviceSessionPB) GetDevAddr() []byte {
	if x != nil {
		return x.DevAddr
	}
	return nil
}
func (x *DeviceSessionPB) GetDevEui() []byte {
	if x != nil {
		return x.DevEui
	}
	return nil
}
func (x *DeviceSessionPB) GetJoinEui() []byte {
	if x != nil {
		return x.JoinEui
	}
	return nil
}
func (x *DeviceSessionPB) GetFNwkSIntKey() []byte {
	if x != nil {
		return x.FNwkSIntKey
	}
	return nil
}
func (x *DeviceSessionPB) GetSNwkSIntKey() []byte {
	if x != nil {
		return x.SNwkSIntKey
	}
	return nil
}
func (x *DeviceSessionPB) GetNwkSEncKey() []byte {
	if x != nil {
		return x.NwkSEncKey
	}
	return nil
}
func (x *DeviceSessionPB) GetAppSKeyEnvelope() *common.KeyEnvelope {
	if x != nil {
		return x.AppSKeyEnvelope
	}
	return nil
}
func (x *DeviceSessionPB) GetFCntUp() uint32 {
	if x != nil {
		return x.FCntUp
	}
	return 0
}
func (x *DeviceSessionPB) GetNFCntDown() uint32 {
	if x != nil {
		return x.NFCntDown
	}
	return 0
}
func (x *DeviceSessionPB) GetAFCntDown() uint32 {
	if x != nil {
		return x.AFCntDown
	}
	return 0
}
func (x *DeviceSessionPB) GetConfFCnt() uint32 {
	if x != nil {
		return x.ConfFCnt
	}
	return 0
}
func (x *DeviceSessionPB) GetSkipFCntCheck() bool {
	if x != nil {
		return x.SkipFCntCheck
	}
	return false
}
func (x *DeviceSessionPB) GetRxDelay() uint32 {
	if x != nil {
		return x.RxDelay
	}
	return 0
}
func (x *DeviceSessionPB) GetRx1DrOffset() uint32 {
	if x != nil {
		return x.Rx1DrOffset
	}
	return 0
}
func (x *DeviceSessionPB) GetRx2Dr() uint32 {
	if x != nil {
		return x.Rx2Dr
	}
	return 0
}
func (x *DeviceSessionPB) GetRx2Frequency() uint32 {
	if x != nil {
		return x.Rx2Frequency
	}
	return 0
}
func (x *DeviceSessionPB) GetTxPowerIndex() uint32 {
	if x != nil {
		return x.TxPowerIndex
	}
	return 0
}
func (x *DeviceSessionPB) GetDr() uint32 {
	if x != nil {
		return x.Dr
	}
	return 0
}
func (x *DeviceSessionPB) GetAdr() bool {
	if x != nil {
		return x.Adr
	}
	return false
}
func (x *DeviceSessionPB) GetMaxSupportedTxPowerIndex() uint32 {
	if x != nil {
		return x.MaxSupportedTxPowerIndex
	}
	return 0
}
func (x *DeviceSessionPB) GetNbTrans() uint32 {
	if x != nil {
		return x.NbTrans
	}
	return 0
}
func (x *DeviceSessionPB) GetEnabledUplinkChannels() []uint32 {
	if x != nil {
		return x.EnabledUplinkChannels
	}
	return nil
}
func (x *DeviceSessionPB) GetExtraUplinkChannels() map[uint32]*DeviceSessionPBChannel {
	if x != nil {
		return x.ExtraUplinkChannels
	}
	return nil
}
func (x *DeviceSessionPB) GetChannelFrequencies() []uint32 {
	if x != nil {
		return x.ChannelFrequencies
	}
	return nil
}
func (x *DeviceSessionPB) GetUplinkAdrHistory() []*DeviceSessionPBUplinkADRHistory {
	if x != nil {
		return x.UplinkAdrHistory
	}
	return nil
}
func (x *DeviceSessionPB) GetLastDeviceStatusRequestTimeUnixNs() int64 {
	if x != nil {
		return x.LastDeviceStatusRequestTimeUnixNs
	}
	return 0
}
func (x *DeviceSessionPB) GetBeaconLocked() bool {
	if x != nil {
		return x.BeaconLocked
	}
	return false
}
func (x *DeviceSessionPB) GetPingSlotNb() uint32 {
	if x != nil {
		return x.PingSlotNb
	}
	return 0
}
func (x *DeviceSessionPB) GetPingSlotDr() uint32 {
	if x != nil {
		return x.PingSlotDr
	}
	return 0
}
func (x *DeviceSessionPB) GetPingSlotFrequency() uint32 {
	if x != nil {
		return x.PingSlotFrequency
	}
	return 0
}
func (x *DeviceSessionPB) GetMacVersion() string {
	if x != nil {
		return x.MacVersion
	}
	return ""
}
func (x *DeviceSessionPB) GetMinSupportedTxPowerIndex() uint32 {
	if x != nil {
		return x.MinSupportedTxPowerIndex
	}
	return 0
}
func (x *DeviceSessionPB) GetRejoinRequestEnabled() bool {
	if x != nil {
		return x.RejoinRequestEnabled
	}
	return false
}
func (x *DeviceSessionPB) GetRejoinRequestMaxCountN() uint32 {
	if x != nil {
		return x.RejoinRequestMaxCountN
	}
	return 0
}
func (x *DeviceSessionPB) GetRejoinRequestMaxTimeN() uint32 {
	if x != nil {
		return x.RejoinRequestMaxTimeN
	}
	return 0
}
func (x *DeviceSessionPB) GetRejoinCount_0() uint32 {
	if x != nil {
		return x.RejoinCount_0
	}
	return 0
}
func (x *DeviceSessionPB) GetPendingRejoinDeviceSession() []byte {
	if x != nil {
		return x.PendingRejoinDeviceSession
	}
	return nil
}
func (x *DeviceSessionPB) GetReferenceAltitude() float64 {
	if x != nil {
		return x.ReferenceAltitude
	}
	return 0
}
func (x *DeviceSessionPB) GetUplinkDwellTime_400Ms() bool {
	if x != nil {
		return x.UplinkDwellTime_400Ms
	}
	return false
}
func (x *DeviceSessionPB) GetDownlinkDwellTime_400Ms() bool {
	if x != nil {
		return x.DownlinkDwellTime_400Ms
	}
	return false
}
func (x *DeviceSessionPB) GetUplinkMaxEirpIndex() uint32 {
	if x != nil {
		return x.UplinkMaxEirpIndex
	}
	return 0
}
func (x *DeviceSessionPB) GetMacCommandErrorCount() map[uint32]uint32 {
	if x != nil {
		return x.MacCommandErrorCount
	}
	return nil
}
func (x *DeviceSessionPB) GetIsDisabled() bool {
	if x != nil {
		return x.IsDisabled
	}
	return false
}
type DeviceGatewayRXInfoSetPB struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields
	DevEui []byte `protobuf:"bytes,1,opt,name=dev_eui,json=devEui,proto3" json:"dev_eui,omitempty"`
	Dr uint32 `protobuf:"varint,2,opt,name=dr,proto3" json:"dr,omitempty"`
	Items []*DeviceGatewayRXInfoPB `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"`
}
func (x *DeviceGatewayRXInfoSetPB) Reset() {
	*x = DeviceGatewayRXInfoSetPB{}
	if protoimpl.UnsafeEnabled {
		mi := &file_device_session_proto_msgTypes[3]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}
func (x *DeviceGatewayRXInfoSetPB) String() string {
	return protoimpl.X.MessageStringOf(x)
}
func (*DeviceGatewayRXInfoSetPB) ProtoMessage() {}
func (x *DeviceGatewayRXInfoSetPB) ProtoReflect() protoreflect.Message {
	mi := &file_device_session_proto_msgTypes[3]
	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)
}