blob: 84ef947d0125683782a285ba12d65efd6e562c45 [file] [log] [blame]
Amit Ghosh09f28362020-06-12 21:52:19 +01001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: dmi/hw_events_mgmt_service.proto
3
4package dmi
5
6import (
7 context "context"
8 fmt "fmt"
9 proto "github.com/golang/protobuf/proto"
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +053010 empty "github.com/golang/protobuf/ptypes/empty"
Amit Ghosh09f28362020-06-12 21:52:19 +010011 timestamp "github.com/golang/protobuf/ptypes/timestamp"
12 grpc "google.golang.org/grpc"
Andrea Campanellac795b7d2021-04-14 13:24:44 +020013 codes "google.golang.org/grpc/codes"
14 status "google.golang.org/grpc/status"
Amit Ghosh09f28362020-06-12 21:52:19 +010015 math "math"
16)
17
18// Reference imports to suppress errors if they are not otherwise used.
19var _ = proto.Marshal
20var _ = fmt.Errorf
21var _ = math.Inf
22
23// This is a compile-time assertion to ensure that this generated file
24// is compatible with the proto package it is being compiled against.
25// A compilation error at this line likely means your copy of the
26// proto package needs to be updated.
27const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
28
29type EventIds int32
30
31const (
32 EventIds_EVENT_NAME_UNDEFINED EventIds = 0
33 // Events from the Transceivers
Amit Ghosh9d6658d2020-06-25 10:43:30 +010034 EventIds_EVENT_TRANSCEIVER_PLUG_OUT EventIds = 100
35 EventIds_EVENT_TRANSCEIVER_PLUG_IN EventIds = 101
36 EventIds_EVENT_TRANSCEIVER_VOLTAGE_ABOVE_THRESHOLD EventIds = 102
37 EventIds_EVENT_TRANSCEIVER_VOLTAGE_BELOW_THRESHOLD EventIds = 103
38 EventIds_EVENT_TRANSCEIVER_TEMPERATURE_ABOVE_THRESHOLD EventIds = 104
39 EventIds_EVENT_TRANSCEIVER_TEMPERATURE_BELOW_THRESHOLD EventIds = 105
40 EventIds_EVENT_TRANSCEIVER_CURRENT_ABOVE_THRESHOLD EventIds = 106
41 EventIds_EVENT_TRANSCEIVER_CURRENT_BELOW_THRESHOLD EventIds = 107
42 EventIds_EVENT_TRANSCEIVER_RX_POWER_ABOVE_THRESHOLD EventIds = 108
43 EventIds_EVENT_TRANSCEIVER_RX_POWER_BELOW_THRESHOLD EventIds = 109
44 EventIds_EVENT_TRANSCEIVER_TX_POWER_ABOVE_THRESHOLD EventIds = 110
45 EventIds_EVENT_TRANSCEIVER_TX_POWER_BELOW_THRESHOLD EventIds = 111
46 EventIds_EVENT_TRANSCEIVER_FAILURE EventIds = 112
47 EventIds_EVENT_TRANSCEIVER_VOLTAGE_ABOVE_THRESHOLD_RECOVERED EventIds = 113
48 EventIds_EVENT_TRANSCEIVER_VOLTAGE_BELOW_THRESHOLD_RECOVERED EventIds = 114
49 EventIds_EVENT_TRANSCEIVER_TEMPERATURE_ABOVE_THRESHOLD_RECOVERED EventIds = 115
50 EventIds_EVENT_TRANSCEIVER_TEMPERATURE_BELOW_THRESHOLD_RECOVERED EventIds = 116
51 EventIds_EVENT_TRANSCEIVER_CURRENT_ABOVE_THRESHOLD_RECOVERED EventIds = 117
52 EventIds_EVENT_TRANSCEIVER_CURRENT_BELOW_THRESHOLD_RECOVERED EventIds = 118
53 EventIds_EVENT_TRANSCEIVER_RX_POWER_ABOVE_THRESHOLD_RECOVERED EventIds = 119
54 EventIds_EVENT_TRANSCEIVER_RX_POWER_BELOW_THRESHOLD_RECOVERED EventIds = 120
55 EventIds_EVENT_TRANSCEIVER_TX_POWER_ABOVE_THRESHOLD_RECOVERED EventIds = 121
56 EventIds_EVENT_TRANSCEIVER_TX_POWER_BELOW_THRESHOLD_RECOVERED EventIds = 122
57 EventIds_EVENT_TRANSCEIVER_FAILURE_RECOVERED EventIds = 123
Amit Ghosh09f28362020-06-12 21:52:19 +010058 // Events from the PSU
Amit Ghosh9d6658d2020-06-25 10:43:30 +010059 EventIds_EVENT_PSU_PLUG_OUT EventIds = 200
60 EventIds_EVENT_PSU_PLUG_IN EventIds = 201
61 EventIds_EVENT_PSU_FAILURE EventIds = 202
62 EventIds_EVENT_PSU_FAILURE_RECOVERED EventIds = 203
Amit Ghosh09f28362020-06-12 21:52:19 +010063 // Events for the Fans
Amit Ghosh9d6658d2020-06-25 10:43:30 +010064 EventIds_EVENT_FAN_FAILURE EventIds = 300
65 EventIds_EVENT_FAN_PLUG_OUT EventIds = 301
66 EventIds_EVENT_FAN_PLUG_IN EventIds = 302
67 EventIds_EVENT_FAN_FAILURE_RECOVERED EventIds = 303
Amit Ghosh09f28362020-06-12 21:52:19 +010068 // Events for the CPUs
Amit Ghosh9d6658d2020-06-25 10:43:30 +010069 EventIds_EVENT_CPU_TEMPERATURE_ABOVE_CRITICAL EventIds = 400
70 EventIds_EVENT_CPU_TEMPERATURE_ABOVE_FATAL EventIds = 401
71 EventIds_EVENT_CPU_TEMPERATURE_ABOVE_CRITICAL_RECOVERED EventIds = 402
72 EventIds_EVENT_CPU_TEMPERATURE_ABOVE_FATAL_RECOVERED EventIds = 403
Amit Ghosh09f28362020-06-12 21:52:19 +010073 // Events for the complete HW Device
Amit Ghosh9d6658d2020-06-25 10:43:30 +010074 EventIds_EVENT_HW_DEVICE_RESET EventIds = 500
75 EventIds_EVENT_HW_DEVICE_TEMPERATURE_ABOVE_CRITICAL EventIds = 501
76 EventIds_EVENT_HW_DEVICE_TEMPERATURE_ABOVE_FATAL EventIds = 502
77 EventIds_EVENT_HW_DEVICE_TEMPERATURE_ABOVE_CRITICAL_RECOVERED EventIds = 503
78 EventIds_EVENT_HW_DEVICE_TEMPERATURE_ABOVE_FATAL_RECOVERED EventIds = 504
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +053079 EventIds_EVENT_HW_DEVICE_REBOOT EventIds = 505
amit.ghosh8fe610f2022-01-14 17:44:53 +010080 EventIds_EVENT_HW_TEMPERATURE_SENSOR_FAILED EventIds = 506
81 EventIds_EVENT_HW_ALL_TEMPERATURE_SENSORS_FAILED EventIds = 507
amit.ghoshc0c3c242022-03-16 11:00:27 +010082 // Events for the line cards on the HW Device
83 EventIds_EVENT_LINE_CARD_PLUG_OUT EventIds = 600
84 EventIds_EVENT_LINE_CARD_PLUG_IN EventIds = 601
Amit Ghosh09f28362020-06-12 21:52:19 +010085)
86
87var EventIds_name = map[int32]string{
88 0: "EVENT_NAME_UNDEFINED",
89 100: "EVENT_TRANSCEIVER_PLUG_OUT",
90 101: "EVENT_TRANSCEIVER_PLUG_IN",
91 102: "EVENT_TRANSCEIVER_VOLTAGE_ABOVE_THRESHOLD",
92 103: "EVENT_TRANSCEIVER_VOLTAGE_BELOW_THRESHOLD",
93 104: "EVENT_TRANSCEIVER_TEMPERATURE_ABOVE_THRESHOLD",
94 105: "EVENT_TRANSCEIVER_TEMPERATURE_BELOW_THRESHOLD",
95 106: "EVENT_TRANSCEIVER_CURRENT_ABOVE_THRESHOLD",
96 107: "EVENT_TRANSCEIVER_CURRENT_BELOW_THRESHOLD",
97 108: "EVENT_TRANSCEIVER_RX_POWER_ABOVE_THRESHOLD",
98 109: "EVENT_TRANSCEIVER_RX_POWER_BELOW_THRESHOLD",
99 110: "EVENT_TRANSCEIVER_TX_POWER_ABOVE_THRESHOLD",
100 111: "EVENT_TRANSCEIVER_TX_POWER_BELOW_THRESHOLD",
101 112: "EVENT_TRANSCEIVER_FAILURE",
Amit Ghosh9d6658d2020-06-25 10:43:30 +0100102 113: "EVENT_TRANSCEIVER_VOLTAGE_ABOVE_THRESHOLD_RECOVERED",
103 114: "EVENT_TRANSCEIVER_VOLTAGE_BELOW_THRESHOLD_RECOVERED",
104 115: "EVENT_TRANSCEIVER_TEMPERATURE_ABOVE_THRESHOLD_RECOVERED",
105 116: "EVENT_TRANSCEIVER_TEMPERATURE_BELOW_THRESHOLD_RECOVERED",
106 117: "EVENT_TRANSCEIVER_CURRENT_ABOVE_THRESHOLD_RECOVERED",
107 118: "EVENT_TRANSCEIVER_CURRENT_BELOW_THRESHOLD_RECOVERED",
108 119: "EVENT_TRANSCEIVER_RX_POWER_ABOVE_THRESHOLD_RECOVERED",
109 120: "EVENT_TRANSCEIVER_RX_POWER_BELOW_THRESHOLD_RECOVERED",
110 121: "EVENT_TRANSCEIVER_TX_POWER_ABOVE_THRESHOLD_RECOVERED",
111 122: "EVENT_TRANSCEIVER_TX_POWER_BELOW_THRESHOLD_RECOVERED",
112 123: "EVENT_TRANSCEIVER_FAILURE_RECOVERED",
Amit Ghosh09f28362020-06-12 21:52:19 +0100113 200: "EVENT_PSU_PLUG_OUT",
114 201: "EVENT_PSU_PLUG_IN",
115 202: "EVENT_PSU_FAILURE",
Amit Ghosh9d6658d2020-06-25 10:43:30 +0100116 203: "EVENT_PSU_FAILURE_RECOVERED",
Amit Ghosh09f28362020-06-12 21:52:19 +0100117 300: "EVENT_FAN_FAILURE",
118 301: "EVENT_FAN_PLUG_OUT",
119 302: "EVENT_FAN_PLUG_IN",
Amit Ghosh9d6658d2020-06-25 10:43:30 +0100120 303: "EVENT_FAN_FAILURE_RECOVERED",
Amit Ghosh09f28362020-06-12 21:52:19 +0100121 400: "EVENT_CPU_TEMPERATURE_ABOVE_CRITICAL",
122 401: "EVENT_CPU_TEMPERATURE_ABOVE_FATAL",
Amit Ghosh9d6658d2020-06-25 10:43:30 +0100123 402: "EVENT_CPU_TEMPERATURE_ABOVE_CRITICAL_RECOVERED",
124 403: "EVENT_CPU_TEMPERATURE_ABOVE_FATAL_RECOVERED",
Amit Ghosh09f28362020-06-12 21:52:19 +0100125 500: "EVENT_HW_DEVICE_RESET",
126 501: "EVENT_HW_DEVICE_TEMPERATURE_ABOVE_CRITICAL",
127 502: "EVENT_HW_DEVICE_TEMPERATURE_ABOVE_FATAL",
Amit Ghosh9d6658d2020-06-25 10:43:30 +0100128 503: "EVENT_HW_DEVICE_TEMPERATURE_ABOVE_CRITICAL_RECOVERED",
129 504: "EVENT_HW_DEVICE_TEMPERATURE_ABOVE_FATAL_RECOVERED",
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530130 505: "EVENT_HW_DEVICE_REBOOT",
amit.ghosh8fe610f2022-01-14 17:44:53 +0100131 506: "EVENT_HW_TEMPERATURE_SENSOR_FAILED",
132 507: "EVENT_HW_ALL_TEMPERATURE_SENSORS_FAILED",
amit.ghoshc0c3c242022-03-16 11:00:27 +0100133 600: "EVENT_LINE_CARD_PLUG_OUT",
134 601: "EVENT_LINE_CARD_PLUG_IN",
Amit Ghosh09f28362020-06-12 21:52:19 +0100135}
136
137var EventIds_value = map[string]int32{
Amit Ghosh9d6658d2020-06-25 10:43:30 +0100138 "EVENT_NAME_UNDEFINED": 0,
139 "EVENT_TRANSCEIVER_PLUG_OUT": 100,
140 "EVENT_TRANSCEIVER_PLUG_IN": 101,
141 "EVENT_TRANSCEIVER_VOLTAGE_ABOVE_THRESHOLD": 102,
142 "EVENT_TRANSCEIVER_VOLTAGE_BELOW_THRESHOLD": 103,
143 "EVENT_TRANSCEIVER_TEMPERATURE_ABOVE_THRESHOLD": 104,
144 "EVENT_TRANSCEIVER_TEMPERATURE_BELOW_THRESHOLD": 105,
145 "EVENT_TRANSCEIVER_CURRENT_ABOVE_THRESHOLD": 106,
146 "EVENT_TRANSCEIVER_CURRENT_BELOW_THRESHOLD": 107,
147 "EVENT_TRANSCEIVER_RX_POWER_ABOVE_THRESHOLD": 108,
148 "EVENT_TRANSCEIVER_RX_POWER_BELOW_THRESHOLD": 109,
149 "EVENT_TRANSCEIVER_TX_POWER_ABOVE_THRESHOLD": 110,
150 "EVENT_TRANSCEIVER_TX_POWER_BELOW_THRESHOLD": 111,
151 "EVENT_TRANSCEIVER_FAILURE": 112,
152 "EVENT_TRANSCEIVER_VOLTAGE_ABOVE_THRESHOLD_RECOVERED": 113,
153 "EVENT_TRANSCEIVER_VOLTAGE_BELOW_THRESHOLD_RECOVERED": 114,
154 "EVENT_TRANSCEIVER_TEMPERATURE_ABOVE_THRESHOLD_RECOVERED": 115,
155 "EVENT_TRANSCEIVER_TEMPERATURE_BELOW_THRESHOLD_RECOVERED": 116,
156 "EVENT_TRANSCEIVER_CURRENT_ABOVE_THRESHOLD_RECOVERED": 117,
157 "EVENT_TRANSCEIVER_CURRENT_BELOW_THRESHOLD_RECOVERED": 118,
158 "EVENT_TRANSCEIVER_RX_POWER_ABOVE_THRESHOLD_RECOVERED": 119,
159 "EVENT_TRANSCEIVER_RX_POWER_BELOW_THRESHOLD_RECOVERED": 120,
160 "EVENT_TRANSCEIVER_TX_POWER_ABOVE_THRESHOLD_RECOVERED": 121,
161 "EVENT_TRANSCEIVER_TX_POWER_BELOW_THRESHOLD_RECOVERED": 122,
162 "EVENT_TRANSCEIVER_FAILURE_RECOVERED": 123,
163 "EVENT_PSU_PLUG_OUT": 200,
164 "EVENT_PSU_PLUG_IN": 201,
165 "EVENT_PSU_FAILURE": 202,
166 "EVENT_PSU_FAILURE_RECOVERED": 203,
167 "EVENT_FAN_FAILURE": 300,
168 "EVENT_FAN_PLUG_OUT": 301,
169 "EVENT_FAN_PLUG_IN": 302,
170 "EVENT_FAN_FAILURE_RECOVERED": 303,
171 "EVENT_CPU_TEMPERATURE_ABOVE_CRITICAL": 400,
172 "EVENT_CPU_TEMPERATURE_ABOVE_FATAL": 401,
173 "EVENT_CPU_TEMPERATURE_ABOVE_CRITICAL_RECOVERED": 402,
174 "EVENT_CPU_TEMPERATURE_ABOVE_FATAL_RECOVERED": 403,
175 "EVENT_HW_DEVICE_RESET": 500,
176 "EVENT_HW_DEVICE_TEMPERATURE_ABOVE_CRITICAL": 501,
177 "EVENT_HW_DEVICE_TEMPERATURE_ABOVE_FATAL": 502,
178 "EVENT_HW_DEVICE_TEMPERATURE_ABOVE_CRITICAL_RECOVERED": 503,
179 "EVENT_HW_DEVICE_TEMPERATURE_ABOVE_FATAL_RECOVERED": 504,
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530180 "EVENT_HW_DEVICE_REBOOT": 505,
amit.ghosh8fe610f2022-01-14 17:44:53 +0100181 "EVENT_HW_TEMPERATURE_SENSOR_FAILED": 506,
182 "EVENT_HW_ALL_TEMPERATURE_SENSORS_FAILED": 507,
amit.ghoshc0c3c242022-03-16 11:00:27 +0100183 "EVENT_LINE_CARD_PLUG_OUT": 600,
184 "EVENT_LINE_CARD_PLUG_IN": 601,
Amit Ghosh09f28362020-06-12 21:52:19 +0100185}
186
187func (x EventIds) String() string {
188 return proto.EnumName(EventIds_name, int32(x))
189}
190
191func (EventIds) EnumDescriptor() ([]byte, []int) {
192 return fileDescriptor_8962d785556e9979, []int{0}
193}
194
amit.ghoshae473032021-01-10 11:59:10 +0100195type ListEventsResponse_Reason int32
196
197const (
amit.ghoshbd2022e2021-02-22 05:58:53 +0100198 ListEventsResponse_UNDEFINED_REASON ListEventsResponse_Reason = 0
199 ListEventsResponse_UNKNOWN_DEVICE ListEventsResponse_Reason = 1
200 ListEventsResponse_INTERNAL_ERROR ListEventsResponse_Reason = 2
201 ListEventsResponse_DEVICE_UNREACHABLE ListEventsResponse_Reason = 3
amit.ghoshae473032021-01-10 11:59:10 +0100202)
203
204var ListEventsResponse_Reason_name = map[int32]string{
205 0: "UNDEFINED_REASON",
206 1: "UNKNOWN_DEVICE",
207 2: "INTERNAL_ERROR",
amit.ghoshbd2022e2021-02-22 05:58:53 +0100208 3: "DEVICE_UNREACHABLE",
amit.ghoshae473032021-01-10 11:59:10 +0100209}
210
211var ListEventsResponse_Reason_value = map[string]int32{
amit.ghoshbd2022e2021-02-22 05:58:53 +0100212 "UNDEFINED_REASON": 0,
213 "UNKNOWN_DEVICE": 1,
214 "INTERNAL_ERROR": 2,
215 "DEVICE_UNREACHABLE": 3,
amit.ghoshae473032021-01-10 11:59:10 +0100216}
217
218func (x ListEventsResponse_Reason) String() string {
219 return proto.EnumName(ListEventsResponse_Reason_name, int32(x))
220}
221
222func (ListEventsResponse_Reason) EnumDescriptor() ([]byte, []int) {
223 return fileDescriptor_8962d785556e9979, []int{6, 0}
224}
225
226type EventsConfigurationResponse_Reason int32
227
228const (
amit.ghoshbd2022e2021-02-22 05:58:53 +0100229 EventsConfigurationResponse_UNDEFINED_REASON EventsConfigurationResponse_Reason = 0
230 EventsConfigurationResponse_UNKNOWN_DEVICE EventsConfigurationResponse_Reason = 1
231 EventsConfigurationResponse_INTERNAL_ERROR EventsConfigurationResponse_Reason = 2
232 EventsConfigurationResponse_INVALID_CONFIG EventsConfigurationResponse_Reason = 3
233 EventsConfigurationResponse_DEVICE_UNREACHABLE EventsConfigurationResponse_Reason = 4
amit.ghoshae473032021-01-10 11:59:10 +0100234)
235
236var EventsConfigurationResponse_Reason_name = map[int32]string{
237 0: "UNDEFINED_REASON",
238 1: "UNKNOWN_DEVICE",
239 2: "INTERNAL_ERROR",
240 3: "INVALID_CONFIG",
amit.ghoshbd2022e2021-02-22 05:58:53 +0100241 4: "DEVICE_UNREACHABLE",
amit.ghoshae473032021-01-10 11:59:10 +0100242}
243
244var EventsConfigurationResponse_Reason_value = map[string]int32{
amit.ghoshbd2022e2021-02-22 05:58:53 +0100245 "UNDEFINED_REASON": 0,
246 "UNKNOWN_DEVICE": 1,
247 "INTERNAL_ERROR": 2,
248 "INVALID_CONFIG": 3,
249 "DEVICE_UNREACHABLE": 4,
amit.ghoshae473032021-01-10 11:59:10 +0100250}
251
252func (x EventsConfigurationResponse_Reason) String() string {
253 return proto.EnumName(EventsConfigurationResponse_Reason_name, int32(x))
254}
255
256func (EventsConfigurationResponse_Reason) EnumDescriptor() ([]byte, []int) {
257 return fileDescriptor_8962d785556e9979, []int{8, 0}
258}
259
Amit Ghosh09f28362020-06-12 21:52:19 +0100260type ValueType struct {
261 // Types that are valid to be assigned to Val:
262 // *ValueType_IntVal
263 // *ValueType_UintVal
264 // *ValueType_FloatVal
265 Val isValueType_Val `protobuf_oneof:"val"`
266 XXX_NoUnkeyedLiteral struct{} `json:"-"`
267 XXX_unrecognized []byte `json:"-"`
268 XXX_sizecache int32 `json:"-"`
269}
270
271func (m *ValueType) Reset() { *m = ValueType{} }
272func (m *ValueType) String() string { return proto.CompactTextString(m) }
273func (*ValueType) ProtoMessage() {}
274func (*ValueType) Descriptor() ([]byte, []int) {
275 return fileDescriptor_8962d785556e9979, []int{0}
276}
277
278func (m *ValueType) XXX_Unmarshal(b []byte) error {
279 return xxx_messageInfo_ValueType.Unmarshal(m, b)
280}
281func (m *ValueType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
282 return xxx_messageInfo_ValueType.Marshal(b, m, deterministic)
283}
284func (m *ValueType) XXX_Merge(src proto.Message) {
285 xxx_messageInfo_ValueType.Merge(m, src)
286}
287func (m *ValueType) XXX_Size() int {
288 return xxx_messageInfo_ValueType.Size(m)
289}
290func (m *ValueType) XXX_DiscardUnknown() {
291 xxx_messageInfo_ValueType.DiscardUnknown(m)
292}
293
294var xxx_messageInfo_ValueType proto.InternalMessageInfo
295
296type isValueType_Val interface {
297 isValueType_Val()
298}
299
300type ValueType_IntVal struct {
301 IntVal int64 `protobuf:"varint,1,opt,name=int_val,json=intVal,proto3,oneof"`
302}
303
304type ValueType_UintVal struct {
305 UintVal uint64 `protobuf:"varint,2,opt,name=uint_val,json=uintVal,proto3,oneof"`
306}
307
308type ValueType_FloatVal struct {
309 FloatVal float32 `protobuf:"fixed32,3,opt,name=float_val,json=floatVal,proto3,oneof"`
310}
311
312func (*ValueType_IntVal) isValueType_Val() {}
313
314func (*ValueType_UintVal) isValueType_Val() {}
315
316func (*ValueType_FloatVal) isValueType_Val() {}
317
318func (m *ValueType) GetVal() isValueType_Val {
319 if m != nil {
320 return m.Val
321 }
322 return nil
323}
324
325func (m *ValueType) GetIntVal() int64 {
326 if x, ok := m.GetVal().(*ValueType_IntVal); ok {
327 return x.IntVal
328 }
329 return 0
330}
331
332func (m *ValueType) GetUintVal() uint64 {
333 if x, ok := m.GetVal().(*ValueType_UintVal); ok {
334 return x.UintVal
335 }
336 return 0
337}
338
339func (m *ValueType) GetFloatVal() float32 {
340 if x, ok := m.GetVal().(*ValueType_FloatVal); ok {
341 return x.FloatVal
342 }
343 return 0
344}
345
346// XXX_OneofWrappers is for the internal use of the proto package.
347func (*ValueType) XXX_OneofWrappers() []interface{} {
348 return []interface{}{
349 (*ValueType_IntVal)(nil),
350 (*ValueType_UintVal)(nil),
351 (*ValueType_FloatVal)(nil),
352 }
353}
354
355type WaterMarks struct {
356 High *ValueType `protobuf:"bytes,1,opt,name=high,proto3" json:"high,omitempty"`
357 Low *ValueType `protobuf:"bytes,2,opt,name=low,proto3" json:"low,omitempty"`
358 XXX_NoUnkeyedLiteral struct{} `json:"-"`
359 XXX_unrecognized []byte `json:"-"`
360 XXX_sizecache int32 `json:"-"`
361}
362
363func (m *WaterMarks) Reset() { *m = WaterMarks{} }
364func (m *WaterMarks) String() string { return proto.CompactTextString(m) }
365func (*WaterMarks) ProtoMessage() {}
366func (*WaterMarks) Descriptor() ([]byte, []int) {
367 return fileDescriptor_8962d785556e9979, []int{1}
368}
369
370func (m *WaterMarks) XXX_Unmarshal(b []byte) error {
371 return xxx_messageInfo_WaterMarks.Unmarshal(m, b)
372}
373func (m *WaterMarks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
374 return xxx_messageInfo_WaterMarks.Marshal(b, m, deterministic)
375}
376func (m *WaterMarks) XXX_Merge(src proto.Message) {
377 xxx_messageInfo_WaterMarks.Merge(m, src)
378}
379func (m *WaterMarks) XXX_Size() int {
380 return xxx_messageInfo_WaterMarks.Size(m)
381}
382func (m *WaterMarks) XXX_DiscardUnknown() {
383 xxx_messageInfo_WaterMarks.DiscardUnknown(m)
384}
385
386var xxx_messageInfo_WaterMarks proto.InternalMessageInfo
387
388func (m *WaterMarks) GetHigh() *ValueType {
389 if m != nil {
390 return m.High
391 }
392 return nil
393}
394
395func (m *WaterMarks) GetLow() *ValueType {
396 if m != nil {
397 return m.Low
398 }
399 return nil
400}
401
402type Thresholds struct {
403 // Types that are valid to be assigned to Threshold:
404 // *Thresholds_Upper
405 // *Thresholds_Lower
406 Threshold isThresholds_Threshold `protobuf_oneof:"threshold"`
407 XXX_NoUnkeyedLiteral struct{} `json:"-"`
408 XXX_unrecognized []byte `json:"-"`
409 XXX_sizecache int32 `json:"-"`
410}
411
412func (m *Thresholds) Reset() { *m = Thresholds{} }
413func (m *Thresholds) String() string { return proto.CompactTextString(m) }
414func (*Thresholds) ProtoMessage() {}
415func (*Thresholds) Descriptor() ([]byte, []int) {
416 return fileDescriptor_8962d785556e9979, []int{2}
417}
418
419func (m *Thresholds) XXX_Unmarshal(b []byte) error {
420 return xxx_messageInfo_Thresholds.Unmarshal(m, b)
421}
422func (m *Thresholds) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
423 return xxx_messageInfo_Thresholds.Marshal(b, m, deterministic)
424}
425func (m *Thresholds) XXX_Merge(src proto.Message) {
426 xxx_messageInfo_Thresholds.Merge(m, src)
427}
428func (m *Thresholds) XXX_Size() int {
429 return xxx_messageInfo_Thresholds.Size(m)
430}
431func (m *Thresholds) XXX_DiscardUnknown() {
432 xxx_messageInfo_Thresholds.DiscardUnknown(m)
433}
434
435var xxx_messageInfo_Thresholds proto.InternalMessageInfo
436
437type isThresholds_Threshold interface {
438 isThresholds_Threshold()
439}
440
441type Thresholds_Upper struct {
442 Upper *WaterMarks `protobuf:"bytes,1,opt,name=upper,proto3,oneof"`
443}
444
445type Thresholds_Lower struct {
446 Lower *WaterMarks `protobuf:"bytes,2,opt,name=lower,proto3,oneof"`
447}
448
449func (*Thresholds_Upper) isThresholds_Threshold() {}
450
451func (*Thresholds_Lower) isThresholds_Threshold() {}
452
453func (m *Thresholds) GetThreshold() isThresholds_Threshold {
454 if m != nil {
455 return m.Threshold
456 }
457 return nil
458}
459
460func (m *Thresholds) GetUpper() *WaterMarks {
461 if x, ok := m.GetThreshold().(*Thresholds_Upper); ok {
462 return x.Upper
463 }
464 return nil
465}
466
467func (m *Thresholds) GetLower() *WaterMarks {
468 if x, ok := m.GetThreshold().(*Thresholds_Lower); ok {
469 return x.Lower
470 }
471 return nil
472}
473
474// XXX_OneofWrappers is for the internal use of the proto package.
475func (*Thresholds) XXX_OneofWrappers() []interface{} {
476 return []interface{}{
477 (*Thresholds_Upper)(nil),
478 (*Thresholds_Lower)(nil),
479 }
480}
481
482type ThresholdInformation struct {
483 ObservedValue *ValueType `protobuf:"bytes,1,opt,name=observed_value,json=observedValue,proto3" json:"observed_value,omitempty"`
484 Thresholds *Thresholds `protobuf:"bytes,2,opt,name=thresholds,proto3" json:"thresholds,omitempty"`
485 XXX_NoUnkeyedLiteral struct{} `json:"-"`
486 XXX_unrecognized []byte `json:"-"`
487 XXX_sizecache int32 `json:"-"`
488}
489
490func (m *ThresholdInformation) Reset() { *m = ThresholdInformation{} }
491func (m *ThresholdInformation) String() string { return proto.CompactTextString(m) }
492func (*ThresholdInformation) ProtoMessage() {}
493func (*ThresholdInformation) Descriptor() ([]byte, []int) {
494 return fileDescriptor_8962d785556e9979, []int{3}
495}
496
497func (m *ThresholdInformation) XXX_Unmarshal(b []byte) error {
498 return xxx_messageInfo_ThresholdInformation.Unmarshal(m, b)
499}
500func (m *ThresholdInformation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
501 return xxx_messageInfo_ThresholdInformation.Marshal(b, m, deterministic)
502}
503func (m *ThresholdInformation) XXX_Merge(src proto.Message) {
504 xxx_messageInfo_ThresholdInformation.Merge(m, src)
505}
506func (m *ThresholdInformation) XXX_Size() int {
507 return xxx_messageInfo_ThresholdInformation.Size(m)
508}
509func (m *ThresholdInformation) XXX_DiscardUnknown() {
510 xxx_messageInfo_ThresholdInformation.DiscardUnknown(m)
511}
512
513var xxx_messageInfo_ThresholdInformation proto.InternalMessageInfo
514
515func (m *ThresholdInformation) GetObservedValue() *ValueType {
516 if m != nil {
517 return m.ObservedValue
518 }
519 return nil
520}
521
522func (m *ThresholdInformation) GetThresholds() *Thresholds {
523 if m != nil {
524 return m.Thresholds
525 }
526 return nil
527}
528
529type EventCfg struct {
530 EventId EventIds `protobuf:"varint,1,opt,name=event_id,json=eventId,proto3,enum=dmi.EventIds" json:"event_id,omitempty"`
531 IsConfigured bool `protobuf:"varint,2,opt,name=is_configured,json=isConfigured,proto3" json:"is_configured,omitempty"`
532 // Optional threshold values, applicable only for some specific events
533 Thresholds *Thresholds `protobuf:"bytes,3,opt,name=thresholds,proto3" json:"thresholds,omitempty"`
534 XXX_NoUnkeyedLiteral struct{} `json:"-"`
535 XXX_unrecognized []byte `json:"-"`
536 XXX_sizecache int32 `json:"-"`
537}
538
539func (m *EventCfg) Reset() { *m = EventCfg{} }
540func (m *EventCfg) String() string { return proto.CompactTextString(m) }
541func (*EventCfg) ProtoMessage() {}
542func (*EventCfg) Descriptor() ([]byte, []int) {
543 return fileDescriptor_8962d785556e9979, []int{4}
544}
545
546func (m *EventCfg) XXX_Unmarshal(b []byte) error {
547 return xxx_messageInfo_EventCfg.Unmarshal(m, b)
548}
549func (m *EventCfg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
550 return xxx_messageInfo_EventCfg.Marshal(b, m, deterministic)
551}
552func (m *EventCfg) XXX_Merge(src proto.Message) {
553 xxx_messageInfo_EventCfg.Merge(m, src)
554}
555func (m *EventCfg) XXX_Size() int {
556 return xxx_messageInfo_EventCfg.Size(m)
557}
558func (m *EventCfg) XXX_DiscardUnknown() {
559 xxx_messageInfo_EventCfg.DiscardUnknown(m)
560}
561
562var xxx_messageInfo_EventCfg proto.InternalMessageInfo
563
564func (m *EventCfg) GetEventId() EventIds {
565 if m != nil {
566 return m.EventId
567 }
568 return EventIds_EVENT_NAME_UNDEFINED
569}
570
571func (m *EventCfg) GetIsConfigured() bool {
572 if m != nil {
573 return m.IsConfigured
574 }
575 return false
576}
577
578func (m *EventCfg) GetThresholds() *Thresholds {
579 if m != nil {
580 return m.Thresholds
581 }
582 return nil
583}
584
585type EventsCfg struct {
586 Items []*EventCfg `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
587 XXX_NoUnkeyedLiteral struct{} `json:"-"`
588 XXX_unrecognized []byte `json:"-"`
589 XXX_sizecache int32 `json:"-"`
590}
591
592func (m *EventsCfg) Reset() { *m = EventsCfg{} }
593func (m *EventsCfg) String() string { return proto.CompactTextString(m) }
594func (*EventsCfg) ProtoMessage() {}
595func (*EventsCfg) Descriptor() ([]byte, []int) {
596 return fileDescriptor_8962d785556e9979, []int{5}
597}
598
599func (m *EventsCfg) XXX_Unmarshal(b []byte) error {
600 return xxx_messageInfo_EventsCfg.Unmarshal(m, b)
601}
602func (m *EventsCfg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
603 return xxx_messageInfo_EventsCfg.Marshal(b, m, deterministic)
604}
605func (m *EventsCfg) XXX_Merge(src proto.Message) {
606 xxx_messageInfo_EventsCfg.Merge(m, src)
607}
608func (m *EventsCfg) XXX_Size() int {
609 return xxx_messageInfo_EventsCfg.Size(m)
610}
611func (m *EventsCfg) XXX_DiscardUnknown() {
612 xxx_messageInfo_EventsCfg.DiscardUnknown(m)
613}
614
615var xxx_messageInfo_EventsCfg proto.InternalMessageInfo
616
617func (m *EventsCfg) GetItems() []*EventCfg {
618 if m != nil {
619 return m.Items
620 }
621 return nil
622}
623
624type ListEventsResponse struct {
amit.ghoshae473032021-01-10 11:59:10 +0100625 Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"`
626 Reason ListEventsResponse_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.ListEventsResponse_Reason" json:"reason,omitempty"`
627 Events *EventsCfg `protobuf:"bytes,3,opt,name=events,proto3" json:"events,omitempty"`
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100628 ReasonDetail string `protobuf:"bytes,4,opt,name=reason_detail,json=reasonDetail,proto3" json:"reason_detail,omitempty"`
amit.ghoshae473032021-01-10 11:59:10 +0100629 XXX_NoUnkeyedLiteral struct{} `json:"-"`
630 XXX_unrecognized []byte `json:"-"`
631 XXX_sizecache int32 `json:"-"`
Amit Ghosh09f28362020-06-12 21:52:19 +0100632}
633
634func (m *ListEventsResponse) Reset() { *m = ListEventsResponse{} }
635func (m *ListEventsResponse) String() string { return proto.CompactTextString(m) }
636func (*ListEventsResponse) ProtoMessage() {}
637func (*ListEventsResponse) Descriptor() ([]byte, []int) {
638 return fileDescriptor_8962d785556e9979, []int{6}
639}
640
641func (m *ListEventsResponse) XXX_Unmarshal(b []byte) error {
642 return xxx_messageInfo_ListEventsResponse.Unmarshal(m, b)
643}
644func (m *ListEventsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
645 return xxx_messageInfo_ListEventsResponse.Marshal(b, m, deterministic)
646}
647func (m *ListEventsResponse) XXX_Merge(src proto.Message) {
648 xxx_messageInfo_ListEventsResponse.Merge(m, src)
649}
650func (m *ListEventsResponse) XXX_Size() int {
651 return xxx_messageInfo_ListEventsResponse.Size(m)
652}
653func (m *ListEventsResponse) XXX_DiscardUnknown() {
654 xxx_messageInfo_ListEventsResponse.DiscardUnknown(m)
655}
656
657var xxx_messageInfo_ListEventsResponse proto.InternalMessageInfo
658
659func (m *ListEventsResponse) GetStatus() Status {
660 if m != nil {
661 return m.Status
662 }
663 return Status_UNDEFINED_STATUS
664}
665
amit.ghoshae473032021-01-10 11:59:10 +0100666func (m *ListEventsResponse) GetReason() ListEventsResponse_Reason {
Amit Ghosh09f28362020-06-12 21:52:19 +0100667 if m != nil {
668 return m.Reason
669 }
amit.ghoshae473032021-01-10 11:59:10 +0100670 return ListEventsResponse_UNDEFINED_REASON
Amit Ghosh09f28362020-06-12 21:52:19 +0100671}
672
673func (m *ListEventsResponse) GetEvents() *EventsCfg {
674 if m != nil {
675 return m.Events
676 }
677 return nil
678}
679
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100680func (m *ListEventsResponse) GetReasonDetail() string {
681 if m != nil {
682 return m.ReasonDetail
683 }
684 return ""
685}
686
Amit Ghosh09f28362020-06-12 21:52:19 +0100687type EventsConfigurationRequest struct {
688 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
689 // Types that are valid to be assigned to Operation:
690 // *EventsConfigurationRequest_Changes
691 // *EventsConfigurationRequest_ResetToDefault
amit.ghoshf1be1272022-08-24 19:31:03 +0200692 Operation isEventsConfigurationRequest_Operation `protobuf_oneof:"operation"`
693 // For events which can be configured on a particular component this id can be used to identify the component
694 // For e.g. for events of the transceivers
695 ComponentUuid *Uuid `protobuf:"bytes,4,opt,name=component_uuid,json=componentUuid,proto3" json:"component_uuid,omitempty"`
696 XXX_NoUnkeyedLiteral struct{} `json:"-"`
697 XXX_unrecognized []byte `json:"-"`
698 XXX_sizecache int32 `json:"-"`
Amit Ghosh09f28362020-06-12 21:52:19 +0100699}
700
701func (m *EventsConfigurationRequest) Reset() { *m = EventsConfigurationRequest{} }
702func (m *EventsConfigurationRequest) String() string { return proto.CompactTextString(m) }
703func (*EventsConfigurationRequest) ProtoMessage() {}
704func (*EventsConfigurationRequest) Descriptor() ([]byte, []int) {
705 return fileDescriptor_8962d785556e9979, []int{7}
706}
707
708func (m *EventsConfigurationRequest) XXX_Unmarshal(b []byte) error {
709 return xxx_messageInfo_EventsConfigurationRequest.Unmarshal(m, b)
710}
711func (m *EventsConfigurationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
712 return xxx_messageInfo_EventsConfigurationRequest.Marshal(b, m, deterministic)
713}
714func (m *EventsConfigurationRequest) XXX_Merge(src proto.Message) {
715 xxx_messageInfo_EventsConfigurationRequest.Merge(m, src)
716}
717func (m *EventsConfigurationRequest) XXX_Size() int {
718 return xxx_messageInfo_EventsConfigurationRequest.Size(m)
719}
720func (m *EventsConfigurationRequest) XXX_DiscardUnknown() {
721 xxx_messageInfo_EventsConfigurationRequest.DiscardUnknown(m)
722}
723
724var xxx_messageInfo_EventsConfigurationRequest proto.InternalMessageInfo
725
726func (m *EventsConfigurationRequest) GetDeviceUuid() *Uuid {
727 if m != nil {
728 return m.DeviceUuid
729 }
730 return nil
731}
732
733type isEventsConfigurationRequest_Operation interface {
734 isEventsConfigurationRequest_Operation()
735}
736
737type EventsConfigurationRequest_Changes struct {
738 Changes *EventsCfg `protobuf:"bytes,2,opt,name=changes,proto3,oneof"`
739}
740
741type EventsConfigurationRequest_ResetToDefault struct {
742 ResetToDefault bool `protobuf:"varint,3,opt,name=reset_to_default,json=resetToDefault,proto3,oneof"`
743}
744
745func (*EventsConfigurationRequest_Changes) isEventsConfigurationRequest_Operation() {}
746
747func (*EventsConfigurationRequest_ResetToDefault) isEventsConfigurationRequest_Operation() {}
748
749func (m *EventsConfigurationRequest) GetOperation() isEventsConfigurationRequest_Operation {
750 if m != nil {
751 return m.Operation
752 }
753 return nil
754}
755
756func (m *EventsConfigurationRequest) GetChanges() *EventsCfg {
757 if x, ok := m.GetOperation().(*EventsConfigurationRequest_Changes); ok {
758 return x.Changes
759 }
760 return nil
761}
762
763func (m *EventsConfigurationRequest) GetResetToDefault() bool {
764 if x, ok := m.GetOperation().(*EventsConfigurationRequest_ResetToDefault); ok {
765 return x.ResetToDefault
766 }
767 return false
768}
769
amit.ghoshf1be1272022-08-24 19:31:03 +0200770func (m *EventsConfigurationRequest) GetComponentUuid() *Uuid {
771 if m != nil {
772 return m.ComponentUuid
773 }
774 return nil
775}
776
Amit Ghosh09f28362020-06-12 21:52:19 +0100777// XXX_OneofWrappers is for the internal use of the proto package.
778func (*EventsConfigurationRequest) XXX_OneofWrappers() []interface{} {
779 return []interface{}{
780 (*EventsConfigurationRequest_Changes)(nil),
781 (*EventsConfigurationRequest_ResetToDefault)(nil),
782 }
783}
784
785type EventsConfigurationResponse struct {
amit.ghoshae473032021-01-10 11:59:10 +0100786 Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"`
787 Reason EventsConfigurationResponse_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.EventsConfigurationResponse_Reason" json:"reason,omitempty"`
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100788 ReasonDetail string `protobuf:"bytes,3,opt,name=reason_detail,json=reasonDetail,proto3" json:"reason_detail,omitempty"`
amit.ghoshae473032021-01-10 11:59:10 +0100789 XXX_NoUnkeyedLiteral struct{} `json:"-"`
790 XXX_unrecognized []byte `json:"-"`
791 XXX_sizecache int32 `json:"-"`
Amit Ghosh09f28362020-06-12 21:52:19 +0100792}
793
794func (m *EventsConfigurationResponse) Reset() { *m = EventsConfigurationResponse{} }
795func (m *EventsConfigurationResponse) String() string { return proto.CompactTextString(m) }
796func (*EventsConfigurationResponse) ProtoMessage() {}
797func (*EventsConfigurationResponse) Descriptor() ([]byte, []int) {
798 return fileDescriptor_8962d785556e9979, []int{8}
799}
800
801func (m *EventsConfigurationResponse) XXX_Unmarshal(b []byte) error {
802 return xxx_messageInfo_EventsConfigurationResponse.Unmarshal(m, b)
803}
804func (m *EventsConfigurationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
805 return xxx_messageInfo_EventsConfigurationResponse.Marshal(b, m, deterministic)
806}
807func (m *EventsConfigurationResponse) XXX_Merge(src proto.Message) {
808 xxx_messageInfo_EventsConfigurationResponse.Merge(m, src)
809}
810func (m *EventsConfigurationResponse) XXX_Size() int {
811 return xxx_messageInfo_EventsConfigurationResponse.Size(m)
812}
813func (m *EventsConfigurationResponse) XXX_DiscardUnknown() {
814 xxx_messageInfo_EventsConfigurationResponse.DiscardUnknown(m)
815}
816
817var xxx_messageInfo_EventsConfigurationResponse proto.InternalMessageInfo
818
819func (m *EventsConfigurationResponse) GetStatus() Status {
820 if m != nil {
821 return m.Status
822 }
823 return Status_UNDEFINED_STATUS
824}
825
amit.ghoshae473032021-01-10 11:59:10 +0100826func (m *EventsConfigurationResponse) GetReason() EventsConfigurationResponse_Reason {
Amit Ghosh09f28362020-06-12 21:52:19 +0100827 if m != nil {
828 return m.Reason
829 }
amit.ghoshae473032021-01-10 11:59:10 +0100830 return EventsConfigurationResponse_UNDEFINED_REASON
Amit Ghosh09f28362020-06-12 21:52:19 +0100831}
832
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100833func (m *EventsConfigurationResponse) GetReasonDetail() string {
834 if m != nil {
835 return m.ReasonDetail
836 }
837 return ""
838}
839
Amit Ghosh09f28362020-06-12 21:52:19 +0100840type EventMetaData struct {
841 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
842 // uuid of the component
843 ComponentUuid *Uuid `protobuf:"bytes,2,opt,name=component_uuid,json=componentUuid,proto3" json:"component_uuid,omitempty"`
844 ComponentName string `protobuf:"bytes,3,opt,name=component_name,json=componentName,proto3" json:"component_name,omitempty"`
845 XXX_NoUnkeyedLiteral struct{} `json:"-"`
846 XXX_unrecognized []byte `json:"-"`
847 XXX_sizecache int32 `json:"-"`
848}
849
850func (m *EventMetaData) Reset() { *m = EventMetaData{} }
851func (m *EventMetaData) String() string { return proto.CompactTextString(m) }
852func (*EventMetaData) ProtoMessage() {}
853func (*EventMetaData) Descriptor() ([]byte, []int) {
854 return fileDescriptor_8962d785556e9979, []int{9}
855}
856
857func (m *EventMetaData) XXX_Unmarshal(b []byte) error {
858 return xxx_messageInfo_EventMetaData.Unmarshal(m, b)
859}
860func (m *EventMetaData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
861 return xxx_messageInfo_EventMetaData.Marshal(b, m, deterministic)
862}
863func (m *EventMetaData) XXX_Merge(src proto.Message) {
864 xxx_messageInfo_EventMetaData.Merge(m, src)
865}
866func (m *EventMetaData) XXX_Size() int {
867 return xxx_messageInfo_EventMetaData.Size(m)
868}
869func (m *EventMetaData) XXX_DiscardUnknown() {
870 xxx_messageInfo_EventMetaData.DiscardUnknown(m)
871}
872
873var xxx_messageInfo_EventMetaData proto.InternalMessageInfo
874
875func (m *EventMetaData) GetDeviceUuid() *Uuid {
876 if m != nil {
877 return m.DeviceUuid
878 }
879 return nil
880}
881
882func (m *EventMetaData) GetComponentUuid() *Uuid {
883 if m != nil {
884 return m.ComponentUuid
885 }
886 return nil
887}
888
889func (m *EventMetaData) GetComponentName() string {
890 if m != nil {
891 return m.ComponentName
892 }
893 return ""
894}
895
896type Event struct {
897 EventMetadata *EventMetaData `protobuf:"bytes,1,opt,name=event_metadata,json=eventMetadata,proto3" json:"event_metadata,omitempty"`
898 EventId EventIds `protobuf:"varint,2,opt,name=event_id,json=eventId,proto3,enum=dmi.EventIds" json:"event_id,omitempty"`
899 RaisedTs *timestamp.Timestamp `protobuf:"bytes,3,opt,name=raised_ts,json=raisedTs,proto3" json:"raised_ts,omitempty"`
900 // Optional threshold information for an event
901 ThresholdInfo *ThresholdInformation `protobuf:"bytes,4,opt,name=threshold_info,json=thresholdInfo,proto3" json:"threshold_info,omitempty"`
902 // Any additional info regarding the event
903 AddInfo string `protobuf:"bytes,5,opt,name=add_info,json=addInfo,proto3" json:"add_info,omitempty"`
904 XXX_NoUnkeyedLiteral struct{} `json:"-"`
905 XXX_unrecognized []byte `json:"-"`
906 XXX_sizecache int32 `json:"-"`
907}
908
909func (m *Event) Reset() { *m = Event{} }
910func (m *Event) String() string { return proto.CompactTextString(m) }
911func (*Event) ProtoMessage() {}
912func (*Event) Descriptor() ([]byte, []int) {
913 return fileDescriptor_8962d785556e9979, []int{10}
914}
915
916func (m *Event) XXX_Unmarshal(b []byte) error {
917 return xxx_messageInfo_Event.Unmarshal(m, b)
918}
919func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
920 return xxx_messageInfo_Event.Marshal(b, m, deterministic)
921}
922func (m *Event) XXX_Merge(src proto.Message) {
923 xxx_messageInfo_Event.Merge(m, src)
924}
925func (m *Event) XXX_Size() int {
926 return xxx_messageInfo_Event.Size(m)
927}
928func (m *Event) XXX_DiscardUnknown() {
929 xxx_messageInfo_Event.DiscardUnknown(m)
930}
931
932var xxx_messageInfo_Event proto.InternalMessageInfo
933
934func (m *Event) GetEventMetadata() *EventMetaData {
935 if m != nil {
936 return m.EventMetadata
937 }
938 return nil
939}
940
941func (m *Event) GetEventId() EventIds {
942 if m != nil {
943 return m.EventId
944 }
945 return EventIds_EVENT_NAME_UNDEFINED
946}
947
948func (m *Event) GetRaisedTs() *timestamp.Timestamp {
949 if m != nil {
950 return m.RaisedTs
951 }
952 return nil
953}
954
955func (m *Event) GetThresholdInfo() *ThresholdInformation {
956 if m != nil {
957 return m.ThresholdInfo
958 }
959 return nil
960}
961
962func (m *Event) GetAddInfo() string {
963 if m != nil {
964 return m.AddInfo
965 }
966 return ""
967}
968
969func init() {
970 proto.RegisterEnum("dmi.EventIds", EventIds_name, EventIds_value)
amit.ghoshae473032021-01-10 11:59:10 +0100971 proto.RegisterEnum("dmi.ListEventsResponse_Reason", ListEventsResponse_Reason_name, ListEventsResponse_Reason_value)
972 proto.RegisterEnum("dmi.EventsConfigurationResponse_Reason", EventsConfigurationResponse_Reason_name, EventsConfigurationResponse_Reason_value)
Amit Ghosh09f28362020-06-12 21:52:19 +0100973 proto.RegisterType((*ValueType)(nil), "dmi.ValueType")
974 proto.RegisterType((*WaterMarks)(nil), "dmi.WaterMarks")
975 proto.RegisterType((*Thresholds)(nil), "dmi.Thresholds")
976 proto.RegisterType((*ThresholdInformation)(nil), "dmi.ThresholdInformation")
977 proto.RegisterType((*EventCfg)(nil), "dmi.EventCfg")
978 proto.RegisterType((*EventsCfg)(nil), "dmi.EventsCfg")
979 proto.RegisterType((*ListEventsResponse)(nil), "dmi.ListEventsResponse")
980 proto.RegisterType((*EventsConfigurationRequest)(nil), "dmi.EventsConfigurationRequest")
981 proto.RegisterType((*EventsConfigurationResponse)(nil), "dmi.EventsConfigurationResponse")
982 proto.RegisterType((*EventMetaData)(nil), "dmi.EventMetaData")
983 proto.RegisterType((*Event)(nil), "dmi.Event")
984}
985
986func init() { proto.RegisterFile("dmi/hw_events_mgmt_service.proto", fileDescriptor_8962d785556e9979) }
987
988var fileDescriptor_8962d785556e9979 = []byte{
amit.ghoshf1be1272022-08-24 19:31:03 +0200989 // 1556 bytes of a gzipped FileDescriptorProto
990 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0xc9, 0x72, 0xdb, 0xca,
991 0x15, 0x15, 0x09, 0x0d, 0xd4, 0x95, 0xc4, 0xc0, 0x5d, 0x8e, 0x2c, 0x51, 0x91, 0xcd, 0x50, 0x89,
992 0x25, 0x2b, 0x11, 0x29, 0x4b, 0x8e, 0x1d, 0x97, 0x17, 0x09, 0x44, 0x42, 0x26, 0x2a, 0x14, 0xa8,
993 0x6a, 0x82, 0x54, 0x2a, 0x0b, 0xa3, 0x5a, 0x44, 0x93, 0x44, 0x4c, 0x00, 0x34, 0xd0, 0x94, 0xa2,
994 0xa4, 0x2a, 0x0b, 0x2f, 0xb3, 0xca, 0xb4, 0x4c, 0xe5, 0x0b, 0x32, 0xfc, 0x46, 0x86, 0x1f, 0x48,
995 0x56, 0xf9, 0x82, 0xec, 0xde, 0xfc, 0x36, 0xaf, 0xd0, 0x00, 0x49, 0x88, 0xa3, 0x5c, 0xf5, 0x76,
996 0xc4, 0x3d, 0xe7, 0xdc, 0x7b, 0x2e, 0xfa, 0xa2, 0xd9, 0x0d, 0x69, 0xc3, 0x32, 0x73, 0xad, 0x6b,
997 0x9d, 0x5e, 0x51, 0x9b, 0x79, 0xba, 0xd5, 0xb4, 0x98, 0xee, 0x51, 0xf7, 0xca, 0xac, 0xd3, 0x6c,
998 0xc7, 0x75, 0x98, 0x83, 0x04, 0xc3, 0x32, 0x53, 0xf7, 0x7c, 0x5a, 0xdd, 0xb1, 0x2c, 0xc7, 0xf6,
999 0x82, 0x78, 0x6a, 0x35, 0x50, 0x86, 0x4f, 0x8f, 0x9a, 0x8e, 0xd3, 0x6c, 0xd3, 0x1c, 0x7f, 0xba,
1000 0xec, 0x36, 0x72, 0xcc, 0xb4, 0xa8, 0xc7, 0x88, 0xd5, 0x09, 0x09, 0x5b, 0xc3, 0x04, 0x6a, 0x75,
1001 0xd8, 0x4d, 0x00, 0x66, 0x4c, 0x58, 0xae, 0x91, 0x76, 0x97, 0x6a, 0x37, 0x1d, 0x8a, 0x36, 0x61,
1002 0xc9, 0xb4, 0x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0x57, 0x83, 0x60, 0x81, 0xc7, 0x32, 0x6f, 0x60, 0x31, 0x48, 0x8f, 0xee,
1025 0x83, 0x58, 0x55, 0x0b, 0xf2, 0xa9, 0xa2, 0xca, 0x05, 0x1d, 0xcb, 0x52, 0xa5, 0xac, 0x8a, 0x73,
1026 0x08, 0x41, 0xb2, 0xaa, 0xfe, 0x44, 0x2d, 0x5f, 0xa8, 0x7a, 0x41, 0xae, 0x29, 0x79, 0x59, 0x8c,
1027 0xf9, 0x31, 0x45, 0xd5, 0x64, 0xac, 0x4a, 0x25, 0x5d, 0xc6, 0xb8, 0x8c, 0xc5, 0x38, 0x5a, 0x07,
1028 0x14, 0xe0, 0x7a, 0x55, 0xc5, 0xb2, 0x94, 0x2f, 0x4a, 0x27, 0x25, 0x59, 0x14, 0x32, 0xff, 0x8b,
1029 0x41, 0x2a, 0xb4, 0x16, 0x2e, 0x0c, 0x9f, 0x2f, 0x4c, 0xdf, 0x75, 0xa9, 0xc7, 0xd0, 0x3e, 0xac,
1030 0x18, 0xd4, 0xdf, 0x1e, 0xf4, 0x6e, 0x37, 0x5c, 0xf4, 0x95, 0xa3, 0x65, 0xde, 0x50, 0xb5, 0x6b,
1031 0x1a, 0x18, 0x02, 0xd4, 0xff, 0x8d, 0xf6, 0x61, 0xa9, 0xde, 0x22, 0x76, 0x93, 0x7a, 0xb7, 0xbe,
1032 0x9e, 0x7e, 0xe3, 0xfe, 0xd7, 0x1b, 0x12, 0xd0, 0x3e, 0x88, 0x2e, 0xf5, 0x28, 0xd3, 0x99, 0xa3,
1033 0x1b, 0xb4, 0x41, 0xba, 0x6d, 0xc6, 0xdf, 0x56, 0xa2, 0x38, 0x87, 0x93, 0x1c, 0xd1, 0x9c, 0x42,
1034 0x10, 0x47, 0x87, 0x90, 0xac, 0x3b, 0x56, 0xc7, 0xb1, 0xfd, 0xc9, 0xe3, 0x36, 0xe6, 0x87, 0x6d,
1035 0xac, 0xf5, 0x09, 0xfe, 0xa3, 0xff, 0x05, 0x39, 0x1d, 0x1a, 0x74, 0x92, 0xf9, 0x53, 0x1c, 0xb6,
1036 0xc6, 0x76, 0xf8, 0x21, 0xb3, 0xf0, 0xa3, 0xa1, 0x59, 0xd8, 0x8d, 0xb6, 0x36, 0x2e, 0xed, 0xf0,
1037 0x50, 0x8c, 0x2c, 0xb6, 0x30, 0x66, 0xb1, 0xdd, 0xaf, 0x69, 0xb1, 0x79, 0xac, 0x26, 0x95, 0x94,
1038 0x82, 0x9e, 0x2f, 0xab, 0xa7, 0xca, 0x6b, 0x51, 0x98, 0x30, 0x00, 0xf3, 0x99, 0x3f, 0xc6, 0x60,
1039 0x8d, 0xf7, 0x71, 0x46, 0x19, 0x29, 0x10, 0x46, 0x3e, 0x68, 0xcd, 0x47, 0xd7, 0x26, 0x3e, 0x7d,
1040 0x6d, 0xd0, 0x77, 0xa3, 0x0a, 0x9b, 0x58, 0x34, 0x7c, 0x13, 0x03, 0x9a, 0x4a, 0x2c, 0x9a, 0x79,
1041 0x1f, 0x87, 0x05, 0x6e, 0x0b, 0xbd, 0x84, 0x64, 0xb0, 0xe9, 0x58, 0x94, 0x11, 0x83, 0x30, 0x12,
1042 0x3a, 0x42, 0x83, 0x25, 0xe8, 0x59, 0xc7, 0x6b, 0xb4, 0xf7, 0xe8, 0x13, 0x6f, 0xed, 0x57, 0xf1,
1043 0xa9, 0xfb, 0xd5, 0x0b, 0x58, 0x76, 0x89, 0xe9, 0x51, 0x43, 0xef, 0x7f, 0xb6, 0xa9, 0x6c, 0xf0,
1044 0x1f, 0x96, 0xed, 0xfd, 0x87, 0x65, 0xb5, 0xde, 0x9f, 0x1c, 0x4e, 0x04, 0x64, 0xcd, 0x43, 0x3f,
1045 0x86, 0x64, 0x7f, 0x83, 0xd2, 0x4d, 0xbb, 0xe1, 0x84, 0xc3, 0xb9, 0x79, 0x7b, 0x1f, 0x8b, 0x6c,
1046 0xdd, 0x78, 0x8d, 0x45, 0xa3, 0x68, 0x13, 0x12, 0xc4, 0x08, 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, 0xb8,
1080 0x26, 0x2e, 0x55, 0x0a, 0xa9, 0x07, 0x13, 0xee, 0x2d, 0xe8, 0x0d, 0x6c, 0x56, 0x3b, 0x06, 0x61,
1081 0x74, 0xcc, 0x39, 0x16, 0x3d, 0x9a, 0x7c, 0xc2, 0xe5, 0x57, 0x83, 0x54, 0x7a, 0xd6, 0x11, 0x18,
1082 0x3d, 0x83, 0xd5, 0x0a, 0x73, 0x29, 0xb1, 0x42, 0x67, 0xeb, 0x23, 0x27, 0x2a, 0xd9, 0xea, 0xb0,
1083 0x9b, 0x14, 0x0c, 0x32, 0x1d, 0xc6, 0x4e, 0x5e, 0xfd, 0xec, 0x65, 0xd3, 0x64, 0xad, 0xee, 0x65,
1084 0xb6, 0xee, 0x58, 0x39, 0xa7, 0x43, 0xed, 0xba, 0xe3, 0x1a, 0xb9, 0xe0, 0xd0, 0x79, 0x60, 0xf5,
1085 0xbb, 0x3f, 0x30, 0x6d, 0x46, 0xdd, 0x06, 0xa9, 0xd3, 0xdc, 0xd5, 0x71, 0xae, 0xe9, 0xe4, 0x0c,
1086 0xcb, 0xbc, 0x5c, 0xe4, 0xa9, 0x8f, 0xbf, 0x0a, 0x00, 0x00, 0xff, 0xff, 0xb8, 0xd9, 0x89, 0xdc,
1087 0xe9, 0x10, 0x00, 0x00,
Amit Ghosh09f28362020-06-12 21:52:19 +01001088}
1089
1090// Reference imports to suppress errors if they are not otherwise used.
1091var _ context.Context
1092var _ grpc.ClientConn
1093
1094// This is a compile-time assertion to ensure that this generated file
1095// is compatible with the grpc package it is being compiled against.
1096const _ = grpc.SupportPackageIsVersion4
1097
1098// NativeEventsManagementServiceClient is the client API for NativeEventsManagementService service.
1099//
1100// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
1101type NativeEventsManagementServiceClient interface {
1102 // List the supported events for the passed device
1103 ListEvents(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (*ListEventsResponse, error)
1104 // Updates the configuration of the list of events in the request
aghoshc301dcd2020-09-03 16:55:34 +01001105 // The default behavior of the device is to report all the supported events
Amit Ghosh09f28362020-06-12 21:52:19 +01001106 // This configuration is persisted across reboots of the device or the device manager
1107 UpdateEventsConfiguration(ctx context.Context, in *EventsConfigurationRequest, opts ...grpc.CallOption) (*EventsConfigurationResponse, error)
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +05301108 // Initiate the server streaming of the events
1109 StreamEvents(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (NativeEventsManagementService_StreamEventsClient, error)
Amit Ghosh09f28362020-06-12 21:52:19 +01001110}
1111
1112type nativeEventsManagementServiceClient struct {
1113 cc *grpc.ClientConn
1114}
1115
1116func NewNativeEventsManagementServiceClient(cc *grpc.ClientConn) NativeEventsManagementServiceClient {
1117 return &nativeEventsManagementServiceClient{cc}
1118}
1119
1120func (c *nativeEventsManagementServiceClient) ListEvents(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (*ListEventsResponse, error) {
1121 out := new(ListEventsResponse)
1122 err := c.cc.Invoke(ctx, "/dmi.NativeEventsManagementService/ListEvents", in, out, opts...)
1123 if err != nil {
1124 return nil, err
1125 }
1126 return out, nil
1127}
1128
1129func (c *nativeEventsManagementServiceClient) UpdateEventsConfiguration(ctx context.Context, in *EventsConfigurationRequest, opts ...grpc.CallOption) (*EventsConfigurationResponse, error) {
1130 out := new(EventsConfigurationResponse)
1131 err := c.cc.Invoke(ctx, "/dmi.NativeEventsManagementService/UpdateEventsConfiguration", in, out, opts...)
1132 if err != nil {
1133 return nil, err
1134 }
1135 return out, nil
1136}
1137
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +05301138func (c *nativeEventsManagementServiceClient) StreamEvents(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (NativeEventsManagementService_StreamEventsClient, error) {
1139 stream, err := c.cc.NewStream(ctx, &_NativeEventsManagementService_serviceDesc.Streams[0], "/dmi.NativeEventsManagementService/StreamEvents", opts...)
1140 if err != nil {
1141 return nil, err
1142 }
1143 x := &nativeEventsManagementServiceStreamEventsClient{stream}
1144 if err := x.ClientStream.SendMsg(in); err != nil {
1145 return nil, err
1146 }
1147 if err := x.ClientStream.CloseSend(); err != nil {
1148 return nil, err
1149 }
1150 return x, nil
1151}
1152
1153type NativeEventsManagementService_StreamEventsClient interface {
1154 Recv() (*Event, error)
1155 grpc.ClientStream
1156}
1157
1158type nativeEventsManagementServiceStreamEventsClient struct {
1159 grpc.ClientStream
1160}
1161
1162func (x *nativeEventsManagementServiceStreamEventsClient) Recv() (*Event, error) {
1163 m := new(Event)
1164 if err := x.ClientStream.RecvMsg(m); err != nil {
1165 return nil, err
1166 }
1167 return m, nil
1168}
1169
Amit Ghosh09f28362020-06-12 21:52:19 +01001170// NativeEventsManagementServiceServer is the server API for NativeEventsManagementService service.
1171type NativeEventsManagementServiceServer interface {
1172 // List the supported events for the passed device
1173 ListEvents(context.Context, *HardwareID) (*ListEventsResponse, error)
1174 // Updates the configuration of the list of events in the request
aghoshc301dcd2020-09-03 16:55:34 +01001175 // The default behavior of the device is to report all the supported events
Amit Ghosh09f28362020-06-12 21:52:19 +01001176 // This configuration is persisted across reboots of the device or the device manager
1177 UpdateEventsConfiguration(context.Context, *EventsConfigurationRequest) (*EventsConfigurationResponse, error)
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +05301178 // Initiate the server streaming of the events
1179 StreamEvents(*empty.Empty, NativeEventsManagementService_StreamEventsServer) error
Amit Ghosh09f28362020-06-12 21:52:19 +01001180}
1181
Andrea Campanellac795b7d2021-04-14 13:24:44 +02001182// UnimplementedNativeEventsManagementServiceServer can be embedded to have forward compatible implementations.
1183type UnimplementedNativeEventsManagementServiceServer struct {
1184}
1185
1186func (*UnimplementedNativeEventsManagementServiceServer) ListEvents(ctx context.Context, req *HardwareID) (*ListEventsResponse, error) {
1187 return nil, status.Errorf(codes.Unimplemented, "method ListEvents not implemented")
1188}
1189func (*UnimplementedNativeEventsManagementServiceServer) UpdateEventsConfiguration(ctx context.Context, req *EventsConfigurationRequest) (*EventsConfigurationResponse, error) {
1190 return nil, status.Errorf(codes.Unimplemented, "method UpdateEventsConfiguration not implemented")
1191}
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +05301192func (*UnimplementedNativeEventsManagementServiceServer) StreamEvents(req *empty.Empty, srv NativeEventsManagementService_StreamEventsServer) error {
1193 return status.Errorf(codes.Unimplemented, "method StreamEvents not implemented")
1194}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02001195
Amit Ghosh09f28362020-06-12 21:52:19 +01001196func RegisterNativeEventsManagementServiceServer(s *grpc.Server, srv NativeEventsManagementServiceServer) {
1197 s.RegisterService(&_NativeEventsManagementService_serviceDesc, srv)
1198}
1199
1200func _NativeEventsManagementService_ListEvents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1201 in := new(HardwareID)
1202 if err := dec(in); err != nil {
1203 return nil, err
1204 }
1205 if interceptor == nil {
1206 return srv.(NativeEventsManagementServiceServer).ListEvents(ctx, in)
1207 }
1208 info := &grpc.UnaryServerInfo{
1209 Server: srv,
1210 FullMethod: "/dmi.NativeEventsManagementService/ListEvents",
1211 }
1212 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1213 return srv.(NativeEventsManagementServiceServer).ListEvents(ctx, req.(*HardwareID))
1214 }
1215 return interceptor(ctx, in, info, handler)
1216}
1217
1218func _NativeEventsManagementService_UpdateEventsConfiguration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1219 in := new(EventsConfigurationRequest)
1220 if err := dec(in); err != nil {
1221 return nil, err
1222 }
1223 if interceptor == nil {
1224 return srv.(NativeEventsManagementServiceServer).UpdateEventsConfiguration(ctx, in)
1225 }
1226 info := &grpc.UnaryServerInfo{
1227 Server: srv,
1228 FullMethod: "/dmi.NativeEventsManagementService/UpdateEventsConfiguration",
1229 }
1230 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1231 return srv.(NativeEventsManagementServiceServer).UpdateEventsConfiguration(ctx, req.(*EventsConfigurationRequest))
1232 }
1233 return interceptor(ctx, in, info, handler)
1234}
1235
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +05301236func _NativeEventsManagementService_StreamEvents_Handler(srv interface{}, stream grpc.ServerStream) error {
1237 m := new(empty.Empty)
1238 if err := stream.RecvMsg(m); err != nil {
1239 return err
1240 }
1241 return srv.(NativeEventsManagementServiceServer).StreamEvents(m, &nativeEventsManagementServiceStreamEventsServer{stream})
1242}
1243
1244type NativeEventsManagementService_StreamEventsServer interface {
1245 Send(*Event) error
1246 grpc.ServerStream
1247}
1248
1249type nativeEventsManagementServiceStreamEventsServer struct {
1250 grpc.ServerStream
1251}
1252
1253func (x *nativeEventsManagementServiceStreamEventsServer) Send(m *Event) error {
1254 return x.ServerStream.SendMsg(m)
1255}
1256
Amit Ghosh09f28362020-06-12 21:52:19 +01001257var _NativeEventsManagementService_serviceDesc = grpc.ServiceDesc{
1258 ServiceName: "dmi.NativeEventsManagementService",
1259 HandlerType: (*NativeEventsManagementServiceServer)(nil),
1260 Methods: []grpc.MethodDesc{
1261 {
1262 MethodName: "ListEvents",
1263 Handler: _NativeEventsManagementService_ListEvents_Handler,
1264 },
1265 {
1266 MethodName: "UpdateEventsConfiguration",
1267 Handler: _NativeEventsManagementService_UpdateEventsConfiguration_Handler,
1268 },
1269 },
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +05301270 Streams: []grpc.StreamDesc{
1271 {
1272 StreamName: "StreamEvents",
1273 Handler: _NativeEventsManagementService_StreamEvents_Handler,
1274 ServerStreams: true,
1275 },
1276 },
Amit Ghosh09f28362020-06-12 21:52:19 +01001277 Metadata: "dmi/hw_events_mgmt_service.proto",
1278}