Ai
2 Star 0 Fork 0

成都极趣科技/chirpstack-api

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
as.pb.go 62.40 KB
一键复制 编辑 原始数据 按行查看 历史
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: as/as.proto
package as
import (
context "context"
fmt "fmt"
common "gitee.com/dfrobotcd/chirpstack-api/go/common"
gw "gitee.com/dfrobotcd/chirpstack-api/go/gw"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
emptypb "google.golang.org/protobuf/types/known/emptypb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
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 RXWindow int32
const (
RXWindow_RX1 RXWindow = 0
RXWindow_RX2 RXWindow = 1
)
var RXWindow_name = map[int32]string{
0: "RX1",
1: "RX2",
}
var RXWindow_value = map[string]int32{
"RX1": 0,
"RX2": 1,
}
func (x RXWindow) String() string {
return proto.EnumName(RXWindow_name, int32(x))
}
func (RXWindow) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_1d6d0f577a60e27d, []int{0}
}
type ErrorType int32
const (
// Generic error type.
ErrorType_GENERIC ErrorType = 0
// OTAA error.
ErrorType_OTAA ErrorType = 1
// Uplink frame-counter was reset.
ErrorType_DATA_UP_FCNT_RESET ErrorType = 2
// Uplink MIC error.
ErrorType_DATA_UP_MIC ErrorType = 3
// Downlink payload size error.
ErrorType_DEVICE_QUEUE_ITEM_SIZE ErrorType = 4
// Downlink frame-counter error.
ErrorType_DEVICE_QUEUE_ITEM_FCNT ErrorType = 5
// Uplink frame-counter retransmission.
ErrorType_DATA_UP_FCNT_RETRANSMISSION ErrorType = 6
// Downlink gateway error.
ErrorType_DATA_DOWN_GATEWAY ErrorType = 7
)
var ErrorType_name = map[int32]string{
0: "GENERIC",
1: "OTAA",
2: "DATA_UP_FCNT_RESET",
3: "DATA_UP_MIC",
4: "DEVICE_QUEUE_ITEM_SIZE",
5: "DEVICE_QUEUE_ITEM_FCNT",
6: "DATA_UP_FCNT_RETRANSMISSION",
7: "DATA_DOWN_GATEWAY",
}
var ErrorType_value = map[string]int32{
"GENERIC": 0,
"OTAA": 1,
"DATA_UP_FCNT_RESET": 2,
"DATA_UP_MIC": 3,
"DEVICE_QUEUE_ITEM_SIZE": 4,
"DEVICE_QUEUE_ITEM_FCNT": 5,
"DATA_UP_FCNT_RETRANSMISSION": 6,
"DATA_DOWN_GATEWAY": 7,
}
func (x ErrorType) String() string {
return proto.EnumName(ErrorType_name, int32(x))
}
func (ErrorType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_1d6d0f577a60e27d, []int{1}
}
type DeviceClass int32
const (
DeviceClass_ClassA DeviceClass = 0
DeviceClass_ClassB DeviceClass = 1
DeviceClass_ClassC DeviceClass = 2
)
var DeviceClass_name = map[int32]string{
0: "ClassA",
1: "ClassB",
2: "ClassC",
}
var DeviceClass_value = map[string]int32{
"ClassA": 0,
"ClassB": 1,
"ClassC": 2,
}
func (x DeviceClass) String() string {
return proto.EnumName(DeviceClass_name, int32(x))
}
func (DeviceClass) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_1d6d0f577a60e27d, []int{2}
}
type HandleProprietaryUplinkResponse struct {
MacPayload []byte `protobuf:"bytes,1,opt,name=mac_payload,json=macPayload,proto3" json:"mac_payload,omitempty"`
Mic []byte `protobuf:"bytes,2,opt,name=mic,proto3" json:"mic,omitempty"`
DelaySeconds int64 `protobuf:"varint,3,opt,name=delay_seconds,json=delaySeconds,proto3" json:"delay_seconds,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *HandleProprietaryUplinkResponse) Reset() { *m = HandleProprietaryUplinkResponse{} }
func (m *HandleProprietaryUplinkResponse) String() string { return proto.CompactTextString(m) }
func (*HandleProprietaryUplinkResponse) ProtoMessage() {}
func (*HandleProprietaryUplinkResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_1d6d0f577a60e27d, []int{0}
}
func (m *HandleProprietaryUplinkResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_HandleProprietaryUplinkResponse.Unmarshal(m, b)
}
func (m *HandleProprietaryUplinkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_HandleProprietaryUplinkResponse.Marshal(b, m, deterministic)
}
func (m *HandleProprietaryUplinkResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_HandleProprietaryUplinkResponse.Merge(m, src)
}
func (m *HandleProprietaryUplinkResponse) XXX_Size() int {
return xxx_messageInfo_HandleProprietaryUplinkResponse.Size(m)
}
func (m *HandleProprietaryUplinkResponse) XXX_DiscardUnknown() {
xxx_messageInfo_HandleProprietaryUplinkResponse.DiscardUnknown(m)
}
var xxx_messageInfo_HandleProprietaryUplinkResponse proto.InternalMessageInfo
func (m *HandleProprietaryUplinkResponse) GetMacPayload() []byte {
if m != nil {
return m.MacPayload
}
return nil
}
func (m *HandleProprietaryUplinkResponse) GetMic() []byte {
if m != nil {
return m.Mic
}
return nil
}
func (m *HandleProprietaryUplinkResponse) GetDelaySeconds() int64 {
if m != nil {
return m.DelaySeconds
}
return 0
}
type DeviceActivationContext struct {
// Assigned Device Address.
DevAddr []byte `protobuf:"bytes,1,opt,name=dev_addr,json=devAddr,proto3" json:"dev_addr,omitempty"`
// Application session key (envelope).
AppSKey *common.KeyEnvelope `protobuf:"bytes,2,opt,name=app_s_key,json=appSKey,proto3" json:"app_s_key,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeviceActivationContext) Reset() { *m = DeviceActivationContext{} }
func (m *DeviceActivationContext) String() string { return proto.CompactTextString(m) }
func (*DeviceActivationContext) ProtoMessage() {}
func (*DeviceActivationContext) Descriptor() ([]byte, []int) {
return fileDescriptor_1d6d0f577a60e27d, []int{1}
}
func (m *DeviceActivationContext) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeviceActivationContext.Unmarshal(m, b)
}
func (m *DeviceActivationContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeviceActivationContext.Marshal(b, m, deterministic)
}
func (m *DeviceActivationContext) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeviceActivationContext.Merge(m, src)
}
func (m *DeviceActivationContext) XXX_Size() int {
return xxx_messageInfo_DeviceActivationContext.Size(m)
}
func (m *DeviceActivationContext) XXX_DiscardUnknown() {
xxx_messageInfo_DeviceActivationContext.DiscardUnknown(m)
}
var xxx_messageInfo_DeviceActivationContext proto.InternalMessageInfo
func (m *DeviceActivationContext) GetDevAddr() []byte {
if m != nil {
return m.DevAddr
}
return nil
}
func (m *DeviceActivationContext) GetAppSKey() *common.KeyEnvelope {
if m != nil {
return m.AppSKey
}
return nil
}
type DeviceActivationRequest struct {
DevEui []byte `protobuf:"bytes,1,opt,name=dev_eui,json=devEui,proto3" json:"dev_eui,omitempty"`
DeviceActivationContext *DeviceActivationContext `protobuf:"bytes,10,opt,name=device_activation_context,json=deviceActivationContext,proto3" json:"device_activation_context,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeviceActivationRequest) Reset() { *m = DeviceActivationRequest{} }
func (m *DeviceActivationRequest) String() string { return proto.CompactTextString(m) }
func (*DeviceActivationRequest) ProtoMessage() {}
func (*DeviceActivationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_1d6d0f577a60e27d, []int{2}
}
func (m *DeviceActivationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeviceActivationRequest.Unmarshal(m, b)
}
func (m *DeviceActivationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeviceActivationRequest.Marshal(b, m, deterministic)
}
func (m *DeviceActivationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeviceActivationRequest.Merge(m, src)
}
func (m *DeviceActivationRequest) XXX_Size() int {
return xxx_messageInfo_DeviceActivationRequest.Size(m)
}
func (m *DeviceActivationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeviceActivationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeviceActivationRequest proto.InternalMessageInfo
func (m *DeviceActivationRequest) GetDevEui() []byte {
if m != nil {
return m.DevEui
}
return nil
}
func (m *DeviceActivationRequest) GetDeviceActivationContext() *DeviceActivationContext {
if m != nil {
return m.DeviceActivationContext
}
return nil
}
type HandleUplinkDataRequest struct {
// DevEUI EUI (8 bytes).
DevEui []byte `protobuf:"bytes,1,opt,name=dev_eui,json=devEui,proto3" json:"dev_eui,omitempty"`
// Join EUI used for OTAA activation (8 bytes).
JoinEui []byte `protobuf:"bytes,2,opt,name=join_eui,json=joinEui,proto3" json:"join_eui,omitempty"`
// Frame-counter.
FCnt uint32 `protobuf:"varint,3,opt,name=f_cnt,json=fCnt,proto3" json:"f_cnt,omitempty"`
// Frame port.
FPort uint32 `protobuf:"varint,4,opt,name=f_port,json=fPort,proto3" json:"f_port,omitempty"`
// ADR enabled.
Adr bool `protobuf:"varint,5,opt,name=adr,proto3" json:"adr,omitempty"`
// Data-rate.
Dr uint32 `protobuf:"varint,6,opt,name=dr,proto3" json:"dr,omitempty"`
// TX meta-data.
TxInfo *gw.UplinkTXInfo `protobuf:"bytes,7,opt,name=tx_info,json=txInfo,proto3" json:"tx_info,omitempty"`
// RX meta-data.
RxInfo []*gw.UplinkRXInfo `protobuf:"bytes,8,rep,name=rx_info,json=rxInfo,proto3" json:"rx_info,omitempty"`
// Received data (encrypted).
Data []byte `protobuf:"bytes,9,opt,name=data,proto3" json:"data,omitempty"`
// Device activation context.
//
// This field is only set on the first uplink frame when the security
// context has changed (e.g. a new OTAA (re)activation).
DeviceActivationContext *DeviceActivationContext `protobuf:"bytes,10,opt,name=device_activation_context,json=deviceActivationContext,proto3" json:"device_activation_context,omitempty"`
// Uplink was of type confirmed.
ConfirmedUplink bool `protobuf:"varint,11,opt,name=confirmed_uplink,json=confirmedUplink,proto3" json:"confirmed_uplink,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *HandleUplinkDataRequest) Reset() { *m = HandleUplinkDataRequest{} }
func (m *HandleUplinkDataRequest) String() string { return proto.CompactTextString(m) }
func (*HandleUplinkDataRequest) ProtoMessage() {}
func (*HandleUplinkDataRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_1d6d0f577a60e27d, []int{3}
}
func (m *HandleUplinkDataRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_HandleUplinkDataRequest.Unmarshal(m, b)
}
func (m *HandleUplinkDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_HandleUplinkDataRequest.Marshal(b, m, deterministic)
}
func (m *HandleUplinkDataRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_HandleUplinkDataRequest.Merge(m, src)
}
func (m *HandleUplinkDataRequest) XXX_Size() int {
return xxx_messageInfo_HandleUplinkDataRequest.Size(m)
}
func (m *HandleUplinkDataRequest) XXX_DiscardUnknown() {
xxx_messageInfo_HandleUplinkDataRequest.DiscardUnknown(m)
}
var xxx_messageInfo_HandleUplinkDataRequest proto.InternalMessageInfo
func (m *HandleUplinkDataRequest) GetDevEui() []byte {
if m != nil {
return m.DevEui
}
return nil
}
func (m *HandleUplinkDataRequest) GetJoinEui() []byte {
if m != nil {
return m.JoinEui
}
return nil
}
func (m *HandleUplinkDataRequest) GetFCnt() uint32 {
if m != nil {
return m.FCnt
}
return 0
}
func (m *HandleUplinkDataRequest) GetFPort() uint32 {
if m != nil {
return m.FPort
}
return 0
}
func (m *HandleUplinkDataRequest) GetAdr() bool {
if m != nil {
return m.Adr
}
return false
}
func (m *HandleUplinkDataRequest) GetDr() uint32 {
if m != nil {
return m.Dr
}
return 0
}
func (m *HandleUplinkDataRequest) GetTxInfo() *gw.UplinkTXInfo {
if m != nil {
return m.TxInfo
}
return nil
}
func (m *HandleUplinkDataRequest) GetRxInfo() []*gw.UplinkRXInfo {
if m != nil {
return m.RxInfo
}
return nil
}
func (m *HandleUplinkDataRequest) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
func (m *HandleUplinkDataRequest) GetDeviceActivationContext() *DeviceActivationContext {
if m != nil {
return m.DeviceActivationContext
}
return nil
}
func (m *HandleUplinkDataRequest) GetConfirmedUplink() bool {
if m != nil {
return m.ConfirmedUplink
}
return false
}
type HandleProprietaryUplinkRequest struct {
// MACPayload of the proprietary LoRaWAN frame.
MacPayload []byte `protobuf:"bytes,1,opt,name=mac_payload,json=macPayload,proto3" json:"mac_payload,omitempty"`
// MIC of the proprietary LoRaWAN frame.
Mic []byte `protobuf:"bytes,2,opt,name=mic,proto3" json:"mic,omitempty"`
// TXInfo contains the TX related meta-data.
TxInfo *gw.UplinkTXInfo `protobuf:"bytes,3,opt,name=tx_info,json=txInfo,proto3" json:"tx_info,omitempty"`
// RXInfo contains the RX related meta-data.
RxInfo []*gw.UplinkRXInfo `protobuf:"bytes,4,rep,name=rx_info,json=rxInfo,proto3" json:"rx_info,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *HandleProprietaryUplinkRequest) Reset() { *m = HandleProprietaryUplinkRequest{} }
func (m *HandleProprietaryUplinkRequest) String() string { return proto.CompactTextString(m) }
func (*HandleProprietaryUplinkRequest) ProtoMessage() {}
func (*HandleProprietaryUplinkRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_1d6d0f577a60e27d, []int{4}
}
func (m *HandleProprietaryUplinkRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_HandleProprietaryUplinkRequest.Unmarshal(m, b)
}
func (m *HandleProprietaryUplinkRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_HandleProprietaryUplinkRequest.Marshal(b, m, deterministic)
}
func (m *HandleProprietaryUplinkRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_HandleProprietaryUplinkRequest.Merge(m, src)
}
func (m *HandleProprietaryUplinkRequest) XXX_Size() int {
return xxx_messageInfo_HandleProprietaryUplinkRequest.Size(m)
}
func (m *HandleProprietaryUplinkRequest) XXX_DiscardUnknown() {
xxx_messageInfo_HandleProprietaryUplinkRequest.DiscardUnknown(m)
}
var xxx_messageInfo_HandleProprietaryUplinkRequest proto.InternalMessageInfo
func (m *HandleProprietaryUplinkRequest) GetMacPayload() []byte {
if m != nil {
return m.MacPayload
}
return nil
}
func (m *HandleProprietaryUplinkRequest) GetMic() []byte {
if m != nil {
return m.Mic
}
return nil
}
func (m *HandleProprietaryUplinkRequest) GetTxInfo() *gw.UplinkTXInfo {
if m != nil {
return m.TxInfo
}
return nil
}
func (m *HandleProprietaryUplinkRequest) GetRxInfo() []*gw.UplinkRXInfo {
if m != nil {
return m.RxInfo
}
return nil
}
type HandleErrorRequest struct {
// Device EUI (8 bytes).
DevEui []byte `protobuf:"bytes,1,opt,name=dev_eui,json=devEui,proto3" json:"dev_eui,omitempty"`
// Type of the error.
Type ErrorType `protobuf:"varint,3,opt,name=type,proto3,enum=as.ErrorType" json:"type,omitempty"`
// Error string describing the error.
Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"`
// Frame-counter (if applicable) related to the error.
FCnt uint32 `protobuf:"varint,5,opt,name=f_cnt,json=fCnt,proto3" json:"f_cnt,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *HandleErrorRequest) Reset() { *m = HandleErrorRequest{} }
func (m *HandleErrorRequest) String() string { return proto.CompactTextString(m) }
func (*HandleErrorRequest) ProtoMessage() {}
func (*HandleErrorRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_1d6d0f577a60e27d, []int{5}
}
func (m *HandleErrorRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_HandleErrorRequest.Unmarshal(m, b)
}
func (m *HandleErrorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_HandleErrorRequest.Marshal(b, m, deterministic)
}
func (m *HandleErrorRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_HandleErrorRequest.Merge(m, src)
}
func (m *HandleErrorRequest) XXX_Size() int {
return xxx_messageInfo_HandleErrorRequest.Size(m)
}
func (m *HandleErrorRequest) XXX_DiscardUnknown() {
xxx_messageInfo_HandleErrorRequest.DiscardUnknown(m)
}
var xxx_messageInfo_HandleErrorRequest proto.InternalMessageInfo
func (m *HandleErrorRequest) GetDevEui() []byte {
if m != nil {
return m.DevEui
}
return nil
}
func (m *HandleErrorRequest) GetType() ErrorType {
if m != nil {
return m.Type
}
return ErrorType_GENERIC
}
func (m *HandleErrorRequest) GetError() string {
if m != nil {
return m.Error
}
return ""
}
func (m *HandleErrorRequest) GetFCnt() uint32 {
if m != nil {
return m.FCnt
}
return 0
}
type HandleDownlinkACKRequest struct {
// Device EUI (8 bytes).
DevEui []byte `protobuf:"bytes,1,opt,name=dev_eui,json=devEui,proto3" json:"dev_eui,omitempty"`
// Downlink frame-counter.
FCnt uint32 `protobuf:"varint,2,opt,name=f_cnt,json=fCnt,proto3" json:"f_cnt,omitempty"`
// Frame was acknowledged?
Acknowledged bool `protobuf:"varint,3,opt,name=acknowledged,proto3" json:"acknowledged,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *HandleDownlinkACKRequest) Reset() { *m = HandleDownlinkACKRequest{} }
func (m *HandleDownlinkACKRequest) String() string { return proto.CompactTextString(m) }
func (*HandleDownlinkACKRequest) ProtoMessage() {}
func (*HandleDownlinkACKRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_1d6d0f577a60e27d, []int{6}
}
func (m *HandleDownlinkACKRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_HandleDownlinkACKRequest.Unmarshal(m, b)
}
func (m *HandleDownlinkACKRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_HandleDownlinkACKRequest.Marshal(b, m, deterministic)
}
func (m *HandleDownlinkACKRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_HandleDownlinkACKRequest.Merge(m, src)
}
func (m *HandleDownlinkACKRequest) XXX_Size() int {
return xxx_messageInfo_HandleDownlinkACKRequest.Size(m)
}
func (m *HandleDownlinkACKRequest) XXX_DiscardUnknown() {
xxx_messageInfo_HandleDownlinkACKRequest.DiscardUnknown(m)
}
var xxx_messageInfo_HandleDownlinkACKRequest proto.InternalMessageInfo
func (m *HandleDownlinkACKRequest) GetDevEui() []byte {
if m != nil {
return m.DevEui
}
return nil
}
func (m *HandleDownlinkACKRequest) GetFCnt() uint32 {
if m != nil {
return m.FCnt
}
return 0
}
func (m *HandleDownlinkACKRequest) GetAcknowledged() bool {
if m != nil {
return m.Acknowledged
}
return false
}
type SetDeviceStatusRequest struct {
// Device EUI (8 bytes).
DevEui []byte `protobuf:"bytes,1,opt,name=dev_eui,json=devEui,proto3" json:"dev_eui,omitempty"`
// Battery level (deprecated, use battery_level).
// 0: The end-device is connected to an external power source
// 1..254: The battery level, 1 being at minimum and 254 being at maximum
// 255: The end-device was not able to measure the battery level
Battery uint32 `protobuf:"varint,2,opt,name=battery,proto3" json:"battery,omitempty"`
// The device margin status
// -32..32: The demodulation SNR ration in dB
Margin int32 `protobuf:"varint,3,opt,name=margin,proto3" json:"margin,omitempty"`
// Device is connected to an external power source.
ExternalPowerSource bool `protobuf:"varint,4,opt,name=external_power_source,json=externalPowerSource,proto3" json:"external_power_source,omitempty"`
// Device battery status is not available.
BatteryLevelUnavailable bool `protobuf:"varint,5,opt,name=battery_level_unavailable,json=batteryLevelUnavailable,proto3" json:"battery_level_unavailable,omitempty"`
// Battery level as a percentage.
BatteryLevel float32 `protobuf:"fixed32,6,opt,name=battery_level,json=batteryLevel,proto3" json:"battery_level,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SetDeviceStatusRequest) Reset() { *m = SetDeviceStatusRequest{} }
func (m *SetDeviceStatusRequest) String() string { return proto.CompactTextString(m) }
func (*SetDeviceStatusRequest) ProtoMessage() {}
func (*SetDeviceStatusRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_1d6d0f577a60e27d, []int{7}
}
func (m *SetDeviceStatusRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SetDeviceStatusRequest.Unmarshal(m, b)
}
func (m *SetDeviceStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SetDeviceStatusRequest.Marshal(b, m, deterministic)
}
func (m *SetDeviceStatusRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SetDeviceStatusRequest.Merge(m, src)
}
func (m *SetDeviceStatusRequest) XXX_Size() int {
return xxx_messageInfo_SetDeviceStatusRequest.Size(m)
}
func (m *SetDeviceStatusRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SetDeviceStatusRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SetDeviceStatusRequest proto.InternalMessageInfo
func (m *SetDeviceStatusRequest) GetDevEui() []byte {
if m != nil {
return m.DevEui
}
return nil
}
func (m *SetDeviceStatusRequest) GetBattery() uint32 {
if m != nil {
return m.Battery
}
return 0
}
func (m *SetDeviceStatusRequest) GetMargin() int32 {
if m != nil {
return m.Margin
}
return 0
}
func (m *SetDeviceStatusRequest) GetExternalPowerSource() bool {
if m != nil {
return m.ExternalPowerSource
}
return false
}
func (m *SetDeviceStatusRequest) GetBatteryLevelUnavailable() bool {
if m != nil {
return m.BatteryLevelUnavailable
}
return false
}
func (m *SetDeviceStatusRequest) GetBatteryLevel() float32 {
if m != nil {
return m.BatteryLevel
}
return 0
}
type SetDeviceLocationRequest struct {
// Device EUI (8 bytes).
DevEui []byte `protobuf:"bytes,1,opt,name=dev_eui,json=devEui,proto3" json:"dev_eui,omitempty"`
// The location of the device.
Location *common.Location `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
// Uplink IDs used for geolocation.
UplinkIds [][]byte `protobuf:"bytes,3,rep,name=uplink_ids,json=uplinkIds,proto3" json:"uplink_ids,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SetDeviceLocationRequest) Reset() { *m = SetDeviceLocationRequest{} }
func (m *SetDeviceLocationRequest) String() string { return proto.CompactTextString(m) }
func (*SetDeviceLocationRequest) ProtoMessage() {}
func (*SetDeviceLocationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_1d6d0f577a60e27d, []int{8}
}
func (m *SetDeviceLocationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SetDeviceLocationRequest.Unmarshal(m, b)
}
func (m *SetDeviceLocationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SetDeviceLocationRequest.Marshal(b, m, deterministic)
}
func (m *SetDeviceLocationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SetDeviceLocationRequest.Merge(m, src)
}
func (m *SetDeviceLocationRequest) XXX_Size() int {
return xxx_messageInfo_SetDeviceLocationRequest.Size(m)
}
func (m *SetDeviceLocationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SetDeviceLocationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SetDeviceLocationRequest proto.InternalMessageInfo
func (m *SetDeviceLocationRequest) GetDevEui() []byte {
if m != nil {
return m.DevEui
}
return nil
}
func (m *SetDeviceLocationRequest) GetLocation() *common.Location {
if m != nil {
return m.Location
}
return nil
}
func (m *SetDeviceLocationRequest) GetUplinkIds() [][]byte {
if m != nil {
return m.UplinkIds
}
return nil
}
type HandleGatewayStatsRequest struct {
// Gateway ID (8 bytes).
GatewayId []byte `protobuf:"bytes,1,opt,name=gateway_id,json=gatewayId,proto3" json:"gateway_id,omitempty"`
// Stats ID (UUID).
StatsId []byte `protobuf:"bytes,2,opt,name=stats_id,json=statsId,proto3" json:"stats_id,omitempty"`
// Timestamp.
Time *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=time,proto3" json:"time,omitempty"`
// Gateway location.
Location *common.Location `protobuf:"bytes,4,opt,name=location,proto3" json:"location,omitempty"`
// Uplink frames received.
RxPacketsReceived uint32 `protobuf:"varint,5,opt,name=rx_packets_received,json=rxPacketsReceived,proto3" json:"rx_packets_received,omitempty"`
// Uplink frames received OK.
RxPacketsReceivedOk uint32 `protobuf:"varint,6,opt,name=rx_packets_received_ok,json=rxPacketsReceivedOk,proto3" json:"rx_packets_received_ok,omitempty"`
// Downlink transmissions requested.
TxPacketsReceived uint32 `protobuf:"varint,7,opt,name=tx_packets_received,json=txPacketsReceived,proto3" json:"tx_packets_received,omitempty"`
// Downlink emitted.
TxPacketsEmitted uint32 `protobuf:"varint,8,opt,name=tx_packets_emitted,json=txPacketsEmitted,proto3" json:"tx_packets_emitted,omitempty"`
// Gateway metadata.
Metadata map[string]string `protobuf:"bytes,9,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *HandleGatewayStatsRequest) Reset() { *m = HandleGatewayStatsRequest{} }
func (m *HandleGatewayStatsRequest) String() string { return proto.CompactTextString(m) }
func (*HandleGatewayStatsRequest) ProtoMessage() {}
func (*HandleGatewayStatsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_1d6d0f577a60e27d, []int{9}
}
func (m *HandleGatewayStatsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_HandleGatewayStatsRequest.Unmarshal(m, b)
}
func (m *HandleGatewayStatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_HandleGatewayStatsRequest.Marshal(b, m, deterministic)
}
func (m *HandleGatewayStatsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_HandleGatewayStatsRequest.Merge(m, src)
}
func (m *HandleGatewayStatsRequest) XXX_Size() int {
return xxx_messageInfo_HandleGatewayStatsRequest.Size(m)
}
func (m *HandleGatewayStatsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_HandleGatewayStatsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_HandleGatewayStatsRequest proto.InternalMessageInfo
func (m *HandleGatewayStatsRequest) GetGatewayId() []byte {
if m != nil {
return m.GatewayId
}
return nil
}
func (m *HandleGatewayStatsRequest) GetStatsId() []byte {
if m != nil {
return m.StatsId
}
return nil
}
func (m *HandleGatewayStatsRequest) GetTime() *timestamppb.Timestamp {
if m != nil {
return m.Time
}
return nil
}
func (m *HandleGatewayStatsRequest) GetLocation() *common.Location {
if m != nil {
return m.Location
}
return nil
}
func (m *HandleGatewayStatsRequest) GetRxPacketsReceived() uint32 {
if m != nil {
return m.RxPacketsReceived
}
return 0
}
func (m *HandleGatewayStatsRequest) GetRxPacketsReceivedOk() uint32 {
if m != nil {
return m.RxPacketsReceivedOk
}
return 0
}
func (m *HandleGatewayStatsRequest) GetTxPacketsReceived() uint32 {
if m != nil {
return m.TxPacketsReceived
}
return 0
}
func (m *HandleGatewayStatsRequest) GetTxPacketsEmitted() uint32 {
if m != nil {
return m.TxPacketsEmitted
}
return 0
}
func (m *HandleGatewayStatsRequest) GetMetadata() map[string]string {
if m != nil {
return m.Metadata
}
return nil
}
type HandleTxAckRequest struct {
// Device EUI (8 bytes).
DevEui []byte `protobuf:"bytes,1,opt,name=dev_eui,json=devEui,proto3" json:"dev_eui,omitempty"`
// Downlink frame-counter.
FCnt uint32 `protobuf:"varint,2,opt,name=f_cnt,json=fCnt,proto3" json:"f_cnt,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *HandleTxAckRequest) Reset() { *m = HandleTxAckRequest{} }
func (m *HandleTxAckRequest) String() string { return proto.CompactTextString(m) }
func (*HandleTxAckRequest) ProtoMessage() {}
func (*HandleTxAckRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_1d6d0f577a60e27d, []int{10}
}
func (m *HandleTxAckRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_HandleTxAckRequest.Unmarshal(m, b)
}
func (m *HandleTxAckRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_HandleTxAckRequest.Marshal(b, m, deterministic)
}
func (m *HandleTxAckRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_HandleTxAckRequest.Merge(m, src)
}
func (m *HandleTxAckRequest) XXX_Size() int {
return xxx_messageInfo_HandleTxAckRequest.Size(m)
}
func (m *HandleTxAckRequest) XXX_DiscardUnknown() {
xxx_messageInfo_HandleTxAckRequest.DiscardUnknown(m)
}
var xxx_messageInfo_HandleTxAckRequest proto.InternalMessageInfo
func (m *HandleTxAckRequest) GetDevEui() []byte {
if m != nil {
return m.DevEui
}
return nil
}
func (m *HandleTxAckRequest) GetFCnt() uint32 {
if m != nil {
return m.FCnt
}
return 0
}
type TryAutoAddDeviceRequest struct {
JoinReq string `protobuf:"bytes,1,opt,name=JoinReq,proto3" json:"JoinReq,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TryAutoAddDeviceRequest) Reset() { *m = TryAutoAddDeviceRequest{} }
func (m *TryAutoAddDeviceRequest) String() string { return proto.CompactTextString(m) }
func (*TryAutoAddDeviceRequest) ProtoMessage() {}
func (*TryAutoAddDeviceRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_1d6d0f577a60e27d, []int{11}
}
func (m *TryAutoAddDeviceRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TryAutoAddDeviceRequest.Unmarshal(m, b)
}
func (m *TryAutoAddDeviceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TryAutoAddDeviceRequest.Marshal(b, m, deterministic)
}
func (m *TryAutoAddDeviceRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_TryAutoAddDeviceRequest.Merge(m, src)
}
func (m *TryAutoAddDeviceRequest) XXX_Size() int {
return xxx_messageInfo_TryAutoAddDeviceRequest.Size(m)
}
func (m *TryAutoAddDeviceRequest) XXX_DiscardUnknown() {
xxx_messageInfo_TryAutoAddDeviceRequest.DiscardUnknown(m)
}
var xxx_messageInfo_TryAutoAddDeviceRequest proto.InternalMessageInfo
func (m *TryAutoAddDeviceRequest) GetJoinReq() string {
if m != nil {
return m.JoinReq
}
return ""
}
type SwitchDeviceClassRequest struct {
DevEUI string `protobuf:"bytes,1,opt,name=DevEUI,proto3" json:"DevEUI,omitempty"`
Class DeviceClass `protobuf:"varint,2,opt,name=Class,proto3,enum=as.DeviceClass" json:"Class,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SwitchDeviceClassRequest) Reset() { *m = SwitchDeviceClassRequest{} }
func (m *SwitchDeviceClassRequest) String() string { return proto.CompactTextString(m) }
func (*SwitchDeviceClassRequest) ProtoMessage() {}
func (*SwitchDeviceClassRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_1d6d0f577a60e27d, []int{12}
}
func (m *SwitchDeviceClassRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SwitchDeviceClassRequest.Unmarshal(m, b)
}
func (m *SwitchDeviceClassRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SwitchDeviceClassRequest.Marshal(b, m, deterministic)
}
func (m *SwitchDeviceClassRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SwitchDeviceClassRequest.Merge(m, src)
}
func (m *SwitchDeviceClassRequest) XXX_Size() int {
return xxx_messageInfo_SwitchDeviceClassRequest.Size(m)
}
func (m *SwitchDeviceClassRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SwitchDeviceClassRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SwitchDeviceClassRequest proto.InternalMessageInfo
func (m *SwitchDeviceClassRequest) GetDevEUI() string {
if m != nil {
return m.DevEUI
}
return ""
}
func (m *SwitchDeviceClassRequest) GetClass() DeviceClass {
if m != nil {
return m.Class
}
return DeviceClass_ClassA
}
func init() {
proto.RegisterEnum("as.RXWindow", RXWindow_name, RXWindow_value)
proto.RegisterEnum("as.ErrorType", ErrorType_name, ErrorType_value)
proto.RegisterEnum("as.DeviceClass", DeviceClass_name, DeviceClass_value)
proto.RegisterType((*HandleProprietaryUplinkResponse)(nil), "as.HandleProprietaryUplinkResponse")
proto.RegisterType((*DeviceActivationContext)(nil), "as.DeviceActivationContext")
proto.RegisterType((*DeviceActivationRequest)(nil), "as.DeviceActivationRequest")
proto.RegisterType((*HandleUplinkDataRequest)(nil), "as.HandleUplinkDataRequest")
proto.RegisterType((*HandleProprietaryUplinkRequest)(nil), "as.HandleProprietaryUplinkRequest")
proto.RegisterType((*HandleErrorRequest)(nil), "as.HandleErrorRequest")
proto.RegisterType((*HandleDownlinkACKRequest)(nil), "as.HandleDownlinkACKRequest")
proto.RegisterType((*SetDeviceStatusRequest)(nil), "as.SetDeviceStatusRequest")
proto.RegisterType((*SetDeviceLocationRequest)(nil), "as.SetDeviceLocationRequest")
proto.RegisterType((*HandleGatewayStatsRequest)(nil), "as.HandleGatewayStatsRequest")
proto.RegisterMapType((map[string]string)(nil), "as.HandleGatewayStatsRequest.MetadataEntry")
proto.RegisterType((*HandleTxAckRequest)(nil), "as.HandleTxAckRequest")
proto.RegisterType((*TryAutoAddDeviceRequest)(nil), "as.TryAutoAddDeviceRequest")
proto.RegisterType((*SwitchDeviceClassRequest)(nil), "as.SwitchDeviceClassRequest")
}
func init() {
proto.RegisterFile("as/as.proto", fileDescriptor_1d6d0f577a60e27d)
}
var fileDescriptor_1d6d0f577a60e27d = []byte{
// 1435 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xcb, 0x72, 0xdb, 0xbc,
0x15, 0xb6, 0xee, 0xf2, 0x91, 0x1d, 0xd3, 0x70, 0x22, 0xd3, 0x4a, 0x52, 0xbb, 0xcc, 0x74, 0xc6,
0x49, 0x53, 0x69, 0xe2, 0x6c, 0x3a, 0xe9, 0xa2, 0x55, 0x64, 0xd6, 0x55, 0x1d, 0x5f, 0x4a, 0xc9,
0x75, 0x92, 0x0d, 0x07, 0x26, 0x20, 0x85, 0x15, 0x45, 0xb0, 0x20, 0x24, 0x59, 0xd3, 0x4d, 0xb7,
0x9d, 0x3e, 0x49, 0x9f, 0xa1, 0xaf, 0xd3, 0x87, 0xe8, 0xa2, 0x8b, 0x0e, 0x00, 0xea, 0x62, 0xcb,
0x92, 0x33, 0x99, 0xf9, 0x37, 0x12, 0x70, 0xce, 0x77, 0xae, 0x38, 0x17, 0x42, 0x09, 0xc7, 0x35,
0x1c, 0x57, 0x23, 0xce, 0x04, 0x43, 0x69, 0x1c, 0x57, 0x9e, 0x77, 0x19, 0xeb, 0x06, 0xb4, 0xa6,
0x28, 0x37, 0x83, 0x4e, 0x8d, 0xf6, 0x23, 0x31, 0xd6, 0x80, 0xca, 0xfe, 0x7d, 0xa6, 0xf0, 0xfb,
0x34, 0x16, 0xb8, 0x1f, 0x25, 0x80, 0x1d, 0x8f, 0xf5, 0xfb, 0x2c, 0xac, 0xe9, 0xbf, 0x84, 0x58,
0xea, 0x8e, 0x6a, 0xdd, 0x91, 0xbe, 0x58, 0x63, 0xd8, 0xff, 0x03, 0x0e, 0x49, 0x40, 0x2f, 0x39,
0x8b, 0xb8, 0x4f, 0x05, 0xe6, 0xe3, 0xab, 0x28, 0xf0, 0xc3, 0x9e, 0x43, 0xe3, 0x88, 0x85, 0x31,
0x45, 0xfb, 0x50, 0xea, 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 0xc7, 0x11, 0x75, 0x14, 0x0b, 0x3d, 0x85, 0x1c,
0x95, 0x24, 0x55, 0x23, 0xeb, 0x8e, 0xbe, 0xcc, 0xea, 0x29, 0x37, 0xab, 0x27, 0x2b, 0x00, 0x53,
0x1b, 0x3f, 0x66, 0xa3, 0x50, 0x3a, 0x57, 0x6f, 0x9c, 0x3e, 0xea, 0xc2, 0x54, 0x53, 0x7a, 0xae,
0x32, 0x2d, 0xd8, 0xc0, 0x5e, 0x2f, 0x64, 0xa3, 0x80, 0x92, 0x2e, 0x25, 0xca, 0xbf, 0xa2, 0x73,
0x87, 0x66, 0xfd, 0x37, 0x05, 0xe5, 0x16, 0x15, 0xfa, 0xe5, 0x5b, 0x02, 0x8b, 0x41, 0xfc, 0xa8,
0x31, 0x13, 0x0a, 0x37, 0x58, 0x08, 0xca, 0xc7, 0x89, 0xb9, 0xc9, 0x15, 0x95, 0x21, 0xdf, 0xc7,
0xbc, 0xeb, 0x87, 0xca, 0x56, 0xce, 0x49, 0x6e, 0xe8, 0x08, 0x9e, 0xd1, 0x5b, 0x41, 0x79, 0x88,
0x03, 0x37, 0x62, 0x23, 0xca, 0xdd, 0x98, 0x0d, 0xb8, 0x47, 0x55, 0x3a, 0x8a, 0xce, 0xce, 0x84,
0x79, 0x29, 0x79, 0x2d, 0xc5, 0x42, 0x1f, 0x60, 0x2f, 0x51, 0xeb, 0x06, 0x74, 0x48, 0x03, 0x77,
0x10, 0xe2, 0x21, 0xf6, 0x03, 0x7c, 0x13, 0xd0, 0xa4, 0xad, 0x76, 0x13, 0xc0, 0x27, 0xc9, 0xbf,
0x9a, 0xb1, 0xe5, 0x48, 0xbc, 0x23, 0xab, 0xba, 0x2e, 0xed, 0x6c, 0xcc, 0xe3, 0xad, 0xbf, 0xa7,
0xc0, 0x9c, 0x86, 0xfe, 0x89, 0x79, 0xdf, 0x37, 0xac, 0xde, 0x42, 0x31, 0x48, 0xb0, 0xc9, 0x44,
0x34, 0x26, 0x13, 0x71, 0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xb0, 0x2d, 0xd1, 0x8b, 0x99, 0x9a, 0xc5,
0x25, 0xba, 0x42, 0xd9, 0xd9, 0xa4, 0x1f, 0xe7, 0x27, 0x00, 0x7a, 0xb9, 0x72, 0x32, 0xac, 0x50,
0x37, 0x0d, 0x4e, 0xb5, 0xf7, 0x7c, 0x70, 0xf3, 0xfd, 0xbe, 0x42, 0xc1, 0x09, 0x6c, 0xdd, 0xdb,
0xcd, 0xa8, 0x22, 0x95, 0x3c, 0xbc, 0xb0, 0x57, 0x67, 0x69, 0x61, 0xd3, 0xe9, 0x2c, 0x2d, 0x5b,
0x80, 0x2b, 0xbd, 0x32, 0xee, 0x4f, 0x1c, 0x5d, 0x64, 0x4b, 0xe6, 0xd0, 0x32, 0x55, 0xa8, 0x09,
0xdb, 0x0b, 0x53, 0x28, 0xf1, 0x6a, 0xc9, 0x70, 0x5a, 0xa6, 0xea, 0xe3, 0xef, 0xe0, 0xa9, 0xcf,
0xaa, 0xde, 0x37, 0x9f, 0x47, 0xb1, 0xc0, 0x5e, 0xaf, 0x8a, 0x23, 0xbf, 0x8a, 0xe3, 0xaf, 0x87,
0x5d, 0x5f, 0x50, 0x2a, 0x77, 0x59, 0x8d, 0x74, 0x38, 0xbb, 0x61, 0xc2, 0x23, 0xb5, 0x19, 0xec,
0x57, 0x38, 0xf2, 0x6b, 0x5d, 0x56, 0xc3, 0xf1, 0x4d, 0x5e, 0x69, 0x7c, 0xff, 0xff, 0x00, 0x00,
0x00, 0xff, 0xff, 0x96, 0xc0, 0xeb, 0x88, 0x15, 0x0e, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion6
// ApplicationServerServiceClient is the client API for ApplicationServerService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ApplicationServerServiceClient interface {
UpdateDeviceActivation(ctx context.Context, in *DeviceActivationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// HandleUplinkData handles uplink data received from an end-device.
HandleUplinkData(ctx context.Context, in *HandleUplinkDataRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// HandleProprietaryUplink handles proprietary uplink payloads.
HandleProprietaryUplink(ctx context.Context, in *HandleProprietaryUplinkRequest, opts ...grpc.CallOption) (*HandleProprietaryUplinkResponse, error)
// HandleError handles an error message.
HandleError(ctx context.Context, in *HandleErrorRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// HandleDownlinkACK handles a downlink ACK or nACK response.
HandleDownlinkACK(ctx context.Context, in *HandleDownlinkACKRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// HandleGatewayStats handles the given gateway stats.
HandleGatewayStats(ctx context.Context, in *HandleGatewayStatsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// HandleTXACK handles the TX acknowledgement.
HandleTxAck(ctx context.Context, in *HandleTxAckRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// SetDeviceStatus updates the device-status for a device.
SetDeviceStatus(ctx context.Context, in *SetDeviceStatusRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// SetDeviceLocation updates the device-location for a device.
SetDeviceLocation(ctx context.Context, in *SetDeviceLocationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
TryAutoAddDevice(ctx context.Context, in *TryAutoAddDeviceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
SwitchDeviceClass(ctx context.Context, in *SwitchDeviceClassRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}
type applicationServerServiceClient struct {
cc grpc.ClientConnInterface
}
func NewApplicationServerServiceClient(cc grpc.ClientConnInterface) ApplicationServerServiceClient {
return &applicationServerServiceClient{cc}
}
func (c *applicationServerServiceClient) UpdateDeviceActivation(ctx context.Context, in *DeviceActivationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/as.ApplicationServerService/UpdateDeviceActivation", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServerServiceClient) HandleUplinkData(ctx context.Context, in *HandleUplinkDataRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/as.ApplicationServerService/HandleUplinkData", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServerServiceClient) HandleProprietaryUplink(ctx context.Context, in *HandleProprietaryUplinkRequest, opts ...grpc.CallOption) (*HandleProprietaryUplinkResponse, error) {
out := new(HandleProprietaryUplinkResponse)
err := c.cc.Invoke(ctx, "/as.ApplicationServerService/HandleProprietaryUplink", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServerServiceClient) HandleError(ctx context.Context, in *HandleErrorRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/as.ApplicationServerService/HandleError", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServerServiceClient) HandleDownlinkACK(ctx context.Context, in *HandleDownlinkACKRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/as.ApplicationServerService/HandleDownlinkACK", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServerServiceClient) HandleGatewayStats(ctx context.Context, in *HandleGatewayStatsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/as.ApplicationServerService/HandleGatewayStats", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServerServiceClient) HandleTxAck(ctx context.Context, in *HandleTxAckRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/as.ApplicationServerService/HandleTxAck", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServerServiceClient) SetDeviceStatus(ctx context.Context, in *SetDeviceStatusRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/as.ApplicationServerService/SetDeviceStatus", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServerServiceClient) SetDeviceLocation(ctx context.Context, in *SetDeviceLocationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/as.ApplicationServerService/SetDeviceLocation", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServerServiceClient) TryAutoAddDevice(ctx context.Context, in *TryAutoAddDeviceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/as.ApplicationServerService/TryAutoAddDevice", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationServerServiceClient) SwitchDeviceClass(ctx context.Context, in *SwitchDeviceClassRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/as.ApplicationServerService/SwitchDeviceClass", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ApplicationServerServiceServer is the server API for ApplicationServerService service.
type ApplicationServerServiceServer interface {
UpdateDeviceActivation(context.Context, *DeviceActivationRequest) (*emptypb.Empty, error)
// HandleUplinkData handles uplink data received from an end-device.
HandleUplinkData(context.Context, *HandleUplinkDataRequest) (*emptypb.Empty, error)
// HandleProprietaryUplink handles proprietary uplink payloads.
HandleProprietaryUplink(context.Context, *HandleProprietaryUplinkRequest) (*HandleProprietaryUplinkResponse, error)
// HandleError handles an error message.
HandleError(context.Context, *HandleErrorRequest) (*emptypb.Empty, error)
// HandleDownlinkACK handles a downlink ACK or nACK response.
HandleDownlinkACK(context.Context, *HandleDownlinkACKRequest) (*emptypb.Empty, error)
// HandleGatewayStats handles the given gateway stats.
HandleGatewayStats(context.Context, *HandleGatewayStatsRequest) (*emptypb.Empty, error)
// HandleTXACK handles the TX acknowledgement.
HandleTxAck(context.Context, *HandleTxAckRequest) (*emptypb.Empty, error)
// SetDeviceStatus updates the device-status for a device.
SetDeviceStatus(context.Context, *SetDeviceStatusRequest) (*emptypb.Empty, error)
// SetDeviceLocation updates the device-location for a device.
SetDeviceLocation(context.Context, *SetDeviceLocationRequest) (*emptypb.Empty, error)
TryAutoAddDevice(context.Context, *TryAutoAddDeviceRequest) (*emptypb.Empty, error)
SwitchDeviceClass(context.Context, *SwitchDeviceClassRequest) (*emptypb.Empty, error)
}
// UnimplementedApplicationServerServiceServer can be embedded to have forward compatible implementations.
type UnimplementedApplicationServerServiceServer struct {
}
func (*UnimplementedApplicationServerServiceServer) UpdateDeviceActivation(ctx context.Context, req *DeviceActivationRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateDeviceActivation not implemented")
}
func (*UnimplementedApplicationServerServiceServer) HandleUplinkData(ctx context.Context, req *HandleUplinkDataRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method HandleUplinkData not implemented")
}
func (*UnimplementedApplicationServerServiceServer) HandleProprietaryUplink(ctx context.Context, req *HandleProprietaryUplinkRequest) (*HandleProprietaryUplinkResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method HandleProprietaryUplink not implemented")
}
func (*UnimplementedApplicationServerServiceServer) HandleError(ctx context.Context, req *HandleErrorRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method HandleError not implemented")
}
func (*UnimplementedApplicationServerServiceServer) HandleDownlinkACK(ctx context.Context, req *HandleDownlinkACKRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method HandleDownlinkACK not implemented")
}
func (*UnimplementedApplicationServerServiceServer) HandleGatewayStats(ctx context.Context, req *HandleGatewayStatsRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method HandleGatewayStats not implemented")
}
func (*UnimplementedApplicationServerServiceServer) HandleTxAck(ctx context.Context, req *HandleTxAckRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method HandleTxAck not implemented")
}
func (*UnimplementedApplicationServerServiceServer) SetDeviceStatus(ctx context.Context, req *SetDeviceStatusRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetDeviceStatus not implemented")
}
func (*UnimplementedApplicationServerServiceServer) SetDeviceLocation(ctx context.Context, req *SetDeviceLocationRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetDeviceLocation not implemented")
}
func (*UnimplementedApplicationServerServiceServer) TryAutoAddDevice(ctx context.Context, req *TryAutoAddDeviceRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method TryAutoAddDevice not implemented")
}
func (*UnimplementedApplicationServerServiceServer) SwitchDeviceClass(ctx context.Context, req *SwitchDeviceClassRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method SwitchDeviceClass not implemented")
}
func RegisterApplicationServerServiceServer(s *grpc.Server, srv ApplicationServerServiceServer) {
s.RegisterService(&_ApplicationServerService_serviceDesc, srv)
}
func _ApplicationServerService_UpdateDeviceActivation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeviceActivationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServerServiceServer).UpdateDeviceActivation(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/as.ApplicationServerService/UpdateDeviceActivation",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServerServiceServer).UpdateDeviceActivation(ctx, req.(*DeviceActivationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationServerService_HandleUplinkData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(HandleUplinkDataRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServerServiceServer).HandleUplinkData(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/as.ApplicationServerService/HandleUplinkData",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServerServiceServer).HandleUplinkData(ctx, req.(*HandleUplinkDataRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationServerService_HandleProprietaryUplink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(HandleProprietaryUplinkRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServerServiceServer).HandleProprietaryUplink(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/as.ApplicationServerService/HandleProprietaryUplink",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServerServiceServer).HandleProprietaryUplink(ctx, req.(*HandleProprietaryUplinkRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationServerService_HandleError_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(HandleErrorRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServerServiceServer).HandleError(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/as.ApplicationServerService/HandleError",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServerServiceServer).HandleError(ctx, req.(*HandleErrorRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationServerService_HandleDownlinkACK_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(HandleDownlinkACKRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServerServiceServer).HandleDownlinkACK(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/as.ApplicationServerService/HandleDownlinkACK",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServerServiceServer).HandleDownlinkACK(ctx, req.(*HandleDownlinkACKRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationServerService_HandleGatewayStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(HandleGatewayStatsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServerServiceServer).HandleGatewayStats(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/as.ApplicationServerService/HandleGatewayStats",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServerServiceServer).HandleGatewayStats(ctx, req.(*HandleGatewayStatsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationServerService_HandleTxAck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(HandleTxAckRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServerServiceServer).HandleTxAck(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/as.ApplicationServerService/HandleTxAck",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServerServiceServer).HandleTxAck(ctx, req.(*HandleTxAckRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationServerService_SetDeviceStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SetDeviceStatusRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServerServiceServer).SetDeviceStatus(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/as.ApplicationServerService/SetDeviceStatus",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServerServiceServer).SetDeviceStatus(ctx, req.(*SetDeviceStatusRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationServerService_SetDeviceLocation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SetDeviceLocationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServerServiceServer).SetDeviceLocation(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/as.ApplicationServerService/SetDeviceLocation",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServerServiceServer).SetDeviceLocation(ctx, req.(*SetDeviceLocationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationServerService_TryAutoAddDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(TryAutoAddDeviceRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServerServiceServer).TryAutoAddDevice(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/as.ApplicationServerService/TryAutoAddDevice",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServerServiceServer).TryAutoAddDevice(ctx, req.(*TryAutoAddDeviceRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationServerService_SwitchDeviceClass_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SwitchDeviceClassRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationServerServiceServer).SwitchDeviceClass(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/as.ApplicationServerService/SwitchDeviceClass",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationServerServiceServer).SwitchDeviceClass(ctx, req.(*SwitchDeviceClassRequest))
}
return interceptor(ctx, in, info, handler)
}
var _ApplicationServerService_serviceDesc = grpc.ServiceDesc{
ServiceName: "as.ApplicationServerService",
HandlerType: (*ApplicationServerServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "UpdateDeviceActivation",
Handler: _ApplicationServerService_UpdateDeviceActivation_Handler,
},
{
MethodName: "HandleUplinkData",
Handler: _ApplicationServerService_HandleUplinkData_Handler,
},
{
MethodName: "HandleProprietaryUplink",
Handler: _ApplicationServerService_HandleProprietaryUplink_Handler,
},
{
MethodName: "HandleError",
Handler: _ApplicationServerService_HandleError_Handler,
},
{
MethodName: "HandleDownlinkACK",
Handler: _ApplicationServerService_HandleDownlinkACK_Handler,
},
{
MethodName: "HandleGatewayStats",
Handler: _ApplicationServerService_HandleGatewayStats_Handler,
},
{
MethodName: "HandleTxAck",
Handler: _ApplicationServerService_HandleTxAck_Handler,
},
{
MethodName: "SetDeviceStatus",
Handler: _ApplicationServerService_SetDeviceStatus_Handler,
},
{
MethodName: "SetDeviceLocation",
Handler: _ApplicationServerService_SetDeviceLocation_Handler,
},
{
MethodName: "TryAutoAddDevice",
Handler: _ApplicationServerService_TryAutoAddDevice_Handler,
},
{
MethodName: "SwitchDeviceClass",
Handler: _ApplicationServerService_SwitchDeviceClass_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "as/as.proto",
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dfrobotcd/chirpstack-api.git
git@gitee.com:dfrobotcd/chirpstack-api.git
dfrobotcd
chirpstack-api
chirpstack-api
d91e8b8d685d

搜索帮助