blob: c1d19c3f78ad5cf16fd104de056f29c996a04db2 [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
692 Operation isEventsConfigurationRequest_Operation `protobuf_oneof:"operation"`
693 XXX_NoUnkeyedLiteral struct{} `json:"-"`
694 XXX_unrecognized []byte `json:"-"`
695 XXX_sizecache int32 `json:"-"`
696}
697
698func (m *EventsConfigurationRequest) Reset() { *m = EventsConfigurationRequest{} }
699func (m *EventsConfigurationRequest) String() string { return proto.CompactTextString(m) }
700func (*EventsConfigurationRequest) ProtoMessage() {}
701func (*EventsConfigurationRequest) Descriptor() ([]byte, []int) {
702 return fileDescriptor_8962d785556e9979, []int{7}
703}
704
705func (m *EventsConfigurationRequest) XXX_Unmarshal(b []byte) error {
706 return xxx_messageInfo_EventsConfigurationRequest.Unmarshal(m, b)
707}
708func (m *EventsConfigurationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
709 return xxx_messageInfo_EventsConfigurationRequest.Marshal(b, m, deterministic)
710}
711func (m *EventsConfigurationRequest) XXX_Merge(src proto.Message) {
712 xxx_messageInfo_EventsConfigurationRequest.Merge(m, src)
713}
714func (m *EventsConfigurationRequest) XXX_Size() int {
715 return xxx_messageInfo_EventsConfigurationRequest.Size(m)
716}
717func (m *EventsConfigurationRequest) XXX_DiscardUnknown() {
718 xxx_messageInfo_EventsConfigurationRequest.DiscardUnknown(m)
719}
720
721var xxx_messageInfo_EventsConfigurationRequest proto.InternalMessageInfo
722
723func (m *EventsConfigurationRequest) GetDeviceUuid() *Uuid {
724 if m != nil {
725 return m.DeviceUuid
726 }
727 return nil
728}
729
730type isEventsConfigurationRequest_Operation interface {
731 isEventsConfigurationRequest_Operation()
732}
733
734type EventsConfigurationRequest_Changes struct {
735 Changes *EventsCfg `protobuf:"bytes,2,opt,name=changes,proto3,oneof"`
736}
737
738type EventsConfigurationRequest_ResetToDefault struct {
739 ResetToDefault bool `protobuf:"varint,3,opt,name=reset_to_default,json=resetToDefault,proto3,oneof"`
740}
741
742func (*EventsConfigurationRequest_Changes) isEventsConfigurationRequest_Operation() {}
743
744func (*EventsConfigurationRequest_ResetToDefault) isEventsConfigurationRequest_Operation() {}
745
746func (m *EventsConfigurationRequest) GetOperation() isEventsConfigurationRequest_Operation {
747 if m != nil {
748 return m.Operation
749 }
750 return nil
751}
752
753func (m *EventsConfigurationRequest) GetChanges() *EventsCfg {
754 if x, ok := m.GetOperation().(*EventsConfigurationRequest_Changes); ok {
755 return x.Changes
756 }
757 return nil
758}
759
760func (m *EventsConfigurationRequest) GetResetToDefault() bool {
761 if x, ok := m.GetOperation().(*EventsConfigurationRequest_ResetToDefault); ok {
762 return x.ResetToDefault
763 }
764 return false
765}
766
767// XXX_OneofWrappers is for the internal use of the proto package.
768func (*EventsConfigurationRequest) XXX_OneofWrappers() []interface{} {
769 return []interface{}{
770 (*EventsConfigurationRequest_Changes)(nil),
771 (*EventsConfigurationRequest_ResetToDefault)(nil),
772 }
773}
774
775type EventsConfigurationResponse struct {
amit.ghoshae473032021-01-10 11:59:10 +0100776 Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"`
777 Reason EventsConfigurationResponse_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.EventsConfigurationResponse_Reason" json:"reason,omitempty"`
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100778 ReasonDetail string `protobuf:"bytes,3,opt,name=reason_detail,json=reasonDetail,proto3" json:"reason_detail,omitempty"`
amit.ghoshae473032021-01-10 11:59:10 +0100779 XXX_NoUnkeyedLiteral struct{} `json:"-"`
780 XXX_unrecognized []byte `json:"-"`
781 XXX_sizecache int32 `json:"-"`
Amit Ghosh09f28362020-06-12 21:52:19 +0100782}
783
784func (m *EventsConfigurationResponse) Reset() { *m = EventsConfigurationResponse{} }
785func (m *EventsConfigurationResponse) String() string { return proto.CompactTextString(m) }
786func (*EventsConfigurationResponse) ProtoMessage() {}
787func (*EventsConfigurationResponse) Descriptor() ([]byte, []int) {
788 return fileDescriptor_8962d785556e9979, []int{8}
789}
790
791func (m *EventsConfigurationResponse) XXX_Unmarshal(b []byte) error {
792 return xxx_messageInfo_EventsConfigurationResponse.Unmarshal(m, b)
793}
794func (m *EventsConfigurationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
795 return xxx_messageInfo_EventsConfigurationResponse.Marshal(b, m, deterministic)
796}
797func (m *EventsConfigurationResponse) XXX_Merge(src proto.Message) {
798 xxx_messageInfo_EventsConfigurationResponse.Merge(m, src)
799}
800func (m *EventsConfigurationResponse) XXX_Size() int {
801 return xxx_messageInfo_EventsConfigurationResponse.Size(m)
802}
803func (m *EventsConfigurationResponse) XXX_DiscardUnknown() {
804 xxx_messageInfo_EventsConfigurationResponse.DiscardUnknown(m)
805}
806
807var xxx_messageInfo_EventsConfigurationResponse proto.InternalMessageInfo
808
809func (m *EventsConfigurationResponse) GetStatus() Status {
810 if m != nil {
811 return m.Status
812 }
813 return Status_UNDEFINED_STATUS
814}
815
amit.ghoshae473032021-01-10 11:59:10 +0100816func (m *EventsConfigurationResponse) GetReason() EventsConfigurationResponse_Reason {
Amit Ghosh09f28362020-06-12 21:52:19 +0100817 if m != nil {
818 return m.Reason
819 }
amit.ghoshae473032021-01-10 11:59:10 +0100820 return EventsConfigurationResponse_UNDEFINED_REASON
Amit Ghosh09f28362020-06-12 21:52:19 +0100821}
822
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100823func (m *EventsConfigurationResponse) GetReasonDetail() string {
824 if m != nil {
825 return m.ReasonDetail
826 }
827 return ""
828}
829
Amit Ghosh09f28362020-06-12 21:52:19 +0100830type EventMetaData struct {
831 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
832 // uuid of the component
833 ComponentUuid *Uuid `protobuf:"bytes,2,opt,name=component_uuid,json=componentUuid,proto3" json:"component_uuid,omitempty"`
834 ComponentName string `protobuf:"bytes,3,opt,name=component_name,json=componentName,proto3" json:"component_name,omitempty"`
835 XXX_NoUnkeyedLiteral struct{} `json:"-"`
836 XXX_unrecognized []byte `json:"-"`
837 XXX_sizecache int32 `json:"-"`
838}
839
840func (m *EventMetaData) Reset() { *m = EventMetaData{} }
841func (m *EventMetaData) String() string { return proto.CompactTextString(m) }
842func (*EventMetaData) ProtoMessage() {}
843func (*EventMetaData) Descriptor() ([]byte, []int) {
844 return fileDescriptor_8962d785556e9979, []int{9}
845}
846
847func (m *EventMetaData) XXX_Unmarshal(b []byte) error {
848 return xxx_messageInfo_EventMetaData.Unmarshal(m, b)
849}
850func (m *EventMetaData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
851 return xxx_messageInfo_EventMetaData.Marshal(b, m, deterministic)
852}
853func (m *EventMetaData) XXX_Merge(src proto.Message) {
854 xxx_messageInfo_EventMetaData.Merge(m, src)
855}
856func (m *EventMetaData) XXX_Size() int {
857 return xxx_messageInfo_EventMetaData.Size(m)
858}
859func (m *EventMetaData) XXX_DiscardUnknown() {
860 xxx_messageInfo_EventMetaData.DiscardUnknown(m)
861}
862
863var xxx_messageInfo_EventMetaData proto.InternalMessageInfo
864
865func (m *EventMetaData) GetDeviceUuid() *Uuid {
866 if m != nil {
867 return m.DeviceUuid
868 }
869 return nil
870}
871
872func (m *EventMetaData) GetComponentUuid() *Uuid {
873 if m != nil {
874 return m.ComponentUuid
875 }
876 return nil
877}
878
879func (m *EventMetaData) GetComponentName() string {
880 if m != nil {
881 return m.ComponentName
882 }
883 return ""
884}
885
886type Event struct {
887 EventMetadata *EventMetaData `protobuf:"bytes,1,opt,name=event_metadata,json=eventMetadata,proto3" json:"event_metadata,omitempty"`
888 EventId EventIds `protobuf:"varint,2,opt,name=event_id,json=eventId,proto3,enum=dmi.EventIds" json:"event_id,omitempty"`
889 RaisedTs *timestamp.Timestamp `protobuf:"bytes,3,opt,name=raised_ts,json=raisedTs,proto3" json:"raised_ts,omitempty"`
890 // Optional threshold information for an event
891 ThresholdInfo *ThresholdInformation `protobuf:"bytes,4,opt,name=threshold_info,json=thresholdInfo,proto3" json:"threshold_info,omitempty"`
892 // Any additional info regarding the event
893 AddInfo string `protobuf:"bytes,5,opt,name=add_info,json=addInfo,proto3" json:"add_info,omitempty"`
894 XXX_NoUnkeyedLiteral struct{} `json:"-"`
895 XXX_unrecognized []byte `json:"-"`
896 XXX_sizecache int32 `json:"-"`
897}
898
899func (m *Event) Reset() { *m = Event{} }
900func (m *Event) String() string { return proto.CompactTextString(m) }
901func (*Event) ProtoMessage() {}
902func (*Event) Descriptor() ([]byte, []int) {
903 return fileDescriptor_8962d785556e9979, []int{10}
904}
905
906func (m *Event) XXX_Unmarshal(b []byte) error {
907 return xxx_messageInfo_Event.Unmarshal(m, b)
908}
909func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
910 return xxx_messageInfo_Event.Marshal(b, m, deterministic)
911}
912func (m *Event) XXX_Merge(src proto.Message) {
913 xxx_messageInfo_Event.Merge(m, src)
914}
915func (m *Event) XXX_Size() int {
916 return xxx_messageInfo_Event.Size(m)
917}
918func (m *Event) XXX_DiscardUnknown() {
919 xxx_messageInfo_Event.DiscardUnknown(m)
920}
921
922var xxx_messageInfo_Event proto.InternalMessageInfo
923
924func (m *Event) GetEventMetadata() *EventMetaData {
925 if m != nil {
926 return m.EventMetadata
927 }
928 return nil
929}
930
931func (m *Event) GetEventId() EventIds {
932 if m != nil {
933 return m.EventId
934 }
935 return EventIds_EVENT_NAME_UNDEFINED
936}
937
938func (m *Event) GetRaisedTs() *timestamp.Timestamp {
939 if m != nil {
940 return m.RaisedTs
941 }
942 return nil
943}
944
945func (m *Event) GetThresholdInfo() *ThresholdInformation {
946 if m != nil {
947 return m.ThresholdInfo
948 }
949 return nil
950}
951
952func (m *Event) GetAddInfo() string {
953 if m != nil {
954 return m.AddInfo
955 }
956 return ""
957}
958
959func init() {
960 proto.RegisterEnum("dmi.EventIds", EventIds_name, EventIds_value)
amit.ghoshae473032021-01-10 11:59:10 +0100961 proto.RegisterEnum("dmi.ListEventsResponse_Reason", ListEventsResponse_Reason_name, ListEventsResponse_Reason_value)
962 proto.RegisterEnum("dmi.EventsConfigurationResponse_Reason", EventsConfigurationResponse_Reason_name, EventsConfigurationResponse_Reason_value)
Amit Ghosh09f28362020-06-12 21:52:19 +0100963 proto.RegisterType((*ValueType)(nil), "dmi.ValueType")
964 proto.RegisterType((*WaterMarks)(nil), "dmi.WaterMarks")
965 proto.RegisterType((*Thresholds)(nil), "dmi.Thresholds")
966 proto.RegisterType((*ThresholdInformation)(nil), "dmi.ThresholdInformation")
967 proto.RegisterType((*EventCfg)(nil), "dmi.EventCfg")
968 proto.RegisterType((*EventsCfg)(nil), "dmi.EventsCfg")
969 proto.RegisterType((*ListEventsResponse)(nil), "dmi.ListEventsResponse")
970 proto.RegisterType((*EventsConfigurationRequest)(nil), "dmi.EventsConfigurationRequest")
971 proto.RegisterType((*EventsConfigurationResponse)(nil), "dmi.EventsConfigurationResponse")
972 proto.RegisterType((*EventMetaData)(nil), "dmi.EventMetaData")
973 proto.RegisterType((*Event)(nil), "dmi.Event")
974}
975
976func init() { proto.RegisterFile("dmi/hw_events_mgmt_service.proto", fileDescriptor_8962d785556e9979) }
977
978var fileDescriptor_8962d785556e9979 = []byte{
amit.ghoshc0c3c242022-03-16 11:00:27 +0100979 // 1549 bytes of a gzipped FileDescriptorProto
980 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0xcb, 0x72, 0xdb, 0xc8,
981 0x15, 0x15, 0x09, 0x3d, 0xa8, 0x2b, 0x89, 0x81, 0xbb, 0x1c, 0x59, 0xa2, 0x22, 0x9b, 0xa1, 0x12,
982 0x4b, 0x56, 0x22, 0x52, 0x96, 0x1c, 0x3b, 0x2e, 0x2f, 0x12, 0x88, 0x84, 0x4c, 0x54, 0x28, 0x50,
983 0xd5, 0x04, 0xa9, 0x54, 0x16, 0x46, 0xb5, 0x88, 0x26, 0x89, 0x98, 0x00, 0x68, 0xa0, 0x29, 0xc5,
984 0x49, 0x55, 0x16, 0x5e, 0x66, 0x95, 0xd7, 0x32, 0x95, 0x2f, 0x18, 0xcf, 0xfc, 0xc6, 0x3c, 0x7e,
985 0x60, 0xe6, 0x23, 0x66, 0x37, 0xef, 0xd9, 0x4c, 0xa1, 0x01, 0x92, 0x10, 0x1f, 0xa2, 0x5c, 0x35,
986 0x3b, 0xf2, 0x9e, 0x73, 0xee, 0x3d, 0x8d, 0x7b, 0xbb, 0xd1, 0x80, 0xb4, 0x61, 0x99, 0xb9, 0xd6,
987 0xa5, 0x4e, 0x2f, 0xa8, 0xcd, 0x3c, 0xdd, 0x6a, 0x5a, 0x4c, 0xf7, 0xa8, 0x7b, 0x61, 0xd6, 0x69,
988 0xb6, 0xe3, 0x3a, 0xcc, 0x41, 0x82, 0x61, 0x99, 0xa9, 0x5b, 0x3e, 0xad, 0xee, 0x58, 0x96, 0x63,
989 0x7b, 0x41, 0x3c, 0xb5, 0x1c, 0x28, 0xc3, 0x7f, 0xf7, 0x9a, 0x8e, 0xd3, 0x6c, 0xd3, 0x1c, 0xff,
990 0x77, 0xde, 0x6d, 0xe4, 0x98, 0x69, 0x51, 0x8f, 0x11, 0xab, 0x13, 0x12, 0x36, 0x86, 0x09, 0xd4,
991 0xea, 0xb0, 0xd7, 0x01, 0x98, 0x31, 0x61, 0xb1, 0x46, 0xda, 0x5d, 0xaa, 0xbd, 0xee, 0x50, 0xb4,
992 0x0e, 0x0b, 0xa6, 0xcd, 0xf4, 0x0b, 0xd2, 0x5e, 0x8b, 0xa5, 0x63, 0x3b, 0x42, 0x71, 0x06, 0xcf,
993 0x9b, 0x36, 0xab, 0x91, 0x36, 0xda, 0x80, 0x44, 0xb7, 0x87, 0xc5, 0xd3, 0xb1, 0x9d, 0xd9, 0xe2,
994 0x0c, 0x5e, 0xe8, 0x86, 0xe0, 0x26, 0x2c, 0x36, 0xda, 0x0e, 0x09, 0x50, 0x21, 0x1d, 0xdb, 0x89,
995 0x17, 0x67, 0x70, 0x82, 0x87, 0x6a, 0xa4, 0x7d, 0x34, 0x07, 0xc2, 0x05, 0x69, 0x67, 0x30, 0xc0,
996 0x19, 0x61, 0xd4, 0x3d, 0x21, 0xee, 0x4b, 0x0f, 0x65, 0x60, 0xb6, 0x65, 0x36, 0x5b, 0xbc, 0xd0,
997 0xd2, 0x41, 0x32, 0x6b, 0x58, 0x66, 0xb6, 0xef, 0x04, 0x73, 0x0c, 0xa5, 0x41, 0x68, 0x3b, 0x97,
998 0xbc, 0xde, 0x28, 0xc5, 0x87, 0x32, 0x2f, 0x01, 0xb4, 0x96, 0x4b, 0xbd, 0x96, 0xd3, 0x36, 0x3c,
999 0xb4, 0x0d, 0x73, 0xdd, 0x4e, 0x87, 0xba, 0x61, 0xd2, 0x9f, 0x70, 0xc5, 0xa0, 0x66, 0x71, 0x06,
1000 0x07, 0xb8, 0x4f, 0x6c, 0x3b, 0x97, 0xd4, 0x0d, 0x53, 0x8f, 0x23, 0x72, 0xfc, 0x68, 0x09, 0x16,
1001 0x59, 0x2f, 0x7f, 0xe6, 0xef, 0x70, 0xbb, 0x5f, 0x4c, 0xb1, 0x1b, 0x8e, 0x6b, 0x11, 0x66, 0x3a,
1002 0x36, 0xfa, 0x0d, 0x24, 0x9d, 0x73, 0xbf, 0x75, 0xd4, 0xf0, 0x9f, 0x40, 0x97, 0x4e, 0x58, 0xd4,
1003 0x4a, 0x8f, 0xc5, 0x43, 0x28, 0x07, 0xd0, 0xcf, 0xed, 0x5d, 0x71, 0x32, 0x58, 0x12, 0x8e, 0x50,
1004 0x32, 0xff, 0x88, 0x41, 0x42, 0xf6, 0xa7, 0x25, 0xdf, 0x68, 0xa2, 0x1d, 0x48, 0xf0, 0xc9, 0xd1,
1005 0x4d, 0x83, 0x97, 0x4b, 0x1e, 0xac, 0x70, 0x2d, 0x27, 0x28, 0x86, 0x87, 0x17, 0x68, 0xf0, 0x0b,
1006 0x6d, 0xc1, 0x8a, 0xe9, 0xe9, 0x75, 0xc7, 0x6e, 0x98, 0xcd, 0x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x18, 0x97, 0xb1, 0x18, 0x47,
1018 0xab, 0x80, 0x02, 0x5c, 0xaf, 0xaa, 0x58, 0x96, 0xf2, 0x45, 0xe9, 0xa8, 0x24, 0x8b, 0x42, 0xe6,
1019 0x6d, 0x0c, 0x52, 0xa1, 0xb5, 0xb0, 0x31, 0x7c, 0xbe, 0x30, 0x7d, 0xd5, 0xa5, 0x1e, 0x43, 0xbb,
1020 0xb0, 0x64, 0x50, 0xff, 0x78, 0xd0, 0xbb, 0xdd, 0xb0, 0xe9, 0x4b, 0x07, 0x8b, 0x7c, 0x41, 0xd5,
1021 0xae, 0x69, 0x60, 0x08, 0x50, 0xff, 0x37, 0xda, 0x85, 0x85, 0x7a, 0x8b, 0xd8, 0x4d, 0xea, 0x5d,
1022 0xd9, 0x3d, 0xfd, 0x85, 0xfb, 0xbb, 0x37, 0x24, 0xa0, 0x5d, 0x10, 0x5d, 0xea, 0x51, 0xa6, 0x33,
1023 0x47, 0x37, 0x68, 0x83, 0x74, 0xdb, 0x8c, 0x3f, 0xad, 0x44, 0x71, 0x06, 0x27, 0x39, 0xa2, 0x39,
1024 0x85, 0x20, 0xee, 0xef, 0x07, 0xa7, 0x43, 0x03, 0x5f, 0x99, 0xff, 0xc5, 0x61, 0x63, 0xac, 0xdf,
1025 0x77, 0xe9, 0xec, 0xef, 0x86, 0x3a, 0xbb, 0x1d, 0x35, 0x3a, 0x2e, 0xed, 0x70, 0x8b, 0x47, 0x5a,
1026 0x27, 0x8c, 0x69, 0x9d, 0xfb, 0x23, 0xb5, 0x8e, 0xc7, 0x6a, 0x52, 0x49, 0x29, 0xe8, 0xf9, 0xb2,
1027 0x7a, 0xac, 0x3c, 0x17, 0x85, 0x09, 0xed, 0x9c, 0xcd, 0xfc, 0x37, 0x06, 0x2b, 0x7c, 0x1d, 0x27,
1028 0x94, 0x91, 0x02, 0x61, 0xe4, 0x9d, 0x3a, 0xb8, 0x0f, 0xc9, 0xba, 0x63, 0x75, 0x1c, 0xdb, 0xdf,
1029 0xe3, 0x9c, 0x1e, 0x1f, 0xa6, 0xaf, 0xf4, 0x09, 0x5c, 0xf1, 0xcb, 0xa8, 0xc2, 0x26, 0x16, 0x0d,
1030 0x9f, 0xc4, 0x80, 0xa6, 0x12, 0x8b, 0x66, 0xde, 0xc4, 0x61, 0x8e, 0xdb, 0x42, 0x4f, 0x21, 0x19,
1031 0x1c, 0x21, 0x16, 0x65, 0xc4, 0x20, 0x8c, 0x84, 0x8e, 0xd0, 0xa0, 0x05, 0x3d, 0xeb, 0x78, 0x85,
1032 0xf6, 0xfe, 0xfa, 0xc4, 0x2b, 0xa7, 0x4f, 0xfc, 0xda, 0xd3, 0xe7, 0x09, 0x2c, 0xba, 0xc4, 0xf4,
1033 0xa8, 0xa1, 0xf7, 0x37, 0x61, 0x2a, 0x1b, 0xbc, 0x91, 0xb2, 0xbd, 0x37, 0x52, 0x56, 0xeb, 0xbd,
1034 0xb2, 0x70, 0x22, 0x20, 0x6b, 0x1e, 0xfa, 0x3d, 0x24, 0xfb, 0xc7, 0x8d, 0x6e, 0xda, 0x0d, 0x87,
1035 0xef, 0xc9, 0xa5, 0x83, 0xf5, 0xab, 0xa7, 0x52, 0xe4, 0x20, 0xc6, 0x2b, 0x2c, 0x1a, 0x45, 0xeb,
1036 0x90, 0x20, 0x46, 0xa8, 0x9d, 0xe3, 0x8f, 0x62, 0x81, 0x18, 0x1c, 0xda, 0x7d, 0x23, 0x86, 0x47,
1037 0xa9, 0x62, 0x78, 0x68, 0x0d, 0x6e, 0xcb, 0x35, 0x59, 0xd5, 0x74, 0x55, 0x3a, 0xf1, 0x9b, 0x18,
1038 0x4e, 0x87, 0x38, 0x83, 0xee, 0x42, 0x2a, 0x40, 0x34, 0x2c, 0xa9, 0x95, 0xbc, 0xac, 0xd4, 0x64,
1039 0xac, 0x9f, 0x96, 0xaa, 0xcf, 0xf5, 0x72, 0x55, 0x13, 0x0d, 0xb4, 0x09, 0xeb, 0x13, 0x70, 0x45,
1040 0x15, 0x29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 0xdd, 0xf3, 0x6c, 0xdd, 0xb1, 0x72, 0x4e, 0x87, 0xda,
1074 0x75, 0xc7, 0x35, 0x72, 0xc1, 0xa5, 0x73, 0xcf, 0xea, 0xaf, 0x7e, 0xcf, 0xb4, 0x19, 0x75, 0x1b,
1075 0xa4, 0x4e, 0x73, 0x17, 0x87, 0xb9, 0xa6, 0x93, 0x33, 0x2c, 0xf3, 0x7c, 0x9e, 0xa7, 0x3e, 0xfc,
1076 0x21, 0x00, 0x00, 0xff, 0xff, 0xd2, 0x94, 0x3d, 0x88, 0xb7, 0x10, 0x00, 0x00,
Amit Ghosh09f28362020-06-12 21:52:19 +01001077}
1078
1079// Reference imports to suppress errors if they are not otherwise used.
1080var _ context.Context
1081var _ grpc.ClientConn
1082
1083// This is a compile-time assertion to ensure that this generated file
1084// is compatible with the grpc package it is being compiled against.
1085const _ = grpc.SupportPackageIsVersion4
1086
1087// NativeEventsManagementServiceClient is the client API for NativeEventsManagementService service.
1088//
1089// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
1090type NativeEventsManagementServiceClient interface {
1091 // List the supported events for the passed device
1092 ListEvents(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (*ListEventsResponse, error)
1093 // Updates the configuration of the list of events in the request
aghoshc301dcd2020-09-03 16:55:34 +01001094 // The default behavior of the device is to report all the supported events
Amit Ghosh09f28362020-06-12 21:52:19 +01001095 // This configuration is persisted across reboots of the device or the device manager
1096 UpdateEventsConfiguration(ctx context.Context, in *EventsConfigurationRequest, opts ...grpc.CallOption) (*EventsConfigurationResponse, error)
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +05301097 // Initiate the server streaming of the events
1098 StreamEvents(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (NativeEventsManagementService_StreamEventsClient, error)
Amit Ghosh09f28362020-06-12 21:52:19 +01001099}
1100
1101type nativeEventsManagementServiceClient struct {
1102 cc *grpc.ClientConn
1103}
1104
1105func NewNativeEventsManagementServiceClient(cc *grpc.ClientConn) NativeEventsManagementServiceClient {
1106 return &nativeEventsManagementServiceClient{cc}
1107}
1108
1109func (c *nativeEventsManagementServiceClient) ListEvents(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (*ListEventsResponse, error) {
1110 out := new(ListEventsResponse)
1111 err := c.cc.Invoke(ctx, "/dmi.NativeEventsManagementService/ListEvents", in, out, opts...)
1112 if err != nil {
1113 return nil, err
1114 }
1115 return out, nil
1116}
1117
1118func (c *nativeEventsManagementServiceClient) UpdateEventsConfiguration(ctx context.Context, in *EventsConfigurationRequest, opts ...grpc.CallOption) (*EventsConfigurationResponse, error) {
1119 out := new(EventsConfigurationResponse)
1120 err := c.cc.Invoke(ctx, "/dmi.NativeEventsManagementService/UpdateEventsConfiguration", in, out, opts...)
1121 if err != nil {
1122 return nil, err
1123 }
1124 return out, nil
1125}
1126
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +05301127func (c *nativeEventsManagementServiceClient) StreamEvents(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (NativeEventsManagementService_StreamEventsClient, error) {
1128 stream, err := c.cc.NewStream(ctx, &_NativeEventsManagementService_serviceDesc.Streams[0], "/dmi.NativeEventsManagementService/StreamEvents", opts...)
1129 if err != nil {
1130 return nil, err
1131 }
1132 x := &nativeEventsManagementServiceStreamEventsClient{stream}
1133 if err := x.ClientStream.SendMsg(in); err != nil {
1134 return nil, err
1135 }
1136 if err := x.ClientStream.CloseSend(); err != nil {
1137 return nil, err
1138 }
1139 return x, nil
1140}
1141
1142type NativeEventsManagementService_StreamEventsClient interface {
1143 Recv() (*Event, error)
1144 grpc.ClientStream
1145}
1146
1147type nativeEventsManagementServiceStreamEventsClient struct {
1148 grpc.ClientStream
1149}
1150
1151func (x *nativeEventsManagementServiceStreamEventsClient) Recv() (*Event, error) {
1152 m := new(Event)
1153 if err := x.ClientStream.RecvMsg(m); err != nil {
1154 return nil, err
1155 }
1156 return m, nil
1157}
1158
Amit Ghosh09f28362020-06-12 21:52:19 +01001159// NativeEventsManagementServiceServer is the server API for NativeEventsManagementService service.
1160type NativeEventsManagementServiceServer interface {
1161 // List the supported events for the passed device
1162 ListEvents(context.Context, *HardwareID) (*ListEventsResponse, error)
1163 // Updates the configuration of the list of events in the request
aghoshc301dcd2020-09-03 16:55:34 +01001164 // The default behavior of the device is to report all the supported events
Amit Ghosh09f28362020-06-12 21:52:19 +01001165 // This configuration is persisted across reboots of the device or the device manager
1166 UpdateEventsConfiguration(context.Context, *EventsConfigurationRequest) (*EventsConfigurationResponse, error)
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +05301167 // Initiate the server streaming of the events
1168 StreamEvents(*empty.Empty, NativeEventsManagementService_StreamEventsServer) error
Amit Ghosh09f28362020-06-12 21:52:19 +01001169}
1170
Andrea Campanellac795b7d2021-04-14 13:24:44 +02001171// UnimplementedNativeEventsManagementServiceServer can be embedded to have forward compatible implementations.
1172type UnimplementedNativeEventsManagementServiceServer struct {
1173}
1174
1175func (*UnimplementedNativeEventsManagementServiceServer) ListEvents(ctx context.Context, req *HardwareID) (*ListEventsResponse, error) {
1176 return nil, status.Errorf(codes.Unimplemented, "method ListEvents not implemented")
1177}
1178func (*UnimplementedNativeEventsManagementServiceServer) UpdateEventsConfiguration(ctx context.Context, req *EventsConfigurationRequest) (*EventsConfigurationResponse, error) {
1179 return nil, status.Errorf(codes.Unimplemented, "method UpdateEventsConfiguration not implemented")
1180}
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +05301181func (*UnimplementedNativeEventsManagementServiceServer) StreamEvents(req *empty.Empty, srv NativeEventsManagementService_StreamEventsServer) error {
1182 return status.Errorf(codes.Unimplemented, "method StreamEvents not implemented")
1183}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02001184
Amit Ghosh09f28362020-06-12 21:52:19 +01001185func RegisterNativeEventsManagementServiceServer(s *grpc.Server, srv NativeEventsManagementServiceServer) {
1186 s.RegisterService(&_NativeEventsManagementService_serviceDesc, srv)
1187}
1188
1189func _NativeEventsManagementService_ListEvents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1190 in := new(HardwareID)
1191 if err := dec(in); err != nil {
1192 return nil, err
1193 }
1194 if interceptor == nil {
1195 return srv.(NativeEventsManagementServiceServer).ListEvents(ctx, in)
1196 }
1197 info := &grpc.UnaryServerInfo{
1198 Server: srv,
1199 FullMethod: "/dmi.NativeEventsManagementService/ListEvents",
1200 }
1201 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1202 return srv.(NativeEventsManagementServiceServer).ListEvents(ctx, req.(*HardwareID))
1203 }
1204 return interceptor(ctx, in, info, handler)
1205}
1206
1207func _NativeEventsManagementService_UpdateEventsConfiguration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1208 in := new(EventsConfigurationRequest)
1209 if err := dec(in); err != nil {
1210 return nil, err
1211 }
1212 if interceptor == nil {
1213 return srv.(NativeEventsManagementServiceServer).UpdateEventsConfiguration(ctx, in)
1214 }
1215 info := &grpc.UnaryServerInfo{
1216 Server: srv,
1217 FullMethod: "/dmi.NativeEventsManagementService/UpdateEventsConfiguration",
1218 }
1219 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1220 return srv.(NativeEventsManagementServiceServer).UpdateEventsConfiguration(ctx, req.(*EventsConfigurationRequest))
1221 }
1222 return interceptor(ctx, in, info, handler)
1223}
1224
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +05301225func _NativeEventsManagementService_StreamEvents_Handler(srv interface{}, stream grpc.ServerStream) error {
1226 m := new(empty.Empty)
1227 if err := stream.RecvMsg(m); err != nil {
1228 return err
1229 }
1230 return srv.(NativeEventsManagementServiceServer).StreamEvents(m, &nativeEventsManagementServiceStreamEventsServer{stream})
1231}
1232
1233type NativeEventsManagementService_StreamEventsServer interface {
1234 Send(*Event) error
1235 grpc.ServerStream
1236}
1237
1238type nativeEventsManagementServiceStreamEventsServer struct {
1239 grpc.ServerStream
1240}
1241
1242func (x *nativeEventsManagementServiceStreamEventsServer) Send(m *Event) error {
1243 return x.ServerStream.SendMsg(m)
1244}
1245
Amit Ghosh09f28362020-06-12 21:52:19 +01001246var _NativeEventsManagementService_serviceDesc = grpc.ServiceDesc{
1247 ServiceName: "dmi.NativeEventsManagementService",
1248 HandlerType: (*NativeEventsManagementServiceServer)(nil),
1249 Methods: []grpc.MethodDesc{
1250 {
1251 MethodName: "ListEvents",
1252 Handler: _NativeEventsManagementService_ListEvents_Handler,
1253 },
1254 {
1255 MethodName: "UpdateEventsConfiguration",
1256 Handler: _NativeEventsManagementService_UpdateEventsConfiguration_Handler,
1257 },
1258 },
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +05301259 Streams: []grpc.StreamDesc{
1260 {
1261 StreamName: "StreamEvents",
1262 Handler: _NativeEventsManagementService_StreamEvents_Handler,
1263 ServerStreams: true,
1264 },
1265 },
Amit Ghosh09f28362020-06-12 21:52:19 +01001266 Metadata: "dmi/hw_events_mgmt_service.proto",
1267}