blob: 5c3418b05e9e6080b67a7269f4095623fcd2af17 [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 (
179 ListEventsResponse_UNDEFINED_REASON ListEventsResponse_Reason = 0
180 ListEventsResponse_UNKNOWN_DEVICE ListEventsResponse_Reason = 1
181 ListEventsResponse_INTERNAL_ERROR ListEventsResponse_Reason = 2
182)
183
184var ListEventsResponse_Reason_name = map[int32]string{
185 0: "UNDEFINED_REASON",
186 1: "UNKNOWN_DEVICE",
187 2: "INTERNAL_ERROR",
188}
189
190var ListEventsResponse_Reason_value = map[string]int32{
191 "UNDEFINED_REASON": 0,
192 "UNKNOWN_DEVICE": 1,
193 "INTERNAL_ERROR": 2,
194}
195
196func (x ListEventsResponse_Reason) String() string {
197 return proto.EnumName(ListEventsResponse_Reason_name, int32(x))
198}
199
200func (ListEventsResponse_Reason) EnumDescriptor() ([]byte, []int) {
201 return fileDescriptor_8962d785556e9979, []int{6, 0}
202}
203
204type EventsConfigurationResponse_Reason int32
205
206const (
207 EventsConfigurationResponse_UNDEFINED_REASON EventsConfigurationResponse_Reason = 0
208 EventsConfigurationResponse_UNKNOWN_DEVICE EventsConfigurationResponse_Reason = 1
209 EventsConfigurationResponse_INTERNAL_ERROR EventsConfigurationResponse_Reason = 2
210 EventsConfigurationResponse_INVALID_CONFIG EventsConfigurationResponse_Reason = 3
211)
212
213var EventsConfigurationResponse_Reason_name = map[int32]string{
214 0: "UNDEFINED_REASON",
215 1: "UNKNOWN_DEVICE",
216 2: "INTERNAL_ERROR",
217 3: "INVALID_CONFIG",
218}
219
220var EventsConfigurationResponse_Reason_value = map[string]int32{
221 "UNDEFINED_REASON": 0,
222 "UNKNOWN_DEVICE": 1,
223 "INTERNAL_ERROR": 2,
224 "INVALID_CONFIG": 3,
225}
226
227func (x EventsConfigurationResponse_Reason) String() string {
228 return proto.EnumName(EventsConfigurationResponse_Reason_name, int32(x))
229}
230
231func (EventsConfigurationResponse_Reason) EnumDescriptor() ([]byte, []int) {
232 return fileDescriptor_8962d785556e9979, []int{8, 0}
233}
234
Amit Ghosh09f28362020-06-12 21:52:19 +0100235type ValueType struct {
236 // Types that are valid to be assigned to Val:
237 // *ValueType_IntVal
238 // *ValueType_UintVal
239 // *ValueType_FloatVal
240 Val isValueType_Val `protobuf_oneof:"val"`
241 XXX_NoUnkeyedLiteral struct{} `json:"-"`
242 XXX_unrecognized []byte `json:"-"`
243 XXX_sizecache int32 `json:"-"`
244}
245
246func (m *ValueType) Reset() { *m = ValueType{} }
247func (m *ValueType) String() string { return proto.CompactTextString(m) }
248func (*ValueType) ProtoMessage() {}
249func (*ValueType) Descriptor() ([]byte, []int) {
250 return fileDescriptor_8962d785556e9979, []int{0}
251}
252
253func (m *ValueType) XXX_Unmarshal(b []byte) error {
254 return xxx_messageInfo_ValueType.Unmarshal(m, b)
255}
256func (m *ValueType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
257 return xxx_messageInfo_ValueType.Marshal(b, m, deterministic)
258}
259func (m *ValueType) XXX_Merge(src proto.Message) {
260 xxx_messageInfo_ValueType.Merge(m, src)
261}
262func (m *ValueType) XXX_Size() int {
263 return xxx_messageInfo_ValueType.Size(m)
264}
265func (m *ValueType) XXX_DiscardUnknown() {
266 xxx_messageInfo_ValueType.DiscardUnknown(m)
267}
268
269var xxx_messageInfo_ValueType proto.InternalMessageInfo
270
271type isValueType_Val interface {
272 isValueType_Val()
273}
274
275type ValueType_IntVal struct {
276 IntVal int64 `protobuf:"varint,1,opt,name=int_val,json=intVal,proto3,oneof"`
277}
278
279type ValueType_UintVal struct {
280 UintVal uint64 `protobuf:"varint,2,opt,name=uint_val,json=uintVal,proto3,oneof"`
281}
282
283type ValueType_FloatVal struct {
284 FloatVal float32 `protobuf:"fixed32,3,opt,name=float_val,json=floatVal,proto3,oneof"`
285}
286
287func (*ValueType_IntVal) isValueType_Val() {}
288
289func (*ValueType_UintVal) isValueType_Val() {}
290
291func (*ValueType_FloatVal) isValueType_Val() {}
292
293func (m *ValueType) GetVal() isValueType_Val {
294 if m != nil {
295 return m.Val
296 }
297 return nil
298}
299
300func (m *ValueType) GetIntVal() int64 {
301 if x, ok := m.GetVal().(*ValueType_IntVal); ok {
302 return x.IntVal
303 }
304 return 0
305}
306
307func (m *ValueType) GetUintVal() uint64 {
308 if x, ok := m.GetVal().(*ValueType_UintVal); ok {
309 return x.UintVal
310 }
311 return 0
312}
313
314func (m *ValueType) GetFloatVal() float32 {
315 if x, ok := m.GetVal().(*ValueType_FloatVal); ok {
316 return x.FloatVal
317 }
318 return 0
319}
320
321// XXX_OneofWrappers is for the internal use of the proto package.
322func (*ValueType) XXX_OneofWrappers() []interface{} {
323 return []interface{}{
324 (*ValueType_IntVal)(nil),
325 (*ValueType_UintVal)(nil),
326 (*ValueType_FloatVal)(nil),
327 }
328}
329
330type WaterMarks struct {
331 High *ValueType `protobuf:"bytes,1,opt,name=high,proto3" json:"high,omitempty"`
332 Low *ValueType `protobuf:"bytes,2,opt,name=low,proto3" json:"low,omitempty"`
333 XXX_NoUnkeyedLiteral struct{} `json:"-"`
334 XXX_unrecognized []byte `json:"-"`
335 XXX_sizecache int32 `json:"-"`
336}
337
338func (m *WaterMarks) Reset() { *m = WaterMarks{} }
339func (m *WaterMarks) String() string { return proto.CompactTextString(m) }
340func (*WaterMarks) ProtoMessage() {}
341func (*WaterMarks) Descriptor() ([]byte, []int) {
342 return fileDescriptor_8962d785556e9979, []int{1}
343}
344
345func (m *WaterMarks) XXX_Unmarshal(b []byte) error {
346 return xxx_messageInfo_WaterMarks.Unmarshal(m, b)
347}
348func (m *WaterMarks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
349 return xxx_messageInfo_WaterMarks.Marshal(b, m, deterministic)
350}
351func (m *WaterMarks) XXX_Merge(src proto.Message) {
352 xxx_messageInfo_WaterMarks.Merge(m, src)
353}
354func (m *WaterMarks) XXX_Size() int {
355 return xxx_messageInfo_WaterMarks.Size(m)
356}
357func (m *WaterMarks) XXX_DiscardUnknown() {
358 xxx_messageInfo_WaterMarks.DiscardUnknown(m)
359}
360
361var xxx_messageInfo_WaterMarks proto.InternalMessageInfo
362
363func (m *WaterMarks) GetHigh() *ValueType {
364 if m != nil {
365 return m.High
366 }
367 return nil
368}
369
370func (m *WaterMarks) GetLow() *ValueType {
371 if m != nil {
372 return m.Low
373 }
374 return nil
375}
376
377type Thresholds struct {
378 // Types that are valid to be assigned to Threshold:
379 // *Thresholds_Upper
380 // *Thresholds_Lower
381 Threshold isThresholds_Threshold `protobuf_oneof:"threshold"`
382 XXX_NoUnkeyedLiteral struct{} `json:"-"`
383 XXX_unrecognized []byte `json:"-"`
384 XXX_sizecache int32 `json:"-"`
385}
386
387func (m *Thresholds) Reset() { *m = Thresholds{} }
388func (m *Thresholds) String() string { return proto.CompactTextString(m) }
389func (*Thresholds) ProtoMessage() {}
390func (*Thresholds) Descriptor() ([]byte, []int) {
391 return fileDescriptor_8962d785556e9979, []int{2}
392}
393
394func (m *Thresholds) XXX_Unmarshal(b []byte) error {
395 return xxx_messageInfo_Thresholds.Unmarshal(m, b)
396}
397func (m *Thresholds) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
398 return xxx_messageInfo_Thresholds.Marshal(b, m, deterministic)
399}
400func (m *Thresholds) XXX_Merge(src proto.Message) {
401 xxx_messageInfo_Thresholds.Merge(m, src)
402}
403func (m *Thresholds) XXX_Size() int {
404 return xxx_messageInfo_Thresholds.Size(m)
405}
406func (m *Thresholds) XXX_DiscardUnknown() {
407 xxx_messageInfo_Thresholds.DiscardUnknown(m)
408}
409
410var xxx_messageInfo_Thresholds proto.InternalMessageInfo
411
412type isThresholds_Threshold interface {
413 isThresholds_Threshold()
414}
415
416type Thresholds_Upper struct {
417 Upper *WaterMarks `protobuf:"bytes,1,opt,name=upper,proto3,oneof"`
418}
419
420type Thresholds_Lower struct {
421 Lower *WaterMarks `protobuf:"bytes,2,opt,name=lower,proto3,oneof"`
422}
423
424func (*Thresholds_Upper) isThresholds_Threshold() {}
425
426func (*Thresholds_Lower) isThresholds_Threshold() {}
427
428func (m *Thresholds) GetThreshold() isThresholds_Threshold {
429 if m != nil {
430 return m.Threshold
431 }
432 return nil
433}
434
435func (m *Thresholds) GetUpper() *WaterMarks {
436 if x, ok := m.GetThreshold().(*Thresholds_Upper); ok {
437 return x.Upper
438 }
439 return nil
440}
441
442func (m *Thresholds) GetLower() *WaterMarks {
443 if x, ok := m.GetThreshold().(*Thresholds_Lower); ok {
444 return x.Lower
445 }
446 return nil
447}
448
449// XXX_OneofWrappers is for the internal use of the proto package.
450func (*Thresholds) XXX_OneofWrappers() []interface{} {
451 return []interface{}{
452 (*Thresholds_Upper)(nil),
453 (*Thresholds_Lower)(nil),
454 }
455}
456
457type ThresholdInformation struct {
458 ObservedValue *ValueType `protobuf:"bytes,1,opt,name=observed_value,json=observedValue,proto3" json:"observed_value,omitempty"`
459 Thresholds *Thresholds `protobuf:"bytes,2,opt,name=thresholds,proto3" json:"thresholds,omitempty"`
460 XXX_NoUnkeyedLiteral struct{} `json:"-"`
461 XXX_unrecognized []byte `json:"-"`
462 XXX_sizecache int32 `json:"-"`
463}
464
465func (m *ThresholdInformation) Reset() { *m = ThresholdInformation{} }
466func (m *ThresholdInformation) String() string { return proto.CompactTextString(m) }
467func (*ThresholdInformation) ProtoMessage() {}
468func (*ThresholdInformation) Descriptor() ([]byte, []int) {
469 return fileDescriptor_8962d785556e9979, []int{3}
470}
471
472func (m *ThresholdInformation) XXX_Unmarshal(b []byte) error {
473 return xxx_messageInfo_ThresholdInformation.Unmarshal(m, b)
474}
475func (m *ThresholdInformation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
476 return xxx_messageInfo_ThresholdInformation.Marshal(b, m, deterministic)
477}
478func (m *ThresholdInformation) XXX_Merge(src proto.Message) {
479 xxx_messageInfo_ThresholdInformation.Merge(m, src)
480}
481func (m *ThresholdInformation) XXX_Size() int {
482 return xxx_messageInfo_ThresholdInformation.Size(m)
483}
484func (m *ThresholdInformation) XXX_DiscardUnknown() {
485 xxx_messageInfo_ThresholdInformation.DiscardUnknown(m)
486}
487
488var xxx_messageInfo_ThresholdInformation proto.InternalMessageInfo
489
490func (m *ThresholdInformation) GetObservedValue() *ValueType {
491 if m != nil {
492 return m.ObservedValue
493 }
494 return nil
495}
496
497func (m *ThresholdInformation) GetThresholds() *Thresholds {
498 if m != nil {
499 return m.Thresholds
500 }
501 return nil
502}
503
504type EventCfg struct {
505 EventId EventIds `protobuf:"varint,1,opt,name=event_id,json=eventId,proto3,enum=dmi.EventIds" json:"event_id,omitempty"`
506 IsConfigured bool `protobuf:"varint,2,opt,name=is_configured,json=isConfigured,proto3" json:"is_configured,omitempty"`
507 // Optional threshold values, applicable only for some specific events
508 Thresholds *Thresholds `protobuf:"bytes,3,opt,name=thresholds,proto3" json:"thresholds,omitempty"`
509 XXX_NoUnkeyedLiteral struct{} `json:"-"`
510 XXX_unrecognized []byte `json:"-"`
511 XXX_sizecache int32 `json:"-"`
512}
513
514func (m *EventCfg) Reset() { *m = EventCfg{} }
515func (m *EventCfg) String() string { return proto.CompactTextString(m) }
516func (*EventCfg) ProtoMessage() {}
517func (*EventCfg) Descriptor() ([]byte, []int) {
518 return fileDescriptor_8962d785556e9979, []int{4}
519}
520
521func (m *EventCfg) XXX_Unmarshal(b []byte) error {
522 return xxx_messageInfo_EventCfg.Unmarshal(m, b)
523}
524func (m *EventCfg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
525 return xxx_messageInfo_EventCfg.Marshal(b, m, deterministic)
526}
527func (m *EventCfg) XXX_Merge(src proto.Message) {
528 xxx_messageInfo_EventCfg.Merge(m, src)
529}
530func (m *EventCfg) XXX_Size() int {
531 return xxx_messageInfo_EventCfg.Size(m)
532}
533func (m *EventCfg) XXX_DiscardUnknown() {
534 xxx_messageInfo_EventCfg.DiscardUnknown(m)
535}
536
537var xxx_messageInfo_EventCfg proto.InternalMessageInfo
538
539func (m *EventCfg) GetEventId() EventIds {
540 if m != nil {
541 return m.EventId
542 }
543 return EventIds_EVENT_NAME_UNDEFINED
544}
545
546func (m *EventCfg) GetIsConfigured() bool {
547 if m != nil {
548 return m.IsConfigured
549 }
550 return false
551}
552
553func (m *EventCfg) GetThresholds() *Thresholds {
554 if m != nil {
555 return m.Thresholds
556 }
557 return nil
558}
559
560type EventsCfg struct {
561 Items []*EventCfg `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
562 XXX_NoUnkeyedLiteral struct{} `json:"-"`
563 XXX_unrecognized []byte `json:"-"`
564 XXX_sizecache int32 `json:"-"`
565}
566
567func (m *EventsCfg) Reset() { *m = EventsCfg{} }
568func (m *EventsCfg) String() string { return proto.CompactTextString(m) }
569func (*EventsCfg) ProtoMessage() {}
570func (*EventsCfg) Descriptor() ([]byte, []int) {
571 return fileDescriptor_8962d785556e9979, []int{5}
572}
573
574func (m *EventsCfg) XXX_Unmarshal(b []byte) error {
575 return xxx_messageInfo_EventsCfg.Unmarshal(m, b)
576}
577func (m *EventsCfg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
578 return xxx_messageInfo_EventsCfg.Marshal(b, m, deterministic)
579}
580func (m *EventsCfg) XXX_Merge(src proto.Message) {
581 xxx_messageInfo_EventsCfg.Merge(m, src)
582}
583func (m *EventsCfg) XXX_Size() int {
584 return xxx_messageInfo_EventsCfg.Size(m)
585}
586func (m *EventsCfg) XXX_DiscardUnknown() {
587 xxx_messageInfo_EventsCfg.DiscardUnknown(m)
588}
589
590var xxx_messageInfo_EventsCfg proto.InternalMessageInfo
591
592func (m *EventsCfg) GetItems() []*EventCfg {
593 if m != nil {
594 return m.Items
595 }
596 return nil
597}
598
599type ListEventsResponse struct {
amit.ghoshae473032021-01-10 11:59:10 +0100600 Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"`
601 Reason ListEventsResponse_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.ListEventsResponse_Reason" json:"reason,omitempty"`
602 Events *EventsCfg `protobuf:"bytes,3,opt,name=events,proto3" json:"events,omitempty"`
603 XXX_NoUnkeyedLiteral struct{} `json:"-"`
604 XXX_unrecognized []byte `json:"-"`
605 XXX_sizecache int32 `json:"-"`
Amit Ghosh09f28362020-06-12 21:52:19 +0100606}
607
608func (m *ListEventsResponse) Reset() { *m = ListEventsResponse{} }
609func (m *ListEventsResponse) String() string { return proto.CompactTextString(m) }
610func (*ListEventsResponse) ProtoMessage() {}
611func (*ListEventsResponse) Descriptor() ([]byte, []int) {
612 return fileDescriptor_8962d785556e9979, []int{6}
613}
614
615func (m *ListEventsResponse) XXX_Unmarshal(b []byte) error {
616 return xxx_messageInfo_ListEventsResponse.Unmarshal(m, b)
617}
618func (m *ListEventsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
619 return xxx_messageInfo_ListEventsResponse.Marshal(b, m, deterministic)
620}
621func (m *ListEventsResponse) XXX_Merge(src proto.Message) {
622 xxx_messageInfo_ListEventsResponse.Merge(m, src)
623}
624func (m *ListEventsResponse) XXX_Size() int {
625 return xxx_messageInfo_ListEventsResponse.Size(m)
626}
627func (m *ListEventsResponse) XXX_DiscardUnknown() {
628 xxx_messageInfo_ListEventsResponse.DiscardUnknown(m)
629}
630
631var xxx_messageInfo_ListEventsResponse proto.InternalMessageInfo
632
633func (m *ListEventsResponse) GetStatus() Status {
634 if m != nil {
635 return m.Status
636 }
637 return Status_UNDEFINED_STATUS
638}
639
amit.ghoshae473032021-01-10 11:59:10 +0100640func (m *ListEventsResponse) GetReason() ListEventsResponse_Reason {
Amit Ghosh09f28362020-06-12 21:52:19 +0100641 if m != nil {
642 return m.Reason
643 }
amit.ghoshae473032021-01-10 11:59:10 +0100644 return ListEventsResponse_UNDEFINED_REASON
Amit Ghosh09f28362020-06-12 21:52:19 +0100645}
646
647func (m *ListEventsResponse) GetEvents() *EventsCfg {
648 if m != nil {
649 return m.Events
650 }
651 return nil
652}
653
654type EventsConfigurationRequest struct {
655 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
656 // Types that are valid to be assigned to Operation:
657 // *EventsConfigurationRequest_Changes
658 // *EventsConfigurationRequest_ResetToDefault
659 Operation isEventsConfigurationRequest_Operation `protobuf_oneof:"operation"`
660 XXX_NoUnkeyedLiteral struct{} `json:"-"`
661 XXX_unrecognized []byte `json:"-"`
662 XXX_sizecache int32 `json:"-"`
663}
664
665func (m *EventsConfigurationRequest) Reset() { *m = EventsConfigurationRequest{} }
666func (m *EventsConfigurationRequest) String() string { return proto.CompactTextString(m) }
667func (*EventsConfigurationRequest) ProtoMessage() {}
668func (*EventsConfigurationRequest) Descriptor() ([]byte, []int) {
669 return fileDescriptor_8962d785556e9979, []int{7}
670}
671
672func (m *EventsConfigurationRequest) XXX_Unmarshal(b []byte) error {
673 return xxx_messageInfo_EventsConfigurationRequest.Unmarshal(m, b)
674}
675func (m *EventsConfigurationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
676 return xxx_messageInfo_EventsConfigurationRequest.Marshal(b, m, deterministic)
677}
678func (m *EventsConfigurationRequest) XXX_Merge(src proto.Message) {
679 xxx_messageInfo_EventsConfigurationRequest.Merge(m, src)
680}
681func (m *EventsConfigurationRequest) XXX_Size() int {
682 return xxx_messageInfo_EventsConfigurationRequest.Size(m)
683}
684func (m *EventsConfigurationRequest) XXX_DiscardUnknown() {
685 xxx_messageInfo_EventsConfigurationRequest.DiscardUnknown(m)
686}
687
688var xxx_messageInfo_EventsConfigurationRequest proto.InternalMessageInfo
689
690func (m *EventsConfigurationRequest) GetDeviceUuid() *Uuid {
691 if m != nil {
692 return m.DeviceUuid
693 }
694 return nil
695}
696
697type isEventsConfigurationRequest_Operation interface {
698 isEventsConfigurationRequest_Operation()
699}
700
701type EventsConfigurationRequest_Changes struct {
702 Changes *EventsCfg `protobuf:"bytes,2,opt,name=changes,proto3,oneof"`
703}
704
705type EventsConfigurationRequest_ResetToDefault struct {
706 ResetToDefault bool `protobuf:"varint,3,opt,name=reset_to_default,json=resetToDefault,proto3,oneof"`
707}
708
709func (*EventsConfigurationRequest_Changes) isEventsConfigurationRequest_Operation() {}
710
711func (*EventsConfigurationRequest_ResetToDefault) isEventsConfigurationRequest_Operation() {}
712
713func (m *EventsConfigurationRequest) GetOperation() isEventsConfigurationRequest_Operation {
714 if m != nil {
715 return m.Operation
716 }
717 return nil
718}
719
720func (m *EventsConfigurationRequest) GetChanges() *EventsCfg {
721 if x, ok := m.GetOperation().(*EventsConfigurationRequest_Changes); ok {
722 return x.Changes
723 }
724 return nil
725}
726
727func (m *EventsConfigurationRequest) GetResetToDefault() bool {
728 if x, ok := m.GetOperation().(*EventsConfigurationRequest_ResetToDefault); ok {
729 return x.ResetToDefault
730 }
731 return false
732}
733
734// XXX_OneofWrappers is for the internal use of the proto package.
735func (*EventsConfigurationRequest) XXX_OneofWrappers() []interface{} {
736 return []interface{}{
737 (*EventsConfigurationRequest_Changes)(nil),
738 (*EventsConfigurationRequest_ResetToDefault)(nil),
739 }
740}
741
742type EventsConfigurationResponse struct {
amit.ghoshae473032021-01-10 11:59:10 +0100743 Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"`
744 Reason EventsConfigurationResponse_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.EventsConfigurationResponse_Reason" json:"reason,omitempty"`
745 XXX_NoUnkeyedLiteral struct{} `json:"-"`
746 XXX_unrecognized []byte `json:"-"`
747 XXX_sizecache int32 `json:"-"`
Amit Ghosh09f28362020-06-12 21:52:19 +0100748}
749
750func (m *EventsConfigurationResponse) Reset() { *m = EventsConfigurationResponse{} }
751func (m *EventsConfigurationResponse) String() string { return proto.CompactTextString(m) }
752func (*EventsConfigurationResponse) ProtoMessage() {}
753func (*EventsConfigurationResponse) Descriptor() ([]byte, []int) {
754 return fileDescriptor_8962d785556e9979, []int{8}
755}
756
757func (m *EventsConfigurationResponse) XXX_Unmarshal(b []byte) error {
758 return xxx_messageInfo_EventsConfigurationResponse.Unmarshal(m, b)
759}
760func (m *EventsConfigurationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
761 return xxx_messageInfo_EventsConfigurationResponse.Marshal(b, m, deterministic)
762}
763func (m *EventsConfigurationResponse) XXX_Merge(src proto.Message) {
764 xxx_messageInfo_EventsConfigurationResponse.Merge(m, src)
765}
766func (m *EventsConfigurationResponse) XXX_Size() int {
767 return xxx_messageInfo_EventsConfigurationResponse.Size(m)
768}
769func (m *EventsConfigurationResponse) XXX_DiscardUnknown() {
770 xxx_messageInfo_EventsConfigurationResponse.DiscardUnknown(m)
771}
772
773var xxx_messageInfo_EventsConfigurationResponse proto.InternalMessageInfo
774
775func (m *EventsConfigurationResponse) GetStatus() Status {
776 if m != nil {
777 return m.Status
778 }
779 return Status_UNDEFINED_STATUS
780}
781
amit.ghoshae473032021-01-10 11:59:10 +0100782func (m *EventsConfigurationResponse) GetReason() EventsConfigurationResponse_Reason {
Amit Ghosh09f28362020-06-12 21:52:19 +0100783 if m != nil {
784 return m.Reason
785 }
amit.ghoshae473032021-01-10 11:59:10 +0100786 return EventsConfigurationResponse_UNDEFINED_REASON
Amit Ghosh09f28362020-06-12 21:52:19 +0100787}
788
789type EventMetaData struct {
790 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
791 // uuid of the component
792 ComponentUuid *Uuid `protobuf:"bytes,2,opt,name=component_uuid,json=componentUuid,proto3" json:"component_uuid,omitempty"`
793 ComponentName string `protobuf:"bytes,3,opt,name=component_name,json=componentName,proto3" json:"component_name,omitempty"`
794 XXX_NoUnkeyedLiteral struct{} `json:"-"`
795 XXX_unrecognized []byte `json:"-"`
796 XXX_sizecache int32 `json:"-"`
797}
798
799func (m *EventMetaData) Reset() { *m = EventMetaData{} }
800func (m *EventMetaData) String() string { return proto.CompactTextString(m) }
801func (*EventMetaData) ProtoMessage() {}
802func (*EventMetaData) Descriptor() ([]byte, []int) {
803 return fileDescriptor_8962d785556e9979, []int{9}
804}
805
806func (m *EventMetaData) XXX_Unmarshal(b []byte) error {
807 return xxx_messageInfo_EventMetaData.Unmarshal(m, b)
808}
809func (m *EventMetaData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
810 return xxx_messageInfo_EventMetaData.Marshal(b, m, deterministic)
811}
812func (m *EventMetaData) XXX_Merge(src proto.Message) {
813 xxx_messageInfo_EventMetaData.Merge(m, src)
814}
815func (m *EventMetaData) XXX_Size() int {
816 return xxx_messageInfo_EventMetaData.Size(m)
817}
818func (m *EventMetaData) XXX_DiscardUnknown() {
819 xxx_messageInfo_EventMetaData.DiscardUnknown(m)
820}
821
822var xxx_messageInfo_EventMetaData proto.InternalMessageInfo
823
824func (m *EventMetaData) GetDeviceUuid() *Uuid {
825 if m != nil {
826 return m.DeviceUuid
827 }
828 return nil
829}
830
831func (m *EventMetaData) GetComponentUuid() *Uuid {
832 if m != nil {
833 return m.ComponentUuid
834 }
835 return nil
836}
837
838func (m *EventMetaData) GetComponentName() string {
839 if m != nil {
840 return m.ComponentName
841 }
842 return ""
843}
844
845type Event struct {
846 EventMetadata *EventMetaData `protobuf:"bytes,1,opt,name=event_metadata,json=eventMetadata,proto3" json:"event_metadata,omitempty"`
847 EventId EventIds `protobuf:"varint,2,opt,name=event_id,json=eventId,proto3,enum=dmi.EventIds" json:"event_id,omitempty"`
848 RaisedTs *timestamp.Timestamp `protobuf:"bytes,3,opt,name=raised_ts,json=raisedTs,proto3" json:"raised_ts,omitempty"`
849 // Optional threshold information for an event
850 ThresholdInfo *ThresholdInformation `protobuf:"bytes,4,opt,name=threshold_info,json=thresholdInfo,proto3" json:"threshold_info,omitempty"`
851 // Any additional info regarding the event
852 AddInfo string `protobuf:"bytes,5,opt,name=add_info,json=addInfo,proto3" json:"add_info,omitempty"`
853 XXX_NoUnkeyedLiteral struct{} `json:"-"`
854 XXX_unrecognized []byte `json:"-"`
855 XXX_sizecache int32 `json:"-"`
856}
857
858func (m *Event) Reset() { *m = Event{} }
859func (m *Event) String() string { return proto.CompactTextString(m) }
860func (*Event) ProtoMessage() {}
861func (*Event) Descriptor() ([]byte, []int) {
862 return fileDescriptor_8962d785556e9979, []int{10}
863}
864
865func (m *Event) XXX_Unmarshal(b []byte) error {
866 return xxx_messageInfo_Event.Unmarshal(m, b)
867}
868func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
869 return xxx_messageInfo_Event.Marshal(b, m, deterministic)
870}
871func (m *Event) XXX_Merge(src proto.Message) {
872 xxx_messageInfo_Event.Merge(m, src)
873}
874func (m *Event) XXX_Size() int {
875 return xxx_messageInfo_Event.Size(m)
876}
877func (m *Event) XXX_DiscardUnknown() {
878 xxx_messageInfo_Event.DiscardUnknown(m)
879}
880
881var xxx_messageInfo_Event proto.InternalMessageInfo
882
883func (m *Event) GetEventMetadata() *EventMetaData {
884 if m != nil {
885 return m.EventMetadata
886 }
887 return nil
888}
889
890func (m *Event) GetEventId() EventIds {
891 if m != nil {
892 return m.EventId
893 }
894 return EventIds_EVENT_NAME_UNDEFINED
895}
896
897func (m *Event) GetRaisedTs() *timestamp.Timestamp {
898 if m != nil {
899 return m.RaisedTs
900 }
901 return nil
902}
903
904func (m *Event) GetThresholdInfo() *ThresholdInformation {
905 if m != nil {
906 return m.ThresholdInfo
907 }
908 return nil
909}
910
911func (m *Event) GetAddInfo() string {
912 if m != nil {
913 return m.AddInfo
914 }
915 return ""
916}
917
918func init() {
919 proto.RegisterEnum("dmi.EventIds", EventIds_name, EventIds_value)
amit.ghoshae473032021-01-10 11:59:10 +0100920 proto.RegisterEnum("dmi.ListEventsResponse_Reason", ListEventsResponse_Reason_name, ListEventsResponse_Reason_value)
921 proto.RegisterEnum("dmi.EventsConfigurationResponse_Reason", EventsConfigurationResponse_Reason_name, EventsConfigurationResponse_Reason_value)
Amit Ghosh09f28362020-06-12 21:52:19 +0100922 proto.RegisterType((*ValueType)(nil), "dmi.ValueType")
923 proto.RegisterType((*WaterMarks)(nil), "dmi.WaterMarks")
924 proto.RegisterType((*Thresholds)(nil), "dmi.Thresholds")
925 proto.RegisterType((*ThresholdInformation)(nil), "dmi.ThresholdInformation")
926 proto.RegisterType((*EventCfg)(nil), "dmi.EventCfg")
927 proto.RegisterType((*EventsCfg)(nil), "dmi.EventsCfg")
928 proto.RegisterType((*ListEventsResponse)(nil), "dmi.ListEventsResponse")
929 proto.RegisterType((*EventsConfigurationRequest)(nil), "dmi.EventsConfigurationRequest")
930 proto.RegisterType((*EventsConfigurationResponse)(nil), "dmi.EventsConfigurationResponse")
931 proto.RegisterType((*EventMetaData)(nil), "dmi.EventMetaData")
932 proto.RegisterType((*Event)(nil), "dmi.Event")
933}
934
935func init() { proto.RegisterFile("dmi/hw_events_mgmt_service.proto", fileDescriptor_8962d785556e9979) }
936
937var fileDescriptor_8962d785556e9979 = []byte{
amit.ghoshae473032021-01-10 11:59:10 +0100938 // 1402 bytes of a gzipped FileDescriptorProto
939 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0x5d, 0x73, 0xdb, 0x44,
940 0x17, 0x8e, 0xac, 0x26, 0x71, 0x4e, 0x1a, 0xbf, 0xea, 0x4e, 0xdf, 0xb7, 0x89, 0x3b, 0x6d, 0xfd,
941 0x3a, 0xd0, 0xa4, 0x81, 0xd8, 0x6d, 0x02, 0x2d, 0x9d, 0x5e, 0x80, 0x63, 0x2b, 0xb5, 0x06, 0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 0xd8, 0x4c, 0x94, 0xe7, 0x70, 0x92, 0x87, 0xea, 0xa4, 0xb3, 0x37, 0x0f, 0xe2,
954 0x29, 0xe9, 0x64, 0x31, 0xc0, 0x31, 0x61, 0xd4, 0x3d, 0x20, 0xee, 0x53, 0x0f, 0x65, 0xe1, 0x52,
955 0xdb, 0x6c, 0xb5, 0xb9, 0xd0, 0xf2, 0x4e, 0x2a, 0x67, 0x58, 0x66, 0xae, 0xef, 0x04, 0xf3, 0x1c,
956 0xca, 0x80, 0xd8, 0x71, 0xce, 0xb8, 0xde, 0x28, 0x24, 0x48, 0x65, 0x9f, 0x02, 0x68, 0x6d, 0x97,
957 0x7a, 0x6d, 0xa7, 0x63, 0x78, 0x68, 0x03, 0xe6, 0xfd, 0x6e, 0x97, 0xba, 0x51, 0xd1, 0xff, 0x70,
958 0xc6, 0x40, 0xb3, 0x3c, 0x87, 0xc3, 0x7c, 0x00, 0xec, 0x38, 0x67, 0xd4, 0x8d, 0x4a, 0x8f, 0x03,
959 0xf2, 0xfc, 0xde, 0x32, 0x2c, 0xb1, 0x5e, 0xfd, 0xec, 0x27, 0x70, 0xb5, 0x2f, 0xa6, 0xd8, 0x4d,
960 0xc7, 0xb5, 0x08, 0x33, 0x1d, 0x1b, 0xbd, 0x09, 0x29, 0xe7, 0x24, 0xd8, 0x1d, 0x6a, 0x04, 0x6f,
961 0xc0, 0xa7, 0x13, 0x16, 0xb5, 0xd2, 0x43, 0xf1, 0x10, 0xca, 0x03, 0xf4, 0x6b, 0x7b, 0xe7, 0x9c,
962 0x0c, 0x96, 0x84, 0x63, 0x90, 0xec, 0x67, 0x02, 0x24, 0xe5, 0xa0, 0x21, 0x8a, 0xcd, 0x16, 0xda,
963 0x84, 0x24, 0x6f, 0x0e, 0xdd, 0x34, 0xb8, 0x5c, 0x6a, 0x67, 0x85, 0x73, 0x39, 0x40, 0x31, 0x3c,
964 0xbc, 0x48, 0xc3, 0x5f, 0x68, 0x1d, 0x56, 0x4c, 0x4f, 0x6f, 0x38, 0x76, 0xd3, 0x6c, 0xf9, 0x2e,
965 0x35, 0xb8, 0x54, 0x12, 0x5f, 0x36, 0xbd, 0x62, 0x3f, 0x36, 0x64, 0x46, 0x9c, 0x6d, 0xe6, 0x2e,
966 0x2c, 0x71, 0x29, 0x2f, 0x30, 0xb3, 0x0e, 0xf3, 0x26, 0xa3, 0x96, 0xb7, 0x2a, 0x64, 0xc4, 0xcd,
967 0xe5, 0xb8, 0x93, 0x62, 0xb3, 0x85, 0xc3, 0x5c, 0xf6, 0x37, 0x01, 0x50, 0xc5, 0xf4, 0x58, 0x48,
968 0xc3, 0xd4, 0xeb, 0x3a, 0xb6, 0x47, 0xd1, 0x3a, 0x2c, 0x78, 0x8c, 0x30, 0xdf, 0x8b, 0x96, 0xb1,
969 0xcc, 0xc9, 0x47, 0x3c, 0x84, 0xa3, 0x14, 0xba, 0x0f, 0x0b, 0x2e, 0x25, 0x9e, 0x63, 0x73, 0xf3,
970 0xa9, 0x9d, 0x9b, 0x1c, 0x34, 0x5a, 0x2d, 0x87, 0x39, 0x0a, 0x47, 0x68, 0x74, 0x1b, 0x16, 0xc2,
971 0x23, 0x14, 0x2d, 0x29, 0x35, 0x70, 0x16, 0x18, 0xc7, 0x51, 0x36, 0xbb, 0x0f, 0x0b, 0x21, 0x13,
972 0x5d, 0x05, 0xa9, 0xa6, 0x96, 0xe4, 0x7d, 0x45, 0x95, 0x4b, 0x3a, 0x96, 0x0b, 0x47, 0x55, 0x55,
973 0x9a, 0x43, 0x08, 0x52, 0x35, 0xf5, 0x5d, 0xb5, 0x7a, 0xac, 0xea, 0x25, 0xb9, 0xae, 0x14, 0x65,
974 0x49, 0x08, 0x62, 0x8a, 0xaa, 0xc9, 0x58, 0x2d, 0x54, 0x74, 0x19, 0xe3, 0x2a, 0x96, 0x12, 0xd9,
975 0x17, 0x02, 0xa4, 0xa3, 0xea, 0xd1, 0xbb, 0xe5, 0x2d, 0x82, 0xe9, 0x33, 0x9f, 0x7a, 0x0c, 0x6d,
976 0xc1, 0xb2, 0x41, 0x83, 0x43, 0xac, 0xfb, 0x7e, 0xb4, 0x6f, 0xcb, 0x3b, 0x4b, 0xdc, 0x53, 0xcd,
977 0x37, 0x0d, 0x0c, 0x61, 0x36, 0xf8, 0x8d, 0xb6, 0x60, 0xb1, 0xd1, 0x26, 0x76, 0x8b, 0x7a, 0xe7,
978 0x0e, 0x40, 0xdf, 0x7b, 0x70, 0x00, 0x23, 0x00, 0xda, 0x02, 0xc9, 0xa5, 0x1e, 0x65, 0x3a, 0x73,
979 0x74, 0x83, 0x36, 0x89, 0xdf, 0x61, 0x7c, 0xc1, 0xc9, 0xf2, 0x1c, 0x4e, 0xf1, 0x8c, 0xe6, 0x94,
980 0xc2, 0x78, 0xd0, 0xd2, 0x4e, 0x97, 0x86, 0xbe, 0xb2, 0xbf, 0x0a, 0x70, 0x7d, 0xac, 0xdf, 0x97,
981 0xd9, 0x9c, 0xb7, 0x87, 0x36, 0x67, 0x23, 0x6e, 0x74, 0x5c, 0xd9, 0xa1, 0x5d, 0xca, 0x3e, 0xf9,
982 0x77, 0xde, 0x7e, 0x18, 0xab, 0x17, 0x2a, 0x4a, 0x49, 0x2f, 0x56, 0xd5, 0x7d, 0xe5, 0xb1, 0x24,
983 0x66, 0xbf, 0x16, 0x60, 0x85, 0x5b, 0x39, 0xa0, 0x8c, 0x94, 0x08, 0x23, 0x2f, 0xb5, 0x09, 0x77,
984 0x21, 0xd5, 0x70, 0xac, 0xae, 0x63, 0x07, 0x27, 0x8d, 0xc3, 0x13, 0xc3, 0xf0, 0x95, 0x3e, 0x80,
985 0x33, 0x5e, 0x8d, 0x33, 0x6c, 0x62, 0x51, 0xbe, 0x11, 0x4b, 0x31, 0x98, 0x4a, 0x2c, 0x9a, 0xfd,
986 0x34, 0x01, 0xf3, 0xdc, 0x16, 0x7a, 0x08, 0xa9, 0xf0, 0x20, 0x5b, 0x94, 0x11, 0x83, 0x30, 0x12,
987 0x39, 0x42, 0x83, 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0x09, 0x28, 0x03, 0xd7, 0x47, 0xe2, 0x31, 0xa5, 0x9f,
1010 0x63, 0xcc, 0xfd, 0x82, 0xda, 0x67, 0x7e, 0x93, 0x18, 0x58, 0x08, 0xe2, 0x7d, 0x0b, 0x2f, 0x12,
1011 0xe7, 0x09, 0x3d, 0x0b, 0xdf, 0x26, 0x06, 0x52, 0xb1, 0x42, 0x31, 0xa9, 0xef, 0x12, 0xe8, 0x0e,
1012 0xbc, 0x12, 0x22, 0x8a, 0x87, 0xb5, 0x31, 0xad, 0x5c, 0xc4, 0x8a, 0xa6, 0x14, 0x0b, 0x15, 0xe9,
1013 0x73, 0x11, 0xdd, 0x86, 0xff, 0x4f, 0x83, 0xee, 0x17, 0xb4, 0x42, 0x45, 0xfa, 0x42, 0x44, 0xbb,
1014 0x90, 0xbb, 0x48, 0xc9, 0x98, 0x8f, 0x2f, 0x45, 0x74, 0x17, 0x5e, 0x9b, 0x59, 0x3c, 0xc6, 0xf8,
1015 0x4a, 0x44, 0x69, 0xf8, 0x6f, 0xc8, 0x28, 0x1f, 0x47, 0xe3, 0x83, 0x8e, 0xe5, 0x23, 0x59, 0x93,
1016 0x7e, 0x17, 0x51, 0xbe, 0x77, 0xd3, 0x0c, 0x72, 0x53, 0xd6, 0xf6, 0x87, 0x88, 0x5e, 0x87, 0x8d,
1017 0xd9, 0x84, 0x70, 0x85, 0x7f, 0x8a, 0xe8, 0x61, 0xaf, 0xdb, 0x2e, 0x52, 0x3e, 0xe6, 0xfa, 0x2f,
1018 0x11, 0xdd, 0x87, 0x7b, 0x17, 0x14, 0x8a, 0xf1, 0xfe, 0x16, 0x77, 0xbe, 0x17, 0xe0, 0x86, 0x4a,
1019 0x98, 0x79, 0x4a, 0xc3, 0x01, 0xec, 0x80, 0xd8, 0xa4, 0x45, 0x2d, 0x6a, 0xb3, 0xa3, 0xf0, 0xff,
1020 0x23, 0xba, 0x0f, 0x30, 0x18, 0x9c, 0x51, 0x38, 0xe4, 0x97, 0x89, 0x6b, 0x9c, 0x11, 0x97, 0x2a,
1021 0xa5, 0xf4, 0xb5, 0x09, 0xa3, 0x35, 0x7a, 0x1f, 0xd6, 0x6a, 0x5d, 0x83, 0x30, 0x3a, 0x66, 0xb2,
1022 0x43, 0xb7, 0x26, 0xcf, 0x7c, 0x7c, 0xf4, 0x4d, 0x67, 0x66, 0x0d, 0x85, 0x7b, 0x8f, 0x9e, 0x3c,
1023 0x6c, 0x99, 0xac, 0xed, 0x9f, 0xe4, 0x1a, 0x8e, 0x95, 0x77, 0xba, 0xd4, 0x6e, 0x38, 0xae, 0x91,
1024 0x0f, 0xa7, 0xb1, 0x6d, 0xab, 0xbf, 0x8e, 0x6d, 0xd3, 0x66, 0xd4, 0x6d, 0x92, 0x06, 0xcd, 0x9f,
1025 0xee, 0xe6, 0x5b, 0x4e, 0xde, 0xb0, 0xcc, 0x93, 0x05, 0x3e, 0xc5, 0xec, 0xfe, 0x13, 0x00, 0x00,
1026 0xff, 0xff, 0x8c, 0x06, 0xe5, 0x08, 0x39, 0x0f, 0x00, 0x00,
Amit Ghosh09f28362020-06-12 21:52:19 +01001027}
1028
1029// Reference imports to suppress errors if they are not otherwise used.
1030var _ context.Context
1031var _ grpc.ClientConn
1032
1033// This is a compile-time assertion to ensure that this generated file
1034// is compatible with the grpc package it is being compiled against.
1035const _ = grpc.SupportPackageIsVersion4
1036
1037// NativeEventsManagementServiceClient is the client API for NativeEventsManagementService service.
1038//
1039// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
1040type NativeEventsManagementServiceClient interface {
1041 // List the supported events for the passed device
1042 ListEvents(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (*ListEventsResponse, error)
1043 // Updates the configuration of the list of events in the request
aghoshc301dcd2020-09-03 16:55:34 +01001044 // The default behavior of the device is to report all the supported events
Amit Ghosh09f28362020-06-12 21:52:19 +01001045 // This configuration is persisted across reboots of the device or the device manager
1046 UpdateEventsConfiguration(ctx context.Context, in *EventsConfigurationRequest, opts ...grpc.CallOption) (*EventsConfigurationResponse, error)
1047}
1048
1049type nativeEventsManagementServiceClient struct {
1050 cc *grpc.ClientConn
1051}
1052
1053func NewNativeEventsManagementServiceClient(cc *grpc.ClientConn) NativeEventsManagementServiceClient {
1054 return &nativeEventsManagementServiceClient{cc}
1055}
1056
1057func (c *nativeEventsManagementServiceClient) ListEvents(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (*ListEventsResponse, error) {
1058 out := new(ListEventsResponse)
1059 err := c.cc.Invoke(ctx, "/dmi.NativeEventsManagementService/ListEvents", in, out, opts...)
1060 if err != nil {
1061 return nil, err
1062 }
1063 return out, nil
1064}
1065
1066func (c *nativeEventsManagementServiceClient) UpdateEventsConfiguration(ctx context.Context, in *EventsConfigurationRequest, opts ...grpc.CallOption) (*EventsConfigurationResponse, error) {
1067 out := new(EventsConfigurationResponse)
1068 err := c.cc.Invoke(ctx, "/dmi.NativeEventsManagementService/UpdateEventsConfiguration", in, out, opts...)
1069 if err != nil {
1070 return nil, err
1071 }
1072 return out, nil
1073}
1074
1075// NativeEventsManagementServiceServer is the server API for NativeEventsManagementService service.
1076type NativeEventsManagementServiceServer interface {
1077 // List the supported events for the passed device
1078 ListEvents(context.Context, *HardwareID) (*ListEventsResponse, error)
1079 // Updates the configuration of the list of events in the request
aghoshc301dcd2020-09-03 16:55:34 +01001080 // The default behavior of the device is to report all the supported events
Amit Ghosh09f28362020-06-12 21:52:19 +01001081 // This configuration is persisted across reboots of the device or the device manager
1082 UpdateEventsConfiguration(context.Context, *EventsConfigurationRequest) (*EventsConfigurationResponse, error)
1083}
1084
1085func RegisterNativeEventsManagementServiceServer(s *grpc.Server, srv NativeEventsManagementServiceServer) {
1086 s.RegisterService(&_NativeEventsManagementService_serviceDesc, srv)
1087}
1088
1089func _NativeEventsManagementService_ListEvents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1090 in := new(HardwareID)
1091 if err := dec(in); err != nil {
1092 return nil, err
1093 }
1094 if interceptor == nil {
1095 return srv.(NativeEventsManagementServiceServer).ListEvents(ctx, in)
1096 }
1097 info := &grpc.UnaryServerInfo{
1098 Server: srv,
1099 FullMethod: "/dmi.NativeEventsManagementService/ListEvents",
1100 }
1101 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1102 return srv.(NativeEventsManagementServiceServer).ListEvents(ctx, req.(*HardwareID))
1103 }
1104 return interceptor(ctx, in, info, handler)
1105}
1106
1107func _NativeEventsManagementService_UpdateEventsConfiguration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1108 in := new(EventsConfigurationRequest)
1109 if err := dec(in); err != nil {
1110 return nil, err
1111 }
1112 if interceptor == nil {
1113 return srv.(NativeEventsManagementServiceServer).UpdateEventsConfiguration(ctx, in)
1114 }
1115 info := &grpc.UnaryServerInfo{
1116 Server: srv,
1117 FullMethod: "/dmi.NativeEventsManagementService/UpdateEventsConfiguration",
1118 }
1119 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1120 return srv.(NativeEventsManagementServiceServer).UpdateEventsConfiguration(ctx, req.(*EventsConfigurationRequest))
1121 }
1122 return interceptor(ctx, in, info, handler)
1123}
1124
1125var _NativeEventsManagementService_serviceDesc = grpc.ServiceDesc{
1126 ServiceName: "dmi.NativeEventsManagementService",
1127 HandlerType: (*NativeEventsManagementServiceServer)(nil),
1128 Methods: []grpc.MethodDesc{
1129 {
1130 MethodName: "ListEvents",
1131 Handler: _NativeEventsManagementService_ListEvents_Handler,
1132 },
1133 {
1134 MethodName: "UpdateEventsConfiguration",
1135 Handler: _NativeEventsManagementService_UpdateEventsConfiguration_Handler,
1136 },
1137 },
1138 Streams: []grpc.StreamDesc{},
1139 Metadata: "dmi/hw_events_mgmt_service.proto",
1140}