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