github.com/simpleiot/simpleiot@v0.18.3/internal/pb/notification.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.26.0 4 // protoc v3.21.12 5 // source: notification.proto 6 7 package pb 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 reflect "reflect" 13 sync "sync" 14 ) 15 16 const ( 17 // Verify that this generated code is sufficiently up-to-date. 18 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 19 // Verify that runtime/protoimpl is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 21 ) 22 23 type Notification struct { 24 state protoimpl.MessageState 25 sizeCache protoimpl.SizeCache 26 unknownFields protoimpl.UnknownFields 27 28 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 29 SourceNode string `protobuf:"bytes,2,opt,name=sourceNode,proto3" json:"sourceNode,omitempty"` 30 Subject string `protobuf:"bytes,3,opt,name=subject,proto3" json:"subject,omitempty"` 31 Msg string `protobuf:"bytes,4,opt,name=msg,proto3" json:"msg,omitempty"` 32 Parent string `protobuf:"bytes,5,opt,name=parent,proto3" json:"parent,omitempty"` 33 } 34 35 func (x *Notification) Reset() { 36 *x = Notification{} 37 if protoimpl.UnsafeEnabled { 38 mi := &file_notification_proto_msgTypes[0] 39 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 40 ms.StoreMessageInfo(mi) 41 } 42 } 43 44 func (x *Notification) String() string { 45 return protoimpl.X.MessageStringOf(x) 46 } 47 48 func (*Notification) ProtoMessage() {} 49 50 func (x *Notification) ProtoReflect() protoreflect.Message { 51 mi := &file_notification_proto_msgTypes[0] 52 if protoimpl.UnsafeEnabled && x != nil { 53 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 54 if ms.LoadMessageInfo() == nil { 55 ms.StoreMessageInfo(mi) 56 } 57 return ms 58 } 59 return mi.MessageOf(x) 60 } 61 62 // Deprecated: Use Notification.ProtoReflect.Descriptor instead. 63 func (*Notification) Descriptor() ([]byte, []int) { 64 return file_notification_proto_rawDescGZIP(), []int{0} 65 } 66 67 func (x *Notification) GetId() string { 68 if x != nil { 69 return x.Id 70 } 71 return "" 72 } 73 74 func (x *Notification) GetSourceNode() string { 75 if x != nil { 76 return x.SourceNode 77 } 78 return "" 79 } 80 81 func (x *Notification) GetSubject() string { 82 if x != nil { 83 return x.Subject 84 } 85 return "" 86 } 87 88 func (x *Notification) GetMsg() string { 89 if x != nil { 90 return x.Msg 91 } 92 return "" 93 } 94 95 func (x *Notification) GetParent() string { 96 if x != nil { 97 return x.Parent 98 } 99 return "" 100 } 101 102 var File_notification_proto protoreflect.FileDescriptor 103 104 var file_notification_proto_rawDesc = []byte{ 105 0x0a, 0x12, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 106 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0x82, 0x01, 0x0a, 0x0c, 0x4e, 0x6f, 0x74, 107 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 108 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x6f, 0x75, 109 0x72, 0x63, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 110 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x62, 111 0x6a, 0x65, 0x63, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a, 112 0x65, 0x63, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 113 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 114 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x42, 0x0d, 0x5a, 115 0x0b, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 116 0x6f, 0x74, 0x6f, 0x33, 117 } 118 119 var ( 120 file_notification_proto_rawDescOnce sync.Once 121 file_notification_proto_rawDescData = file_notification_proto_rawDesc 122 ) 123 124 func file_notification_proto_rawDescGZIP() []byte { 125 file_notification_proto_rawDescOnce.Do(func() { 126 file_notification_proto_rawDescData = protoimpl.X.CompressGZIP(file_notification_proto_rawDescData) 127 }) 128 return file_notification_proto_rawDescData 129 } 130 131 var file_notification_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 132 var file_notification_proto_goTypes = []interface{}{ 133 (*Notification)(nil), // 0: pb.Notification 134 } 135 var file_notification_proto_depIdxs = []int32{ 136 0, // [0:0] is the sub-list for method output_type 137 0, // [0:0] is the sub-list for method input_type 138 0, // [0:0] is the sub-list for extension type_name 139 0, // [0:0] is the sub-list for extension extendee 140 0, // [0:0] is the sub-list for field type_name 141 } 142 143 func init() { file_notification_proto_init() } 144 func file_notification_proto_init() { 145 if File_notification_proto != nil { 146 return 147 } 148 if !protoimpl.UnsafeEnabled { 149 file_notification_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 150 switch v := v.(*Notification); i { 151 case 0: 152 return &v.state 153 case 1: 154 return &v.sizeCache 155 case 2: 156 return &v.unknownFields 157 default: 158 return nil 159 } 160 } 161 } 162 type x struct{} 163 out := protoimpl.TypeBuilder{ 164 File: protoimpl.DescBuilder{ 165 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 166 RawDescriptor: file_notification_proto_rawDesc, 167 NumEnums: 0, 168 NumMessages: 1, 169 NumExtensions: 0, 170 NumServices: 0, 171 }, 172 GoTypes: file_notification_proto_goTypes, 173 DependencyIndexes: file_notification_proto_depIdxs, 174 MessageInfos: file_notification_proto_msgTypes, 175 }.Build() 176 File_notification_proto = out.File 177 file_notification_proto_rawDesc = nil 178 file_notification_proto_goTypes = nil 179 file_notification_proto_depIdxs = nil 180 }