blob: 7df3e27c0ee7909584b9795547e3c01f4ecdbc13 [file] [log] [blame]
William Kurkian1b363f42019-03-12 15:28:12 -04001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: voltha_protos/events.proto
3
William Kurkianad745652019-03-20 08:45:51 -04004package voltha
William Kurkian1b363f42019-03-12 15:28:12 -04005
William Kurkianad745652019-03-20 08:45:51 -04006import (
7 fmt "fmt"
8 proto "github.com/golang/protobuf/proto"
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +03009 _ "github.com/opencord/voltha-protos/v3/go/common"
William Kurkianad745652019-03-20 08:45:51 -040010 _ "google.golang.org/genproto/googleapis/api/annotations"
11 math "math"
12)
William Kurkian1b363f42019-03-12 15:28:12 -040013
14// Reference imports to suppress errors if they are not otherwise used.
15var _ = proto.Marshal
16var _ = fmt.Errorf
17var _ = math.Inf
18
19// This is a compile-time assertion to ensure that this generated file
20// is compatible with the proto package it is being compiled against.
21// A compilation error at this line likely means your copy of the
22// proto package needs to be updated.
William Kurkianad745652019-03-20 08:45:51 -040023const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
William Kurkian1b363f42019-03-12 15:28:12 -040024
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +030025type ConfigEventType_Types int32
William Kurkian1b363f42019-03-12 15:28:12 -040026
27const (
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +030028 ConfigEventType_add ConfigEventType_Types = 0
29 ConfigEventType_remove ConfigEventType_Types = 1
30 ConfigEventType_update ConfigEventType_Types = 2
William Kurkian1b363f42019-03-12 15:28:12 -040031)
32
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +030033var ConfigEventType_Types_name = map[int32]string{
William Kurkian1b363f42019-03-12 15:28:12 -040034 0: "add",
35 1: "remove",
36 2: "update",
37}
William Kurkianad745652019-03-20 08:45:51 -040038
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +030039var ConfigEventType_Types_value = map[string]int32{
William Kurkian1b363f42019-03-12 15:28:12 -040040 "add": 0,
41 "remove": 1,
42 "update": 2,
43}
44
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +030045func (x ConfigEventType_Types) String() string {
46 return proto.EnumName(ConfigEventType_Types_name, int32(x))
William Kurkian1b363f42019-03-12 15:28:12 -040047}
William Kurkianad745652019-03-20 08:45:51 -040048
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +030049func (ConfigEventType_Types) EnumDescriptor() ([]byte, []int) {
William Kurkianad745652019-03-20 08:45:51 -040050 return fileDescriptor_e63e6c07044fd2c4, []int{0, 0}
William Kurkian1b363f42019-03-12 15:28:12 -040051}
52
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +030053type KpiEventType_Types int32
William Kurkian1b363f42019-03-12 15:28:12 -040054
55const (
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +030056 KpiEventType_slice KpiEventType_Types = 0
57 KpiEventType_ts KpiEventType_Types = 1
William Kurkian1b363f42019-03-12 15:28:12 -040058)
59
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +030060var KpiEventType_Types_name = map[int32]string{
William Kurkian1b363f42019-03-12 15:28:12 -040061 0: "slice",
62 1: "ts",
63}
William Kurkianad745652019-03-20 08:45:51 -040064
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +030065var KpiEventType_Types_value = map[string]int32{
William Kurkian1b363f42019-03-12 15:28:12 -040066 "slice": 0,
67 "ts": 1,
68}
69
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +030070func (x KpiEventType_Types) String() string {
71 return proto.EnumName(KpiEventType_Types_name, int32(x))
William Kurkian1b363f42019-03-12 15:28:12 -040072}
William Kurkianad745652019-03-20 08:45:51 -040073
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +030074func (KpiEventType_Types) EnumDescriptor() ([]byte, []int) {
William Kurkianad745652019-03-20 08:45:51 -040075 return fileDescriptor_e63e6c07044fd2c4, []int{2, 0}
William Kurkian1b363f42019-03-12 15:28:12 -040076}
77
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +030078type AlarmEventType_Types int32
William Kurkian1b363f42019-03-12 15:28:12 -040079
80const (
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +030081 AlarmEventType_COMMUNICATION AlarmEventType_Types = 0
82 AlarmEventType_ENVIRONMENT AlarmEventType_Types = 1
83 AlarmEventType_EQUIPMENT AlarmEventType_Types = 2
84 AlarmEventType_SERVICE AlarmEventType_Types = 3
85 AlarmEventType_PROCESSING AlarmEventType_Types = 4
86 AlarmEventType_SECURITY AlarmEventType_Types = 5
William Kurkian1b363f42019-03-12 15:28:12 -040087)
88
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +030089var AlarmEventType_Types_name = map[int32]string{
William Kurkian1b363f42019-03-12 15:28:12 -040090 0: "COMMUNICATION",
91 1: "ENVIRONMENT",
92 2: "EQUIPMENT",
93 3: "SERVICE",
94 4: "PROCESSING",
95 5: "SECURITY",
96}
William Kurkianad745652019-03-20 08:45:51 -040097
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +030098var AlarmEventType_Types_value = map[string]int32{
William Kurkian1b363f42019-03-12 15:28:12 -040099 "COMMUNICATION": 0,
100 "ENVIRONMENT": 1,
101 "EQUIPMENT": 2,
102 "SERVICE": 3,
103 "PROCESSING": 4,
104 "SECURITY": 5,
105}
106
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300107func (x AlarmEventType_Types) String() string {
108 return proto.EnumName(AlarmEventType_Types_name, int32(x))
William Kurkian1b363f42019-03-12 15:28:12 -0400109}
William Kurkianad745652019-03-20 08:45:51 -0400110
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300111func (AlarmEventType_Types) EnumDescriptor() ([]byte, []int) {
William Kurkianad745652019-03-20 08:45:51 -0400112 return fileDescriptor_e63e6c07044fd2c4, []int{8, 0}
William Kurkian1b363f42019-03-12 15:28:12 -0400113}
114
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300115type AlarmEventCategory_Types int32
William Kurkian1b363f42019-03-12 15:28:12 -0400116
117const (
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300118 AlarmEventCategory_PON AlarmEventCategory_Types = 0
119 AlarmEventCategory_OLT AlarmEventCategory_Types = 1
120 AlarmEventCategory_ONT AlarmEventCategory_Types = 2
121 AlarmEventCategory_ONU AlarmEventCategory_Types = 3
122 AlarmEventCategory_NNI AlarmEventCategory_Types = 4
William Kurkian1b363f42019-03-12 15:28:12 -0400123)
124
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300125var AlarmEventCategory_Types_name = map[int32]string{
William Kurkian1b363f42019-03-12 15:28:12 -0400126 0: "PON",
127 1: "OLT",
128 2: "ONT",
129 3: "ONU",
130 4: "NNI",
131}
William Kurkianad745652019-03-20 08:45:51 -0400132
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300133var AlarmEventCategory_Types_value = map[string]int32{
William Kurkian1b363f42019-03-12 15:28:12 -0400134 "PON": 0,
135 "OLT": 1,
136 "ONT": 2,
137 "ONU": 3,
138 "NNI": 4,
139}
140
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300141func (x AlarmEventCategory_Types) String() string {
142 return proto.EnumName(AlarmEventCategory_Types_name, int32(x))
William Kurkian1b363f42019-03-12 15:28:12 -0400143}
William Kurkianad745652019-03-20 08:45:51 -0400144
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300145func (AlarmEventCategory_Types) EnumDescriptor() ([]byte, []int) {
William Kurkianad745652019-03-20 08:45:51 -0400146 return fileDescriptor_e63e6c07044fd2c4, []int{9, 0}
William Kurkian1b363f42019-03-12 15:28:12 -0400147}
148
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300149type AlarmEventState_Types int32
William Kurkian1b363f42019-03-12 15:28:12 -0400150
151const (
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300152 AlarmEventState_RAISED AlarmEventState_Types = 0
153 AlarmEventState_CLEARED AlarmEventState_Types = 1
William Kurkian1b363f42019-03-12 15:28:12 -0400154)
155
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300156var AlarmEventState_Types_name = map[int32]string{
William Kurkian1b363f42019-03-12 15:28:12 -0400157 0: "RAISED",
158 1: "CLEARED",
159}
William Kurkianad745652019-03-20 08:45:51 -0400160
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300161var AlarmEventState_Types_value = map[string]int32{
William Kurkian1b363f42019-03-12 15:28:12 -0400162 "RAISED": 0,
163 "CLEARED": 1,
164}
165
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300166func (x AlarmEventState_Types) String() string {
167 return proto.EnumName(AlarmEventState_Types_name, int32(x))
William Kurkian1b363f42019-03-12 15:28:12 -0400168}
William Kurkianad745652019-03-20 08:45:51 -0400169
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300170func (AlarmEventState_Types) EnumDescriptor() ([]byte, []int) {
William Kurkianad745652019-03-20 08:45:51 -0400171 return fileDescriptor_e63e6c07044fd2c4, []int{10, 0}
William Kurkian1b363f42019-03-12 15:28:12 -0400172}
173
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300174type AlarmEventSeverity_Types int32
William Kurkian1b363f42019-03-12 15:28:12 -0400175
176const (
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300177 AlarmEventSeverity_INDETERMINATE AlarmEventSeverity_Types = 0
178 AlarmEventSeverity_WARNING AlarmEventSeverity_Types = 1
179 AlarmEventSeverity_MINOR AlarmEventSeverity_Types = 2
180 AlarmEventSeverity_MAJOR AlarmEventSeverity_Types = 3
181 AlarmEventSeverity_CRITICAL AlarmEventSeverity_Types = 4
William Kurkian1b363f42019-03-12 15:28:12 -0400182)
183
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300184var AlarmEventSeverity_Types_name = map[int32]string{
William Kurkian1b363f42019-03-12 15:28:12 -0400185 0: "INDETERMINATE",
186 1: "WARNING",
187 2: "MINOR",
188 3: "MAJOR",
189 4: "CRITICAL",
190}
William Kurkianad745652019-03-20 08:45:51 -0400191
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300192var AlarmEventSeverity_Types_value = map[string]int32{
William Kurkian1b363f42019-03-12 15:28:12 -0400193 "INDETERMINATE": 0,
194 "WARNING": 1,
195 "MINOR": 2,
196 "MAJOR": 3,
197 "CRITICAL": 4,
198}
199
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300200func (x AlarmEventSeverity_Types) String() string {
201 return proto.EnumName(AlarmEventSeverity_Types_name, int32(x))
William Kurkian1b363f42019-03-12 15:28:12 -0400202}
William Kurkianad745652019-03-20 08:45:51 -0400203
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300204func (AlarmEventSeverity_Types) EnumDescriptor() ([]byte, []int) {
William Kurkianad745652019-03-20 08:45:51 -0400205 return fileDescriptor_e63e6c07044fd2c4, []int{11, 0}
William Kurkian1b363f42019-03-12 15:28:12 -0400206}
207
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300208type EventCategory_Types int32
Devmalya Paulf98ca132019-07-09 06:14:19 -0400209
210const (
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300211 EventCategory_COMMUNICATION EventCategory_Types = 0
212 EventCategory_ENVIRONMENT EventCategory_Types = 1
213 EventCategory_EQUIPMENT EventCategory_Types = 2
214 EventCategory_SERVICE EventCategory_Types = 3
215 EventCategory_PROCESSING EventCategory_Types = 4
216 EventCategory_SECURITY EventCategory_Types = 5
Devmalya Paulf98ca132019-07-09 06:14:19 -0400217)
218
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300219var EventCategory_Types_name = map[int32]string{
Devmalya Paulf98ca132019-07-09 06:14:19 -0400220 0: "COMMUNICATION",
221 1: "ENVIRONMENT",
222 2: "EQUIPMENT",
223 3: "SERVICE",
224 4: "PROCESSING",
225 5: "SECURITY",
226}
227
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300228var EventCategory_Types_value = map[string]int32{
Devmalya Paulf98ca132019-07-09 06:14:19 -0400229 "COMMUNICATION": 0,
230 "ENVIRONMENT": 1,
231 "EQUIPMENT": 2,
232 "SERVICE": 3,
233 "PROCESSING": 4,
234 "SECURITY": 5,
235}
236
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300237func (x EventCategory_Types) String() string {
238 return proto.EnumName(EventCategory_Types_name, int32(x))
Devmalya Paulf98ca132019-07-09 06:14:19 -0400239}
240
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300241func (EventCategory_Types) EnumDescriptor() ([]byte, []int) {
Devmalya Paulf98ca132019-07-09 06:14:19 -0400242 return fileDescriptor_e63e6c07044fd2c4, []int{14, 0}
243}
244
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300245type EventSubCategory_Types int32
Devmalya Paulf98ca132019-07-09 06:14:19 -0400246
247const (
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300248 EventSubCategory_PON EventSubCategory_Types = 0
249 EventSubCategory_OLT EventSubCategory_Types = 1
250 EventSubCategory_ONT EventSubCategory_Types = 2
251 EventSubCategory_ONU EventSubCategory_Types = 3
252 EventSubCategory_NNI EventSubCategory_Types = 4
Devmalya Paulf98ca132019-07-09 06:14:19 -0400253)
254
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300255var EventSubCategory_Types_name = map[int32]string{
Devmalya Paulf98ca132019-07-09 06:14:19 -0400256 0: "PON",
257 1: "OLT",
258 2: "ONT",
259 3: "ONU",
260 4: "NNI",
261}
262
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300263var EventSubCategory_Types_value = map[string]int32{
Devmalya Paulf98ca132019-07-09 06:14:19 -0400264 "PON": 0,
265 "OLT": 1,
266 "ONT": 2,
267 "ONU": 3,
268 "NNI": 4,
269}
270
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300271func (x EventSubCategory_Types) String() string {
272 return proto.EnumName(EventSubCategory_Types_name, int32(x))
Devmalya Paulf98ca132019-07-09 06:14:19 -0400273}
274
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300275func (EventSubCategory_Types) EnumDescriptor() ([]byte, []int) {
Devmalya Paulf98ca132019-07-09 06:14:19 -0400276 return fileDescriptor_e63e6c07044fd2c4, []int{15, 0}
277}
278
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300279type EventType_Types int32
Devmalya Paulf98ca132019-07-09 06:14:19 -0400280
281const (
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300282 EventType_CONFIG_EVENT EventType_Types = 0
283 EventType_KPI_EVENT EventType_Types = 1
284 EventType_KPI_EVENT2 EventType_Types = 2
285 EventType_DEVICE_EVENT EventType_Types = 3
Devmalya Paulf98ca132019-07-09 06:14:19 -0400286)
287
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300288var EventType_Types_name = map[int32]string{
Devmalya Paulf98ca132019-07-09 06:14:19 -0400289 0: "CONFIG_EVENT",
290 1: "KPI_EVENT",
291 2: "KPI_EVENT2",
292 3: "DEVICE_EVENT",
293}
294
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300295var EventType_Types_value = map[string]int32{
Devmalya Paulf98ca132019-07-09 06:14:19 -0400296 "CONFIG_EVENT": 0,
297 "KPI_EVENT": 1,
298 "KPI_EVENT2": 2,
299 "DEVICE_EVENT": 3,
300}
301
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300302func (x EventType_Types) String() string {
303 return proto.EnumName(EventType_Types_name, int32(x))
Devmalya Paulf98ca132019-07-09 06:14:19 -0400304}
305
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300306func (EventType_Types) EnumDescriptor() ([]byte, []int) {
Devmalya Paulf98ca132019-07-09 06:14:19 -0400307 return fileDescriptor_e63e6c07044fd2c4, []int{16, 0}
308}
309
William Kurkian1b363f42019-03-12 15:28:12 -0400310type ConfigEventType struct {
311 XXX_NoUnkeyedLiteral struct{} `json:"-"`
312 XXX_unrecognized []byte `json:"-"`
313 XXX_sizecache int32 `json:"-"`
314}
315
316func (m *ConfigEventType) Reset() { *m = ConfigEventType{} }
317func (m *ConfigEventType) String() string { return proto.CompactTextString(m) }
318func (*ConfigEventType) ProtoMessage() {}
319func (*ConfigEventType) Descriptor() ([]byte, []int) {
William Kurkianad745652019-03-20 08:45:51 -0400320 return fileDescriptor_e63e6c07044fd2c4, []int{0}
William Kurkian1b363f42019-03-12 15:28:12 -0400321}
William Kurkianad745652019-03-20 08:45:51 -0400322
William Kurkian1b363f42019-03-12 15:28:12 -0400323func (m *ConfigEventType) XXX_Unmarshal(b []byte) error {
324 return xxx_messageInfo_ConfigEventType.Unmarshal(m, b)
325}
326func (m *ConfigEventType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
327 return xxx_messageInfo_ConfigEventType.Marshal(b, m, deterministic)
328}
William Kurkianad745652019-03-20 08:45:51 -0400329func (m *ConfigEventType) XXX_Merge(src proto.Message) {
330 xxx_messageInfo_ConfigEventType.Merge(m, src)
William Kurkian1b363f42019-03-12 15:28:12 -0400331}
332func (m *ConfigEventType) XXX_Size() int {
333 return xxx_messageInfo_ConfigEventType.Size(m)
334}
335func (m *ConfigEventType) XXX_DiscardUnknown() {
336 xxx_messageInfo_ConfigEventType.DiscardUnknown(m)
337}
338
339var xxx_messageInfo_ConfigEventType proto.InternalMessageInfo
340
341type ConfigEvent struct {
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300342 Type ConfigEventType_Types `protobuf:"varint,1,opt,name=type,proto3,enum=voltha.ConfigEventType_Types" json:"type,omitempty"`
343 Hash string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
344 Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
345 XXX_NoUnkeyedLiteral struct{} `json:"-"`
346 XXX_unrecognized []byte `json:"-"`
347 XXX_sizecache int32 `json:"-"`
William Kurkian1b363f42019-03-12 15:28:12 -0400348}
349
350func (m *ConfigEvent) Reset() { *m = ConfigEvent{} }
351func (m *ConfigEvent) String() string { return proto.CompactTextString(m) }
352func (*ConfigEvent) ProtoMessage() {}
353func (*ConfigEvent) Descriptor() ([]byte, []int) {
William Kurkianad745652019-03-20 08:45:51 -0400354 return fileDescriptor_e63e6c07044fd2c4, []int{1}
William Kurkian1b363f42019-03-12 15:28:12 -0400355}
William Kurkianad745652019-03-20 08:45:51 -0400356
William Kurkian1b363f42019-03-12 15:28:12 -0400357func (m *ConfigEvent) XXX_Unmarshal(b []byte) error {
358 return xxx_messageInfo_ConfigEvent.Unmarshal(m, b)
359}
360func (m *ConfigEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
361 return xxx_messageInfo_ConfigEvent.Marshal(b, m, deterministic)
362}
William Kurkianad745652019-03-20 08:45:51 -0400363func (m *ConfigEvent) XXX_Merge(src proto.Message) {
364 xxx_messageInfo_ConfigEvent.Merge(m, src)
William Kurkian1b363f42019-03-12 15:28:12 -0400365}
366func (m *ConfigEvent) XXX_Size() int {
367 return xxx_messageInfo_ConfigEvent.Size(m)
368}
369func (m *ConfigEvent) XXX_DiscardUnknown() {
370 xxx_messageInfo_ConfigEvent.DiscardUnknown(m)
371}
372
373var xxx_messageInfo_ConfigEvent proto.InternalMessageInfo
374
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300375func (m *ConfigEvent) GetType() ConfigEventType_Types {
William Kurkian1b363f42019-03-12 15:28:12 -0400376 if m != nil {
377 return m.Type
378 }
379 return ConfigEventType_add
380}
381
382func (m *ConfigEvent) GetHash() string {
383 if m != nil {
384 return m.Hash
385 }
386 return ""
387}
388
389func (m *ConfigEvent) GetData() string {
390 if m != nil {
391 return m.Data
392 }
393 return ""
394}
395
396type KpiEventType struct {
397 XXX_NoUnkeyedLiteral struct{} `json:"-"`
398 XXX_unrecognized []byte `json:"-"`
399 XXX_sizecache int32 `json:"-"`
400}
401
402func (m *KpiEventType) Reset() { *m = KpiEventType{} }
403func (m *KpiEventType) String() string { return proto.CompactTextString(m) }
404func (*KpiEventType) ProtoMessage() {}
405func (*KpiEventType) Descriptor() ([]byte, []int) {
William Kurkianad745652019-03-20 08:45:51 -0400406 return fileDescriptor_e63e6c07044fd2c4, []int{2}
William Kurkian1b363f42019-03-12 15:28:12 -0400407}
William Kurkianad745652019-03-20 08:45:51 -0400408
William Kurkian1b363f42019-03-12 15:28:12 -0400409func (m *KpiEventType) XXX_Unmarshal(b []byte) error {
410 return xxx_messageInfo_KpiEventType.Unmarshal(m, b)
411}
412func (m *KpiEventType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
413 return xxx_messageInfo_KpiEventType.Marshal(b, m, deterministic)
414}
William Kurkianad745652019-03-20 08:45:51 -0400415func (m *KpiEventType) XXX_Merge(src proto.Message) {
416 xxx_messageInfo_KpiEventType.Merge(m, src)
William Kurkian1b363f42019-03-12 15:28:12 -0400417}
418func (m *KpiEventType) XXX_Size() int {
419 return xxx_messageInfo_KpiEventType.Size(m)
420}
421func (m *KpiEventType) XXX_DiscardUnknown() {
422 xxx_messageInfo_KpiEventType.DiscardUnknown(m)
423}
424
425var xxx_messageInfo_KpiEventType proto.InternalMessageInfo
426
427//
428// Struct to convey a dictionary of metric metadata.
429type MetricMetaData struct {
430 Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
431 Ts float64 `protobuf:"fixed64,2,opt,name=ts,proto3" json:"ts,omitempty"`
432 LogicalDeviceId string `protobuf:"bytes,3,opt,name=logical_device_id,json=logicalDeviceId,proto3" json:"logical_device_id,omitempty"`
433 // (equivalent to the DPID that ONOS has
434 // for the VOLTHA device without the
435 // 'of:' prefix
436 SerialNo string `protobuf:"bytes,4,opt,name=serial_no,json=serialNo,proto3" json:"serial_no,omitempty"`
437 DeviceId string `protobuf:"bytes,5,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
438 Context map[string]string `protobuf:"bytes,6,rep,name=context,proto3" json:"context,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
439 XXX_NoUnkeyedLiteral struct{} `json:"-"`
440 XXX_unrecognized []byte `json:"-"`
441 XXX_sizecache int32 `json:"-"`
442}
443
444func (m *MetricMetaData) Reset() { *m = MetricMetaData{} }
445func (m *MetricMetaData) String() string { return proto.CompactTextString(m) }
446func (*MetricMetaData) ProtoMessage() {}
447func (*MetricMetaData) Descriptor() ([]byte, []int) {
William Kurkianad745652019-03-20 08:45:51 -0400448 return fileDescriptor_e63e6c07044fd2c4, []int{3}
William Kurkian1b363f42019-03-12 15:28:12 -0400449}
William Kurkianad745652019-03-20 08:45:51 -0400450
William Kurkian1b363f42019-03-12 15:28:12 -0400451func (m *MetricMetaData) XXX_Unmarshal(b []byte) error {
452 return xxx_messageInfo_MetricMetaData.Unmarshal(m, b)
453}
454func (m *MetricMetaData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
455 return xxx_messageInfo_MetricMetaData.Marshal(b, m, deterministic)
456}
William Kurkianad745652019-03-20 08:45:51 -0400457func (m *MetricMetaData) XXX_Merge(src proto.Message) {
458 xxx_messageInfo_MetricMetaData.Merge(m, src)
William Kurkian1b363f42019-03-12 15:28:12 -0400459}
460func (m *MetricMetaData) XXX_Size() int {
461 return xxx_messageInfo_MetricMetaData.Size(m)
462}
463func (m *MetricMetaData) XXX_DiscardUnknown() {
464 xxx_messageInfo_MetricMetaData.DiscardUnknown(m)
465}
466
467var xxx_messageInfo_MetricMetaData proto.InternalMessageInfo
468
469func (m *MetricMetaData) GetTitle() string {
470 if m != nil {
471 return m.Title
472 }
473 return ""
474}
475
476func (m *MetricMetaData) GetTs() float64 {
477 if m != nil {
478 return m.Ts
479 }
480 return 0
481}
482
483func (m *MetricMetaData) GetLogicalDeviceId() string {
484 if m != nil {
485 return m.LogicalDeviceId
486 }
487 return ""
488}
489
490func (m *MetricMetaData) GetSerialNo() string {
491 if m != nil {
492 return m.SerialNo
493 }
494 return ""
495}
496
497func (m *MetricMetaData) GetDeviceId() string {
498 if m != nil {
499 return m.DeviceId
500 }
501 return ""
502}
503
504func (m *MetricMetaData) GetContext() map[string]string {
505 if m != nil {
506 return m.Context
507 }
508 return nil
509}
510
511//
512// Struct to convey a dictionary of metric->value pairs. Typically used in
513// pure shared-timestamp or shared-timestamp + shared object prefix situations.
514type MetricValuePairs struct {
515 // Metric / value pairs.
516 Metrics map[string]float32 `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"fixed32,2,opt,name=value,proto3"`
517 XXX_NoUnkeyedLiteral struct{} `json:"-"`
518 XXX_unrecognized []byte `json:"-"`
519 XXX_sizecache int32 `json:"-"`
520}
521
522func (m *MetricValuePairs) Reset() { *m = MetricValuePairs{} }
523func (m *MetricValuePairs) String() string { return proto.CompactTextString(m) }
524func (*MetricValuePairs) ProtoMessage() {}
525func (*MetricValuePairs) Descriptor() ([]byte, []int) {
William Kurkianad745652019-03-20 08:45:51 -0400526 return fileDescriptor_e63e6c07044fd2c4, []int{4}
William Kurkian1b363f42019-03-12 15:28:12 -0400527}
William Kurkianad745652019-03-20 08:45:51 -0400528
William Kurkian1b363f42019-03-12 15:28:12 -0400529func (m *MetricValuePairs) XXX_Unmarshal(b []byte) error {
530 return xxx_messageInfo_MetricValuePairs.Unmarshal(m, b)
531}
532func (m *MetricValuePairs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
533 return xxx_messageInfo_MetricValuePairs.Marshal(b, m, deterministic)
534}
William Kurkianad745652019-03-20 08:45:51 -0400535func (m *MetricValuePairs) XXX_Merge(src proto.Message) {
536 xxx_messageInfo_MetricValuePairs.Merge(m, src)
William Kurkian1b363f42019-03-12 15:28:12 -0400537}
538func (m *MetricValuePairs) XXX_Size() int {
539 return xxx_messageInfo_MetricValuePairs.Size(m)
540}
541func (m *MetricValuePairs) XXX_DiscardUnknown() {
542 xxx_messageInfo_MetricValuePairs.DiscardUnknown(m)
543}
544
545var xxx_messageInfo_MetricValuePairs proto.InternalMessageInfo
546
547func (m *MetricValuePairs) GetMetrics() map[string]float32 {
548 if m != nil {
549 return m.Metrics
550 }
551 return nil
552}
553
554//
555// Struct to group metadata for a metric (or group of metrics) with the key-value
556// pairs of collected metrics
557type MetricInformation struct {
558 Metadata *MetricMetaData `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
559 Metrics map[string]float32 `protobuf:"bytes,2,rep,name=metrics,proto3" json:"metrics,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"fixed32,2,opt,name=value,proto3"`
560 XXX_NoUnkeyedLiteral struct{} `json:"-"`
561 XXX_unrecognized []byte `json:"-"`
562 XXX_sizecache int32 `json:"-"`
563}
564
565func (m *MetricInformation) Reset() { *m = MetricInformation{} }
566func (m *MetricInformation) String() string { return proto.CompactTextString(m) }
567func (*MetricInformation) ProtoMessage() {}
568func (*MetricInformation) Descriptor() ([]byte, []int) {
William Kurkianad745652019-03-20 08:45:51 -0400569 return fileDescriptor_e63e6c07044fd2c4, []int{5}
William Kurkian1b363f42019-03-12 15:28:12 -0400570}
William Kurkianad745652019-03-20 08:45:51 -0400571
William Kurkian1b363f42019-03-12 15:28:12 -0400572func (m *MetricInformation) XXX_Unmarshal(b []byte) error {
573 return xxx_messageInfo_MetricInformation.Unmarshal(m, b)
574}
575func (m *MetricInformation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
576 return xxx_messageInfo_MetricInformation.Marshal(b, m, deterministic)
577}
William Kurkianad745652019-03-20 08:45:51 -0400578func (m *MetricInformation) XXX_Merge(src proto.Message) {
579 xxx_messageInfo_MetricInformation.Merge(m, src)
William Kurkian1b363f42019-03-12 15:28:12 -0400580}
581func (m *MetricInformation) XXX_Size() int {
582 return xxx_messageInfo_MetricInformation.Size(m)
583}
584func (m *MetricInformation) XXX_DiscardUnknown() {
585 xxx_messageInfo_MetricInformation.DiscardUnknown(m)
586}
587
588var xxx_messageInfo_MetricInformation proto.InternalMessageInfo
589
590func (m *MetricInformation) GetMetadata() *MetricMetaData {
591 if m != nil {
592 return m.Metadata
593 }
594 return nil
595}
596
597func (m *MetricInformation) GetMetrics() map[string]float32 {
598 if m != nil {
599 return m.Metrics
600 }
601 return nil
602}
603
604//
605// Legacy KPI Event structured. In mid-August, the KPI event format was updated
606// to a more easily parsable format. See VOL-1140
607// for more information.
608type KpiEvent struct {
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300609 Type KpiEventType_Types `protobuf:"varint,1,opt,name=type,proto3,enum=voltha.KpiEventType_Types" json:"type,omitempty"`
William Kurkian1b363f42019-03-12 15:28:12 -0400610 Ts float32 `protobuf:"fixed32,2,opt,name=ts,proto3" json:"ts,omitempty"`
611 Prefixes map[string]*MetricValuePairs `protobuf:"bytes,3,rep,name=prefixes,proto3" json:"prefixes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
612 XXX_NoUnkeyedLiteral struct{} `json:"-"`
613 XXX_unrecognized []byte `json:"-"`
614 XXX_sizecache int32 `json:"-"`
615}
616
617func (m *KpiEvent) Reset() { *m = KpiEvent{} }
618func (m *KpiEvent) String() string { return proto.CompactTextString(m) }
619func (*KpiEvent) ProtoMessage() {}
620func (*KpiEvent) Descriptor() ([]byte, []int) {
William Kurkianad745652019-03-20 08:45:51 -0400621 return fileDescriptor_e63e6c07044fd2c4, []int{6}
William Kurkian1b363f42019-03-12 15:28:12 -0400622}
William Kurkianad745652019-03-20 08:45:51 -0400623
William Kurkian1b363f42019-03-12 15:28:12 -0400624func (m *KpiEvent) XXX_Unmarshal(b []byte) error {
625 return xxx_messageInfo_KpiEvent.Unmarshal(m, b)
626}
627func (m *KpiEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
628 return xxx_messageInfo_KpiEvent.Marshal(b, m, deterministic)
629}
William Kurkianad745652019-03-20 08:45:51 -0400630func (m *KpiEvent) XXX_Merge(src proto.Message) {
631 xxx_messageInfo_KpiEvent.Merge(m, src)
William Kurkian1b363f42019-03-12 15:28:12 -0400632}
633func (m *KpiEvent) XXX_Size() int {
634 return xxx_messageInfo_KpiEvent.Size(m)
635}
636func (m *KpiEvent) XXX_DiscardUnknown() {
637 xxx_messageInfo_KpiEvent.DiscardUnknown(m)
638}
639
640var xxx_messageInfo_KpiEvent proto.InternalMessageInfo
641
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300642func (m *KpiEvent) GetType() KpiEventType_Types {
William Kurkian1b363f42019-03-12 15:28:12 -0400643 if m != nil {
644 return m.Type
645 }
646 return KpiEventType_slice
647}
648
649func (m *KpiEvent) GetTs() float32 {
650 if m != nil {
651 return m.Ts
652 }
653 return 0
654}
655
656func (m *KpiEvent) GetPrefixes() map[string]*MetricValuePairs {
657 if m != nil {
658 return m.Prefixes
659 }
660 return nil
661}
662
663type KpiEvent2 struct {
664 // Type of KPI Event
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300665 Type KpiEventType_Types `protobuf:"varint,1,opt,name=type,proto3,enum=voltha.KpiEventType_Types" json:"type,omitempty"`
William Kurkian1b363f42019-03-12 15:28:12 -0400666 // Fields used when for slice:
667 Ts float64 `protobuf:"fixed64,2,opt,name=ts,proto3" json:"ts,omitempty"`
668 SliceData []*MetricInformation `protobuf:"bytes,3,rep,name=slice_data,json=sliceData,proto3" json:"slice_data,omitempty"`
669 XXX_NoUnkeyedLiteral struct{} `json:"-"`
670 XXX_unrecognized []byte `json:"-"`
671 XXX_sizecache int32 `json:"-"`
672}
673
674func (m *KpiEvent2) Reset() { *m = KpiEvent2{} }
675func (m *KpiEvent2) String() string { return proto.CompactTextString(m) }
676func (*KpiEvent2) ProtoMessage() {}
677func (*KpiEvent2) Descriptor() ([]byte, []int) {
William Kurkianad745652019-03-20 08:45:51 -0400678 return fileDescriptor_e63e6c07044fd2c4, []int{7}
William Kurkian1b363f42019-03-12 15:28:12 -0400679}
William Kurkianad745652019-03-20 08:45:51 -0400680
William Kurkian1b363f42019-03-12 15:28:12 -0400681func (m *KpiEvent2) XXX_Unmarshal(b []byte) error {
682 return xxx_messageInfo_KpiEvent2.Unmarshal(m, b)
683}
684func (m *KpiEvent2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
685 return xxx_messageInfo_KpiEvent2.Marshal(b, m, deterministic)
686}
William Kurkianad745652019-03-20 08:45:51 -0400687func (m *KpiEvent2) XXX_Merge(src proto.Message) {
688 xxx_messageInfo_KpiEvent2.Merge(m, src)
William Kurkian1b363f42019-03-12 15:28:12 -0400689}
690func (m *KpiEvent2) XXX_Size() int {
691 return xxx_messageInfo_KpiEvent2.Size(m)
692}
693func (m *KpiEvent2) XXX_DiscardUnknown() {
694 xxx_messageInfo_KpiEvent2.DiscardUnknown(m)
695}
696
697var xxx_messageInfo_KpiEvent2 proto.InternalMessageInfo
698
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300699func (m *KpiEvent2) GetType() KpiEventType_Types {
William Kurkian1b363f42019-03-12 15:28:12 -0400700 if m != nil {
701 return m.Type
702 }
703 return KpiEventType_slice
704}
705
706func (m *KpiEvent2) GetTs() float64 {
707 if m != nil {
708 return m.Ts
709 }
710 return 0
711}
712
713func (m *KpiEvent2) GetSliceData() []*MetricInformation {
714 if m != nil {
715 return m.SliceData
716 }
717 return nil
718}
719
720//
721// Identify to the area of the system impacted by the alarm
Devmalya Paulf98ca132019-07-09 06:14:19 -0400722// To be deprecated once python version of OpenOLT adapter
723// moves to the new event defination for device alarms
William Kurkian1b363f42019-03-12 15:28:12 -0400724type AlarmEventType struct {
725 XXX_NoUnkeyedLiteral struct{} `json:"-"`
726 XXX_unrecognized []byte `json:"-"`
727 XXX_sizecache int32 `json:"-"`
728}
729
730func (m *AlarmEventType) Reset() { *m = AlarmEventType{} }
731func (m *AlarmEventType) String() string { return proto.CompactTextString(m) }
732func (*AlarmEventType) ProtoMessage() {}
733func (*AlarmEventType) Descriptor() ([]byte, []int) {
William Kurkianad745652019-03-20 08:45:51 -0400734 return fileDescriptor_e63e6c07044fd2c4, []int{8}
William Kurkian1b363f42019-03-12 15:28:12 -0400735}
William Kurkianad745652019-03-20 08:45:51 -0400736
William Kurkian1b363f42019-03-12 15:28:12 -0400737func (m *AlarmEventType) XXX_Unmarshal(b []byte) error {
738 return xxx_messageInfo_AlarmEventType.Unmarshal(m, b)
739}
740func (m *AlarmEventType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
741 return xxx_messageInfo_AlarmEventType.Marshal(b, m, deterministic)
742}
William Kurkianad745652019-03-20 08:45:51 -0400743func (m *AlarmEventType) XXX_Merge(src proto.Message) {
744 xxx_messageInfo_AlarmEventType.Merge(m, src)
William Kurkian1b363f42019-03-12 15:28:12 -0400745}
746func (m *AlarmEventType) XXX_Size() int {
747 return xxx_messageInfo_AlarmEventType.Size(m)
748}
749func (m *AlarmEventType) XXX_DiscardUnknown() {
750 xxx_messageInfo_AlarmEventType.DiscardUnknown(m)
751}
752
753var xxx_messageInfo_AlarmEventType proto.InternalMessageInfo
754
755//
756// Identify to the functional category originating the alarm
Devmalya Paulf98ca132019-07-09 06:14:19 -0400757// To be deprecated once python version of OpenOLT adapter
758// as well as OpenONU adapter moves to the new event
759// defination for device alarms
William Kurkian1b363f42019-03-12 15:28:12 -0400760type AlarmEventCategory struct {
761 XXX_NoUnkeyedLiteral struct{} `json:"-"`
762 XXX_unrecognized []byte `json:"-"`
763 XXX_sizecache int32 `json:"-"`
764}
765
766func (m *AlarmEventCategory) Reset() { *m = AlarmEventCategory{} }
767func (m *AlarmEventCategory) String() string { return proto.CompactTextString(m) }
768func (*AlarmEventCategory) ProtoMessage() {}
769func (*AlarmEventCategory) Descriptor() ([]byte, []int) {
William Kurkianad745652019-03-20 08:45:51 -0400770 return fileDescriptor_e63e6c07044fd2c4, []int{9}
William Kurkian1b363f42019-03-12 15:28:12 -0400771}
William Kurkianad745652019-03-20 08:45:51 -0400772
William Kurkian1b363f42019-03-12 15:28:12 -0400773func (m *AlarmEventCategory) XXX_Unmarshal(b []byte) error {
774 return xxx_messageInfo_AlarmEventCategory.Unmarshal(m, b)
775}
776func (m *AlarmEventCategory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
777 return xxx_messageInfo_AlarmEventCategory.Marshal(b, m, deterministic)
778}
William Kurkianad745652019-03-20 08:45:51 -0400779func (m *AlarmEventCategory) XXX_Merge(src proto.Message) {
780 xxx_messageInfo_AlarmEventCategory.Merge(m, src)
William Kurkian1b363f42019-03-12 15:28:12 -0400781}
782func (m *AlarmEventCategory) XXX_Size() int {
783 return xxx_messageInfo_AlarmEventCategory.Size(m)
784}
785func (m *AlarmEventCategory) XXX_DiscardUnknown() {
786 xxx_messageInfo_AlarmEventCategory.DiscardUnknown(m)
787}
788
789var xxx_messageInfo_AlarmEventCategory proto.InternalMessageInfo
790
791//
792// Active state of the alarm
Devmalya Paulf98ca132019-07-09 06:14:19 -0400793// To be deprecated once python version of OpenOLT adapter
794// as well as OpenONU adapter moves to the new event
795// defination for device alarms
William Kurkian1b363f42019-03-12 15:28:12 -0400796type AlarmEventState struct {
797 XXX_NoUnkeyedLiteral struct{} `json:"-"`
798 XXX_unrecognized []byte `json:"-"`
799 XXX_sizecache int32 `json:"-"`
800}
801
802func (m *AlarmEventState) Reset() { *m = AlarmEventState{} }
803func (m *AlarmEventState) String() string { return proto.CompactTextString(m) }
804func (*AlarmEventState) ProtoMessage() {}
805func (*AlarmEventState) Descriptor() ([]byte, []int) {
William Kurkianad745652019-03-20 08:45:51 -0400806 return fileDescriptor_e63e6c07044fd2c4, []int{10}
William Kurkian1b363f42019-03-12 15:28:12 -0400807}
William Kurkianad745652019-03-20 08:45:51 -0400808
William Kurkian1b363f42019-03-12 15:28:12 -0400809func (m *AlarmEventState) XXX_Unmarshal(b []byte) error {
810 return xxx_messageInfo_AlarmEventState.Unmarshal(m, b)
811}
812func (m *AlarmEventState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
813 return xxx_messageInfo_AlarmEventState.Marshal(b, m, deterministic)
814}
William Kurkianad745652019-03-20 08:45:51 -0400815func (m *AlarmEventState) XXX_Merge(src proto.Message) {
816 xxx_messageInfo_AlarmEventState.Merge(m, src)
William Kurkian1b363f42019-03-12 15:28:12 -0400817}
818func (m *AlarmEventState) XXX_Size() int {
819 return xxx_messageInfo_AlarmEventState.Size(m)
820}
821func (m *AlarmEventState) XXX_DiscardUnknown() {
822 xxx_messageInfo_AlarmEventState.DiscardUnknown(m)
823}
824
825var xxx_messageInfo_AlarmEventState proto.InternalMessageInfo
826
827//
828// Identify the overall impact of the alarm on the system
Devmalya Paulf98ca132019-07-09 06:14:19 -0400829// To be deprecated once python version of OpenOLT adapter
830// as well as OpenONU adapter moves to the new event
831// defination for device alarms
William Kurkian1b363f42019-03-12 15:28:12 -0400832type AlarmEventSeverity struct {
833 XXX_NoUnkeyedLiteral struct{} `json:"-"`
834 XXX_unrecognized []byte `json:"-"`
835 XXX_sizecache int32 `json:"-"`
836}
837
838func (m *AlarmEventSeverity) Reset() { *m = AlarmEventSeverity{} }
839func (m *AlarmEventSeverity) String() string { return proto.CompactTextString(m) }
840func (*AlarmEventSeverity) ProtoMessage() {}
841func (*AlarmEventSeverity) Descriptor() ([]byte, []int) {
William Kurkianad745652019-03-20 08:45:51 -0400842 return fileDescriptor_e63e6c07044fd2c4, []int{11}
William Kurkian1b363f42019-03-12 15:28:12 -0400843}
William Kurkianad745652019-03-20 08:45:51 -0400844
William Kurkian1b363f42019-03-12 15:28:12 -0400845func (m *AlarmEventSeverity) XXX_Unmarshal(b []byte) error {
846 return xxx_messageInfo_AlarmEventSeverity.Unmarshal(m, b)
847}
848func (m *AlarmEventSeverity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
849 return xxx_messageInfo_AlarmEventSeverity.Marshal(b, m, deterministic)
850}
William Kurkianad745652019-03-20 08:45:51 -0400851func (m *AlarmEventSeverity) XXX_Merge(src proto.Message) {
852 xxx_messageInfo_AlarmEventSeverity.Merge(m, src)
William Kurkian1b363f42019-03-12 15:28:12 -0400853}
854func (m *AlarmEventSeverity) XXX_Size() int {
855 return xxx_messageInfo_AlarmEventSeverity.Size(m)
856}
857func (m *AlarmEventSeverity) XXX_DiscardUnknown() {
858 xxx_messageInfo_AlarmEventSeverity.DiscardUnknown(m)
859}
860
861var xxx_messageInfo_AlarmEventSeverity proto.InternalMessageInfo
862
863//
Devmalya Paulf98ca132019-07-09 06:14:19 -0400864// To be deprecated once python version of OpenOLT adapter
865// as well as OpenONU adapter moves to the new event
866// defination for device alarms
William Kurkian1b363f42019-03-12 15:28:12 -0400867type AlarmEvent struct {
868 // Unique ID for this alarm. e.g. voltha.some_olt.1234
869 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
870 // Refers to the area of the system impacted by the alarm
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300871 Type AlarmEventType_Types `protobuf:"varint,2,opt,name=type,proto3,enum=voltha.AlarmEventType_Types" json:"type,omitempty"`
William Kurkian1b363f42019-03-12 15:28:12 -0400872 // Refers to functional category of the alarm
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300873 Category AlarmEventCategory_Types `protobuf:"varint,3,opt,name=category,proto3,enum=voltha.AlarmEventCategory_Types" json:"category,omitempty"`
William Kurkian1b363f42019-03-12 15:28:12 -0400874 // Current active state of the alarm
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300875 State AlarmEventState_Types `protobuf:"varint,4,opt,name=state,proto3,enum=voltha.AlarmEventState_Types" json:"state,omitempty"`
William Kurkian1b363f42019-03-12 15:28:12 -0400876 // Overall impact of the alarm on the system
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300877 Severity AlarmEventSeverity_Types `protobuf:"varint,5,opt,name=severity,proto3,enum=voltha.AlarmEventSeverity_Types" json:"severity,omitempty"`
William Kurkian1b363f42019-03-12 15:28:12 -0400878 // Timestamp at which the alarm was first raised
879 RaisedTs float32 `protobuf:"fixed32,6,opt,name=raised_ts,json=raisedTs,proto3" json:"raised_ts,omitempty"`
880 // Timestamp at which the alarm was reported
881 ReportedTs float32 `protobuf:"fixed32,7,opt,name=reported_ts,json=reportedTs,proto3" json:"reported_ts,omitempty"`
882 // Timestamp at which the alarm has changed since it was raised
883 ChangedTs float32 `protobuf:"fixed32,8,opt,name=changed_ts,json=changedTs,proto3" json:"changed_ts,omitempty"`
884 // Identifier of the originating resource of the alarm
885 ResourceId string `protobuf:"bytes,9,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
886 // Textual explanation of the alarm
887 Description string `protobuf:"bytes,10,opt,name=description,proto3" json:"description,omitempty"`
888 // Key/Value storage for extra information that may give context to the alarm
889 Context map[string]string `protobuf:"bytes,11,rep,name=context,proto3" json:"context,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
890 // logical device id
891 LogicalDeviceId string `protobuf:"bytes,12,opt,name=logical_device_id,json=logicalDeviceId,proto3" json:"logical_device_id,omitempty"`
892 // alarm_type name indicates clearly the name of the alarm
893 AlarmTypeName string `protobuf:"bytes,13,opt,name=alarm_type_name,json=alarmTypeName,proto3" json:"alarm_type_name,omitempty"`
894 XXX_NoUnkeyedLiteral struct{} `json:"-"`
895 XXX_unrecognized []byte `json:"-"`
896 XXX_sizecache int32 `json:"-"`
897}
898
899func (m *AlarmEvent) Reset() { *m = AlarmEvent{} }
900func (m *AlarmEvent) String() string { return proto.CompactTextString(m) }
901func (*AlarmEvent) ProtoMessage() {}
902func (*AlarmEvent) Descriptor() ([]byte, []int) {
William Kurkianad745652019-03-20 08:45:51 -0400903 return fileDescriptor_e63e6c07044fd2c4, []int{12}
William Kurkian1b363f42019-03-12 15:28:12 -0400904}
William Kurkianad745652019-03-20 08:45:51 -0400905
William Kurkian1b363f42019-03-12 15:28:12 -0400906func (m *AlarmEvent) XXX_Unmarshal(b []byte) error {
907 return xxx_messageInfo_AlarmEvent.Unmarshal(m, b)
908}
909func (m *AlarmEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
910 return xxx_messageInfo_AlarmEvent.Marshal(b, m, deterministic)
911}
William Kurkianad745652019-03-20 08:45:51 -0400912func (m *AlarmEvent) XXX_Merge(src proto.Message) {
913 xxx_messageInfo_AlarmEvent.Merge(m, src)
William Kurkian1b363f42019-03-12 15:28:12 -0400914}
915func (m *AlarmEvent) XXX_Size() int {
916 return xxx_messageInfo_AlarmEvent.Size(m)
917}
918func (m *AlarmEvent) XXX_DiscardUnknown() {
919 xxx_messageInfo_AlarmEvent.DiscardUnknown(m)
920}
921
922var xxx_messageInfo_AlarmEvent proto.InternalMessageInfo
923
924func (m *AlarmEvent) GetId() string {
925 if m != nil {
926 return m.Id
927 }
928 return ""
929}
930
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300931func (m *AlarmEvent) GetType() AlarmEventType_Types {
William Kurkian1b363f42019-03-12 15:28:12 -0400932 if m != nil {
933 return m.Type
934 }
935 return AlarmEventType_COMMUNICATION
936}
937
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300938func (m *AlarmEvent) GetCategory() AlarmEventCategory_Types {
William Kurkian1b363f42019-03-12 15:28:12 -0400939 if m != nil {
940 return m.Category
941 }
942 return AlarmEventCategory_PON
943}
944
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300945func (m *AlarmEvent) GetState() AlarmEventState_Types {
William Kurkian1b363f42019-03-12 15:28:12 -0400946 if m != nil {
947 return m.State
948 }
949 return AlarmEventState_RAISED
950}
951
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300952func (m *AlarmEvent) GetSeverity() AlarmEventSeverity_Types {
William Kurkian1b363f42019-03-12 15:28:12 -0400953 if m != nil {
954 return m.Severity
955 }
956 return AlarmEventSeverity_INDETERMINATE
957}
958
959func (m *AlarmEvent) GetRaisedTs() float32 {
960 if m != nil {
961 return m.RaisedTs
962 }
963 return 0
964}
965
966func (m *AlarmEvent) GetReportedTs() float32 {
967 if m != nil {
968 return m.ReportedTs
969 }
970 return 0
971}
972
973func (m *AlarmEvent) GetChangedTs() float32 {
974 if m != nil {
975 return m.ChangedTs
976 }
977 return 0
978}
979
980func (m *AlarmEvent) GetResourceId() string {
981 if m != nil {
982 return m.ResourceId
983 }
984 return ""
985}
986
987func (m *AlarmEvent) GetDescription() string {
988 if m != nil {
989 return m.Description
990 }
991 return ""
992}
993
994func (m *AlarmEvent) GetContext() map[string]string {
995 if m != nil {
996 return m.Context
997 }
998 return nil
999}
1000
1001func (m *AlarmEvent) GetLogicalDeviceId() string {
1002 if m != nil {
1003 return m.LogicalDeviceId
1004 }
1005 return ""
1006}
1007
1008func (m *AlarmEvent) GetAlarmTypeName() string {
1009 if m != nil {
1010 return m.AlarmTypeName
1011 }
1012 return ""
1013}
1014
Devmalya Paulf98ca132019-07-09 06:14:19 -04001015//
1016// Describes the events specific to device
1017type DeviceEvent struct {
1018 // Identifier of the originating resource of the event, for ex: device_id
1019 ResourceId string `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
1020 // device_event_name indicates clearly the name of the device event
1021 DeviceEventName string `protobuf:"bytes,2,opt,name=device_event_name,json=deviceEventName,proto3" json:"device_event_name,omitempty"`
1022 // Textual explanation of the device event
1023 Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
1024 // Key/Value storage for extra information that may give context to the event
1025 Context map[string]string `protobuf:"bytes,4,rep,name=context,proto3" json:"context,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
1026 XXX_NoUnkeyedLiteral struct{} `json:"-"`
1027 XXX_unrecognized []byte `json:"-"`
1028 XXX_sizecache int32 `json:"-"`
1029}
1030
1031func (m *DeviceEvent) Reset() { *m = DeviceEvent{} }
1032func (m *DeviceEvent) String() string { return proto.CompactTextString(m) }
1033func (*DeviceEvent) ProtoMessage() {}
1034func (*DeviceEvent) Descriptor() ([]byte, []int) {
1035 return fileDescriptor_e63e6c07044fd2c4, []int{13}
1036}
1037
1038func (m *DeviceEvent) XXX_Unmarshal(b []byte) error {
1039 return xxx_messageInfo_DeviceEvent.Unmarshal(m, b)
1040}
1041func (m *DeviceEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1042 return xxx_messageInfo_DeviceEvent.Marshal(b, m, deterministic)
1043}
1044func (m *DeviceEvent) XXX_Merge(src proto.Message) {
1045 xxx_messageInfo_DeviceEvent.Merge(m, src)
1046}
1047func (m *DeviceEvent) XXX_Size() int {
1048 return xxx_messageInfo_DeviceEvent.Size(m)
1049}
1050func (m *DeviceEvent) XXX_DiscardUnknown() {
1051 xxx_messageInfo_DeviceEvent.DiscardUnknown(m)
1052}
1053
1054var xxx_messageInfo_DeviceEvent proto.InternalMessageInfo
1055
1056func (m *DeviceEvent) GetResourceId() string {
1057 if m != nil {
1058 return m.ResourceId
1059 }
1060 return ""
1061}
1062
1063func (m *DeviceEvent) GetDeviceEventName() string {
1064 if m != nil {
1065 return m.DeviceEventName
1066 }
1067 return ""
1068}
1069
1070func (m *DeviceEvent) GetDescription() string {
1071 if m != nil {
1072 return m.Description
1073 }
1074 return ""
1075}
1076
1077func (m *DeviceEvent) GetContext() map[string]string {
1078 if m != nil {
1079 return m.Context
1080 }
1081 return nil
1082}
1083
1084//
1085// Identify the area of the system impacted by the event.
1086type EventCategory struct {
1087 XXX_NoUnkeyedLiteral struct{} `json:"-"`
1088 XXX_unrecognized []byte `json:"-"`
1089 XXX_sizecache int32 `json:"-"`
1090}
1091
1092func (m *EventCategory) Reset() { *m = EventCategory{} }
1093func (m *EventCategory) String() string { return proto.CompactTextString(m) }
1094func (*EventCategory) ProtoMessage() {}
1095func (*EventCategory) Descriptor() ([]byte, []int) {
1096 return fileDescriptor_e63e6c07044fd2c4, []int{14}
1097}
1098
1099func (m *EventCategory) XXX_Unmarshal(b []byte) error {
1100 return xxx_messageInfo_EventCategory.Unmarshal(m, b)
1101}
1102func (m *EventCategory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1103 return xxx_messageInfo_EventCategory.Marshal(b, m, deterministic)
1104}
1105func (m *EventCategory) XXX_Merge(src proto.Message) {
1106 xxx_messageInfo_EventCategory.Merge(m, src)
1107}
1108func (m *EventCategory) XXX_Size() int {
1109 return xxx_messageInfo_EventCategory.Size(m)
1110}
1111func (m *EventCategory) XXX_DiscardUnknown() {
1112 xxx_messageInfo_EventCategory.DiscardUnknown(m)
1113}
1114
1115var xxx_messageInfo_EventCategory proto.InternalMessageInfo
1116
1117//
1118// Identify the functional category originating the event
1119type EventSubCategory struct {
1120 XXX_NoUnkeyedLiteral struct{} `json:"-"`
1121 XXX_unrecognized []byte `json:"-"`
1122 XXX_sizecache int32 `json:"-"`
1123}
1124
1125func (m *EventSubCategory) Reset() { *m = EventSubCategory{} }
1126func (m *EventSubCategory) String() string { return proto.CompactTextString(m) }
1127func (*EventSubCategory) ProtoMessage() {}
1128func (*EventSubCategory) Descriptor() ([]byte, []int) {
1129 return fileDescriptor_e63e6c07044fd2c4, []int{15}
1130}
1131
1132func (m *EventSubCategory) XXX_Unmarshal(b []byte) error {
1133 return xxx_messageInfo_EventSubCategory.Unmarshal(m, b)
1134}
1135func (m *EventSubCategory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1136 return xxx_messageInfo_EventSubCategory.Marshal(b, m, deterministic)
1137}
1138func (m *EventSubCategory) XXX_Merge(src proto.Message) {
1139 xxx_messageInfo_EventSubCategory.Merge(m, src)
1140}
1141func (m *EventSubCategory) XXX_Size() int {
1142 return xxx_messageInfo_EventSubCategory.Size(m)
1143}
1144func (m *EventSubCategory) XXX_DiscardUnknown() {
1145 xxx_messageInfo_EventSubCategory.DiscardUnknown(m)
1146}
1147
1148var xxx_messageInfo_EventSubCategory proto.InternalMessageInfo
1149
1150//
1151// Identify the type of event
1152type EventType struct {
1153 XXX_NoUnkeyedLiteral struct{} `json:"-"`
1154 XXX_unrecognized []byte `json:"-"`
1155 XXX_sizecache int32 `json:"-"`
1156}
1157
1158func (m *EventType) Reset() { *m = EventType{} }
1159func (m *EventType) String() string { return proto.CompactTextString(m) }
1160func (*EventType) ProtoMessage() {}
1161func (*EventType) Descriptor() ([]byte, []int) {
1162 return fileDescriptor_e63e6c07044fd2c4, []int{16}
1163}
1164
1165func (m *EventType) XXX_Unmarshal(b []byte) error {
1166 return xxx_messageInfo_EventType.Unmarshal(m, b)
1167}
1168func (m *EventType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1169 return xxx_messageInfo_EventType.Marshal(b, m, deterministic)
1170}
1171func (m *EventType) XXX_Merge(src proto.Message) {
1172 xxx_messageInfo_EventType.Merge(m, src)
1173}
1174func (m *EventType) XXX_Size() int {
1175 return xxx_messageInfo_EventType.Size(m)
1176}
1177func (m *EventType) XXX_DiscardUnknown() {
1178 xxx_messageInfo_EventType.DiscardUnknown(m)
1179}
1180
1181var xxx_messageInfo_EventType proto.InternalMessageInfo
1182
1183//
1184// Identify the functional category originating the event
1185type EventHeader struct {
1186 // Unique ID for this event. e.g. voltha.some_olt.1234
1187 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
1188 // Refers to the functional area affect by the event
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +03001189 Category EventCategory_Types `protobuf:"varint,2,opt,name=category,proto3,enum=voltha.EventCategory_Types" json:"category,omitempty"`
Devmalya Paulf98ca132019-07-09 06:14:19 -04001190 // Refers to functional category of the event
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +03001191 SubCategory EventSubCategory_Types `protobuf:"varint,3,opt,name=sub_category,json=subCategory,proto3,enum=voltha.EventSubCategory_Types" json:"sub_category,omitempty"`
Devmalya Paulf98ca132019-07-09 06:14:19 -04001192 // Refers to the type of the event
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +03001193 Type EventType_Types `protobuf:"varint,4,opt,name=type,proto3,enum=voltha.EventType_Types" json:"type,omitempty"`
Devmalya Paulf98ca132019-07-09 06:14:19 -04001194 // The version identifier for this event type, thus allowing each
1195 // event type to evolve independently. The version should be in the
1196 // format “MAJOR.MINOR” format and minor changes must only be additive
1197 // and non-breaking.
1198 TypeVersion string `protobuf:"bytes,5,opt,name=type_version,json=typeVersion,proto3" json:"type_version,omitempty"`
1199 // Timestamp at which the event was first raised.
1200 // This represents the UTC time stamp since epoch (in seconds) when the
1201 // the event was first raised from the source entity.
1202 // If the source entity doesn't send the raised_ts, this shall be set
1203 // to timestamp when the event was received.
1204 RaisedTs float32 `protobuf:"fixed32,6,opt,name=raised_ts,json=raisedTs,proto3" json:"raised_ts,omitempty"`
1205 // Timestamp at which the event was reported.
1206 // This represents the UTC time stamp since epoch (in seconds) when the
1207 // the event was reported (this time stamp is >= raised_ts).
1208 // If the source entity that reported this event doesn't send the
1209 // reported_ts, this shall be set to the same value as raised_ts.
1210 ReportedTs float32 `protobuf:"fixed32,7,opt,name=reported_ts,json=reportedTs,proto3" json:"reported_ts,omitempty"`
1211 XXX_NoUnkeyedLiteral struct{} `json:"-"`
1212 XXX_unrecognized []byte `json:"-"`
1213 XXX_sizecache int32 `json:"-"`
1214}
1215
1216func (m *EventHeader) Reset() { *m = EventHeader{} }
1217func (m *EventHeader) String() string { return proto.CompactTextString(m) }
1218func (*EventHeader) ProtoMessage() {}
1219func (*EventHeader) Descriptor() ([]byte, []int) {
1220 return fileDescriptor_e63e6c07044fd2c4, []int{17}
1221}
1222
1223func (m *EventHeader) XXX_Unmarshal(b []byte) error {
1224 return xxx_messageInfo_EventHeader.Unmarshal(m, b)
1225}
1226func (m *EventHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1227 return xxx_messageInfo_EventHeader.Marshal(b, m, deterministic)
1228}
1229func (m *EventHeader) XXX_Merge(src proto.Message) {
1230 xxx_messageInfo_EventHeader.Merge(m, src)
1231}
1232func (m *EventHeader) XXX_Size() int {
1233 return xxx_messageInfo_EventHeader.Size(m)
1234}
1235func (m *EventHeader) XXX_DiscardUnknown() {
1236 xxx_messageInfo_EventHeader.DiscardUnknown(m)
1237}
1238
1239var xxx_messageInfo_EventHeader proto.InternalMessageInfo
1240
1241func (m *EventHeader) GetId() string {
1242 if m != nil {
1243 return m.Id
1244 }
1245 return ""
1246}
1247
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +03001248func (m *EventHeader) GetCategory() EventCategory_Types {
Devmalya Paulf98ca132019-07-09 06:14:19 -04001249 if m != nil {
1250 return m.Category
1251 }
1252 return EventCategory_COMMUNICATION
1253}
1254
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +03001255func (m *EventHeader) GetSubCategory() EventSubCategory_Types {
Devmalya Paulf98ca132019-07-09 06:14:19 -04001256 if m != nil {
1257 return m.SubCategory
1258 }
1259 return EventSubCategory_PON
1260}
1261
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +03001262func (m *EventHeader) GetType() EventType_Types {
Devmalya Paulf98ca132019-07-09 06:14:19 -04001263 if m != nil {
1264 return m.Type
1265 }
1266 return EventType_CONFIG_EVENT
1267}
1268
1269func (m *EventHeader) GetTypeVersion() string {
1270 if m != nil {
1271 return m.TypeVersion
1272 }
1273 return ""
1274}
1275
1276func (m *EventHeader) GetRaisedTs() float32 {
1277 if m != nil {
1278 return m.RaisedTs
1279 }
1280 return 0
1281}
1282
1283func (m *EventHeader) GetReportedTs() float32 {
1284 if m != nil {
1285 return m.ReportedTs
1286 }
1287 return 0
1288}
1289
1290//
1291// Event Structure
1292type Event struct {
1293 // event header
1294 Header *EventHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
1295 // oneof event types referred by EventType.
1296 //
1297 // Types that are valid to be assigned to EventType:
1298 // *Event_ConfigEvent
1299 // *Event_KpiEvent
1300 // *Event_KpiEvent2
1301 // *Event_DeviceEvent
1302 EventType isEvent_EventType `protobuf_oneof:"event_type"`
1303 XXX_NoUnkeyedLiteral struct{} `json:"-"`
1304 XXX_unrecognized []byte `json:"-"`
1305 XXX_sizecache int32 `json:"-"`
1306}
1307
1308func (m *Event) Reset() { *m = Event{} }
1309func (m *Event) String() string { return proto.CompactTextString(m) }
1310func (*Event) ProtoMessage() {}
1311func (*Event) Descriptor() ([]byte, []int) {
1312 return fileDescriptor_e63e6c07044fd2c4, []int{18}
1313}
1314
1315func (m *Event) XXX_Unmarshal(b []byte) error {
1316 return xxx_messageInfo_Event.Unmarshal(m, b)
1317}
1318func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1319 return xxx_messageInfo_Event.Marshal(b, m, deterministic)
1320}
1321func (m *Event) XXX_Merge(src proto.Message) {
1322 xxx_messageInfo_Event.Merge(m, src)
1323}
1324func (m *Event) XXX_Size() int {
1325 return xxx_messageInfo_Event.Size(m)
1326}
1327func (m *Event) XXX_DiscardUnknown() {
1328 xxx_messageInfo_Event.DiscardUnknown(m)
1329}
1330
1331var xxx_messageInfo_Event proto.InternalMessageInfo
1332
1333func (m *Event) GetHeader() *EventHeader {
1334 if m != nil {
1335 return m.Header
1336 }
1337 return nil
1338}
1339
1340type isEvent_EventType interface {
1341 isEvent_EventType()
1342}
1343
1344type Event_ConfigEvent struct {
1345 ConfigEvent *ConfigEvent `protobuf:"bytes,2,opt,name=config_event,json=configEvent,proto3,oneof"`
1346}
1347
1348type Event_KpiEvent struct {
1349 KpiEvent *KpiEvent `protobuf:"bytes,3,opt,name=kpi_event,json=kpiEvent,proto3,oneof"`
1350}
1351
1352type Event_KpiEvent2 struct {
1353 KpiEvent2 *KpiEvent2 `protobuf:"bytes,4,opt,name=kpi_event2,json=kpiEvent2,proto3,oneof"`
1354}
1355
1356type Event_DeviceEvent struct {
1357 DeviceEvent *DeviceEvent `protobuf:"bytes,5,opt,name=device_event,json=deviceEvent,proto3,oneof"`
1358}
1359
1360func (*Event_ConfigEvent) isEvent_EventType() {}
1361
1362func (*Event_KpiEvent) isEvent_EventType() {}
1363
1364func (*Event_KpiEvent2) isEvent_EventType() {}
1365
1366func (*Event_DeviceEvent) isEvent_EventType() {}
1367
1368func (m *Event) GetEventType() isEvent_EventType {
1369 if m != nil {
1370 return m.EventType
1371 }
1372 return nil
1373}
1374
1375func (m *Event) GetConfigEvent() *ConfigEvent {
1376 if x, ok := m.GetEventType().(*Event_ConfigEvent); ok {
1377 return x.ConfigEvent
1378 }
1379 return nil
1380}
1381
1382func (m *Event) GetKpiEvent() *KpiEvent {
1383 if x, ok := m.GetEventType().(*Event_KpiEvent); ok {
1384 return x.KpiEvent
1385 }
1386 return nil
1387}
1388
1389func (m *Event) GetKpiEvent2() *KpiEvent2 {
1390 if x, ok := m.GetEventType().(*Event_KpiEvent2); ok {
1391 return x.KpiEvent2
1392 }
1393 return nil
1394}
1395
1396func (m *Event) GetDeviceEvent() *DeviceEvent {
1397 if x, ok := m.GetEventType().(*Event_DeviceEvent); ok {
1398 return x.DeviceEvent
1399 }
1400 return nil
1401}
1402
1403// XXX_OneofWrappers is for the internal use of the proto package.
1404func (*Event) XXX_OneofWrappers() []interface{} {
1405 return []interface{}{
1406 (*Event_ConfigEvent)(nil),
1407 (*Event_KpiEvent)(nil),
1408 (*Event_KpiEvent2)(nil),
1409 (*Event_DeviceEvent)(nil),
1410 }
1411}
1412
William Kurkian1b363f42019-03-12 15:28:12 -04001413func init() {
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +03001414 proto.RegisterEnum("voltha.ConfigEventType_Types", ConfigEventType_Types_name, ConfigEventType_Types_value)
1415 proto.RegisterEnum("voltha.KpiEventType_Types", KpiEventType_Types_name, KpiEventType_Types_value)
1416 proto.RegisterEnum("voltha.AlarmEventType_Types", AlarmEventType_Types_name, AlarmEventType_Types_value)
1417 proto.RegisterEnum("voltha.AlarmEventCategory_Types", AlarmEventCategory_Types_name, AlarmEventCategory_Types_value)
1418 proto.RegisterEnum("voltha.AlarmEventState_Types", AlarmEventState_Types_name, AlarmEventState_Types_value)
1419 proto.RegisterEnum("voltha.AlarmEventSeverity_Types", AlarmEventSeverity_Types_name, AlarmEventSeverity_Types_value)
1420 proto.RegisterEnum("voltha.EventCategory_Types", EventCategory_Types_name, EventCategory_Types_value)
1421 proto.RegisterEnum("voltha.EventSubCategory_Types", EventSubCategory_Types_name, EventSubCategory_Types_value)
1422 proto.RegisterEnum("voltha.EventType_Types", EventType_Types_name, EventType_Types_value)
William Kurkian1b363f42019-03-12 15:28:12 -04001423 proto.RegisterType((*ConfigEventType)(nil), "voltha.ConfigEventType")
1424 proto.RegisterType((*ConfigEvent)(nil), "voltha.ConfigEvent")
1425 proto.RegisterType((*KpiEventType)(nil), "voltha.KpiEventType")
1426 proto.RegisterType((*MetricMetaData)(nil), "voltha.MetricMetaData")
1427 proto.RegisterMapType((map[string]string)(nil), "voltha.MetricMetaData.ContextEntry")
1428 proto.RegisterType((*MetricValuePairs)(nil), "voltha.MetricValuePairs")
1429 proto.RegisterMapType((map[string]float32)(nil), "voltha.MetricValuePairs.MetricsEntry")
1430 proto.RegisterType((*MetricInformation)(nil), "voltha.MetricInformation")
1431 proto.RegisterMapType((map[string]float32)(nil), "voltha.MetricInformation.MetricsEntry")
1432 proto.RegisterType((*KpiEvent)(nil), "voltha.KpiEvent")
1433 proto.RegisterMapType((map[string]*MetricValuePairs)(nil), "voltha.KpiEvent.PrefixesEntry")
1434 proto.RegisterType((*KpiEvent2)(nil), "voltha.KpiEvent2")
1435 proto.RegisterType((*AlarmEventType)(nil), "voltha.AlarmEventType")
1436 proto.RegisterType((*AlarmEventCategory)(nil), "voltha.AlarmEventCategory")
1437 proto.RegisterType((*AlarmEventState)(nil), "voltha.AlarmEventState")
1438 proto.RegisterType((*AlarmEventSeverity)(nil), "voltha.AlarmEventSeverity")
1439 proto.RegisterType((*AlarmEvent)(nil), "voltha.AlarmEvent")
1440 proto.RegisterMapType((map[string]string)(nil), "voltha.AlarmEvent.ContextEntry")
Devmalya Paulf98ca132019-07-09 06:14:19 -04001441 proto.RegisterType((*DeviceEvent)(nil), "voltha.DeviceEvent")
1442 proto.RegisterMapType((map[string]string)(nil), "voltha.DeviceEvent.ContextEntry")
1443 proto.RegisterType((*EventCategory)(nil), "voltha.EventCategory")
1444 proto.RegisterType((*EventSubCategory)(nil), "voltha.EventSubCategory")
1445 proto.RegisterType((*EventType)(nil), "voltha.EventType")
1446 proto.RegisterType((*EventHeader)(nil), "voltha.EventHeader")
1447 proto.RegisterType((*Event)(nil), "voltha.Event")
William Kurkian1b363f42019-03-12 15:28:12 -04001448}
1449
William Kurkianad745652019-03-20 08:45:51 -04001450func init() { proto.RegisterFile("voltha_protos/events.proto", fileDescriptor_e63e6c07044fd2c4) }
William Kurkian1b363f42019-03-12 15:28:12 -04001451
William Kurkianad745652019-03-20 08:45:51 -04001452var fileDescriptor_e63e6c07044fd2c4 = []byte{
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +03001453 // 1334 bytes of a gzipped FileDescriptorProto
1454 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0xdd, 0x72, 0xdb, 0x44,
1455 0x14, 0xb6, 0xe4, 0x9f, 0xd8, 0x47, 0x4e, 0xa2, 0x6c, 0x19, 0x30, 0xee, 0x5f, 0x10, 0x43, 0x27,
1456 0xd3, 0x0e, 0x36, 0x38, 0xcc, 0x10, 0x02, 0x0c, 0xb8, 0x8e, 0x68, 0xd4, 0xd6, 0x72, 0x90, 0x9d,
1457 0x74, 0xe0, 0xc6, 0xb3, 0xb1, 0x36, 0xb6, 0x26, 0xb6, 0xe4, 0x91, 0x36, 0xa6, 0x79, 0x00, 0xae,
1458 0xb9, 0xe4, 0x82, 0x07, 0xe0, 0x49, 0x78, 0x0c, 0x5e, 0x80, 0x6b, 0x1e, 0x80, 0xd9, 0x1f, 0x59,
1459 0x92, 0xe3, 0xc2, 0x45, 0xa6, 0x5c, 0x79, 0x75, 0xfe, 0xf6, 0x3b, 0xdf, 0x9e, 0x73, 0x76, 0x0d,
1460 0xf5, 0x45, 0x30, 0xa5, 0x13, 0x3c, 0x9c, 0x87, 0x01, 0x0d, 0xa2, 0x26, 0x59, 0x10, 0x9f, 0x46,
1461 0x0d, 0xfe, 0x85, 0x4a, 0x42, 0x57, 0xaf, 0x65, 0x6d, 0x66, 0x84, 0x62, 0x61, 0x51, 0xbf, 0x37,
1462 0x0e, 0x82, 0xf1, 0x94, 0x34,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 0x1c, 0x3e, 0x5e, 0x53, 0xf7,
1507 0xc9, 0x0a, 0x77, 0xd2, 0x4f, 0xd8, 0xb2, 0x2d, 0x23, 0x49, 0x0e, 0x9f, 0xbc, 0x6b, 0xb7, 0x8c,
1508 0xe9, 0x8b, 0xb7, 0x8c, 0x3d, 0xd8, 0xe0, 0x0e, 0xb1, 0x17, 0x11, 0x77, 0x48, 0xa3, 0x5a, 0x89,
1509 0x37, 0x64, 0x59, 0x08, 0x06, 0x11, 0x7a, 0x08, 0x5a, 0x48, 0xe6, 0x41, 0x48, 0x85, 0x7a, 0x83,
1510 0xab, 0x21, 0x16, 0x0d, 0x22, 0x74, 0x1f, 0x60, 0x34, 0xc1, 0xfe, 0x58, 0xe8, 0xcb, 0x5c, 0x5f,
1511 0x91, 0x92, 0xd8, 0x3f, 0x0a, 0xae, 0x42, 0x71, 0x2f, 0x54, 0x38, 0xb1, 0x10, 0x8b, 0x2c, 0x17,
1512 0xed, 0x82, 0xe6, 0x92, 0x68, 0x14, 0x7a, 0x73, 0x56, 0xf6, 0x35, 0xe0, 0x06, 0x69, 0x11, 0xfa,
1513 0x22, 0xb9, 0x3b, 0x34, 0xde, 0x35, 0x0f, 0x6f, 0x26, 0xb7, 0xfe, 0xde, 0x58, 0x7f, 0xb9, 0x55,
1514 0xd7, 0x5f, 0x6e, 0x8f, 0x60, 0x1b, 0xb3, 0x78, 0x43, 0x76, 0x8a, 0x43, 0x1f, 0xcf, 0x48, 0x6d,
1515 0x93, 0x5b, 0x6e, 0x72, 0x31, 0x63, 0xcd, 0xc6, 0x33, 0x72, 0xab, 0xbb, 0xe8, 0x6f, 0x05, 0x34,
1516 0xb1, 0xa1, 0xa8, 0xb6, 0x15, 0x76, 0x94, 0x1b, 0xec, 0x3c, 0x86, 0x1d, 0x09, 0x9c, 0x3f, 0x80,
1517 0x04, 0x2c, 0x11, 0x76, 0xdb, 0x4d, 0x02, 0x31, 0x60, 0xab, 0x4c, 0xe6, 0x6f, 0x32, 0x79, 0x98,
1518 0x30, 0x59, 0xe0, 0x4c, 0x2e, 0xcb, 0x24, 0x05, 0xea, 0x2d, 0x5c, 0xc1, 0x0b, 0xd8, 0xcc, 0x8e,
1519 0x90, 0xff, 0x69, 0x7e, 0x1d, 0x83, 0x2e, 0x4a, 0xff, 0xea, 0xfc, 0x96, 0xd3, 0xeb, 0x15, 0x54,
1520 0x92, 0xe9, 0xfb, 0x3c, 0x0e, 0xa1, 0x43, 0xb5, 0xd3, 0xb3, 0xbf, 0xb3, 0x9e, 0x0d, 0xcd, 0x33,
1521 0x06, 0x2e, 0xc7, 0xb0, 0xbe, 0x38, 0xb1, 0xe4, 0xa7, 0xc2, 0xe0, 0x2d, 0x3f, 0x5b, 0xba, 0xca,
1522 0x1c, 0x8e, 0x4c, 0x06, 0x5d, 0x5a, 0xe4, 0x8d, 0xdf, 0x55, 0xd0, 0x78, 0xe4, 0x63, 0x82, 0x5d,
1523 0x12, 0xde, 0x98, 0x3f, 0x9f, 0xa7, 0xa6, 0x89, 0x98, 0x41, 0x77, 0xe3, 0x33, 0xfb, 0xf7, 0x41,
1524 0xd2, 0x86, 0x6a, 0x74, 0x75, 0x3e, 0x5c, 0x19, 0x45, 0x0f, 0x32, 0xce, 0x29, 0x5e, 0xa4, 0xbf,
1525 0x16, 0x25, 0x22, 0xf4, 0x44, 0xce, 0x3e, 0x31, 0x8a, 0xde, 0xcb, 0xb8, 0xde, 0x18, 0x7b, 0x1f,
1526 0x40, 0x95, 0x37, 0xce, 0x82, 0x84, 0x11, 0x2b, 0x3f, 0xf1, 0x02, 0xd4, 0x98, 0xec, 0x4c, 0x88,
1527 0x6e, 0x37, 0x68, 0x8c, 0xdf, 0x54, 0x28, 0x8a, 0xae, 0x79, 0x02, 0xa5, 0x09, 0x67, 0x4b, 0xbe,
1528 0x93, 0xee, 0x64, 0x90, 0x09, 0x22, 0x1d, 0x69, 0x82, 0x0e, 0xa0, 0x3a, 0xe2, 0x6f, 0x71, 0xd1,
1529 0x41, 0xf2, 0xfe, 0xbf, 0xb3, 0xe6, 0x9d, 0x7e, 0x9c, 0x73, 0xb4, 0x51, 0xea, 0x65, 0xdf, 0x84,
1530 0xca, 0xe5, 0xdc, 0x93, 0x6e, 0x79, 0xee, 0xa6, 0xaf, 0xde, 0xfa, 0xc7, 0x39, 0xa7, 0x7c, 0x19,
1531 0x3f, 0x81, 0x5a, 0x00, 0x4b, 0x87, 0x16, 0x67, 0x4d, 0x6b, 0xed, 0xac, 0x7a, 0xb4, 0x8e, 0x73,
1532 0x4e, 0xe5, 0x72, 0xf9, 0xaa, 0x38, 0x80, 0x6a, 0xba, 0xc1, 0x39, 0x6d, 0x29, 0x78, 0xa9, 0xbe,
1533 0x64, 0xf0, 0x52, 0x2d, 0xff, 0xb4, 0x0a, 0x20, 0x66, 0x02, 0xa3, 0xf8, 0xa9, 0x09, 0x77, 0x82,
1534 0x70, 0xdc, 0x08, 0xe6, 0xc4, 0x1f, 0x05, 0xa1, 0x2b, 0xfd, 0x7f, 0x6c, 0x8c, 0x3d, 0x3a, 0xb9,
1535 0x3a, 0x6f, 0x8c, 0x82, 0x59, 0x33, 0xd6, 0x35, 0x85, 0xee, 0x63, 0xf9, 0xaf, 0x69, 0xb1, 0xdf,
1536 0x1c, 0x07, 0x52, 0x76, 0x5e, 0xe2, 0xc2, 0xfd, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x8c, 0x4c,
1537 0x16, 0xa6, 0x7e, 0x0d, 0x00, 0x00,
William Kurkian1b363f42019-03-12 15:28:12 -04001538}