blob: 422f9dfabe1b0de1827a7b53df217f236eebc62b [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
551 Thresholds *Thresholds `protobuf:"bytes,3,opt,name=thresholds,proto3" json:"thresholds,omitempty"`
552 XXX_NoUnkeyedLiteral struct{} `json:"-"`
553 XXX_unrecognized []byte `json:"-"`
554 XXX_sizecache int32 `json:"-"`
555}
556
557func (m *EventCfg) Reset() { *m = EventCfg{} }
558func (m *EventCfg) String() string { return proto.CompactTextString(m) }
559func (*EventCfg) ProtoMessage() {}
560func (*EventCfg) Descriptor() ([]byte, []int) {
561 return fileDescriptor_8962d785556e9979, []int{4}
562}
563
564func (m *EventCfg) XXX_Unmarshal(b []byte) error {
565 return xxx_messageInfo_EventCfg.Unmarshal(m, b)
566}
567func (m *EventCfg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
568 return xxx_messageInfo_EventCfg.Marshal(b, m, deterministic)
569}
570func (m *EventCfg) XXX_Merge(src proto.Message) {
571 xxx_messageInfo_EventCfg.Merge(m, src)
572}
573func (m *EventCfg) XXX_Size() int {
574 return xxx_messageInfo_EventCfg.Size(m)
575}
576func (m *EventCfg) XXX_DiscardUnknown() {
577 xxx_messageInfo_EventCfg.DiscardUnknown(m)
578}
579
580var xxx_messageInfo_EventCfg proto.InternalMessageInfo
581
582func (m *EventCfg) GetEventId() EventIds {
583 if m != nil {
584 return m.EventId
585 }
586 return EventIds_EVENT_NAME_UNDEFINED
587}
588
589func (m *EventCfg) GetIsConfigured() bool {
590 if m != nil {
591 return m.IsConfigured
592 }
593 return false
594}
595
596func (m *EventCfg) GetThresholds() *Thresholds {
597 if m != nil {
598 return m.Thresholds
599 }
600 return nil
601}
602
603type EventsCfg struct {
604 Items []*EventCfg `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
605 XXX_NoUnkeyedLiteral struct{} `json:"-"`
606 XXX_unrecognized []byte `json:"-"`
607 XXX_sizecache int32 `json:"-"`
608}
609
610func (m *EventsCfg) Reset() { *m = EventsCfg{} }
611func (m *EventsCfg) String() string { return proto.CompactTextString(m) }
612func (*EventsCfg) ProtoMessage() {}
613func (*EventsCfg) Descriptor() ([]byte, []int) {
614 return fileDescriptor_8962d785556e9979, []int{5}
615}
616
617func (m *EventsCfg) XXX_Unmarshal(b []byte) error {
618 return xxx_messageInfo_EventsCfg.Unmarshal(m, b)
619}
620func (m *EventsCfg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
621 return xxx_messageInfo_EventsCfg.Marshal(b, m, deterministic)
622}
623func (m *EventsCfg) XXX_Merge(src proto.Message) {
624 xxx_messageInfo_EventsCfg.Merge(m, src)
625}
626func (m *EventsCfg) XXX_Size() int {
627 return xxx_messageInfo_EventsCfg.Size(m)
628}
629func (m *EventsCfg) XXX_DiscardUnknown() {
630 xxx_messageInfo_EventsCfg.DiscardUnknown(m)
631}
632
633var xxx_messageInfo_EventsCfg proto.InternalMessageInfo
634
635func (m *EventsCfg) GetItems() []*EventCfg {
636 if m != nil {
637 return m.Items
638 }
639 return nil
640}
641
642type ListEventsResponse struct {
amit.ghoshae473032021-01-10 11:59:10 +0100643 Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"`
644 Reason ListEventsResponse_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.ListEventsResponse_Reason" json:"reason,omitempty"`
645 Events *EventsCfg `protobuf:"bytes,3,opt,name=events,proto3" json:"events,omitempty"`
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100646 ReasonDetail string `protobuf:"bytes,4,opt,name=reason_detail,json=reasonDetail,proto3" json:"reason_detail,omitempty"`
amit.ghoshae473032021-01-10 11:59:10 +0100647 XXX_NoUnkeyedLiteral struct{} `json:"-"`
648 XXX_unrecognized []byte `json:"-"`
649 XXX_sizecache int32 `json:"-"`
Amit Ghosh09f28362020-06-12 21:52:19 +0100650}
651
652func (m *ListEventsResponse) Reset() { *m = ListEventsResponse{} }
653func (m *ListEventsResponse) String() string { return proto.CompactTextString(m) }
654func (*ListEventsResponse) ProtoMessage() {}
655func (*ListEventsResponse) Descriptor() ([]byte, []int) {
656 return fileDescriptor_8962d785556e9979, []int{6}
657}
658
659func (m *ListEventsResponse) XXX_Unmarshal(b []byte) error {
660 return xxx_messageInfo_ListEventsResponse.Unmarshal(m, b)
661}
662func (m *ListEventsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
663 return xxx_messageInfo_ListEventsResponse.Marshal(b, m, deterministic)
664}
665func (m *ListEventsResponse) XXX_Merge(src proto.Message) {
666 xxx_messageInfo_ListEventsResponse.Merge(m, src)
667}
668func (m *ListEventsResponse) XXX_Size() int {
669 return xxx_messageInfo_ListEventsResponse.Size(m)
670}
671func (m *ListEventsResponse) XXX_DiscardUnknown() {
672 xxx_messageInfo_ListEventsResponse.DiscardUnknown(m)
673}
674
675var xxx_messageInfo_ListEventsResponse proto.InternalMessageInfo
676
677func (m *ListEventsResponse) GetStatus() Status {
678 if m != nil {
679 return m.Status
680 }
681 return Status_UNDEFINED_STATUS
682}
683
amit.ghoshae473032021-01-10 11:59:10 +0100684func (m *ListEventsResponse) GetReason() ListEventsResponse_Reason {
Amit Ghosh09f28362020-06-12 21:52:19 +0100685 if m != nil {
686 return m.Reason
687 }
amit.ghoshae473032021-01-10 11:59:10 +0100688 return ListEventsResponse_UNDEFINED_REASON
Amit Ghosh09f28362020-06-12 21:52:19 +0100689}
690
691func (m *ListEventsResponse) GetEvents() *EventsCfg {
692 if m != nil {
693 return m.Events
694 }
695 return nil
696}
697
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100698func (m *ListEventsResponse) GetReasonDetail() string {
699 if m != nil {
700 return m.ReasonDetail
701 }
702 return ""
703}
704
Amit Ghosh09f28362020-06-12 21:52:19 +0100705type EventsConfigurationRequest struct {
706 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
707 // Types that are valid to be assigned to Operation:
708 // *EventsConfigurationRequest_Changes
709 // *EventsConfigurationRequest_ResetToDefault
amit.ghoshf1be1272022-08-24 19:31:03 +0200710 Operation isEventsConfigurationRequest_Operation `protobuf_oneof:"operation"`
711 // For events which can be configured on a particular component this id can be used to identify the component
712 // For e.g. for events of the transceivers
713 ComponentUuid *Uuid `protobuf:"bytes,4,opt,name=component_uuid,json=componentUuid,proto3" json:"component_uuid,omitempty"`
714 XXX_NoUnkeyedLiteral struct{} `json:"-"`
715 XXX_unrecognized []byte `json:"-"`
716 XXX_sizecache int32 `json:"-"`
Amit Ghosh09f28362020-06-12 21:52:19 +0100717}
718
719func (m *EventsConfigurationRequest) Reset() { *m = EventsConfigurationRequest{} }
720func (m *EventsConfigurationRequest) String() string { return proto.CompactTextString(m) }
721func (*EventsConfigurationRequest) ProtoMessage() {}
722func (*EventsConfigurationRequest) Descriptor() ([]byte, []int) {
723 return fileDescriptor_8962d785556e9979, []int{7}
724}
725
726func (m *EventsConfigurationRequest) XXX_Unmarshal(b []byte) error {
727 return xxx_messageInfo_EventsConfigurationRequest.Unmarshal(m, b)
728}
729func (m *EventsConfigurationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
730 return xxx_messageInfo_EventsConfigurationRequest.Marshal(b, m, deterministic)
731}
732func (m *EventsConfigurationRequest) XXX_Merge(src proto.Message) {
733 xxx_messageInfo_EventsConfigurationRequest.Merge(m, src)
734}
735func (m *EventsConfigurationRequest) XXX_Size() int {
736 return xxx_messageInfo_EventsConfigurationRequest.Size(m)
737}
738func (m *EventsConfigurationRequest) XXX_DiscardUnknown() {
739 xxx_messageInfo_EventsConfigurationRequest.DiscardUnknown(m)
740}
741
742var xxx_messageInfo_EventsConfigurationRequest proto.InternalMessageInfo
743
744func (m *EventsConfigurationRequest) GetDeviceUuid() *Uuid {
745 if m != nil {
746 return m.DeviceUuid
747 }
748 return nil
749}
750
751type isEventsConfigurationRequest_Operation interface {
752 isEventsConfigurationRequest_Operation()
753}
754
755type EventsConfigurationRequest_Changes struct {
756 Changes *EventsCfg `protobuf:"bytes,2,opt,name=changes,proto3,oneof"`
757}
758
759type EventsConfigurationRequest_ResetToDefault struct {
760 ResetToDefault bool `protobuf:"varint,3,opt,name=reset_to_default,json=resetToDefault,proto3,oneof"`
761}
762
763func (*EventsConfigurationRequest_Changes) isEventsConfigurationRequest_Operation() {}
764
765func (*EventsConfigurationRequest_ResetToDefault) isEventsConfigurationRequest_Operation() {}
766
767func (m *EventsConfigurationRequest) GetOperation() isEventsConfigurationRequest_Operation {
768 if m != nil {
769 return m.Operation
770 }
771 return nil
772}
773
774func (m *EventsConfigurationRequest) GetChanges() *EventsCfg {
775 if x, ok := m.GetOperation().(*EventsConfigurationRequest_Changes); ok {
776 return x.Changes
777 }
778 return nil
779}
780
781func (m *EventsConfigurationRequest) GetResetToDefault() bool {
782 if x, ok := m.GetOperation().(*EventsConfigurationRequest_ResetToDefault); ok {
783 return x.ResetToDefault
784 }
785 return false
786}
787
amit.ghoshf1be1272022-08-24 19:31:03 +0200788func (m *EventsConfigurationRequest) GetComponentUuid() *Uuid {
789 if m != nil {
790 return m.ComponentUuid
791 }
792 return nil
793}
794
Amit Ghosh09f28362020-06-12 21:52:19 +0100795// 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.ghosh93921ec2022-09-08 17:22:40 +02001007 // 1577 bytes of a gzipped FileDescriptorProto
1008 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0x4b, 0x73, 0xdb, 0x5e,
1009 0x15, 0x8f, 0xad, 0x3c, 0xec, 0x93, 0xc4, 0xa8, 0x77, 0x4a, 0x9a, 0x38, 0xa4, 0x35, 0x0e, 0x34,
1010 0x69, 0x20, 0x76, 0x9a, 0x94, 0x96, 0x4e, 0x17, 0xa0, 0xd8, 0x4a, 0xad, 0xc1, 0x91, 0x33, 0xd7,
1011 0xb2, 0xc3, 0xb0, 0xa8, 0xe6, 0xc6, 0xba, 0xb6, 0x45, 0x2d, 0xc9, 0x95, 0xae, 0x13, 0x02, 0x33,
1012 0x2c, 0xba, 0x64, 0xc5, 0x6b, 0x07, 0xc3, 0x27, 0xe0, 0xf1, 0x35, 0x78, 0x7c, 0x01, 0x58, 0xf1,
1013 0x09, 0xd8, 0xf1, 0x66, 0xc3, 0xe8, 0x4a, 0xb6, 0x15, 0x3f, 0xd3, 0x99, 0xff, 0xce, 0x3a, 0xbf,
1014 0xdf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, 0xeb,
1103 0x96, 0xc9, 0xda, 0xbd, 0xab, 0x5c, 0xc3, 0xb1, 0xf2, 0x4e, 0x97, 0xda, 0x0d, 0xc7, 0x35, 0xf2,
1104 0xc1, 0xa1, 0xf3, 0xd0, 0x1a, 0x74, 0x7f, 0x68, 0xda, 0x8c, 0xba, 0x4d, 0xd2, 0xa0, 0xf9, 0xeb,
1105 0x93, 0x7c, 0xcb, 0xc9, 0x1b, 0x96, 0x79, 0xb5, 0xcc, 0x53, 0x9f, 0xfc, 0x3f, 0x00, 0x00, 0xff,
1106 0xff, 0x6f, 0x97, 0xb7, 0xd3, 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}