mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-06-17 14:58:15 +00:00
318 lines
10 KiB
Go
Vendored
318 lines
10 KiB
Go
Vendored
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.6
|
|
// protoc v6.30.2
|
|
// source: stream/meta.proto
|
|
|
|
package stream
|
|
|
|
import (
|
|
common "github.com/chirpstack/chirpstack/api/go/v4/common"
|
|
gw "github.com/chirpstack/chirpstack/api/go/v4/gw"
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type UplinkMeta struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Device EUI (EUI64).
|
|
DevEui string `protobuf:"bytes,1,opt,name=dev_eui,json=devEui,proto3" json:"dev_eui,omitempty"`
|
|
// TX meta-data.
|
|
TxInfo *gw.UplinkTxInfo `protobuf:"bytes,2,opt,name=tx_info,json=txInfo,proto3" json:"tx_info,omitempty"`
|
|
// RX meta-data.
|
|
RxInfo []*gw.UplinkRxInfo `protobuf:"bytes,3,rep,name=rx_info,json=rxInfo,proto3" json:"rx_info,omitempty"`
|
|
// PHYPayload byte count.
|
|
PhyPayloadByteCount uint32 `protobuf:"varint,4,opt,name=phy_payload_byte_count,json=phyPayloadByteCount,proto3" json:"phy_payload_byte_count,omitempty"`
|
|
// MAC-Command byte count.
|
|
MacCommandByteCount uint32 `protobuf:"varint,5,opt,name=mac_command_byte_count,json=macCommandByteCount,proto3" json:"mac_command_byte_count,omitempty"`
|
|
// Application payload byte count.
|
|
ApplicationPayloadByteCount uint32 `protobuf:"varint,6,opt,name=application_payload_byte_count,json=applicationPayloadByteCount,proto3" json:"application_payload_byte_count,omitempty"`
|
|
// Frame type.
|
|
FrameType common.FType `protobuf:"varint,7,opt,name=frame_type,json=frameType,proto3,enum=common.FType" json:"frame_type,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UplinkMeta) Reset() {
|
|
*x = UplinkMeta{}
|
|
mi := &file_stream_meta_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UplinkMeta) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UplinkMeta) ProtoMessage() {}
|
|
|
|
func (x *UplinkMeta) ProtoReflect() protoreflect.Message {
|
|
mi := &file_stream_meta_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UplinkMeta.ProtoReflect.Descriptor instead.
|
|
func (*UplinkMeta) Descriptor() ([]byte, []int) {
|
|
return file_stream_meta_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *UplinkMeta) GetDevEui() string {
|
|
if x != nil {
|
|
return x.DevEui
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UplinkMeta) GetTxInfo() *gw.UplinkTxInfo {
|
|
if x != nil {
|
|
return x.TxInfo
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UplinkMeta) GetRxInfo() []*gw.UplinkRxInfo {
|
|
if x != nil {
|
|
return x.RxInfo
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UplinkMeta) GetPhyPayloadByteCount() uint32 {
|
|
if x != nil {
|
|
return x.PhyPayloadByteCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UplinkMeta) GetMacCommandByteCount() uint32 {
|
|
if x != nil {
|
|
return x.MacCommandByteCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UplinkMeta) GetApplicationPayloadByteCount() uint32 {
|
|
if x != nil {
|
|
return x.ApplicationPayloadByteCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UplinkMeta) GetFrameType() common.FType {
|
|
if x != nil {
|
|
return x.FrameType
|
|
}
|
|
return common.FType(0)
|
|
}
|
|
|
|
type DownlinkMeta struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Device EUI (EUI64).
|
|
DevEui string `protobuf:"bytes,1,opt,name=dev_eui,json=devEui,proto3" json:"dev_eui,omitempty"`
|
|
// Multicast Group ID (UUID).
|
|
MulticastGroupId string `protobuf:"bytes,2,opt,name=multicast_group_id,json=multicastGroupId,proto3" json:"multicast_group_id,omitempty"`
|
|
// TX meta-data.
|
|
TxInfo *gw.DownlinkTxInfo `protobuf:"bytes,3,opt,name=tx_info,json=txInfo,proto3" json:"tx_info,omitempty"`
|
|
// PHYPayload byte count.
|
|
PhyPayloadByteCount uint32 `protobuf:"varint,4,opt,name=phy_payload_byte_count,json=phyPayloadByteCount,proto3" json:"phy_payload_byte_count,omitempty"`
|
|
// MAC-Command byte count.
|
|
MacCommandByteCount uint32 `protobuf:"varint,5,opt,name=mac_command_byte_count,json=macCommandByteCount,proto3" json:"mac_command_byte_count,omitempty"`
|
|
// Application payload byte count.
|
|
ApplicationPayloadByteCount uint32 `protobuf:"varint,6,opt,name=application_payload_byte_count,json=applicationPayloadByteCount,proto3" json:"application_payload_byte_count,omitempty"`
|
|
// Frame type.
|
|
FrameType common.FType `protobuf:"varint,7,opt,name=frame_type,json=frameType,proto3,enum=common.FType" json:"frame_type,omitempty"`
|
|
// Gateway ID (EUI64).
|
|
GatewayId string `protobuf:"bytes,8,opt,name=gateway_id,json=gatewayId,proto3" json:"gateway_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DownlinkMeta) Reset() {
|
|
*x = DownlinkMeta{}
|
|
mi := &file_stream_meta_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DownlinkMeta) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DownlinkMeta) ProtoMessage() {}
|
|
|
|
func (x *DownlinkMeta) ProtoReflect() protoreflect.Message {
|
|
mi := &file_stream_meta_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DownlinkMeta.ProtoReflect.Descriptor instead.
|
|
func (*DownlinkMeta) Descriptor() ([]byte, []int) {
|
|
return file_stream_meta_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *DownlinkMeta) GetDevEui() string {
|
|
if x != nil {
|
|
return x.DevEui
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DownlinkMeta) GetMulticastGroupId() string {
|
|
if x != nil {
|
|
return x.MulticastGroupId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DownlinkMeta) GetTxInfo() *gw.DownlinkTxInfo {
|
|
if x != nil {
|
|
return x.TxInfo
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DownlinkMeta) GetPhyPayloadByteCount() uint32 {
|
|
if x != nil {
|
|
return x.PhyPayloadByteCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DownlinkMeta) GetMacCommandByteCount() uint32 {
|
|
if x != nil {
|
|
return x.MacCommandByteCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DownlinkMeta) GetApplicationPayloadByteCount() uint32 {
|
|
if x != nil {
|
|
return x.ApplicationPayloadByteCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DownlinkMeta) GetFrameType() common.FType {
|
|
if x != nil {
|
|
return x.FrameType
|
|
}
|
|
return common.FType(0)
|
|
}
|
|
|
|
func (x *DownlinkMeta) GetGatewayId() string {
|
|
if x != nil {
|
|
return x.GatewayId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_stream_meta_proto protoreflect.FileDescriptor
|
|
|
|
const file_stream_meta_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x11stream/meta.proto\x12\x06stream\x1a\x13common/common.proto\x1a\vgw/gw.proto\"\xd8\x02\n" +
|
|
"\n" +
|
|
"UplinkMeta\x12\x17\n" +
|
|
"\adev_eui\x18\x01 \x01(\tR\x06devEui\x12)\n" +
|
|
"\atx_info\x18\x02 \x01(\v2\x10.gw.UplinkTxInfoR\x06txInfo\x12)\n" +
|
|
"\arx_info\x18\x03 \x03(\v2\x10.gw.UplinkRxInfoR\x06rxInfo\x123\n" +
|
|
"\x16phy_payload_byte_count\x18\x04 \x01(\rR\x13phyPayloadByteCount\x123\n" +
|
|
"\x16mac_command_byte_count\x18\x05 \x01(\rR\x13macCommandByteCount\x12C\n" +
|
|
"\x1eapplication_payload_byte_count\x18\x06 \x01(\rR\x1bapplicationPayloadByteCount\x12,\n" +
|
|
"\n" +
|
|
"frame_type\x18\a \x01(\x0e2\r.common.FTypeR\tframeType\"\xfe\x02\n" +
|
|
"\fDownlinkMeta\x12\x17\n" +
|
|
"\adev_eui\x18\x01 \x01(\tR\x06devEui\x12,\n" +
|
|
"\x12multicast_group_id\x18\x02 \x01(\tR\x10multicastGroupId\x12+\n" +
|
|
"\atx_info\x18\x03 \x01(\v2\x12.gw.DownlinkTxInfoR\x06txInfo\x123\n" +
|
|
"\x16phy_payload_byte_count\x18\x04 \x01(\rR\x13phyPayloadByteCount\x123\n" +
|
|
"\x16mac_command_byte_count\x18\x05 \x01(\rR\x13macCommandByteCount\x12C\n" +
|
|
"\x1eapplication_payload_byte_count\x18\x06 \x01(\rR\x1bapplicationPayloadByteCount\x12,\n" +
|
|
"\n" +
|
|
"frame_type\x18\a \x01(\x0e2\r.common.FTypeR\tframeType\x12\x1d\n" +
|
|
"\n" +
|
|
"gateway_id\x18\b \x01(\tR\tgatewayIdB\xa2\x01\n" +
|
|
"\x18io.chirpstack.api.streamB\tMetaProtoP\x01Z1github.com/chirpstack/chirpstack/api/go/v4/stream\xaa\x02\x11Chirpstack.Stream\xca\x02\x11Chirpstack\\Stream\xe2\x02\x1dGPBMetadata\\Chirpstack\\Streamb\x06proto3"
|
|
|
|
var (
|
|
file_stream_meta_proto_rawDescOnce sync.Once
|
|
file_stream_meta_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_stream_meta_proto_rawDescGZIP() []byte {
|
|
file_stream_meta_proto_rawDescOnce.Do(func() {
|
|
file_stream_meta_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_stream_meta_proto_rawDesc), len(file_stream_meta_proto_rawDesc)))
|
|
})
|
|
return file_stream_meta_proto_rawDescData
|
|
}
|
|
|
|
var file_stream_meta_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
|
var file_stream_meta_proto_goTypes = []any{
|
|
(*UplinkMeta)(nil), // 0: stream.UplinkMeta
|
|
(*DownlinkMeta)(nil), // 1: stream.DownlinkMeta
|
|
(*gw.UplinkTxInfo)(nil), // 2: gw.UplinkTxInfo
|
|
(*gw.UplinkRxInfo)(nil), // 3: gw.UplinkRxInfo
|
|
(common.FType)(0), // 4: common.FType
|
|
(*gw.DownlinkTxInfo)(nil), // 5: gw.DownlinkTxInfo
|
|
}
|
|
var file_stream_meta_proto_depIdxs = []int32{
|
|
2, // 0: stream.UplinkMeta.tx_info:type_name -> gw.UplinkTxInfo
|
|
3, // 1: stream.UplinkMeta.rx_info:type_name -> gw.UplinkRxInfo
|
|
4, // 2: stream.UplinkMeta.frame_type:type_name -> common.FType
|
|
5, // 3: stream.DownlinkMeta.tx_info:type_name -> gw.DownlinkTxInfo
|
|
4, // 4: stream.DownlinkMeta.frame_type:type_name -> common.FType
|
|
5, // [5:5] is the sub-list for method output_type
|
|
5, // [5:5] is the sub-list for method input_type
|
|
5, // [5:5] is the sub-list for extension type_name
|
|
5, // [5:5] is the sub-list for extension extendee
|
|
0, // [0:5] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_stream_meta_proto_init() }
|
|
func file_stream_meta_proto_init() {
|
|
if File_stream_meta_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_stream_meta_proto_rawDesc), len(file_stream_meta_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 2,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_stream_meta_proto_goTypes,
|
|
DependencyIndexes: file_stream_meta_proto_depIdxs,
|
|
MessageInfos: file_stream_meta_proto_msgTypes,
|
|
}.Build()
|
|
File_stream_meta_proto = out.File
|
|
file_stream_meta_proto_goTypes = nil
|
|
file_stream_meta_proto_depIdxs = nil
|
|
}
|