package storage

import (
	fmt "fmt"
	gw "github.com/brocaar/chirpstack-api/go/v3/gw"
	proto "github.com/golang/protobuf/proto"
	math "math"
)

var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf

const _ = proto.ProtoPackageIsVersion3 

type DownlinkFrames struct {

	Token uint32 `protobuf:"varint,1,opt,name=token,proto3" json:"token,omitempty"`

	DevEui []byte `protobuf:"bytes,2,opt,name=dev_eui,json=devEui,proto3" json:"dev_eui,omitempty"`

	MulticastGroupId []byte `protobuf:"bytes,3,opt,name=multicast_group_id,json=multicastGroupId,proto3" json:"multicast_group_id,omitempty"`

	DownlinkFrames []*gw.DownlinkFrame `protobuf:"bytes,4,rep,name=downlink_frames,json=downlinkFrames,proto3" json:"downlink_frames,omitempty"`

	RoutingProfileId []byte `protobuf:"bytes,5,opt,name=routing_profile_id,json=routingProfileId,proto3" json:"routing_profile_id,omitempty"`

	FCnt uint32 `protobuf:"varint,6,opt,name=f_cnt,json=fCnt,proto3" json:"f_cnt,omitempty"`

	FPort                uint32   `protobuf:"varint,7,opt,name=f_port,json=fPort,proto3" json:"f_port,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *DownlinkFrames) Reset()         { *m = DownlinkFrames{} }
func (m *DownlinkFrames) String() string { return proto.CompactTextString(m) }
func (*DownlinkFrames) ProtoMessage()    {}
func (*DownlinkFrames) Descriptor() ([]byte, []int) {
	return fileDescriptor_a06c04f39a283b6b, []int{0}
}

func (m *DownlinkFrames) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_DownlinkFrames.Unmarshal(m, b)
}
func (m *DownlinkFrames) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_DownlinkFrames.Marshal(b, m, deterministic)
}
func (m *DownlinkFrames) XXX_Merge(src proto.Message) {
	xxx_messageInfo_DownlinkFrames.Merge(m, src)
}
func (m *DownlinkFrames) XXX_Size() int {
	return xxx_messageInfo_DownlinkFrames.Size(m)
}
func (m *DownlinkFrames) XXX_DiscardUnknown() {
	xxx_messageInfo_DownlinkFrames.DiscardUnknown(m)
}

var xxx_messageInfo_DownlinkFrames proto.InternalMessageInfo

func (m *DownlinkFrames) GetToken() uint32 {
	if m != nil {
		return m.Token
	}
	return 0
}

func (m *DownlinkFrames) GetDevEui() []byte {
	if m != nil {
		return m.DevEui
	}
	return nil
}

func (m *DownlinkFrames) GetMulticastGroupId() []byte {
	if m != nil {
		return m.MulticastGroupId
	}
	return nil
}

func (m *DownlinkFrames) GetDownlinkFrames() []*gw.DownlinkFrame {
	if m != nil {
		return m.DownlinkFrames
	}
	return nil
}

func (m *DownlinkFrames) GetRoutingProfileId() []byte {
	if m != nil {
		return m.RoutingProfileId
	}
	return nil
}

func (m *DownlinkFrames) GetFCnt() uint32 {
	if m != nil {
		return m.FCnt
	}
	return 0
}

func (m *DownlinkFrames) GetFPort() uint32 {
	if m != nil {
		return m.FPort
	}
	return 0
}

func init() {
	proto.RegisterType((*DownlinkFrames)(nil), "storage.DownlinkFrames")
}

func init() { proto.RegisterFile("downlink_frames.proto", fileDescriptor_a06c04f39a283b6b) }

var fileDescriptor_a06c04f39a283b6b = []byte{

	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x90, 0xcd, 0x4a, 0xc3, 0x40,
	0x14, 0x85, 0x49, 0xdb, 0x24, 0x30, 0xd5, 0xaa, 0x57, 0x8b, 0x83, 0xab, 0xe0, 0x2a, 0x8b, 0x12,
	0x41, 0x77, 0x6e, 0xfd, 0xa3, 0xbb, 0x92, 0x17, 0x18, 0x62, 0xe7, 0x87, 0xa1, 0xe9, 0xdc, 0x30,
	0xb9, 0xd3, 0x3c, 0x80, 0x2f, 0x2e, 0xcd, 0x14, 0xa1, 0x2e, 0x67, 0xbe, 0x03, 0xe7, 0x3b, 0x97,
	0x2d, 0x25, 0x0e, 0xae, 0xb5, 0x6e, 0x27, 0xb4, 0x6f, 0xf6, 0xaa, 0xaf, 0x3a, 0x8f, 0x84, 0x90,
	0xf7, 0x84, 0xbe, 0x31, 0xea, 0x61, 0x6e, 0x86, 0x27, 0x33, 0xc4, 0xdf, 0xc7, 0x9f, 0x09, 0x5b,
	0xbc, 0x9f, 0xf2, 0x9f, 0x63, 0x1c, 0xee, 0x58, 0x4a, 0xb8, 0x53, 0x8e, 0x27, 0x45, 0x52, 0x5e,
	0xd6, 0xf1, 0x01, 0xf7, 0x2c, 0x97, 0xea, 0x20, 0x54, 0xb0, 0x7c, 0x52, 0x24, 0xe5, 0x45, 0x9d,
	0x49, 0x75, 0xf8, 0x08, 0x16, 0x56, 0x0c, 0xf6, 0xa1, 0x25, 0xbb, 0x6d, 0x7a, 0x12, 0xc6, 0x63,
	0xe8, 0x84, 0x95, 0x7c, 0x3a, 0x66, 0xae, 0xff, 0xc8, 0xd7, 0x11, 0xac, 0x25, 0xbc, 0xb2, 0xab,
	0x7f, 0x7a, 0x7c, 0x56, 0x4c, 0xcb, 0xf9, 0xf3, 0x4d, 0x65, 0x86, 0xea, 0xcc, 0xa4, 0x5e, 0xc8,
	0x73, 0xb1, 0x15, 0x03, 0x8f, 0x81, 0xac, 0x33, 0xa2, 0xf3, 0xa8, 0x6d, 0xab, 0x8e, 0x4d, 0x69,
	0x6c, 0x3a, 0x91, 0x4d, 0x04, 0x6b, 0x09, 0xb7, 0x2c, 0xd5, 0x62, 0xeb, 0x88, 0x67, 0xe3, 0x8c,
	0x99, 0x7e, 0x73, 0x04, 0x4b, 0x96, 0x69, 0xd1, 0xa1, 0x27, 0x9e, 0xc7, 0x71, 0x7a, 0x83, 0x9e,
	0xbe, 0xb3, 0xf1, 0x18, 0x2f, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xb7, 0x13, 0x88, 0x12, 0x3b,
	0x01, 0x00, 0x00,
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: downlink_frames.proto

package storage

import (
	fmt "fmt"
	gw "github.com/brocaar/chirpstack-api/go/v3/gw"
	proto "github.com/golang/protobuf/proto"
	math "math"
)

// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf

// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package

type DownlinkFrames struct {
	// Token.
	Token uint32 `protobuf:"varint,1,opt,name=token,proto3" json:"token,omitempty"`
	// DevEUI.
	DevEui []byte `protobuf:"bytes,2,opt,name=dev_eui,json=devEui,proto3" json:"dev_eui,omitempty"`
	// Multicast Group ID.
	MulticastGroupId []byte `protobuf:"bytes,3,opt,name=multicast_group_id,json=multicastGroupId,proto3" json:"multicast_group_id,omitempty"`
	// Downlink frames.
	DownlinkFrames []*gw.DownlinkFrame `protobuf:"bytes,4,rep,name=downlink_frames,json=downlinkFrames,proto3" json:"downlink_frames,omitempty"`
	// Routing Profile ID.
	RoutingProfileId []byte `protobuf:"bytes,5,opt,name=routing_profile_id,json=routingProfileId,proto3" json:"routing_profile_id,omitempty"`
	// Downlink frame-counter.
	FCnt uint32 `protobuf:"varint,6,opt,name=f_cnt,json=fCnt,proto3" json:"f_cnt,omitempty"`
	// Frame port.
	FPort                uint32   `protobuf:"varint,7,opt,name=f_port,json=fPort,proto3" json:"f_port,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *DownlinkFrames) Reset()         { *m = DownlinkFrames{} }
func (m *DownlinkFrames) String() string { return proto.CompactTextString(m) }
func (*DownlinkFrames) ProtoMessage()    {}
func (*DownlinkFrames) Descriptor() ([]byte, []int) {
	return fileDescriptor_a06c04f39a283b6b, []int{0}
}

func (m *DownlinkFrames) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_DownlinkFrames.Unmarshal(m, b)
}
func (m *DownlinkFrames) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_DownlinkFrames.Marshal(b, m, deterministic)
}
func (m *DownlinkFrames) XXX_Merge(src proto.Message) {
	xxx_messageInfo_DownlinkFrames.Merge(m, src)
}
func (m *DownlinkFrames) XXX_Size() int {
	return xxx_messageInfo_DownlinkFrames.Size(m)
}
func (m *DownlinkFrames) XXX_DiscardUnknown() {
	xxx_messageInfo_DownlinkFrames.DiscardUnknown(m)
}

