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