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