代码拉取完成,页面将自动刷新
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: common/common.proto
package common
import (
fmt "fmt"
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 Modulation int32
const (
// LoRa
Modulation_LORA Modulation = 0
// FSK
Modulation_FSK Modulation = 1
)
var Modulation_name = map[int32]string{
0: "LORA",
1: "FSK",
}
var Modulation_value = map[string]int32{
"LORA": 0,
"FSK": 1,
}
func (x Modulation) String() string {
return proto.EnumName(Modulation_name, int32(x))
}
func (Modulation) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_8f954d82c0b891f6, []int{0}
}
type Region int32
const (
// EU868
Region_EU868 Region = 0
// US915
Region_US915 Region = 2
// CN779
Region_CN779 Region = 3
// EU433
Region_EU433 Region = 4
// AU915
Region_AU915 Region = 5
// CN470
Region_CN470 Region = 6
// AS923
Region_AS923 Region = 7
// KR920
Region_KR920 Region = 8
// IN865
Region_IN865 Region = 9
// RU864
Region_RU864 Region = 10
)
var Region_name = map[int32]string{
0: "EU868",
2: "US915",
3: "CN779",
4: "EU433",
5: "AU915",
6: "CN470",
7: "AS923",
8: "KR920",
9: "IN865",
10: "RU864",
}
var Region_value = map[string]int32{
"EU868": 0,
"US915": 2,
"CN779": 3,
"EU433": 4,
"AU915": 5,
"CN470": 6,
"AS923": 7,
"KR920": 8,
"IN865": 9,
"RU864": 10,
}
func (x Region) String() string {
return proto.EnumName(Region_name, int32(x))
}
func (Region) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_8f954d82c0b891f6, []int{1}
}
type LocationSource int32
const (
// Unknown.
LocationSource_UNKNOWN LocationSource = 0
// GPS.
LocationSource_GPS LocationSource = 1
// Manually configured.
LocationSource_CONFIG LocationSource = 2
// Geo resolver (TDOA).
LocationSource_GEO_RESOLVER_TDOA LocationSource = 3
// Geo resolver (RSSI).
LocationSource_GEO_RESOLVER_RSSI LocationSource = 4
// Geo resolver (GNSS).
LocationSource_GEO_RESOLVER_GNSS LocationSource = 5
// Geo resolver (WIFI).
LocationSource_GEO_RESOLVER_WIFI LocationSource = 6
)
var LocationSource_name = map[int32]string{
0: "UNKNOWN",
1: "GPS",
2: "CONFIG",
3: "GEO_RESOLVER_TDOA",
4: "GEO_RESOLVER_RSSI",
5: "GEO_RESOLVER_GNSS",
6: "GEO_RESOLVER_WIFI",
}
var LocationSource_value = map[string]int32{
"UNKNOWN": 0,
"GPS": 1,
"CONFIG": 2,
"GEO_RESOLVER_TDOA": 3,
"GEO_RESOLVER_RSSI": 4,
"GEO_RESOLVER_GNSS": 5,
"GEO_RESOLVER_WIFI": 6,
}
func (x LocationSource) String() string {
return proto.EnumName(LocationSource_name, int32(x))
}
func (LocationSource) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_8f954d82c0b891f6, []int{2}
}
type LoggerLevel int32
const (
LoggerLevel_PANIC LoggerLevel = 0
LoggerLevel_FATAL LoggerLevel = 1
LoggerLevel_ERROR LoggerLevel = 2
LoggerLevel_WARNING LoggerLevel = 3
LoggerLevel_INFO LoggerLevel = 4
LoggerLevel_DEBUG LoggerLevel = 5
LoggerLevel_TRACE LoggerLevel = 6
)
var LoggerLevel_name = map[int32]string{
0: "PANIC",
1: "FATAL",
2: "ERROR",
3: "WARNING",
4: "INFO",
5: "DEBUG",
6: "TRACE",
}
var LoggerLevel_value = map[string]int32{
"PANIC": 0,
"FATAL": 1,
"ERROR": 2,
"WARNING": 3,
"INFO": 4,
"DEBUG": 5,
"TRACE": 6,
}
func (x LoggerLevel) String() string {
return proto.EnumName(LoggerLevel_name, int32(x))
}
func (LoggerLevel) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_8f954d82c0b891f6, []int{3}
}
type KeyEnvelope struct {
// KEK label.
KekLabel string `protobuf:"bytes,1,opt,name=kek_label,json=kekLabel,proto3" json:"kek_label,omitempty"`
// AES key (when the kek_label is set, this key is encrypted using a key
// known to the join-server and application-server.
// For more information please refer to the LoRaWAN Backend Interface
// 'Key Transport Security' section.
AesKey []byte `protobuf:"bytes,2,opt,name=aes_key,json=aesKey,proto3" json:"aes_key,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *KeyEnvelope) Reset() { *m = KeyEnvelope{} }
func (m *KeyEnvelope) String() string { return proto.CompactTextString(m) }
func (*KeyEnvelope) ProtoMessage() {}
func (*KeyEnvelope) Descriptor() ([]byte, []int) {
return fileDescriptor_8f954d82c0b891f6, []int{0}
}
func (m *KeyEnvelope) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_KeyEnvelope.Unmarshal(m, b)
}
func (m *KeyEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_KeyEnvelope.Marshal(b, m, deterministic)
}
func (m *KeyEnvelope) XXX_Merge(src proto.Message) {
xxx_messageInfo_KeyEnvelope.Merge(m, src)
}
func (m *KeyEnvelope) XXX_Size() int {
return xxx_messageInfo_KeyEnvelope.Size(m)
}
func (m *KeyEnvelope) XXX_DiscardUnknown() {
xxx_messageInfo_KeyEnvelope.DiscardUnknown(m)
}
var xxx_messageInfo_KeyEnvelope proto.InternalMessageInfo
func (m *KeyEnvelope) GetKekLabel() string {
if m != nil {
return m.KekLabel
}
return ""
}
func (m *KeyEnvelope) GetAesKey() []byte {
if m != nil {
return m.AesKey
}
return nil
}
type Location struct {
// Latitude.
Latitude float64 `protobuf:"fixed64,1,opt,name=latitude,proto3" json:"latitude,omitempty"`
// Longitude.
Longitude float64 `protobuf:"fixed64,2,opt,name=longitude,proto3" json:"longitude,omitempty"`
// Altitude.
Altitude float64 `protobuf:"fixed64,3,opt,name=altitude,proto3" json:"altitude,omitempty"`
// Location source.
Source LocationSource `protobuf:"varint,4,opt,name=source,proto3,enum=common.LocationSource" json:"source,omitempty"`
// Accuracy (in meters).
Accuracy uint32 `protobuf:"varint,5,opt,name=accuracy,proto3" json:"accuracy,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Location) Reset() { *m = Location{} }
func (m *Location) String() string { return proto.CompactTextString(m) }
func (*Location) ProtoMessage() {}
func (*Location) Descriptor() ([]byte, []int) {
return fileDescriptor_8f954d82c0b891f6, []int{1}
}
func (m *Location) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Location.Unmarshal(m, b)
}
func (m *Location) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Location.Marshal(b, m, deterministic)
}
func (m *Location) XXX_Merge(src proto.Message) {
xxx_messageInfo_Location.Merge(m, src)
}
func (m *Location) XXX_Size() int {
return xxx_messageInfo_Location.Size(m)
}
func (m *Location) XXX_DiscardUnknown() {
xxx_messageInfo_Location.DiscardUnknown(m)
}
var xxx_messageInfo_Location proto.InternalMessageInfo
func (m *Location) GetLatitude() float64 {
if m != nil {
return m.Latitude
}
return 0
}
func (m *Location) GetLongitude() float64 {
if m != nil {
return m.Longitude
}
return 0
}
func (m *Location) GetAltitude() float64 {
if m != nil {
return m.Altitude
}
return 0
}
func (m *Location) GetSource() LocationSource {
if m != nil {
return m.Source
}
return LocationSource_UNKNOWN
}
func (m *Location) GetAccuracy() uint32 {
if m != nil {
return m.Accuracy
}
return 0
}
type ErrDetails struct {
DevEui string `protobuf:"bytes,1,opt,name=dev_eui,json=DEVEUI,proto3" json:"dev_eui,omitempty"`
Message []string `protobuf:"bytes,2,rep,name=message,proto3" json:"message,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ErrDetails) Reset() { *m = ErrDetails{} }
func (m *ErrDetails) String() string { return proto.CompactTextString(m) }
func (*ErrDetails) ProtoMessage() {}
func (*ErrDetails) Descriptor() ([]byte, []int) {
return fileDescriptor_8f954d82c0b891f6, []int{2}
}
func (m *ErrDetails) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ErrDetails.Unmarshal(m, b)
}
func (m *ErrDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ErrDetails.Marshal(b, m, deterministic)
}
func (m *ErrDetails) XXX_Merge(src proto.Message) {
xxx_messageInfo_ErrDetails.Merge(m, src)
}
func (m *ErrDetails) XXX_Size() int {
return xxx_messageInfo_ErrDetails.Size(m)
}
func (m *ErrDetails) XXX_DiscardUnknown() {
xxx_messageInfo_ErrDetails.DiscardUnknown(m)
}
var xxx_messageInfo_ErrDetails proto.InternalMessageInfo
func (m *ErrDetails) GetDevEui() string {
if m != nil {
return m.DevEui
}
return ""
}
func (m *ErrDetails) GetMessage() []string {
if m != nil {
return m.Message
}
return nil
}
func init() {
proto.RegisterEnum("common.Modulation", Modulation_name, Modulation_value)
proto.RegisterEnum("common.Region", Region_name, Region_value)
proto.RegisterEnum("common.LocationSource", LocationSource_name, LocationSource_value)
proto.RegisterEnum("common.LoggerLevel", LoggerLevel_name, LoggerLevel_value)
proto.RegisterType((*KeyEnvelope)(nil), "common.KeyEnvelope")
proto.RegisterType((*Location)(nil), "common.Location")
proto.RegisterType((*ErrDetails)(nil), "common.ErrDetails")
}
func init() {
proto.RegisterFile("common/common.proto", fileDescriptor_8f954d82c0b891f6)
}
var fileDescriptor_8f954d82c0b891f6 = []byte{
// 552 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x53, 0x51, 0x8f, 0x9a, 0x4c,
0x14, 0x5d, 0x44, 0x51, 0xee, 0x7e, 0xdf, 0x66, 0x4a, 0xd3, 0x96, 0xb4, 0x4d, 0x6a, 0xf6, 0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0x86, 0xee, 0x2c,
0xb0, 0xee, 0x3a, 0xd6, 0xa3, 0x8e, 0x17, 0xb3, 0xb1, 0xa3, 0x21, 0xf1, 0x44, 0xc6, 0xae, 0x6b,
0xa2, 0xea, 0x89, 0x6c, 0xd8, 0xae, 0x8b, 0x6a, 0x27, 0xf2, 0xdc, 0x9c, 0x98, 0x48, 0x6a, 0xff,
0x80, 0x73, 0x8b, 0x05, 0x01, 0x4d, 0x2c, 0xba, 0xa7, 0x31, 0x1f, 0xf5, 0x41, 0xb3, 0xcd, 0x51,
0x91, 0xc6, 0x44, 0x9b, 0x69, 0x16, 0x12, 0xf2, 0x08, 0x30, 0x76, 0x30, 0xaa, 0xf0, 0x69, 0xe7,
0x1a, 0xb6, 0x4d, 0xdb, 0x40, 0x22, 0x0f, 0xd6, 0xb4, 0x27, 0x4e, 0x91, 0xcc, 0x58, 0xbf, 0xf7,
0x8c, 0x22, 0x99, 0x19, 0xd6, 0x46, 0x3a, 0x92, 0xee, 0xbf, 0x82, 0x1a, 0xb2, 0x8e, 0xff, 0x2b,
0x4c, 0xb6, 0x69, 0x46, 0xfc, 0xa8, 0x43, 0xb6, 0x61, 0x79, 0x2d, 0xbe, 0x7f, 0x0c, 0xc2, 0x8c,
0x52, 0xce, 0xba, 0xab, 0x9f, 0x09, 0x5b, 0xb2, 0xcc, 0x5f, 0x75, 0x9f, 0xad, 0x9f, 0xc8, 0x36,
0xec, 0x06, 0xac, 0x7c, 0x13, 0x4b, 0x29, 0x7f, 0x14, 0xbd, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff,
0xd3, 0xbe, 0x23, 0x4b, 0x2b, 0x03, 0x00, 0x00,
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。