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