blob: 066597a90994779d2750cfdca57b57fd16d3039b [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.ghosh93921ec2022-09-08 17:22:40 +020034 EventIds_EVENT_TRANSCEIVER_PLUG_OUT EventIds = 100
35 EventIds_EVENT_TRANSCEIVER_PLUG_IN EventIds = 101
36 // The threshold based events on the transceivers should be configured on
37 // the port components of that transceiver and not on the transceiver
38 // component itself. This is because there could be different thresholds
39 // on the different ports of a transceiver (for example for a transceiver of
40 // type COMBO_GPON_XGSPON the power thresholds could be different for the
41 // GPON and XGSPON ports)
Amit Ghosh9d6658d2020-06-25 10:43:30 +010042 EventIds_EVENT_TRANSCEIVER_VOLTAGE_ABOVE_THRESHOLD EventIds = 102
43 EventIds_EVENT_TRANSCEIVER_VOLTAGE_BELOW_THRESHOLD EventIds = 103
44 EventIds_EVENT_TRANSCEIVER_TEMPERATURE_ABOVE_THRESHOLD EventIds = 104
45 EventIds_EVENT_TRANSCEIVER_TEMPERATURE_BELOW_THRESHOLD EventIds = 105
46 EventIds_EVENT_TRANSCEIVER_CURRENT_ABOVE_THRESHOLD EventIds = 106
47 EventIds_EVENT_TRANSCEIVER_CURRENT_BELOW_THRESHOLD EventIds = 107
48 EventIds_EVENT_TRANSCEIVER_RX_POWER_ABOVE_THRESHOLD EventIds = 108
49 EventIds_EVENT_TRANSCEIVER_RX_POWER_BELOW_THRESHOLD EventIds = 109
50 EventIds_EVENT_TRANSCEIVER_TX_POWER_ABOVE_THRESHOLD EventIds = 110
51 EventIds_EVENT_TRANSCEIVER_TX_POWER_BELOW_THRESHOLD EventIds = 111
52 EventIds_EVENT_TRANSCEIVER_FAILURE EventIds = 112
53 EventIds_EVENT_TRANSCEIVER_VOLTAGE_ABOVE_THRESHOLD_RECOVERED EventIds = 113
54 EventIds_EVENT_TRANSCEIVER_VOLTAGE_BELOW_THRESHOLD_RECOVERED EventIds = 114
55 EventIds_EVENT_TRANSCEIVER_TEMPERATURE_ABOVE_THRESHOLD_RECOVERED EventIds = 115
56 EventIds_EVENT_TRANSCEIVER_TEMPERATURE_BELOW_THRESHOLD_RECOVERED EventIds = 116
57 EventIds_EVENT_TRANSCEIVER_CURRENT_ABOVE_THRESHOLD_RECOVERED EventIds = 117
58 EventIds_EVENT_TRANSCEIVER_CURRENT_BELOW_THRESHOLD_RECOVERED EventIds = 118
59 EventIds_EVENT_TRANSCEIVER_RX_POWER_ABOVE_THRESHOLD_RECOVERED EventIds = 119
60 EventIds_EVENT_TRANSCEIVER_RX_POWER_BELOW_THRESHOLD_RECOVERED EventIds = 120
61 EventIds_EVENT_TRANSCEIVER_TX_POWER_ABOVE_THRESHOLD_RECOVERED EventIds = 121
62 EventIds_EVENT_TRANSCEIVER_TX_POWER_BELOW_THRESHOLD_RECOVERED EventIds = 122
63 EventIds_EVENT_TRANSCEIVER_FAILURE_RECOVERED EventIds = 123
Amit Ghosh09f28362020-06-12 21:52:19 +010064 // Events from the PSU
Amit Ghosh9d6658d2020-06-25 10:43:30 +010065 EventIds_EVENT_PSU_PLUG_OUT EventIds = 200
66 EventIds_EVENT_PSU_PLUG_IN EventIds = 201
67 EventIds_EVENT_PSU_FAILURE EventIds = 202
68 EventIds_EVENT_PSU_FAILURE_RECOVERED EventIds = 203
Amit Ghosh09f28362020-06-12 21:52:19 +010069 // Events for the Fans
Amit Ghosh9d6658d2020-06-25 10:43:30 +010070 EventIds_EVENT_FAN_FAILURE EventIds = 300
71 EventIds_EVENT_FAN_PLUG_OUT EventIds = 301
72 EventIds_EVENT_FAN_PLUG_IN EventIds = 302
73 EventIds_EVENT_FAN_FAILURE_RECOVERED EventIds = 303
Amit Ghosh09f28362020-06-12 21:52:19 +010074 // Events for the CPUs
Amit Ghosh9d6658d2020-06-25 10:43:30 +010075 EventIds_EVENT_CPU_TEMPERATURE_ABOVE_CRITICAL EventIds = 400
76 EventIds_EVENT_CPU_TEMPERATURE_ABOVE_FATAL EventIds = 401
77 EventIds_EVENT_CPU_TEMPERATURE_ABOVE_CRITICAL_RECOVERED EventIds = 402
78 EventIds_EVENT_CPU_TEMPERATURE_ABOVE_FATAL_RECOVERED EventIds = 403
Amit Ghosh09f28362020-06-12 21:52:19 +010079 // Events for the complete HW Device
Amit Ghosh9d6658d2020-06-25 10:43:30 +010080 EventIds_EVENT_HW_DEVICE_RESET EventIds = 500
81 EventIds_EVENT_HW_DEVICE_TEMPERATURE_ABOVE_CRITICAL EventIds = 501
82 EventIds_EVENT_HW_DEVICE_TEMPERATURE_ABOVE_FATAL EventIds = 502
83 EventIds_EVENT_HW_DEVICE_TEMPERATURE_ABOVE_CRITICAL_RECOVERED EventIds = 503
84 EventIds_EVENT_HW_DEVICE_TEMPERATURE_ABOVE_FATAL_RECOVERED EventIds = 504
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +053085 EventIds_EVENT_HW_DEVICE_REBOOT EventIds = 505
amit.ghosh8fe610f2022-01-14 17:44:53 +010086 EventIds_EVENT_HW_TEMPERATURE_SENSOR_FAILED EventIds = 506
87 EventIds_EVENT_HW_ALL_TEMPERATURE_SENSORS_FAILED EventIds = 507
amit.ghoshc0c3c242022-03-16 11:00:27 +010088 // Events for the line cards on the HW Device
89 EventIds_EVENT_LINE_CARD_PLUG_OUT EventIds = 600
90 EventIds_EVENT_LINE_CARD_PLUG_IN EventIds = 601
Amit Ghosh09f28362020-06-12 21:52:19 +010091)
92
93var EventIds_name = map[int32]string{
94 0: "EVENT_NAME_UNDEFINED",
95 100: "EVENT_TRANSCEIVER_PLUG_OUT",
96 101: "EVENT_TRANSCEIVER_PLUG_IN",
97 102: "EVENT_TRANSCEIVER_VOLTAGE_ABOVE_THRESHOLD",
98 103: "EVENT_TRANSCEIVER_VOLTAGE_BELOW_THRESHOLD",
99 104: "EVENT_TRANSCEIVER_TEMPERATURE_ABOVE_THRESHOLD",
100 105: "EVENT_TRANSCEIVER_TEMPERATURE_BELOW_THRESHOLD",
101 106: "EVENT_TRANSCEIVER_CURRENT_ABOVE_THRESHOLD",
102 107: "EVENT_TRANSCEIVER_CURRENT_BELOW_THRESHOLD",
103 108: "EVENT_TRANSCEIVER_RX_POWER_ABOVE_THRESHOLD",
104 109: "EVENT_TRANSCEIVER_RX_POWER_BELOW_THRESHOLD",
105 110: "EVENT_TRANSCEIVER_TX_POWER_ABOVE_THRESHOLD",
106 111: "EVENT_TRANSCEIVER_TX_POWER_BELOW_THRESHOLD",
107 112: "EVENT_TRANSCEIVER_FAILURE",
Amit Ghosh9d6658d2020-06-25 10:43:30 +0100108 113: "EVENT_TRANSCEIVER_VOLTAGE_ABOVE_THRESHOLD_RECOVERED",
109 114: "EVENT_TRANSCEIVER_VOLTAGE_BELOW_THRESHOLD_RECOVERED",
110 115: "EVENT_TRANSCEIVER_TEMPERATURE_ABOVE_THRESHOLD_RECOVERED",
111 116: "EVENT_TRANSCEIVER_TEMPERATURE_BELOW_THRESHOLD_RECOVERED",
112 117: "EVENT_TRANSCEIVER_CURRENT_ABOVE_THRESHOLD_RECOVERED",
113 118: "EVENT_TRANSCEIVER_CURRENT_BELOW_THRESHOLD_RECOVERED",
114 119: "EVENT_TRANSCEIVER_RX_POWER_ABOVE_THRESHOLD_RECOVERED",
115 120: "EVENT_TRANSCEIVER_RX_POWER_BELOW_THRESHOLD_RECOVERED",
116 121: "EVENT_TRANSCEIVER_TX_POWER_ABOVE_THRESHOLD_RECOVERED",
117 122: "EVENT_TRANSCEIVER_TX_POWER_BELOW_THRESHOLD_RECOVERED",
118 123: "EVENT_TRANSCEIVER_FAILURE_RECOVERED",
Amit Ghosh09f28362020-06-12 21:52:19 +0100119 200: "EVENT_PSU_PLUG_OUT",
120 201: "EVENT_PSU_PLUG_IN",
121 202: "EVENT_PSU_FAILURE",
Amit Ghosh9d6658d2020-06-25 10:43:30 +0100122 203: "EVENT_PSU_FAILURE_RECOVERED",
Amit Ghosh09f28362020-06-12 21:52:19 +0100123 300: "EVENT_FAN_FAILURE",
124 301: "EVENT_FAN_PLUG_OUT",
125 302: "EVENT_FAN_PLUG_IN",
Amit Ghosh9d6658d2020-06-25 10:43:30 +0100126 303: "EVENT_FAN_FAILURE_RECOVERED",
Amit Ghosh09f28362020-06-12 21:52:19 +0100127 400: "EVENT_CPU_TEMPERATURE_ABOVE_CRITICAL",
128 401: "EVENT_CPU_TEMPERATURE_ABOVE_FATAL",
Amit Ghosh9d6658d2020-06-25 10:43:30 +0100129 402: "EVENT_CPU_TEMPERATURE_ABOVE_CRITICAL_RECOVERED",
130 403: "EVENT_CPU_TEMPERATURE_ABOVE_FATAL_RECOVERED",
Amit Ghosh09f28362020-06-12 21:52:19 +0100131 500: "EVENT_HW_DEVICE_RESET",
132 501: "EVENT_HW_DEVICE_TEMPERATURE_ABOVE_CRITICAL",
133 502: "EVENT_HW_DEVICE_TEMPERATURE_ABOVE_FATAL",
Amit Ghosh9d6658d2020-06-25 10:43:30 +0100134 503: "EVENT_HW_DEVICE_TEMPERATURE_ABOVE_CRITICAL_RECOVERED",
135 504: "EVENT_HW_DEVICE_TEMPERATURE_ABOVE_FATAL_RECOVERED",
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530136 505: "EVENT_HW_DEVICE_REBOOT",
amit.ghosh8fe610f2022-01-14 17:44:53 +0100137 506: "EVENT_HW_TEMPERATURE_SENSOR_FAILED",
138 507: "EVENT_HW_ALL_TEMPERATURE_SENSORS_FAILED",
amit.ghoshc0c3c242022-03-16 11:00:27 +0100139 600: "EVENT_LINE_CARD_PLUG_OUT",
140 601: "EVENT_LINE_CARD_PLUG_IN",
Amit Ghosh09f28362020-06-12 21:52:19 +0100141}
142
143var EventIds_value = map[string]int32{
Amit Ghosh9d6658d2020-06-25 10:43:30 +0100144 "EVENT_NAME_UNDEFINED": 0,
145 "EVENT_TRANSCEIVER_PLUG_OUT": 100,
146 "EVENT_TRANSCEIVER_PLUG_IN": 101,
147 "EVENT_TRANSCEIVER_VOLTAGE_ABOVE_THRESHOLD": 102,
148 "EVENT_TRANSCEIVER_VOLTAGE_BELOW_THRESHOLD": 103,
149 "EVENT_TRANSCEIVER_TEMPERATURE_ABOVE_THRESHOLD": 104,
150 "EVENT_TRANSCEIVER_TEMPERATURE_BELOW_THRESHOLD": 105,
151 "EVENT_TRANSCEIVER_CURRENT_ABOVE_THRESHOLD": 106,
152 "EVENT_TRANSCEIVER_CURRENT_BELOW_THRESHOLD": 107,
153 "EVENT_TRANSCEIVER_RX_POWER_ABOVE_THRESHOLD": 108,
154 "EVENT_TRANSCEIVER_RX_POWER_BELOW_THRESHOLD": 109,
155 "EVENT_TRANSCEIVER_TX_POWER_ABOVE_THRESHOLD": 110,
156 "EVENT_TRANSCEIVER_TX_POWER_BELOW_THRESHOLD": 111,
157 "EVENT_TRANSCEIVER_FAILURE": 112,
158 "EVENT_TRANSCEIVER_VOLTAGE_ABOVE_THRESHOLD_RECOVERED": 113,
159 "EVENT_TRANSCEIVER_VOLTAGE_BELOW_THRESHOLD_RECOVERED": 114,
160 "EVENT_TRANSCEIVER_TEMPERATURE_ABOVE_THRESHOLD_RECOVERED": 115,
161 "EVENT_TRANSCEIVER_TEMPERATURE_BELOW_THRESHOLD_RECOVERED": 116,
162 "EVENT_TRANSCEIVER_CURRENT_ABOVE_THRESHOLD_RECOVERED": 117,
163 "EVENT_TRANSCEIVER_CURRENT_BELOW_THRESHOLD_RECOVERED": 118,
164 "EVENT_TRANSCEIVER_RX_POWER_ABOVE_THRESHOLD_RECOVERED": 119,
165 "EVENT_TRANSCEIVER_RX_POWER_BELOW_THRESHOLD_RECOVERED": 120,
166 "EVENT_TRANSCEIVER_TX_POWER_ABOVE_THRESHOLD_RECOVERED": 121,
167 "EVENT_TRANSCEIVER_TX_POWER_BELOW_THRESHOLD_RECOVERED": 122,
168 "EVENT_TRANSCEIVER_FAILURE_RECOVERED": 123,
169 "EVENT_PSU_PLUG_OUT": 200,
170 "EVENT_PSU_PLUG_IN": 201,
171 "EVENT_PSU_FAILURE": 202,
172 "EVENT_PSU_FAILURE_RECOVERED": 203,
173 "EVENT_FAN_FAILURE": 300,
174 "EVENT_FAN_PLUG_OUT": 301,
175 "EVENT_FAN_PLUG_IN": 302,
176 "EVENT_FAN_FAILURE_RECOVERED": 303,
177 "EVENT_CPU_TEMPERATURE_ABOVE_CRITICAL": 400,
178 "EVENT_CPU_TEMPERATURE_ABOVE_FATAL": 401,
179 "EVENT_CPU_TEMPERATURE_ABOVE_CRITICAL_RECOVERED": 402,
180 "EVENT_CPU_TEMPERATURE_ABOVE_FATAL_RECOVERED": 403,
181 "EVENT_HW_DEVICE_RESET": 500,
182 "EVENT_HW_DEVICE_TEMPERATURE_ABOVE_CRITICAL": 501,
183 "EVENT_HW_DEVICE_TEMPERATURE_ABOVE_FATAL": 502,
184 "EVENT_HW_DEVICE_TEMPERATURE_ABOVE_CRITICAL_RECOVERED": 503,
185 "EVENT_HW_DEVICE_TEMPERATURE_ABOVE_FATAL_RECOVERED": 504,
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530186 "EVENT_HW_DEVICE_REBOOT": 505,
amit.ghosh8fe610f2022-01-14 17:44:53 +0100187 "EVENT_HW_TEMPERATURE_SENSOR_FAILED": 506,
188 "EVENT_HW_ALL_TEMPERATURE_SENSORS_FAILED": 507,
amit.ghoshc0c3c242022-03-16 11:00:27 +0100189 "EVENT_LINE_CARD_PLUG_OUT": 600,
190 "EVENT_LINE_CARD_PLUG_IN": 601,
Amit Ghosh09f28362020-06-12 21:52:19 +0100191}
192
193func (x EventIds) String() string {
194 return proto.EnumName(EventIds_name, int32(x))
195}
196
197func (EventIds) EnumDescriptor() ([]byte, []int) {
198 return fileDescriptor_8962d785556e9979, []int{0}
199}
200
amit.ghoshae473032021-01-10 11:59:10 +0100201type ListEventsResponse_Reason int32
202
203const (
amit.ghoshbd2022e2021-02-22 05:58:53 +0100204 ListEventsResponse_UNDEFINED_REASON ListEventsResponse_Reason = 0
205 ListEventsResponse_UNKNOWN_DEVICE ListEventsResponse_Reason = 1
206 ListEventsResponse_INTERNAL_ERROR ListEventsResponse_Reason = 2
207 ListEventsResponse_DEVICE_UNREACHABLE ListEventsResponse_Reason = 3
amit.ghoshae473032021-01-10 11:59:10 +0100208)
209
210var ListEventsResponse_Reason_name = map[int32]string{
211 0: "UNDEFINED_REASON",
212 1: "UNKNOWN_DEVICE",
213 2: "INTERNAL_ERROR",
amit.ghoshbd2022e2021-02-22 05:58:53 +0100214 3: "DEVICE_UNREACHABLE",
amit.ghoshae473032021-01-10 11:59:10 +0100215}
216
217var ListEventsResponse_Reason_value = map[string]int32{
amit.ghoshbd2022e2021-02-22 05:58:53 +0100218 "UNDEFINED_REASON": 0,
219 "UNKNOWN_DEVICE": 1,
220 "INTERNAL_ERROR": 2,
221 "DEVICE_UNREACHABLE": 3,
amit.ghoshae473032021-01-10 11:59:10 +0100222}
223
224func (x ListEventsResponse_Reason) String() string {
225 return proto.EnumName(ListEventsResponse_Reason_name, int32(x))
226}
227
228func (ListEventsResponse_Reason) EnumDescriptor() ([]byte, []int) {
229 return fileDescriptor_8962d785556e9979, []int{6, 0}
230}
231
232type EventsConfigurationResponse_Reason int32
233
234const (
amit.ghoshbd2022e2021-02-22 05:58:53 +0100235 EventsConfigurationResponse_UNDEFINED_REASON EventsConfigurationResponse_Reason = 0
236 EventsConfigurationResponse_UNKNOWN_DEVICE EventsConfigurationResponse_Reason = 1
237 EventsConfigurationResponse_INTERNAL_ERROR EventsConfigurationResponse_Reason = 2
238 EventsConfigurationResponse_INVALID_CONFIG EventsConfigurationResponse_Reason = 3
239 EventsConfigurationResponse_DEVICE_UNREACHABLE EventsConfigurationResponse_Reason = 4
amit.ghoshae473032021-01-10 11:59:10 +0100240)
241
242var EventsConfigurationResponse_Reason_name = map[int32]string{
243 0: "UNDEFINED_REASON",
244 1: "UNKNOWN_DEVICE",
245 2: "INTERNAL_ERROR",
246 3: "INVALID_CONFIG",
amit.ghoshbd2022e2021-02-22 05:58:53 +0100247 4: "DEVICE_UNREACHABLE",
amit.ghoshae473032021-01-10 11:59:10 +0100248}
249
250var EventsConfigurationResponse_Reason_value = map[string]int32{
amit.ghoshbd2022e2021-02-22 05:58:53 +0100251 "UNDEFINED_REASON": 0,
252 "UNKNOWN_DEVICE": 1,
253 "INTERNAL_ERROR": 2,
254 "INVALID_CONFIG": 3,
255 "DEVICE_UNREACHABLE": 4,
amit.ghoshae473032021-01-10 11:59:10 +0100256}
257
258func (x EventsConfigurationResponse_Reason) String() string {
259 return proto.EnumName(EventsConfigurationResponse_Reason_name, int32(x))
260}
261
262func (EventsConfigurationResponse_Reason) EnumDescriptor() ([]byte, []int) {
263 return fileDescriptor_8962d785556e9979, []int{8, 0}
264}
265
Amit Ghosh09f28362020-06-12 21:52:19 +0100266type ValueType struct {
amit.ghosh93921ec2022-09-08 17:22:40 +0200267 // For val no multiples of units shall be used.
268 // For example, for memory val should be in bytes and not in kilobytes or any
269 // other multiple of the unit byte.
270 //
Amit Ghosh09f28362020-06-12 21:52:19 +0100271 // Types that are valid to be assigned to Val:
272 // *ValueType_IntVal
273 // *ValueType_UintVal
274 // *ValueType_FloatVal
275 Val isValueType_Val `protobuf_oneof:"val"`
amit.ghosh93921ec2022-09-08 17:22:40 +0200276 TypeOfVal DataValueType `protobuf:"varint,4,opt,name=typeOfVal,proto3,enum=dmi.DataValueType" json:"typeOfVal,omitempty"`
Amit Ghosh09f28362020-06-12 21:52:19 +0100277 XXX_NoUnkeyedLiteral struct{} `json:"-"`
278 XXX_unrecognized []byte `json:"-"`
279 XXX_sizecache int32 `json:"-"`
280}
281
282func (m *ValueType) Reset() { *m = ValueType{} }
283func (m *ValueType) String() string { return proto.CompactTextString(m) }
284func (*ValueType) ProtoMessage() {}
285func (*ValueType) Descriptor() ([]byte, []int) {
286 return fileDescriptor_8962d785556e9979, []int{0}
287}
288
289func (m *ValueType) XXX_Unmarshal(b []byte) error {
290 return xxx_messageInfo_ValueType.Unmarshal(m, b)
291}
292func (m *ValueType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
293 return xxx_messageInfo_ValueType.Marshal(b, m, deterministic)
294}
295func (m *ValueType) XXX_Merge(src proto.Message) {
296 xxx_messageInfo_ValueType.Merge(m, src)
297}
298func (m *ValueType) XXX_Size() int {
299 return xxx_messageInfo_ValueType.Size(m)
300}
301func (m *ValueType) XXX_DiscardUnknown() {
302 xxx_messageInfo_ValueType.DiscardUnknown(m)
303}
304
305var xxx_messageInfo_ValueType proto.InternalMessageInfo
306
307type isValueType_Val interface {
308 isValueType_Val()
309}
310
311type ValueType_IntVal struct {
312 IntVal int64 `protobuf:"varint,1,opt,name=int_val,json=intVal,proto3,oneof"`
313}
314
315type ValueType_UintVal struct {
316 UintVal uint64 `protobuf:"varint,2,opt,name=uint_val,json=uintVal,proto3,oneof"`
317}
318
319type ValueType_FloatVal struct {
320 FloatVal float32 `protobuf:"fixed32,3,opt,name=float_val,json=floatVal,proto3,oneof"`
321}
322
323func (*ValueType_IntVal) isValueType_Val() {}
324
325func (*ValueType_UintVal) isValueType_Val() {}
326
327func (*ValueType_FloatVal) isValueType_Val() {}
328
329func (m *ValueType) GetVal() isValueType_Val {
330 if m != nil {
331 return m.Val
332 }
333 return nil
334}
335
336func (m *ValueType) GetIntVal() int64 {
337 if x, ok := m.GetVal().(*ValueType_IntVal); ok {
338 return x.IntVal
339 }
340 return 0
341}
342
343func (m *ValueType) GetUintVal() uint64 {
344 if x, ok := m.GetVal().(*ValueType_UintVal); ok {
345 return x.UintVal
346 }
347 return 0
348}
349
350func (m *ValueType) GetFloatVal() float32 {
351 if x, ok := m.GetVal().(*ValueType_FloatVal); ok {
352 return x.FloatVal
353 }
354 return 0
355}
356
amit.ghosh93921ec2022-09-08 17:22:40 +0200357func (m *ValueType) GetTypeOfVal() DataValueType {
358 if m != nil {
359 return m.TypeOfVal
360 }
361 return DataValueType_VALUE_TYPE_UNDEFINED
362}
363
Amit Ghosh09f28362020-06-12 21:52:19 +0100364// XXX_OneofWrappers is for the internal use of the proto package.
365func (*ValueType) XXX_OneofWrappers() []interface{} {
366 return []interface{}{
367 (*ValueType_IntVal)(nil),
368 (*ValueType_UintVal)(nil),
369 (*ValueType_FloatVal)(nil),
370 }
371}
372
373type WaterMarks struct {
374 High *ValueType `protobuf:"bytes,1,opt,name=high,proto3" json:"high,omitempty"`
375 Low *ValueType `protobuf:"bytes,2,opt,name=low,proto3" json:"low,omitempty"`
376 XXX_NoUnkeyedLiteral struct{} `json:"-"`
377 XXX_unrecognized []byte `json:"-"`
378 XXX_sizecache int32 `json:"-"`
379}
380
381func (m *WaterMarks) Reset() { *m = WaterMarks{} }
382func (m *WaterMarks) String() string { return proto.CompactTextString(m) }
383func (*WaterMarks) ProtoMessage() {}
384func (*WaterMarks) Descriptor() ([]byte, []int) {
385 return fileDescriptor_8962d785556e9979, []int{1}
386}
387
388func (m *WaterMarks) XXX_Unmarshal(b []byte) error {
389 return xxx_messageInfo_WaterMarks.Unmarshal(m, b)
390}
391func (m *WaterMarks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
392 return xxx_messageInfo_WaterMarks.Marshal(b, m, deterministic)
393}
394func (m *WaterMarks) XXX_Merge(src proto.Message) {
395 xxx_messageInfo_WaterMarks.Merge(m, src)
396}
397func (m *WaterMarks) XXX_Size() int {
398 return xxx_messageInfo_WaterMarks.Size(m)
399}
400func (m *WaterMarks) XXX_DiscardUnknown() {
401 xxx_messageInfo_WaterMarks.DiscardUnknown(m)
402}
403
404var xxx_messageInfo_WaterMarks proto.InternalMessageInfo
405
406func (m *WaterMarks) GetHigh() *ValueType {
407 if m != nil {
408 return m.High
409 }
410 return nil
411}
412
413func (m *WaterMarks) GetLow() *ValueType {
414 if m != nil {
415 return m.Low
416 }
417 return nil
418}
419
420type Thresholds struct {
421 // Types that are valid to be assigned to Threshold:
422 // *Thresholds_Upper
423 // *Thresholds_Lower
424 Threshold isThresholds_Threshold `protobuf_oneof:"threshold"`
425 XXX_NoUnkeyedLiteral struct{} `json:"-"`
426 XXX_unrecognized []byte `json:"-"`
427 XXX_sizecache int32 `json:"-"`
428}
429
430func (m *Thresholds) Reset() { *m = Thresholds{} }
431func (m *Thresholds) String() string { return proto.CompactTextString(m) }
432func (*Thresholds) ProtoMessage() {}
433func (*Thresholds) Descriptor() ([]byte, []int) {
434 return fileDescriptor_8962d785556e9979, []int{2}
435}
436
437func (m *Thresholds) XXX_Unmarshal(b []byte) error {
438 return xxx_messageInfo_Thresholds.Unmarshal(m, b)
439}
440func (m *Thresholds) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
441 return xxx_messageInfo_Thresholds.Marshal(b, m, deterministic)
442}
443func (m *Thresholds) XXX_Merge(src proto.Message) {
444 xxx_messageInfo_Thresholds.Merge(m, src)
445}
446func (m *Thresholds) XXX_Size() int {
447 return xxx_messageInfo_Thresholds.Size(m)
448}
449func (m *Thresholds) XXX_DiscardUnknown() {
450 xxx_messageInfo_Thresholds.DiscardUnknown(m)
451}
452
453var xxx_messageInfo_Thresholds proto.InternalMessageInfo
454
455type isThresholds_Threshold interface {
456 isThresholds_Threshold()
457}
458
459type Thresholds_Upper struct {
460 Upper *WaterMarks `protobuf:"bytes,1,opt,name=upper,proto3,oneof"`
461}
462
463type Thresholds_Lower struct {
464 Lower *WaterMarks `protobuf:"bytes,2,opt,name=lower,proto3,oneof"`
465}
466
467func (*Thresholds_Upper) isThresholds_Threshold() {}
468
469func (*Thresholds_Lower) isThresholds_Threshold() {}
470
471func (m *Thresholds) GetThreshold() isThresholds_Threshold {
472 if m != nil {
473 return m.Threshold
474 }
475 return nil
476}
477
478func (m *Thresholds) GetUpper() *WaterMarks {
479 if x, ok := m.GetThreshold().(*Thresholds_Upper); ok {
480 return x.Upper
481 }
482 return nil
483}
484
485func (m *Thresholds) GetLower() *WaterMarks {
486 if x, ok := m.GetThreshold().(*Thresholds_Lower); ok {
487 return x.Lower
488 }
489 return nil
490}
491
492// XXX_OneofWrappers is for the internal use of the proto package.
493func (*Thresholds) XXX_OneofWrappers() []interface{} {
494 return []interface{}{
495 (*Thresholds_Upper)(nil),
496 (*Thresholds_Lower)(nil),
497 }
498}
499
500type ThresholdInformation struct {
501 ObservedValue *ValueType `protobuf:"bytes,1,opt,name=observed_value,json=observedValue,proto3" json:"observed_value,omitempty"`
502 Thresholds *Thresholds `protobuf:"bytes,2,opt,name=thresholds,proto3" json:"thresholds,omitempty"`
503 XXX_NoUnkeyedLiteral struct{} `json:"-"`
504 XXX_unrecognized []byte `json:"-"`
505 XXX_sizecache int32 `json:"-"`
506}
507
508func (m *ThresholdInformation) Reset() { *m = ThresholdInformation{} }
509func (m *ThresholdInformation) String() string { return proto.CompactTextString(m) }
510func (*ThresholdInformation) ProtoMessage() {}
511func (*ThresholdInformation) Descriptor() ([]byte, []int) {
512 return fileDescriptor_8962d785556e9979, []int{3}
513}
514
515func (m *ThresholdInformation) XXX_Unmarshal(b []byte) error {
516 return xxx_messageInfo_ThresholdInformation.Unmarshal(m, b)
517}
518func (m *ThresholdInformation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
519 return xxx_messageInfo_ThresholdInformation.Marshal(b, m, deterministic)
520}
521func (m *ThresholdInformation) XXX_Merge(src proto.Message) {
522 xxx_messageInfo_ThresholdInformation.Merge(m, src)
523}
524func (m *ThresholdInformation) XXX_Size() int {
525 return xxx_messageInfo_ThresholdInformation.Size(m)
526}
527func (m *ThresholdInformation) XXX_DiscardUnknown() {
528 xxx_messageInfo_ThresholdInformation.DiscardUnknown(m)
529}
530
531var xxx_messageInfo_ThresholdInformation proto.InternalMessageInfo
532
533func (m *ThresholdInformation) GetObservedValue() *ValueType {
534 if m != nil {
535 return m.ObservedValue
536 }
537 return nil
538}
539
540func (m *ThresholdInformation) GetThresholds() *Thresholds {
541 if m != nil {
542 return m.Thresholds
543 }
544 return nil
545}
546
547type EventCfg struct {
548 EventId EventIds `protobuf:"varint,1,opt,name=event_id,json=eventId,proto3,enum=dmi.EventIds" json:"event_id,omitempty"`
549 IsConfigured bool `protobuf:"varint,2,opt,name=is_configured,json=isConfigured,proto3" json:"is_configured,omitempty"`
550 // Optional threshold values, applicable only for some specific events
amit.ghosh7a093bd2023-03-07 16:31:56 +0100551 Thresholds *Thresholds `protobuf:"bytes,3,opt,name=thresholds,proto3" json:"thresholds,omitempty"`
552 // For events which can be configured on a particular component this id can be used to identify the component
553 // For e.g. for events of the transceivers
554 ComponentUuid *Uuid `protobuf:"bytes,4,opt,name=component_uuid,json=componentUuid,proto3" json:"component_uuid,omitempty"`
555 XXX_NoUnkeyedLiteral struct{} `json:"-"`
556 XXX_unrecognized []byte `json:"-"`
557 XXX_sizecache int32 `json:"-"`
Amit Ghosh09f28362020-06-12 21:52:19 +0100558}
559
560func (m *EventCfg) Reset() { *m = EventCfg{} }
561func (m *EventCfg) String() string { return proto.CompactTextString(m) }
562func (*EventCfg) ProtoMessage() {}
563func (*EventCfg) Descriptor() ([]byte, []int) {
564 return fileDescriptor_8962d785556e9979, []int{4}
565}
566
567func (m *EventCfg) XXX_Unmarshal(b []byte) error {
568 return xxx_messageInfo_EventCfg.Unmarshal(m, b)
569}
570func (m *EventCfg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
571 return xxx_messageInfo_EventCfg.Marshal(b, m, deterministic)
572}
573func (m *EventCfg) XXX_Merge(src proto.Message) {
574 xxx_messageInfo_EventCfg.Merge(m, src)
575}
576func (m *EventCfg) XXX_Size() int {
577 return xxx_messageInfo_EventCfg.Size(m)
578}
579func (m *EventCfg) XXX_DiscardUnknown() {
580 xxx_messageInfo_EventCfg.DiscardUnknown(m)
581}
582
583var xxx_messageInfo_EventCfg proto.InternalMessageInfo
584
585func (m *EventCfg) GetEventId() EventIds {
586 if m != nil {
587 return m.EventId
588 }
589 return EventIds_EVENT_NAME_UNDEFINED
590}
591
592func (m *EventCfg) GetIsConfigured() bool {
593 if m != nil {
594 return m.IsConfigured
595 }
596 return false
597}
598
599func (m *EventCfg) GetThresholds() *Thresholds {
600 if m != nil {
601 return m.Thresholds
602 }
603 return nil
604}
605
amit.ghosh7a093bd2023-03-07 16:31:56 +0100606func (m *EventCfg) GetComponentUuid() *Uuid {
607 if m != nil {
608 return m.ComponentUuid
609 }
610 return nil
611}
612
Amit Ghosh09f28362020-06-12 21:52:19 +0100613type EventsCfg struct {
614 Items []*EventCfg `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
615 XXX_NoUnkeyedLiteral struct{} `json:"-"`
616 XXX_unrecognized []byte `json:"-"`
617 XXX_sizecache int32 `json:"-"`
618}
619
620func (m *EventsCfg) Reset() { *m = EventsCfg{} }
621func (m *EventsCfg) String() string { return proto.CompactTextString(m) }
622func (*EventsCfg) ProtoMessage() {}
623func (*EventsCfg) Descriptor() ([]byte, []int) {
624 return fileDescriptor_8962d785556e9979, []int{5}
625}
626
627func (m *EventsCfg) XXX_Unmarshal(b []byte) error {
628 return xxx_messageInfo_EventsCfg.Unmarshal(m, b)
629}
630func (m *EventsCfg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
631 return xxx_messageInfo_EventsCfg.Marshal(b, m, deterministic)
632}
633func (m *EventsCfg) XXX_Merge(src proto.Message) {
634 xxx_messageInfo_EventsCfg.Merge(m, src)
635}
636func (m *EventsCfg) XXX_Size() int {
637 return xxx_messageInfo_EventsCfg.Size(m)
638}
639func (m *EventsCfg) XXX_DiscardUnknown() {
640 xxx_messageInfo_EventsCfg.DiscardUnknown(m)
641}
642
643var xxx_messageInfo_EventsCfg proto.InternalMessageInfo
644
645func (m *EventsCfg) GetItems() []*EventCfg {
646 if m != nil {
647 return m.Items
648 }
649 return nil
650}
651
652type ListEventsResponse struct {
amit.ghoshae473032021-01-10 11:59:10 +0100653 Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"`
654 Reason ListEventsResponse_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.ListEventsResponse_Reason" json:"reason,omitempty"`
655 Events *EventsCfg `protobuf:"bytes,3,opt,name=events,proto3" json:"events,omitempty"`
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100656 ReasonDetail string `protobuf:"bytes,4,opt,name=reason_detail,json=reasonDetail,proto3" json:"reason_detail,omitempty"`
amit.ghoshae473032021-01-10 11:59:10 +0100657 XXX_NoUnkeyedLiteral struct{} `json:"-"`
658 XXX_unrecognized []byte `json:"-"`
659 XXX_sizecache int32 `json:"-"`
Amit Ghosh09f28362020-06-12 21:52:19 +0100660}
661
662func (m *ListEventsResponse) Reset() { *m = ListEventsResponse{} }
663func (m *ListEventsResponse) String() string { return proto.CompactTextString(m) }
664func (*ListEventsResponse) ProtoMessage() {}
665func (*ListEventsResponse) Descriptor() ([]byte, []int) {
666 return fileDescriptor_8962d785556e9979, []int{6}
667}
668
669func (m *ListEventsResponse) XXX_Unmarshal(b []byte) error {
670 return xxx_messageInfo_ListEventsResponse.Unmarshal(m, b)
671}
672func (m *ListEventsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
673 return xxx_messageInfo_ListEventsResponse.Marshal(b, m, deterministic)
674}
675func (m *ListEventsResponse) XXX_Merge(src proto.Message) {
676 xxx_messageInfo_ListEventsResponse.Merge(m, src)
677}
678func (m *ListEventsResponse) XXX_Size() int {
679 return xxx_messageInfo_ListEventsResponse.Size(m)
680}
681func (m *ListEventsResponse) XXX_DiscardUnknown() {
682 xxx_messageInfo_ListEventsResponse.DiscardUnknown(m)
683}
684
685var xxx_messageInfo_ListEventsResponse proto.InternalMessageInfo
686
687func (m *ListEventsResponse) GetStatus() Status {
688 if m != nil {
689 return m.Status
690 }
691 return Status_UNDEFINED_STATUS
692}
693
amit.ghoshae473032021-01-10 11:59:10 +0100694func (m *ListEventsResponse) GetReason() ListEventsResponse_Reason {
Amit Ghosh09f28362020-06-12 21:52:19 +0100695 if m != nil {
696 return m.Reason
697 }
amit.ghoshae473032021-01-10 11:59:10 +0100698 return ListEventsResponse_UNDEFINED_REASON
Amit Ghosh09f28362020-06-12 21:52:19 +0100699}
700
701func (m *ListEventsResponse) GetEvents() *EventsCfg {
702 if m != nil {
703 return m.Events
704 }
705 return nil
706}
707
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100708func (m *ListEventsResponse) GetReasonDetail() string {
709 if m != nil {
710 return m.ReasonDetail
711 }
712 return ""
713}
714
Amit Ghosh09f28362020-06-12 21:52:19 +0100715type EventsConfigurationRequest struct {
716 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
717 // Types that are valid to be assigned to Operation:
718 // *EventsConfigurationRequest_Changes
719 // *EventsConfigurationRequest_ResetToDefault
amit.ghosh7a093bd2023-03-07 16:31:56 +0100720 Operation isEventsConfigurationRequest_Operation `protobuf_oneof:"operation"`
721 XXX_NoUnkeyedLiteral struct{} `json:"-"`
722 XXX_unrecognized []byte `json:"-"`
723 XXX_sizecache int32 `json:"-"`
Amit Ghosh09f28362020-06-12 21:52:19 +0100724}
725
726func (m *EventsConfigurationRequest) Reset() { *m = EventsConfigurationRequest{} }
727func (m *EventsConfigurationRequest) String() string { return proto.CompactTextString(m) }
728func (*EventsConfigurationRequest) ProtoMessage() {}
729func (*EventsConfigurationRequest) Descriptor() ([]byte, []int) {
730 return fileDescriptor_8962d785556e9979, []int{7}
731}
732
733func (m *EventsConfigurationRequest) XXX_Unmarshal(b []byte) error {
734 return xxx_messageInfo_EventsConfigurationRequest.Unmarshal(m, b)
735}
736func (m *EventsConfigurationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
737 return xxx_messageInfo_EventsConfigurationRequest.Marshal(b, m, deterministic)
738}
739func (m *EventsConfigurationRequest) XXX_Merge(src proto.Message) {
740 xxx_messageInfo_EventsConfigurationRequest.Merge(m, src)
741}
742func (m *EventsConfigurationRequest) XXX_Size() int {
743 return xxx_messageInfo_EventsConfigurationRequest.Size(m)
744}
745func (m *EventsConfigurationRequest) XXX_DiscardUnknown() {
746 xxx_messageInfo_EventsConfigurationRequest.DiscardUnknown(m)
747}
748
749var xxx_messageInfo_EventsConfigurationRequest proto.InternalMessageInfo
750
751func (m *EventsConfigurationRequest) GetDeviceUuid() *Uuid {
752 if m != nil {
753 return m.DeviceUuid
754 }
755 return nil
756}
757
758type isEventsConfigurationRequest_Operation interface {
759 isEventsConfigurationRequest_Operation()
760}
761
762type EventsConfigurationRequest_Changes struct {
763 Changes *EventsCfg `protobuf:"bytes,2,opt,name=changes,proto3,oneof"`
764}
765
766type EventsConfigurationRequest_ResetToDefault struct {
767 ResetToDefault bool `protobuf:"varint,3,opt,name=reset_to_default,json=resetToDefault,proto3,oneof"`
768}
769
770func (*EventsConfigurationRequest_Changes) isEventsConfigurationRequest_Operation() {}
771
772func (*EventsConfigurationRequest_ResetToDefault) isEventsConfigurationRequest_Operation() {}
773
774func (m *EventsConfigurationRequest) GetOperation() isEventsConfigurationRequest_Operation {
775 if m != nil {
776 return m.Operation
777 }
778 return nil
779}
780
781func (m *EventsConfigurationRequest) GetChanges() *EventsCfg {
782 if x, ok := m.GetOperation().(*EventsConfigurationRequest_Changes); ok {
783 return x.Changes
784 }
785 return nil
786}
787
788func (m *EventsConfigurationRequest) GetResetToDefault() bool {
789 if x, ok := m.GetOperation().(*EventsConfigurationRequest_ResetToDefault); ok {
790 return x.ResetToDefault
791 }
792 return false
793}
794
795// XXX_OneofWrappers is for the internal use of the proto package.
796func (*EventsConfigurationRequest) XXX_OneofWrappers() []interface{} {
797 return []interface{}{
798 (*EventsConfigurationRequest_Changes)(nil),
799 (*EventsConfigurationRequest_ResetToDefault)(nil),
800 }
801}
802
803type EventsConfigurationResponse struct {
amit.ghoshae473032021-01-10 11:59:10 +0100804 Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"`
805 Reason EventsConfigurationResponse_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.EventsConfigurationResponse_Reason" json:"reason,omitempty"`
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100806 ReasonDetail string `protobuf:"bytes,3,opt,name=reason_detail,json=reasonDetail,proto3" json:"reason_detail,omitempty"`
amit.ghoshae473032021-01-10 11:59:10 +0100807 XXX_NoUnkeyedLiteral struct{} `json:"-"`
808 XXX_unrecognized []byte `json:"-"`
809 XXX_sizecache int32 `json:"-"`
Amit Ghosh09f28362020-06-12 21:52:19 +0100810}
811
812func (m *EventsConfigurationResponse) Reset() { *m = EventsConfigurationResponse{} }
813func (m *EventsConfigurationResponse) String() string { return proto.CompactTextString(m) }
814func (*EventsConfigurationResponse) ProtoMessage() {}
815func (*EventsConfigurationResponse) Descriptor() ([]byte, []int) {
816 return fileDescriptor_8962d785556e9979, []int{8}
817}
818
819func (m *EventsConfigurationResponse) XXX_Unmarshal(b []byte) error {
820 return xxx_messageInfo_EventsConfigurationResponse.Unmarshal(m, b)
821}
822func (m *EventsConfigurationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
823 return xxx_messageInfo_EventsConfigurationResponse.Marshal(b, m, deterministic)
824}
825func (m *EventsConfigurationResponse) XXX_Merge(src proto.Message) {
826 xxx_messageInfo_EventsConfigurationResponse.Merge(m, src)
827}
828func (m *EventsConfigurationResponse) XXX_Size() int {
829 return xxx_messageInfo_EventsConfigurationResponse.Size(m)
830}
831func (m *EventsConfigurationResponse) XXX_DiscardUnknown() {
832 xxx_messageInfo_EventsConfigurationResponse.DiscardUnknown(m)
833}
834
835var xxx_messageInfo_EventsConfigurationResponse proto.InternalMessageInfo
836
837func (m *EventsConfigurationResponse) GetStatus() Status {
838 if m != nil {
839 return m.Status
840 }
841 return Status_UNDEFINED_STATUS
842}
843
amit.ghoshae473032021-01-10 11:59:10 +0100844func (m *EventsConfigurationResponse) GetReason() EventsConfigurationResponse_Reason {
Amit Ghosh09f28362020-06-12 21:52:19 +0100845 if m != nil {
846 return m.Reason
847 }
amit.ghoshae473032021-01-10 11:59:10 +0100848 return EventsConfigurationResponse_UNDEFINED_REASON
Amit Ghosh09f28362020-06-12 21:52:19 +0100849}
850
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100851func (m *EventsConfigurationResponse) GetReasonDetail() string {
852 if m != nil {
853 return m.ReasonDetail
854 }
855 return ""
856}
857
Amit Ghosh09f28362020-06-12 21:52:19 +0100858type EventMetaData struct {
859 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
860 // uuid of the component
861 ComponentUuid *Uuid `protobuf:"bytes,2,opt,name=component_uuid,json=componentUuid,proto3" json:"component_uuid,omitempty"`
862 ComponentName string `protobuf:"bytes,3,opt,name=component_name,json=componentName,proto3" json:"component_name,omitempty"`
863 XXX_NoUnkeyedLiteral struct{} `json:"-"`
864 XXX_unrecognized []byte `json:"-"`
865 XXX_sizecache int32 `json:"-"`
866}
867
868func (m *EventMetaData) Reset() { *m = EventMetaData{} }
869func (m *EventMetaData) String() string { return proto.CompactTextString(m) }
870func (*EventMetaData) ProtoMessage() {}
871func (*EventMetaData) Descriptor() ([]byte, []int) {
872 return fileDescriptor_8962d785556e9979, []int{9}
873}
874
875func (m *EventMetaData) XXX_Unmarshal(b []byte) error {
876 return xxx_messageInfo_EventMetaData.Unmarshal(m, b)
877}
878func (m *EventMetaData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
879 return xxx_messageInfo_EventMetaData.Marshal(b, m, deterministic)
880}
881func (m *EventMetaData) XXX_Merge(src proto.Message) {
882 xxx_messageInfo_EventMetaData.Merge(m, src)
883}
884func (m *EventMetaData) XXX_Size() int {
885 return xxx_messageInfo_EventMetaData.Size(m)
886}
887func (m *EventMetaData) XXX_DiscardUnknown() {
888 xxx_messageInfo_EventMetaData.DiscardUnknown(m)
889}
890
891var xxx_messageInfo_EventMetaData proto.InternalMessageInfo
892
893func (m *EventMetaData) GetDeviceUuid() *Uuid {
894 if m != nil {
895 return m.DeviceUuid
896 }
897 return nil
898}
899
900func (m *EventMetaData) GetComponentUuid() *Uuid {
901 if m != nil {
902 return m.ComponentUuid
903 }
904 return nil
905}
906
907func (m *EventMetaData) GetComponentName() string {
908 if m != nil {
909 return m.ComponentName
910 }
911 return ""
912}
913
914type Event struct {
915 EventMetadata *EventMetaData `protobuf:"bytes,1,opt,name=event_metadata,json=eventMetadata,proto3" json:"event_metadata,omitempty"`
916 EventId EventIds `protobuf:"varint,2,opt,name=event_id,json=eventId,proto3,enum=dmi.EventIds" json:"event_id,omitempty"`
917 RaisedTs *timestamp.Timestamp `protobuf:"bytes,3,opt,name=raised_ts,json=raisedTs,proto3" json:"raised_ts,omitempty"`
918 // Optional threshold information for an event
919 ThresholdInfo *ThresholdInformation `protobuf:"bytes,4,opt,name=threshold_info,json=thresholdInfo,proto3" json:"threshold_info,omitempty"`
920 // Any additional info regarding the event
921 AddInfo string `protobuf:"bytes,5,opt,name=add_info,json=addInfo,proto3" json:"add_info,omitempty"`
922 XXX_NoUnkeyedLiteral struct{} `json:"-"`
923 XXX_unrecognized []byte `json:"-"`
924 XXX_sizecache int32 `json:"-"`
925}
926
927func (m *Event) Reset() { *m = Event{} }
928func (m *Event) String() string { return proto.CompactTextString(m) }
929func (*Event) ProtoMessage() {}
930func (*Event) Descriptor() ([]byte, []int) {
931 return fileDescriptor_8962d785556e9979, []int{10}
932}
933
934func (m *Event) XXX_Unmarshal(b []byte) error {
935 return xxx_messageInfo_Event.Unmarshal(m, b)
936}
937func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
938 return xxx_messageInfo_Event.Marshal(b, m, deterministic)
939}
940func (m *Event) XXX_Merge(src proto.Message) {
941 xxx_messageInfo_Event.Merge(m, src)
942}
943func (m *Event) XXX_Size() int {
944 return xxx_messageInfo_Event.Size(m)
945}
946func (m *Event) XXX_DiscardUnknown() {
947 xxx_messageInfo_Event.DiscardUnknown(m)
948}
949
950var xxx_messageInfo_Event proto.InternalMessageInfo
951
952func (m *Event) GetEventMetadata() *EventMetaData {
953 if m != nil {
954 return m.EventMetadata
955 }
956 return nil
957}
958
959func (m *Event) GetEventId() EventIds {
960 if m != nil {
961 return m.EventId
962 }
963 return EventIds_EVENT_NAME_UNDEFINED
964}
965
966func (m *Event) GetRaisedTs() *timestamp.Timestamp {
967 if m != nil {
968 return m.RaisedTs
969 }
970 return nil
971}
972
973func (m *Event) GetThresholdInfo() *ThresholdInformation {
974 if m != nil {
975 return m.ThresholdInfo
976 }
977 return nil
978}
979
980func (m *Event) GetAddInfo() string {
981 if m != nil {
982 return m.AddInfo
983 }
984 return ""
985}
986
987func init() {
988 proto.RegisterEnum("dmi.EventIds", EventIds_name, EventIds_value)
amit.ghoshae473032021-01-10 11:59:10 +0100989 proto.RegisterEnum("dmi.ListEventsResponse_Reason", ListEventsResponse_Reason_name, ListEventsResponse_Reason_value)
990 proto.RegisterEnum("dmi.EventsConfigurationResponse_Reason", EventsConfigurationResponse_Reason_name, EventsConfigurationResponse_Reason_value)
Amit Ghosh09f28362020-06-12 21:52:19 +0100991 proto.RegisterType((*ValueType)(nil), "dmi.ValueType")
992 proto.RegisterType((*WaterMarks)(nil), "dmi.WaterMarks")
993 proto.RegisterType((*Thresholds)(nil), "dmi.Thresholds")
994 proto.RegisterType((*ThresholdInformation)(nil), "dmi.ThresholdInformation")
995 proto.RegisterType((*EventCfg)(nil), "dmi.EventCfg")
996 proto.RegisterType((*EventsCfg)(nil), "dmi.EventsCfg")
997 proto.RegisterType((*ListEventsResponse)(nil), "dmi.ListEventsResponse")
998 proto.RegisterType((*EventsConfigurationRequest)(nil), "dmi.EventsConfigurationRequest")
999 proto.RegisterType((*EventsConfigurationResponse)(nil), "dmi.EventsConfigurationResponse")
1000 proto.RegisterType((*EventMetaData)(nil), "dmi.EventMetaData")
1001 proto.RegisterType((*Event)(nil), "dmi.Event")
1002}
1003
1004func init() { proto.RegisterFile("dmi/hw_events_mgmt_service.proto", fileDescriptor_8962d785556e9979) }
1005
1006var fileDescriptor_8962d785556e9979 = []byte{
amit.ghosh7a093bd2023-03-07 16:31:56 +01001007 // 1582 bytes of a gzipped FileDescriptorProto
1008 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0xdd, 0x72, 0xe3, 0x48,
1009 0x15, 0x8e, 0xac, 0xfc, 0xd8, 0x27, 0x13, 0xa3, 0xed, 0x1a, 0x66, 0x12, 0x87, 0xd9, 0x35, 0x1e,
1010 0xd8, 0x64, 0x03, 0x63, 0x67, 0x33, 0xcb, 0x0c, 0x53, 0x7b, 0x01, 0x8a, 0xad, 0x8c, 0x55, 0x38,
1011 0x72, 0xaa, 0x2d, 0x3b, 0x14, 0x17, 0xab, 0xea, 0xb1, 0xda, 0xb6, 0x18, 0x4b, 0xf2, 0x4a, 0xed,
1012 0x84, 0x40, 0x15, 0x17, 0xfb, 0x04, 0xfc, 0xdd, 0x41, 0xf1, 0x04, 0x0c, 0xbc, 0x00, 0x0f, 0xc0,
1013 0xcf, 0x0b, 0xc0, 0x43, 0x70, 0xc7, 0x3f, 0x37, 0x94, 0x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 0x14, 0x2b, 0x84, 0x91,
1025 0x71, 0x76, 0x3c, 0x01, 0x9d, 0x6e, 0x80, 0x7c, 0x45, 0xfa, 0x05, 0x0c, 0x70, 0x49, 0x18, 0x0d,
1026 0xce, 0x49, 0xf0, 0x3a, 0x44, 0x05, 0x58, 0xef, 0x39, 0xdd, 0x1e, 0x97, 0xb6, 0x7d, 0x92, 0xe5,
1027 0x11, 0x26, 0x6c, 0xee, 0x43, 0x79, 0x90, 0xfb, 0xfe, 0x35, 0x57, 0x38, 0x0b, 0x89, 0x5c, 0x85,
1028 0xd7, 0x00, 0x66, 0x2f, 0xa0, 0x61, 0xcf, 0xef, 0xdb, 0x21, 0x3a, 0x80, 0x8d, 0xe1, 0x60, 0x40,
1029 0x83, 0x38, 0xe8, 0x17, 0x38, 0x63, 0x92, 0xb3, 0xba, 0x86, 0x85, 0x3f, 0x02, 0xf6, 0xfd, 0x6b,
1030 0x1a, 0xc4, 0xa1, 0xe7, 0x01, 0xb9, 0xff, 0x74, 0x1b, 0x32, 0x6c, 0x14, 0xbf, 0xf0, 0x63, 0xb8,
1031 0x3f, 0x4e, 0xa6, 0x7b, 0x1d, 0x3f, 0x70, 0x09, 0x73, 0x7c, 0x0f, 0x7d, 0x03, 0xb2, 0xfe, 0xab,
1032 0xa8, 0xdb, 0xd4, 0x8e, 0xde, 0xd9, 0x90, 0x2e, 0x28, 0x6a, 0x67, 0x84, 0xe2, 0x26, 0x54, 0x02,
1033 0x18, 0xc7, 0x0e, 0x6f, 0x29, 0x99, 0x94, 0x84, 0x13, 0x90, 0xc2, 0xef, 0x25, 0x48, 0x6b, 0xd1,
1034 0x80, 0x95, 0x3b, 0x5d, 0x74, 0x08, 0x69, 0x3e, 0x6c, 0x96, 0x63, 0xf3, 0x74, 0xd9, 0x93, 0x1d,
1035 0xce, 0xe5, 0x00, 0xdd, 0x0e, 0xf1, 0x16, 0x15, 0xbf, 0xd0, 0x63, 0xd8, 0x71, 0x42, 0xab, 0xed,
1036 0x7b, 0x1d, 0xa7, 0x3b, 0x0c, 0xa8, 0xcd, 0x53, 0xa5, 0xf1, 0x3d, 0x27, 0x2c, 0x8f, 0x6d, 0x53,
1037 0x62, 0xe4, 0x95, 0x62, 0xd0, 0x31, 0x64, 0xdb, 0xbe, 0x3b, 0xf0, 0xbd, 0x48, 0xc3, 0x70, 0xe8,
1038 0xd8, 0x7c, 0x16, 0xb6, 0x4f, 0x32, 0x9c, 0xd4, 0x1c, 0x3a, 0x36, 0xde, 0x19, 0x03, 0xa2, 0xc7,
1039 0xc2, 0x31, 0x64, 0xb8, 0xb8, 0x30, 0x92, 0xff, 0x18, 0x36, 0x1c, 0x46, 0xdd, 0x70, 0x57, 0xca,
1040 0xcb, 0x87, 0xdb, 0x49, 0xed, 0xe5, 0x4e, 0x17, 0x0b, 0x5f, 0xe1, 0xd7, 0x29, 0x40, 0x35, 0x27,
1041 0x64, 0x82, 0x86, 0x69, 0x38, 0xf0, 0xbd, 0x90, 0xa2, 0xc7, 0xb0, 0x19, 0x32, 0xc2, 0x86, 0x61,
1042 0x5c, 0xf8, 0x36, 0x27, 0x37, 0xb8, 0x09, 0xc7, 0x2e, 0xf4, 0x0c, 0x36, 0x03, 0x4a, 0x42, 0xdf,
1043 0xe3, 0xe5, 0x66, 0x4f, 0xde, 0xe5, 0xa0, 0xd9, 0x68, 0x45, 0xcc, 0x51, 0x38, 0x46, 0xa3, 0xf7,
1044 0x61, 0x53, 0x1c, 0xe2, 0xf8, 0x25, 0x64, 0x27, 0xca, 0x22, 0xe1, 0x38, 0xf6, 0x46, 0x6f, 0x55,
1045 0x30, 0x2c, 0x9b, 0x32, 0xe2, 0x88, 0xa3, 0x90, 0xc1, 0xf7, 0x84, 0xb1, 0xc2, 0x6d, 0x85, 0x4f,
1046 0x60, 0x53, 0x84, 0x47, 0xf7, 0x41, 0x69, 0x1a, 0x15, 0xed, 0x4c, 0x37, 0xb4, 0x8a, 0x85, 0x35,
1047 0xb5, 0x51, 0x37, 0x94, 0x35,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 0x98, 0x8b, 0x73, 0xfe, 0x60, 0x3e,
1081 0xd3, 0x5c, 0x9d, 0xf3, 0x66, 0x05, 0x73, 0x71, 0xce, 0x1f, 0xa2, 0x03, 0x78, 0xbc, 0x70, 0xc8,
1082 0x12, 0xc0, 0x1f, 0xa1, 0x87, 0x80, 0x04, 0xf0, 0xa2, 0xd1, 0x9c, 0xac, 0xa9, 0x3f, 0x48, 0xe8,
1083 0x01, 0xbc, 0x33, 0xe5, 0xd0, 0x0d, 0xe5, 0x8f, 0x53, 0xf6, 0xd1, 0xd8, 0xfe, 0x49, 0x42, 0x79,
1084 0xd8, 0x9f, 0xb1, 0x27, 0x32, 0xfd, 0x39, 0xc1, 0x3c, 0x53, 0x8d, 0x31, 0xf3, 0x37, 0xa9, 0x89,
1085 0x84, 0xc8, 0x3e, 0x96, 0xf0, 0x26, 0x75, 0x9b, 0x30, 0x92, 0xf0, 0xdb, 0xd4, 0x24, 0x55, 0x22,
1086 0x50, 0x22, 0xd5, 0xef, 0x52, 0xe8, 0x03, 0xf8, 0x8a, 0x40, 0x94, 0x2f, 0x9a, 0x73, 0x46, 0xb9,
1087 0x8c, 0x75, 0x53, 0x2f, 0xab, 0x35, 0xe5, 0x27, 0x32, 0x7a, 0x1f, 0xbe, 0xbc, 0x0c, 0x7a, 0xa6,
1088 0x9a, 0x6a, 0x4d, 0xf9, 0xa9, 0x8c, 0x9e, 0x42, 0xf1, 0x2e, 0x21, 0x13, 0x3a, 0x7e, 0x26, 0xa3,
1089 0x63, 0xf8, 0xda, 0xca, 0xe0, 0x09, 0xc6, 0xcf, 0x65, 0x94, 0x83, 0x2f, 0x0a, 0x46, 0xf5, 0x32,
1090 0xbe, 0x56, 0x58, 0x58, 0x6b, 0x68, 0xa6, 0xf2, 0x77, 0x19, 0x95, 0x46, 0x9b, 0x66, 0xe2, 0x5b,
1091 0x52, 0xdb, 0x3f, 0x64, 0xf4, 0x75, 0x38, 0x58, 0x4d, 0x10, 0x15, 0xfe, 0x53, 0x46, 0x2f, 0x46,
1092 0xd3, 0x76, 0x97, 0xf0, 0x09, 0xd5, 0xff, 0x92, 0xd1, 0x33, 0xf8, 0xf0, 0x8e, 0x89, 0x12, 0xbc,
1093 0x7f, 0xcb, 0x68, 0x1f, 0x1e, 0xcc, 0x56, 0x7b, 0x5a, 0xaf, 0x9b, 0xca, 0x7f, 0x64, 0x74, 0x00,
1094 0x85, 0xb1, 0x33, 0x19, 0xad, 0xa1, 0x19, 0x8d, 0xba, 0x98, 0x66, 0xad, 0xa2, 0xfc, 0xf7, 0x76,
1095 0x99, 0x6a, 0xad, 0x36, 0x07, 0xdc, 0x18, 0xa1, 0xff, 0x27, 0xa3, 0x47, 0xb0, 0x2b, 0xd0, 0x35,
1096 0xdd, 0xd0, 0xac, 0xb2, 0x8a, 0x2b, 0x93, 0xa1, 0xfb, 0xcb, 0x3a, 0xfa, 0x12, 0x3c, 0x9c, 0xeb,
1097 0xd6, 0x0d, 0xe5, 0xaf, 0xeb, 0x27, 0x7f, 0x93, 0xe0, 0x91, 0x41, 0x98, 0x73, 0x45, 0xc5, 0x75,
1098 0xf3, 0x9c, 0x78, 0xa4, 0x4b, 0x5d, 0xea, 0xb1, 0x86, 0xf8, 0xd8, 0x47, 0xcf, 0x00, 0x26, 0xdf,
1099 0x18, 0x48, 0x7c, 0x41, 0x55, 0x49, 0x60, 0x5f, 0x93, 0x80, 0xea, 0x95, 0xdc, 0xc3, 0x05, 0x5f,
1100 0x21, 0xe8, 0x13, 0xd8, 0x6b, 0x0e, 0x6c, 0xc2, 0xe8, 0x9c, 0x7b, 0x2c, 0x7a, 0x6f, 0xf1, 0x0d,
1101 0x97, 0x5f, 0xf4, 0x73, 0xf9, 0x55, 0x57, 0x60, 0xf4, 0x11, 0xdc, 0x6b, 0xb0, 0x80, 0x12, 0x37,
1102 0x56, 0xf6, 0x60, 0xe6, 0x46, 0xa5, 0xb9, 0x03, 0x76, 0x93, 0x83, 0x49, 0xa4, 0x63, 0xe9, 0xf4,
1103 0xe3, 0xef, 0xbd, 0xe8, 0x3a, 0xac, 0x37, 0x7c, 0x55, 0x6c, 0xfb, 0x6e, 0xc9, 0x1f, 0x50, 0xaf,
1104 0xed, 0x07, 0x76, 0x49, 0x5c, 0x3a, 0x9f, 0xb8, 0xe3, 0xea, 0x9f, 0x38, 0x1e, 0xa3, 0x41, 0x87,
1105 0xb4, 0x69, 0xe9, 0xea, 0x69, 0xa9, 0xeb, 0x97, 0x6c, 0xd7, 0x79, 0xb5, 0xc9, 0x43, 0x3f, 0xfd,
1106 0x7f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x8e, 0x2f, 0x9b, 0x85, 0x1c, 0x11, 0x00, 0x00,
Amit Ghosh09f28362020-06-12 21:52:19 +01001107}
1108
1109// Reference imports to suppress errors if they are not otherwise used.
1110var _ context.Context
1111var _ grpc.ClientConn
1112
1113// This is a compile-time assertion to ensure that this generated file
1114// is compatible with the grpc package it is being compiled against.
1115const _ = grpc.SupportPackageIsVersion4
1116
1117// NativeEventsManagementServiceClient is the client API for NativeEventsManagementService service.
1118//
1119// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
1120type NativeEventsManagementServiceClient interface {
1121 // List the supported events for the passed device
1122 ListEvents(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (*ListEventsResponse, error)
1123 // Updates the configuration of the list of events in the request
aghoshc301dcd2020-09-03 16:55:34 +01001124 // The default behavior of the device is to report all the supported events
Amit Ghosh09f28362020-06-12 21:52:19 +01001125 // This configuration is persisted across reboots of the device or the device manager
1126 UpdateEventsConfiguration(ctx context.Context, in *EventsConfigurationRequest, opts ...grpc.CallOption) (*EventsConfigurationResponse, error)
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +05301127 // Initiate the server streaming of the events
1128 StreamEvents(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (NativeEventsManagementService_StreamEventsClient, error)
Amit Ghosh09f28362020-06-12 21:52:19 +01001129}
1130
1131type nativeEventsManagementServiceClient struct {
1132 cc *grpc.ClientConn
1133}
1134
1135func NewNativeEventsManagementServiceClient(cc *grpc.ClientConn) NativeEventsManagementServiceClient {
1136 return &nativeEventsManagementServiceClient{cc}
1137}
1138
1139func (c *nativeEventsManagementServiceClient) ListEvents(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (*ListEventsResponse, error) {
1140 out := new(ListEventsResponse)
1141 err := c.cc.Invoke(ctx, "/dmi.NativeEventsManagementService/ListEvents", in, out, opts...)
1142 if err != nil {
1143 return nil, err
1144 }
1145 return out, nil
1146}
1147
1148func (c *nativeEventsManagementServiceClient) UpdateEventsConfiguration(ctx context.Context, in *EventsConfigurationRequest, opts ...grpc.CallOption) (*EventsConfigurationResponse, error) {
1149 out := new(EventsConfigurationResponse)
1150 err := c.cc.Invoke(ctx, "/dmi.NativeEventsManagementService/UpdateEventsConfiguration", in, out, opts...)
1151 if err != nil {
1152 return nil, err
1153 }
1154 return out, nil
1155}
1156
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +05301157func (c *nativeEventsManagementServiceClient) StreamEvents(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (NativeEventsManagementService_StreamEventsClient, error) {
1158 stream, err := c.cc.NewStream(ctx, &_NativeEventsManagementService_serviceDesc.Streams[0], "/dmi.NativeEventsManagementService/StreamEvents", opts...)
1159 if err != nil {
1160 return nil, err
1161 }
1162 x := &nativeEventsManagementServiceStreamEventsClient{stream}
1163 if err := x.ClientStream.SendMsg(in); err != nil {
1164 return nil, err
1165 }
1166 if err := x.ClientStream.CloseSend(); err != nil {
1167 return nil, err
1168 }
1169 return x, nil
1170}
1171
1172type NativeEventsManagementService_StreamEventsClient interface {
1173 Recv() (*Event, error)
1174 grpc.ClientStream
1175}
1176
1177type nativeEventsManagementServiceStreamEventsClient struct {
1178 grpc.ClientStream
1179}
1180
1181func (x *nativeEventsManagementServiceStreamEventsClient) Recv() (*Event, error) {
1182 m := new(Event)
1183 if err := x.ClientStream.RecvMsg(m); err != nil {
1184 return nil, err
1185 }
1186 return m, nil
1187}
1188
Amit Ghosh09f28362020-06-12 21:52:19 +01001189// NativeEventsManagementServiceServer is the server API for NativeEventsManagementService service.
1190type NativeEventsManagementServiceServer interface {
1191 // List the supported events for the passed device
1192 ListEvents(context.Context, *HardwareID) (*ListEventsResponse, error)
1193 // Updates the configuration of the list of events in the request
aghoshc301dcd2020-09-03 16:55:34 +01001194 // The default behavior of the device is to report all the supported events
Amit Ghosh09f28362020-06-12 21:52:19 +01001195 // This configuration is persisted across reboots of the device or the device manager
1196 UpdateEventsConfiguration(context.Context, *EventsConfigurationRequest) (*EventsConfigurationResponse, error)
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +05301197 // Initiate the server streaming of the events
1198 StreamEvents(*empty.Empty, NativeEventsManagementService_StreamEventsServer) error
Amit Ghosh09f28362020-06-12 21:52:19 +01001199}
1200
Andrea Campanellac795b7d2021-04-14 13:24:44 +02001201// UnimplementedNativeEventsManagementServiceServer can be embedded to have forward compatible implementations.
1202type UnimplementedNativeEventsManagementServiceServer struct {
1203}
1204
1205func (*UnimplementedNativeEventsManagementServiceServer) ListEvents(ctx context.Context, req *HardwareID) (*ListEventsResponse, error) {
1206 return nil, status.Errorf(codes.Unimplemented, "method ListEvents not implemented")
1207}
1208func (*UnimplementedNativeEventsManagementServiceServer) UpdateEventsConfiguration(ctx context.Context, req *EventsConfigurationRequest) (*EventsConfigurationResponse, error) {
1209 return nil, status.Errorf(codes.Unimplemented, "method UpdateEventsConfiguration not implemented")
1210}
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +05301211func (*UnimplementedNativeEventsManagementServiceServer) StreamEvents(req *empty.Empty, srv NativeEventsManagementService_StreamEventsServer) error {
1212 return status.Errorf(codes.Unimplemented, "method StreamEvents not implemented")
1213}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02001214
Amit Ghosh09f28362020-06-12 21:52:19 +01001215func RegisterNativeEventsManagementServiceServer(s *grpc.Server, srv NativeEventsManagementServiceServer) {
1216 s.RegisterService(&_NativeEventsManagementService_serviceDesc, srv)
1217}
1218
1219func _NativeEventsManagementService_ListEvents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1220 in := new(HardwareID)
1221 if err := dec(in); err != nil {
1222 return nil, err
1223 }
1224 if interceptor == nil {
1225 return srv.(NativeEventsManagementServiceServer).ListEvents(ctx, in)
1226 }
1227 info := &grpc.UnaryServerInfo{
1228 Server: srv,
1229 FullMethod: "/dmi.NativeEventsManagementService/ListEvents",
1230 }
1231 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1232 return srv.(NativeEventsManagementServiceServer).ListEvents(ctx, req.(*HardwareID))
1233 }
1234 return interceptor(ctx, in, info, handler)
1235}
1236
1237func _NativeEventsManagementService_UpdateEventsConfiguration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1238 in := new(EventsConfigurationRequest)
1239 if err := dec(in); err != nil {
1240 return nil, err
1241 }
1242 if interceptor == nil {
1243 return srv.(NativeEventsManagementServiceServer).UpdateEventsConfiguration(ctx, in)
1244 }
1245 info := &grpc.UnaryServerInfo{
1246 Server: srv,
1247 FullMethod: "/dmi.NativeEventsManagementService/UpdateEventsConfiguration",
1248 }
1249 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1250 return srv.(NativeEventsManagementServiceServer).UpdateEventsConfiguration(ctx, req.(*EventsConfigurationRequest))
1251 }
1252 return interceptor(ctx, in, info, handler)
1253}
1254
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +05301255func _NativeEventsManagementService_StreamEvents_Handler(srv interface{}, stream grpc.ServerStream) error {
1256 m := new(empty.Empty)
1257 if err := stream.RecvMsg(m); err != nil {
1258 return err
1259 }
1260 return srv.(NativeEventsManagementServiceServer).StreamEvents(m, &nativeEventsManagementServiceStreamEventsServer{stream})
1261}
1262
1263type NativeEventsManagementService_StreamEventsServer interface {
1264 Send(*Event) error
1265 grpc.ServerStream
1266}
1267
1268type nativeEventsManagementServiceStreamEventsServer struct {
1269 grpc.ServerStream
1270}
1271
1272func (x *nativeEventsManagementServiceStreamEventsServer) Send(m *Event) error {
1273 return x.ServerStream.SendMsg(m)
1274}
1275
Amit Ghosh09f28362020-06-12 21:52:19 +01001276var _NativeEventsManagementService_serviceDesc = grpc.ServiceDesc{
1277 ServiceName: "dmi.NativeEventsManagementService",
1278 HandlerType: (*NativeEventsManagementServiceServer)(nil),
1279 Methods: []grpc.MethodDesc{
1280 {
1281 MethodName: "ListEvents",
1282 Handler: _NativeEventsManagementService_ListEvents_Handler,
1283 },
1284 {
1285 MethodName: "UpdateEventsConfiguration",
1286 Handler: _NativeEventsManagementService_UpdateEventsConfiguration_Handler,
1287 },
1288 },
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +05301289 Streams: []grpc.StreamDesc{
1290 {
1291 StreamName: "StreamEvents",
1292 Handler: _NativeEventsManagementService_StreamEvents_Handler,
1293 ServerStreams: true,
1294 },
1295 },
Amit Ghosh09f28362020-06-12 21:52:19 +01001296 Metadata: "dmi/hw_events_mgmt_service.proto",
1297}