211 lines
5.9 KiB
Go
211 lines
5.9 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v3.21.12
|
|
// source: alerts.proto
|
|
|
|
package protoapi
|
|
|
|
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)
|
|
)
|
|
|
|
type AlertSubscription struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ClientId string `protobuf:"bytes,1,opt,name=ClientId,proto3" json:"ClientId,omitempty"`
|
|
Topic string `protobuf:"bytes,2,opt,name=Topic,proto3" json:"Topic,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AlertSubscription) Reset() {
|
|
*x = AlertSubscription{}
|
|
mi := &file_alerts_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AlertSubscription) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AlertSubscription) ProtoMessage() {}
|
|
|
|
func (x *AlertSubscription) ProtoReflect() protoreflect.Message {
|
|
mi := &file_alerts_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 AlertSubscription.ProtoReflect.Descriptor instead.
|
|
func (*AlertSubscription) Descriptor() ([]byte, []int) {
|
|
return file_alerts_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *AlertSubscription) GetClientId() string {
|
|
if x != nil {
|
|
return x.ClientId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AlertSubscription) GetTopic() string {
|
|
if x != nil {
|
|
return x.Topic
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type AlertMessage struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AlertId string `protobuf:"bytes,1,opt,name=AlertId,proto3" json:"AlertId,omitempty"`
|
|
DeviceId string `protobuf:"bytes,2,opt,name=DeviceId,proto3" json:"DeviceId,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
|
|
Timestamp int64 `protobuf:"varint,4,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AlertMessage) Reset() {
|
|
*x = AlertMessage{}
|
|
mi := &file_alerts_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AlertMessage) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AlertMessage) ProtoMessage() {}
|
|
|
|
func (x *AlertMessage) ProtoReflect() protoreflect.Message {
|
|
mi := &file_alerts_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 AlertMessage.ProtoReflect.Descriptor instead.
|
|
func (*AlertMessage) Descriptor() ([]byte, []int) {
|
|
return file_alerts_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *AlertMessage) GetAlertId() string {
|
|
if x != nil {
|
|
return x.AlertId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AlertMessage) GetDeviceId() string {
|
|
if x != nil {
|
|
return x.DeviceId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AlertMessage) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AlertMessage) GetTimestamp() int64 {
|
|
if x != nil {
|
|
return x.Timestamp
|
|
}
|
|
return 0
|
|
}
|
|
|
|
var File_alerts_proto protoreflect.FileDescriptor
|
|
|
|
const file_alerts_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\falerts.proto\x1a\fcommon.proto\"E\n" +
|
|
"\x11AlertSubscription\x12\x1a\n" +
|
|
"\bClientId\x18\x01 \x01(\tR\bClientId\x12\x14\n" +
|
|
"\x05Topic\x18\x02 \x01(\tR\x05Topic\"|\n" +
|
|
"\fAlertMessage\x12\x18\n" +
|
|
"\aAlertId\x18\x01 \x01(\tR\aAlertId\x12\x1a\n" +
|
|
"\bDeviceId\x18\x02 \x01(\tR\bDeviceId\x12\x18\n" +
|
|
"\aMessage\x18\x03 \x01(\tR\aMessage\x12\x1c\n" +
|
|
"\tTimestamp\x18\x04 \x01(\x03R\tTimestamp2F\n" +
|
|
"\fAlertService\x126\n" +
|
|
"\x0fSubscribeAlerts\x12\x12.AlertSubscription\x1a\r.AlertMessage0\x01B\x16Z\x14./protoapi/;protoapib\x06proto3"
|
|
|
|
var (
|
|
file_alerts_proto_rawDescOnce sync.Once
|
|
file_alerts_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_alerts_proto_rawDescGZIP() []byte {
|
|
file_alerts_proto_rawDescOnce.Do(func() {
|
|
file_alerts_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_alerts_proto_rawDesc), len(file_alerts_proto_rawDesc)))
|
|
})
|
|
return file_alerts_proto_rawDescData
|
|
}
|
|
|
|
var file_alerts_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
|
var file_alerts_proto_goTypes = []any{
|
|
(*AlertSubscription)(nil), // 0: AlertSubscription
|
|
(*AlertMessage)(nil), // 1: AlertMessage
|
|
}
|
|
var file_alerts_proto_depIdxs = []int32{
|
|
0, // 0: AlertService.SubscribeAlerts:input_type -> AlertSubscription
|
|
1, // 1: AlertService.SubscribeAlerts:output_type -> AlertMessage
|
|
1, // [1:2] is the sub-list for method output_type
|
|
0, // [0:1] 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_alerts_proto_init() }
|
|
func file_alerts_proto_init() {
|
|
if File_alerts_proto != nil {
|
|
return
|
|
}
|
|
file_common_proto_init()
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_alerts_proto_rawDesc), len(file_alerts_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 2,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_alerts_proto_goTypes,
|
|
DependencyIndexes: file_alerts_proto_depIdxs,
|
|
MessageInfos: file_alerts_proto_msgTypes,
|
|
}.Build()
|
|
File_alerts_proto = out.File
|
|
file_alerts_proto_goTypes = nil
|
|
file_alerts_proto_depIdxs = nil
|
|
}
|