var xxx_messageInfo_DownlinkFrames proto.InternalMessageInfo

func (m *DownlinkFrames) GetToken() uint32 {
	if m != nil {
		return m.Token
	}
	return 0
}

func (m *DownlinkFrames) GetDevEui() []byte {
	if m != nil {
		return m.DevEui
	}
	return nil
}

func (m *DownlinkFrames) GetMulticastGroupId() []byte {
	if m != nil {
		return m.MulticastGroupId
	}
	return nil
}

func (m *DownlinkFrames) GetDownlinkFrames() []*gw.DownlinkFrame {
	if m != nil {
		return m.DownlinkFrames
	}
	return nil
}

func (m *DownlinkFrames) GetRoutingProfileId() []byte {
	if m != nil {
		return m.RoutingProfileId
	}
	return nil
}

func (m *DownlinkFrames) GetFCnt() uint32 {
	if m != nil {
		return m.FCnt
	}
	return 0
}

func (m *DownlinkFrames) GetFPort() uint32 {
	if m != nil {
		return m.FPort
	}
	return 0
}

func init() {
	proto.RegisterType((*DownlinkFrames)(nil), "storage.DownlinkFrames")
}

func init() { proto.RegisterFile("downlink_frames.proto", fileDescriptor_a06c04f39a283b6b) }

var fileDescriptor_a06c04f39a283b6b = []byte{
	// 243 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x90, 0xcd, 0x4a, 0xc3, 0x40,
	0x14, 0x85, 0x49, 0xdb, 0x24, 0x30, 0xd5, 0xaa, 0x57, 0x8b, 0x83, 0xab, 0xe0, 0x2a, 0x8b, 0x12,
	0x41, 0x77, 0x6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