mirror of
https://github.com/absmach/magistrala.git
synced 2026-06-23 04:10:28 +00:00
61d0427898
Signed-off-by: dusan <borovcanindusan1@gmail.com>
190 lines
5.7 KiB
Go
190 lines
5.7 KiB
Go
// Copyright (c) Abstract Machines
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v6.33.0
|
|
// source: pkg/messaging/message.proto
|
|
|
|
package messaging
|
|
|
|
import (
|
|
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)
|
|
)
|
|
|
|
// Message represents a message emitted by the Magistrala adapters layer.
|
|
type Message struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Channel string `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"`
|
|
Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
|
|
Subtopic string `protobuf:"bytes,3,opt,name=subtopic,proto3" json:"subtopic,omitempty"`
|
|
Publisher string `protobuf:"bytes,4,opt,name=publisher,proto3" json:"publisher,omitempty"`
|
|
Protocol string `protobuf:"bytes,5,opt,name=protocol,proto3" json:"protocol,omitempty"`
|
|
Payload []byte `protobuf:"bytes,6,opt,name=payload,proto3" json:"payload,omitempty"`
|
|
Created int64 `protobuf:"varint,7,opt,name=created,proto3" json:"created,omitempty"` // Unix timestamp in nanoseconds
|
|
ClientId string `protobuf:"bytes,8,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` // Transport-level client identifier
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Message) Reset() {
|
|
*x = Message{}
|
|
mi := &file_pkg_messaging_message_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Message) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Message) ProtoMessage() {}
|
|
|
|
func (x *Message) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pkg_messaging_message_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 Message.ProtoReflect.Descriptor instead.
|
|
func (*Message) Descriptor() ([]byte, []int) {
|
|
return file_pkg_messaging_message_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *Message) GetChannel() string {
|
|
if x != nil {
|
|
return x.Channel
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Message) GetDomain() string {
|
|
if x != nil {
|
|
return x.Domain
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Message) GetSubtopic() string {
|
|
if x != nil {
|
|
return x.Subtopic
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Message) GetPublisher() string {
|
|
if x != nil {
|
|
return x.Publisher
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Message) GetProtocol() string {
|
|
if x != nil {
|
|
return x.Protocol
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Message) GetPayload() []byte {
|
|
if x != nil {
|
|
return x.Payload
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Message) GetCreated() int64 {
|
|
if x != nil {
|
|
return x.Created
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Message) GetClientId() string {
|
|
if x != nil {
|
|
return x.ClientId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_pkg_messaging_message_proto protoreflect.FileDescriptor
|
|
|
|
const file_pkg_messaging_message_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x1bpkg/messaging/message.proto\x12\tmessaging\"\xe2\x01\n" +
|
|
"\aMessage\x12\x18\n" +
|
|
"\achannel\x18\x01 \x01(\tR\achannel\x12\x16\n" +
|
|
"\x06domain\x18\x02 \x01(\tR\x06domain\x12\x1a\n" +
|
|
"\bsubtopic\x18\x03 \x01(\tR\bsubtopic\x12\x1c\n" +
|
|
"\tpublisher\x18\x04 \x01(\tR\tpublisher\x12\x1a\n" +
|
|
"\bprotocol\x18\x05 \x01(\tR\bprotocol\x12\x18\n" +
|
|
"\apayload\x18\x06 \x01(\fR\apayload\x12\x18\n" +
|
|
"\acreated\x18\a \x01(\x03R\acreated\x12\x1b\n" +
|
|
"\tclient_id\x18\b \x01(\tR\bclientIdB\rZ\v./messagingb\x06proto3"
|
|
|
|
var (
|
|
file_pkg_messaging_message_proto_rawDescOnce sync.Once
|
|
file_pkg_messaging_message_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_pkg_messaging_message_proto_rawDescGZIP() []byte {
|
|
file_pkg_messaging_message_proto_rawDescOnce.Do(func() {
|
|
file_pkg_messaging_message_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pkg_messaging_message_proto_rawDesc), len(file_pkg_messaging_message_proto_rawDesc)))
|
|
})
|
|
return file_pkg_messaging_message_proto_rawDescData
|
|
}
|
|
|
|
var file_pkg_messaging_message_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
|
var file_pkg_messaging_message_proto_goTypes = []any{
|
|
(*Message)(nil), // 0: messaging.Message
|
|
}
|
|
var file_pkg_messaging_message_proto_depIdxs = []int32{
|
|
0, // [0:0] is the sub-list for method output_type
|
|
0, // [0:0] is the sub-list for method input_type
|
|
0, // [0:0] is the sub-list for extension type_name
|
|
0, // [0:0] is the sub-list for extension extendee
|
|
0, // [0:0] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_pkg_messaging_message_proto_init() }
|
|
func file_pkg_messaging_message_proto_init() {
|
|
if File_pkg_messaging_message_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_pkg_messaging_message_proto_rawDesc), len(file_pkg_messaging_message_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 1,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_pkg_messaging_message_proto_goTypes,
|
|
DependencyIndexes: file_pkg_messaging_message_proto_depIdxs,
|
|
MessageInfos: file_pkg_messaging_message_proto_msgTypes,
|
|
}.Build()
|
|
File_pkg_messaging_message_proto = out.File
|
|
file_pkg_messaging_message_proto_goTypes = nil
|
|
file_pkg_messaging_message_proto_depIdxs = nil
|
|
}
|