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